From b18eebc39871e9c85fd50d107d38d48663a9dca1 Mon Sep 17 00:00:00 2001 From: Dylan Perks Date: Fri, 15 Nov 2024 23:03:12 +0000 Subject: [PATCH 1/8] Add a Utf8String helper type, and transform string constants to use it --- generator.json | 1 + sources/Core/Core/Abstractions/Utf8String.cs | 81 ++ sources/Core/Core/Pointers/Ref.generic.cs | 13 +- sources/Core/Core/SilkMarshal.cs | 185 ++-- sources/SDL/SDL/SDL3/Sdl.gen.cs | 805 ++++++++---------- .../SilkTouch/Mods/Common/ModLoader.cs | 3 +- .../SilkTouch/Mods/TransformProperties.cs | 67 ++ tests/Core/Core/Ref2DTests.cs | 54 +- tests/Core/Core/RefTests.cs | 43 +- 9 files changed, 697 insertions(+), 555 deletions(-) create mode 100644 sources/Core/Core/Abstractions/Utf8String.cs create mode 100644 sources/SilkTouch/SilkTouch/Mods/TransformProperties.cs diff --git a/generator.json b/generator.json index ed43803f4e..f627a041ab 100644 --- a/generator.json +++ b/generator.json @@ -43,6 +43,7 @@ "ExtractNestedTyping", "TransformHandles", "TransformFunctions", + "TransformProperties", "PrettifyNames", "AddVTables" ], diff --git a/sources/Core/Core/Abstractions/Utf8String.cs b/sources/Core/Core/Abstractions/Utf8String.cs new file mode 100644 index 0000000000..9b04eff88e --- /dev/null +++ b/sources/Core/Core/Abstractions/Utf8String.cs @@ -0,0 +1,81 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Runtime.InteropServices; + +namespace Silk.NET.Core; + +/// +/// Represents a target type for UTF-8 string literals. +/// +/// The UTF-8 bytes. +public readonly ref struct Utf8String(ReadOnlySpan bytes) +{ + /// + /// Gets the UTF-8 byte representation of this string. + /// + public ReadOnlySpan Bytes { get; } = bytes; + + /// + /// Converts this string to a . + /// + /// The string. + /// The ref. + public static implicit operator Ref(Utf8String str) => str.Bytes; + + /// + /// Converts this string to a . + /// + /// The string. + /// The ref. + public static implicit operator Ref(Utf8String str) => (ReadOnlySpan)str; + + /// + /// Converts this string to a . + /// + /// The string. + /// The span. + public static implicit operator ReadOnlySpan(Utf8String str) => str.Bytes; + + /// + /// Converts this string to a . + /// + /// The string. + /// The span. + public static implicit operator ReadOnlySpan(Utf8String str) => + MemoryMarshal.Cast(str); + + // TODO add ptr casts once we have an analyzer for e.g. [KnownImmovable] + + /// + /// Converts this string to a . + /// + /// The string. + /// The ref. + public static implicit operator Ref(Utf8String str) => (Ref)str.Bytes; + + /// + /// Converts this string to a . + /// + /// The string. + /// The string. + public static implicit operator string(Utf8String str) => str.ToString(); + + /// + /// Converts the given UTF-8 bytes to a . + /// + /// The bytes. + /// The string. + public static implicit operator Utf8String(ReadOnlySpan bytes) => new(bytes); + + /// + /// Converts the given UTF-8 bytes to a . + /// + /// The bytes. + /// The string. + public static implicit operator Utf8String(ReadOnlySpan bytes) => + MemoryMarshal.Cast(bytes); + + /// + public override string ToString() => (string)(Ref)this; +} diff --git a/sources/Core/Core/Pointers/Ref.generic.cs b/sources/Core/Core/Pointers/Ref.generic.cs index 1f295d30b1..c94bc40361 100644 --- a/sources/Core/Core/Pointers/Ref.generic.cs +++ b/sources/Core/Core/Pointers/Ref.generic.cs @@ -132,12 +132,21 @@ public ref T this[nuint index] public static bool operator !=(NullPtr lh, Ref rh) => (Ref)lh != rh; /// - /// Creates a from a span + /// Creates a from a span. /// - /// + /// The span to create the ref from. [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static implicit operator Ref(Span span) => new(ref span.GetPinnableReference()); + /// + /// Creates a from a readonly span. + /// + /// The span to create the ref from. + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + // TODO const correctness analyzers + public static implicit operator Ref(ReadOnlySpan span) => + new(ref Unsafe.AsRef(in span.GetPinnableReference())); + /// /// Creates a from a byte reference /// diff --git a/sources/Core/Core/SilkMarshal.cs b/sources/Core/Core/SilkMarshal.cs index 442a976b01..b2680eb01a 100644 --- a/sources/Core/Core/SilkMarshal.cs +++ b/sources/Core/Core/SilkMarshal.cs @@ -215,6 +215,7 @@ public static ref byte StringArrayToNative(ReadOnlySpan strs, nint charS /// The character size of the marshalled strings. /// The reference. /// A GC exception occurred. + // TODO analyzer to clarify that this only works if the inner array is const. public static ref byte StringArrayToNative(ReadOnlySpan strs, nint charSize = 1) { var ret = new byte[strs.Length * sizeof(nint)]; @@ -235,6 +236,7 @@ public static ref byte StringArrayToNative(ReadOnlySpan strs, nint cha /// The character size of the marshalled strings. /// The reference. /// A GC exception occurred. + // TODO analyzer to clarify that this only works if the inner array is const. public static ref byte StringArrayToNative(ReadOnlySpan strs, nint charSize = 1) { var ret = new byte[strs.Length * sizeof(nint)]; @@ -255,6 +257,7 @@ public static ref byte StringArrayToNative(ReadOnlySpan strs, nint c /// The pointee type. /// The created array. /// A GC exception occurred. + // TODO analyzer to clarify that this only works if the inner array is const. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static T*[] JaggedArrayToPointerArray(ReadOnlySpan array) where T : unmanaged @@ -286,6 +289,7 @@ public static ref byte StringArrayToNative(ReadOnlySpan strs, nint c /// The pointee type. /// The created array. /// A GC exception occurred. + // TODO analyzer to clarify that this only works if the inner array is const. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static T**[] JaggedArrayToPointerArray(ReadOnlySpan array) where T : unmanaged @@ -319,6 +323,7 @@ public static ref byte StringArrayToNative(ReadOnlySpan strs, nint c /// The pointee type. /// The created array. /// A GC exception occurred. + // TODO analyzer to clarify that this only works if the inner array is const. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static T***[] JaggedArrayToPointerArray(ReadOnlySpan array) where T : unmanaged @@ -508,6 +513,15 @@ public static Ref AsRef(ref this T @ref) public static Ref AsRef(this Span @ref) where T : unmanaged => new(ref @ref.GetPinnableReference()); + /// + /// Creates a reference from a readonly span. + /// + /// A span of . + /// The pointee type. + /// The pointer to the given span's elements. + public static Ref AsRef(this ReadOnlySpan @ref) + where T : unmanaged => @ref; + /// /// Creates a 2D Ref from a reference. /// @@ -537,6 +551,26 @@ public static Ref2D AsRef2D(ref this Span @ref) throw IL.Unreachable(); } + /// + /// Creates a 2D Ref from a reference to a readonly span. + /// + /// A reference to a . + /// The pointee type. + /// The pointer to the given reference. + public static Ref2D AsRef2D(ref this ReadOnlySpan @ref) + where T : unmanaged + { + IL.Emit.Ldarg_0(); + IL.Emit.Newobj( + MethodRef.Constructor( + TypeRef.Type(typeof(Ref2D<>).MakeGenericType(typeof(T))), + TypeRef.Type(typeof(Ref<>).MakeGenericType(typeof(T)).MakeByRefType()) + ) + ); + IL.Emit.Ret(); + throw IL.Unreachable(); + } + /// /// Converts a span of ptrs to a 2D jagged array /// @@ -685,51 +719,32 @@ static TTo UnsignedFallback(TFrom value) MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] static TTo UnsignedCast(TFrom value) => - sizeof(TTo) == sizeof(TFrom) - ? Unsafe.BitCast(value) - : sizeof(TTo) == 1 && sizeof(TFrom) == 2 - ? Unsafe.BitCast((byte)Unsafe.BitCast(value)) - : sizeof(TTo) == 1 && sizeof(TFrom) == 4 - ? Unsafe.BitCast((byte)Unsafe.BitCast(value)) - : sizeof(TTo) == 1 && sizeof(TFrom) == 8 - ? Unsafe.BitCast((byte)Unsafe.BitCast(value)) - : sizeof(TTo) == 2 && sizeof(TFrom) == 1 - ? Unsafe.BitCast(Unsafe.BitCast(value)) - : sizeof(TTo) == 2 && sizeof(TFrom) == 4 - ? Unsafe.BitCast( - (ushort)Unsafe.BitCast(value) - ) - : sizeof(TTo) == 2 && sizeof(TFrom) == 8 - ? Unsafe.BitCast( - (ushort)Unsafe.BitCast(value) - ) - : sizeof(TTo) == 4 && sizeof(TFrom) == 1 - ? Unsafe.BitCast( - Unsafe.BitCast(value) - ) - : sizeof(TTo) == 4 && sizeof(TFrom) == 2 - ? Unsafe.BitCast( - Unsafe.BitCast(value) - ) - : sizeof(TTo) == 4 && sizeof(TFrom) == 8 - ? Unsafe.BitCast( - (uint)Unsafe.BitCast(value) - ) - : sizeof(TTo) == 8 && sizeof(TFrom) == 1 - ? Unsafe.BitCast( - Unsafe.BitCast(value) - ) - : sizeof(TTo) == 8 && sizeof(TFrom) == 2 - ? Unsafe.BitCast( - Unsafe.BitCast(value) - ) - : sizeof(TTo) == 8 && sizeof(TFrom) == 4 - ? Unsafe.BitCast( - Unsafe.BitCast( - value - ) - ) - : UnsignedFallback(value); + sizeof(TTo) == sizeof(TFrom) ? Unsafe.BitCast(value) + : sizeof(TTo) == 1 && sizeof(TFrom) == 2 + ? Unsafe.BitCast((byte)Unsafe.BitCast(value)) + : sizeof(TTo) == 1 && sizeof(TFrom) == 4 + ? Unsafe.BitCast((byte)Unsafe.BitCast(value)) + : sizeof(TTo) == 1 && sizeof(TFrom) == 8 + ? Unsafe.BitCast((byte)Unsafe.BitCast(value)) + : sizeof(TTo) == 2 && sizeof(TFrom) == 1 + ? Unsafe.BitCast(Unsafe.BitCast(value)) + : sizeof(TTo) == 2 && sizeof(TFrom) == 4 + ? Unsafe.BitCast((ushort)Unsafe.BitCast(value)) + : sizeof(TTo) == 2 && sizeof(TFrom) == 8 + ? Unsafe.BitCast((ushort)Unsafe.BitCast(value)) + : sizeof(TTo) == 4 && sizeof(TFrom) == 1 + ? Unsafe.BitCast(Unsafe.BitCast(value)) + : sizeof(TTo) == 4 && sizeof(TFrom) == 2 + ? Unsafe.BitCast(Unsafe.BitCast(value)) + : sizeof(TTo) == 4 && sizeof(TFrom) == 8 + ? Unsafe.BitCast((uint)Unsafe.BitCast(value)) + : sizeof(TTo) == 8 && sizeof(TFrom) == 1 + ? Unsafe.BitCast(Unsafe.BitCast(value)) + : sizeof(TTo) == 8 && sizeof(TFrom) == 2 + ? Unsafe.BitCast(Unsafe.BitCast(value)) + : sizeof(TTo) == 8 && sizeof(TFrom) == 4 + ? Unsafe.BitCast(Unsafe.BitCast(value)) + : UnsignedFallback(value); [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.AggressiveOptimization)] static TTo SignedFallback(TFrom _) => @@ -741,57 +756,39 @@ static TTo SignedFallback(TFrom _) => MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] static TTo SignedCast(TFrom value) => - sizeof(TTo) == sizeof(TFrom) - ? Unsafe.BitCast(value) - : sizeof(TTo) == 1 && sizeof(TFrom) == 2 - ? Unsafe.BitCast((sbyte)Unsafe.BitCast(value)) - : sizeof(TTo) == 1 && sizeof(TFrom) == 4 - ? Unsafe.BitCast((sbyte)Unsafe.BitCast(value)) - : sizeof(TTo) == 1 && sizeof(TFrom) == 8 - ? Unsafe.BitCast((sbyte)Unsafe.BitCast(value)) - : sizeof(TTo) == 2 && sizeof(TFrom) == 1 - ? Unsafe.BitCast(Unsafe.BitCast(value)) - : sizeof(TTo) == 2 && sizeof(TFrom) == 4 - ? Unsafe.BitCast( - (short)Unsafe.BitCast(value) - ) - : sizeof(TTo) == 2 && sizeof(TFrom) == 8 - ? Unsafe.BitCast( - (short)Unsafe.BitCast(value) - ) - : sizeof(TTo) == 4 && sizeof(TFrom) == 1 - ? Unsafe.BitCast( - Unsafe.BitCast(value) - ) - : sizeof(TTo) == 4 && sizeof(TFrom) == 2 - ? Unsafe.BitCast( - Unsafe.BitCast(value) - ) - : sizeof(TTo) == 4 && sizeof(TFrom) == 8 - ? Unsafe.BitCast( - (int)Unsafe.BitCast(value) - ) - : sizeof(TTo) == 8 && sizeof(TFrom) == 1 - ? Unsafe.BitCast( - Unsafe.BitCast(value) - ) - : sizeof(TTo) == 8 && sizeof(TFrom) == 2 - ? Unsafe.BitCast( - Unsafe.BitCast(value) - ) - : sizeof(TTo) == 8 && sizeof(TFrom) == 4 - ? Unsafe.BitCast( - Unsafe.BitCast( - value - ) - ) - : SignedFallback(value); + sizeof(TTo) == sizeof(TFrom) ? Unsafe.BitCast(value) + : sizeof(TTo) == 1 && sizeof(TFrom) == 2 + ? Unsafe.BitCast((sbyte)Unsafe.BitCast(value)) + : sizeof(TTo) == 1 && sizeof(TFrom) == 4 + ? Unsafe.BitCast((sbyte)Unsafe.BitCast(value)) + : sizeof(TTo) == 1 && sizeof(TFrom) == 8 + ? Unsafe.BitCast((sbyte)Unsafe.BitCast(value)) + : sizeof(TTo) == 2 && sizeof(TFrom) == 1 + ? Unsafe.BitCast(Unsafe.BitCast(value)) + : sizeof(TTo) == 2 && sizeof(TFrom) == 4 + ? Unsafe.BitCast((short)Unsafe.BitCast(value)) + : sizeof(TTo) == 2 && sizeof(TFrom) == 8 + ? Unsafe.BitCast((short)Unsafe.BitCast(value)) + : sizeof(TTo) == 4 && sizeof(TFrom) == 1 + ? Unsafe.BitCast(Unsafe.BitCast(value)) + : sizeof(TTo) == 4 && sizeof(TFrom) == 2 + ? Unsafe.BitCast(Unsafe.BitCast(value)) + : sizeof(TTo) == 4 && sizeof(TFrom) == 8 + ? Unsafe.BitCast((int)Unsafe.BitCast(value)) + : sizeof(TTo) == 8 && sizeof(TFrom) == 1 + ? Unsafe.BitCast(Unsafe.BitCast(value)) + : sizeof(TTo) == 8 && sizeof(TFrom) == 2 + ? Unsafe.BitCast(Unsafe.BitCast(value)) + : sizeof(TTo) == 8 && sizeof(TFrom) == 4 + ? Unsafe.BitCast(Unsafe.BitCast(value)) + : SignedFallback(value); return typeof(TTo).IsAssignableTo(typeof(IFloatingPoint<>)) - ? throw new NotImplementedException("Floating points are not supported at this time.") - : typeof(TTo).IsAssignableTo(typeof(ISignedNumber<>)) - ? SignedCast(value) - : UnsignedCast(value); + ? throw new NotImplementedException( + "Floating points are not supported at this time." + ) + : typeof(TTo).IsAssignableTo(typeof(ISignedNumber<>)) ? SignedCast(value) + : UnsignedCast(value); } /// diff --git a/sources/SDL/SDL/SDL3/Sdl.gen.cs b/sources/SDL/SDL/SDL3/Sdl.gen.cs index cf2cdb3fde..c38f35839d 100644 --- a/sources/SDL/SDL/SDL3/Sdl.gen.cs +++ b/sources/SDL/SDL/SDL3/Sdl.gen.cs @@ -37005,7 +37005,7 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public const int AssertLevel = 2; [NativeTypeName("#define SDL_FILE __FILE__")] - public static ReadOnlySpan File => + public static Utf8String File => "/Users/dylan/Documents/Silk.NET3/eng/silktouch/sdl/SDL3/sdl-SDL.h"u8; [NativeTypeName("#define SDL_LINE __LINE__")] @@ -37023,28 +37023,25 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName( "#define SDL_PROP_IOSTREAM_WINDOWS_HANDLE_POINTER \"SDL.iostream.windows.handle\"" )] - public static ReadOnlySpan PropIostreamWindowsHandlePointer => - "SDL.iostream.windows.handle"u8; + public static Utf8String PropIostreamWindowsHandlePointer => "SDL.iostream.windows.handle"u8; [NativeTypeName("#define SDL_PROP_IOSTREAM_STDIO_FILE_POINTER \"SDL.iostream.stdio.file\"")] - public static ReadOnlySpan PropIostreamStdioFilePointer => "SDL.iostream.stdio.file"u8; + public static Utf8String PropIostreamStdioFilePointer => "SDL.iostream.stdio.file"u8; [NativeTypeName( "#define SDL_PROP_IOSTREAM_ANDROID_AASSET_POINTER \"SDL.iostream.android.aasset\"" )] - public static ReadOnlySpan PropIostreamAndroidAassetPointer => - "SDL.iostream.android.aasset"u8; + public static Utf8String PropIostreamAndroidAassetPointer => "SDL.iostream.android.aasset"u8; [NativeTypeName( "#define SDL_PROP_IOSTREAM_DYNAMIC_MEMORY_POINTER \"SDL.iostream.dynamic.memory\"" )] - public static ReadOnlySpan PropIostreamDynamicMemoryPointer => - "SDL.iostream.dynamic.memory"u8; + public static Utf8String PropIostreamDynamicMemoryPointer => "SDL.iostream.dynamic.memory"u8; [NativeTypeName( "#define SDL_PROP_IOSTREAM_DYNAMIC_CHUNKSIZE_NUMBER \"SDL.iostream.dynamic.chunksize\"" )] - public static ReadOnlySpan PropIostreamDynamicChunksizeNumber => + public static Utf8String PropIostreamDynamicChunksizeNumber => "SDL.iostream.dynamic.chunksize"u8; [NativeTypeName("#define SDL_IO_SEEK_SET 0")] @@ -37135,24 +37132,23 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public const int SurfaceUsesProperties = 0x00000010; [NativeTypeName("#define SDL_PROP_SURFACE_COLORSPACE_NUMBER \"SDL.surface.colorspace\"")] - public static ReadOnlySpan PropSurfaceColorspaceNumber => "SDL.surface.colorspace"u8; + public static Utf8String PropSurfaceColorspaceNumber => "SDL.surface.colorspace"u8; [NativeTypeName( "#define SDL_PROP_SURFACE_SDR_WHITE_POINT_FLOAT \"SDL.surface.SDR_white_point\"" )] - public static ReadOnlySpan PropSurfaceSdrWhitePointFloat => - "SDL.surface.SDR_white_point"u8; + public static Utf8String PropSurfaceSdrWhitePointFloat => "SDL.surface.SDR_white_point"u8; [NativeTypeName("#define SDL_PROP_SURFACE_HDR_HEADROOM_FLOAT \"SDL.surface.HDR_headroom\"")] - public static ReadOnlySpan PropSurfaceHdrHeadroomFloat => "SDL.surface.HDR_headroom"u8; + public static Utf8String PropSurfaceHdrHeadroomFloat => "SDL.surface.HDR_headroom"u8; [NativeTypeName("#define SDL_PROP_SURFACE_TONEMAP_OPERATOR_STRING \"SDL.surface.tonemap\"")] - public static ReadOnlySpan PropSurfaceTonemapOperatorString => "SDL.surface.tonemap"u8; + public static Utf8String PropSurfaceTonemapOperatorString => "SDL.surface.tonemap"u8; [NativeTypeName( "#define SDL_PROP_GLOBAL_VIDEO_WAYLAND_WL_DISPLAY_POINTER \"SDL.video.wayland.wl_display\"" )] - public static ReadOnlySpan PropGlobalVideoWaylandWlDisplayPointer => + public static Utf8String PropGlobalVideoWaylandWlDisplayPointer => "SDL.video.wayland.wl_display"u8; [NativeTypeName("#define SDL_WINDOW_FULLSCREEN 0x00000001U")] @@ -37240,271 +37236,256 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public const uint WindowposCentered = (0x2FFF0000U | (0)); [NativeTypeName("#define SDL_PROP_DISPLAY_HDR_ENABLED_BOOLEAN \"SDL.display.HDR_enabled\"")] - public static ReadOnlySpan PropDisplayHdrEnabledBoolean => "SDL.display.HDR_enabled"u8; + public static Utf8String PropDisplayHdrEnabledBoolean => "SDL.display.HDR_enabled"u8; [NativeTypeName( "#define SDL_PROP_DISPLAY_SDR_WHITE_POINT_FLOAT \"SDL.display.SDR_white_point\"" )] - public static ReadOnlySpan PropDisplaySdrWhitePointFloat => - "SDL.display.SDR_white_point"u8; + public static Utf8String PropDisplaySdrWhitePointFloat => "SDL.display.SDR_white_point"u8; [NativeTypeName("#define SDL_PROP_DISPLAY_HDR_HEADROOM_FLOAT \"SDL.display.HDR_headroom\"")] - public static ReadOnlySpan PropDisplayHdrHeadroomFloat => "SDL.display.HDR_headroom"u8; + public static Utf8String PropDisplayHdrHeadroomFloat => "SDL.display.HDR_headroom"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_ALWAYS_ON_TOP_BOOLEAN \"always_on_top\"")] - public static ReadOnlySpan PropWindowCreateAlwaysOnTopBoolean => "always_on_top"u8; + public static Utf8String PropWindowCreateAlwaysOnTopBoolean => "always_on_top"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_BORDERLESS_BOOLEAN \"borderless\"")] - public static ReadOnlySpan PropWindowCreateBorderlessBoolean => "borderless"u8; + public static Utf8String PropWindowCreateBorderlessBoolean => "borderless"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_FOCUSABLE_BOOLEAN \"focusable\"")] - public static ReadOnlySpan PropWindowCreateFocusableBoolean => "focusable"u8; + public static Utf8String PropWindowCreateFocusableBoolean => "focusable"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_CREATE_EXTERNAL_GRAPHICS_CONTEXT_BOOLEAN \"external_graphics_context\"" )] - public static ReadOnlySpan PropWindowCreateExternalGraphicsContextBoolean => + public static Utf8String PropWindowCreateExternalGraphicsContextBoolean => "external_graphics_context"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_FULLSCREEN_BOOLEAN \"fullscreen\"")] - public static ReadOnlySpan PropWindowCreateFullscreenBoolean => "fullscreen"u8; + public static Utf8String PropWindowCreateFullscreenBoolean => "fullscreen"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER \"height\"")] - public static ReadOnlySpan PropWindowCreateHeightNumber => "height"u8; + public static Utf8String PropWindowCreateHeightNumber => "height"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_HIDDEN_BOOLEAN \"hidden\"")] - public static ReadOnlySpan PropWindowCreateHiddenBoolean => "hidden"u8; + public static Utf8String PropWindowCreateHiddenBoolean => "hidden"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_CREATE_HIGH_PIXEL_DENSITY_BOOLEAN \"high_pixel_density\"" )] - public static ReadOnlySpan PropWindowCreateHighPixelDensityBoolean => - "high_pixel_density"u8; + public static Utf8String PropWindowCreateHighPixelDensityBoolean => "high_pixel_density"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MAXIMIZED_BOOLEAN \"maximized\"")] - public static ReadOnlySpan PropWindowCreateMaximizedBoolean => "maximized"u8; + public static Utf8String PropWindowCreateMaximizedBoolean => "maximized"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MENU_BOOLEAN \"menu\"")] - public static ReadOnlySpan PropWindowCreateMenuBoolean => "menu"u8; + public static Utf8String PropWindowCreateMenuBoolean => "menu"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_METAL_BOOLEAN \"metal\"")] - public static ReadOnlySpan PropWindowCreateMetalBoolean => "metal"u8; + public static Utf8String PropWindowCreateMetalBoolean => "metal"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MINIMIZED_BOOLEAN \"minimized\"")] - public static ReadOnlySpan PropWindowCreateMinimizedBoolean => "minimized"u8; + public static Utf8String PropWindowCreateMinimizedBoolean => "minimized"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MODAL_BOOLEAN \"modal\"")] - public static ReadOnlySpan PropWindowCreateModalBoolean => "modal"u8; + public static Utf8String PropWindowCreateModalBoolean => "modal"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MOUSE_GRABBED_BOOLEAN \"mouse_grabbed\"")] - public static ReadOnlySpan PropWindowCreateMouseGrabbedBoolean => "mouse_grabbed"u8; + public static Utf8String PropWindowCreateMouseGrabbedBoolean => "mouse_grabbed"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_OPENGL_BOOLEAN \"opengl\"")] - public static ReadOnlySpan PropWindowCreateOpenglBoolean => "opengl"u8; + public static Utf8String PropWindowCreateOpenglBoolean => "opengl"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_PARENT_POINTER \"parent\"")] - public static ReadOnlySpan PropWindowCreateParentPointer => "parent"u8; + public static Utf8String PropWindowCreateParentPointer => "parent"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_RESIZABLE_BOOLEAN \"resizable\"")] - public static ReadOnlySpan PropWindowCreateResizableBoolean => "resizable"u8; + public static Utf8String PropWindowCreateResizableBoolean => "resizable"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_TITLE_STRING \"title\"")] - public static ReadOnlySpan PropWindowCreateTitleString => "title"u8; + public static Utf8String PropWindowCreateTitleString => "title"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_TRANSPARENT_BOOLEAN \"transparent\"")] - public static ReadOnlySpan PropWindowCreateTransparentBoolean => "transparent"u8; + public static Utf8String PropWindowCreateTransparentBoolean => "transparent"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_TOOLTIP_BOOLEAN \"tooltip\"")] - public static ReadOnlySpan PropWindowCreateTooltipBoolean => "tooltip"u8; + public static Utf8String PropWindowCreateTooltipBoolean => "tooltip"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_UTILITY_BOOLEAN \"utility\"")] - public static ReadOnlySpan PropWindowCreateUtilityBoolean => "utility"u8; + public static Utf8String PropWindowCreateUtilityBoolean => "utility"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_VULKAN_BOOLEAN \"vulkan\"")] - public static ReadOnlySpan PropWindowCreateVulkanBoolean => "vulkan"u8; + public static Utf8String PropWindowCreateVulkanBoolean => "vulkan"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_WIDTH_NUMBER \"width\"")] - public static ReadOnlySpan PropWindowCreateWidthNumber => "width"u8; + public static Utf8String PropWindowCreateWidthNumber => "width"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_X_NUMBER \"x\"")] - public static ReadOnlySpan PropWindowCreateXNumber => "x"u8; + public static Utf8String PropWindowCreateXNumber => "x"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_Y_NUMBER \"y\"")] - public static ReadOnlySpan PropWindowCreateYNumber => "y"u8; + public static Utf8String PropWindowCreateYNumber => "y"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_COCOA_WINDOW_POINTER \"cocoa.window\"")] - public static ReadOnlySpan PropWindowCreateCocoaWindowPointer => "cocoa.window"u8; + public static Utf8String PropWindowCreateCocoaWindowPointer => "cocoa.window"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_COCOA_VIEW_POINTER \"cocoa.view\"")] - public static ReadOnlySpan PropWindowCreateCocoaViewPointer => "cocoa.view"u8; + public static Utf8String PropWindowCreateCocoaViewPointer => "cocoa.view"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_CREATE_WAYLAND_SCALE_TO_DISPLAY_BOOLEAN \"wayland.scale_to_display\"" )] - public static ReadOnlySpan PropWindowCreateWaylandScaleToDisplayBoolean => + public static Utf8String PropWindowCreateWaylandScaleToDisplayBoolean => "wayland.scale_to_display"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_CREATE_WAYLAND_SURFACE_ROLE_CUSTOM_BOOLEAN \"wayland.surface_role_custom\"" )] - public static ReadOnlySpan PropWindowCreateWaylandSurfaceRoleCustomBoolean => + public static Utf8String PropWindowCreateWaylandSurfaceRoleCustomBoolean => "wayland.surface_role_custom"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_CREATE_WAYLAND_CREATE_EGL_WINDOW_BOOLEAN \"wayland.create_egl_window\"" )] - public static ReadOnlySpan PropWindowCreateWaylandCreateEglWindowBoolean => + public static Utf8String PropWindowCreateWaylandCreateEglWindowBoolean => "wayland.create_egl_window"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_CREATE_WAYLAND_WL_SURFACE_POINTER \"wayland.wl_surface\"" )] - public static ReadOnlySpan PropWindowCreateWaylandWlSurfacePointer => - "wayland.wl_surface"u8; + public static Utf8String PropWindowCreateWaylandWlSurfacePointer => "wayland.wl_surface"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_WIN32_HWND_POINTER \"win32.hwnd\"")] - public static ReadOnlySpan PropWindowCreateWin32HwndPointer => "win32.hwnd"u8; + public static Utf8String PropWindowCreateWin32HwndPointer => "win32.hwnd"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_CREATE_WIN32_PIXEL_FORMAT_HWND_POINTER \"win32.pixel_format_hwnd\"" )] - public static ReadOnlySpan PropWindowCreateWin32PixelFormatHwndPointer => + public static Utf8String PropWindowCreateWin32PixelFormatHwndPointer => "win32.pixel_format_hwnd"u8; [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_X11_WINDOW_NUMBER \"x11.window\"")] - public static ReadOnlySpan PropWindowCreateX11WindowNumber => "x11.window"u8; + public static Utf8String PropWindowCreateX11WindowNumber => "x11.window"u8; [NativeTypeName("#define SDL_PROP_WINDOW_SHAPE_POINTER \"SDL.window.shape\"")] - public static ReadOnlySpan PropWindowShapePointer => "SDL.window.shape"u8; + public static Utf8String PropWindowShapePointer => "SDL.window.shape"u8; [NativeTypeName("#define SDL_PROP_WINDOW_ANDROID_WINDOW_POINTER \"SDL.window.android.window\"")] - public static ReadOnlySpan PropWindowAndroidWindowPointer => - "SDL.window.android.window"u8; + public static Utf8String PropWindowAndroidWindowPointer => "SDL.window.android.window"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_ANDROID_SURFACE_POINTER \"SDL.window.android.surface\"" )] - public static ReadOnlySpan PropWindowAndroidSurfacePointer => - "SDL.window.android.surface"u8; + public static Utf8String PropWindowAndroidSurfacePointer => "SDL.window.android.surface"u8; [NativeTypeName("#define SDL_PROP_WINDOW_UIKIT_WINDOW_POINTER \"SDL.window.uikit.window\"")] - public static ReadOnlySpan PropWindowUikitWindowPointer => "SDL.window.uikit.window"u8; + public static Utf8String PropWindowUikitWindowPointer => "SDL.window.uikit.window"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_UIKIT_METAL_VIEW_TAG_NUMBER \"SDL.window.uikit.metal_view_tag\"" )] - public static ReadOnlySpan PropWindowUikitMetalViewTagNumber => + public static Utf8String PropWindowUikitMetalViewTagNumber => "SDL.window.uikit.metal_view_tag"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_KMSDRM_DEVICE_INDEX_NUMBER \"SDL.window.kmsdrm.dev_index\"" )] - public static ReadOnlySpan PropWindowKmsdrmDeviceIndexNumber => - "SDL.window.kmsdrm.dev_index"u8; + public static Utf8String PropWindowKmsdrmDeviceIndexNumber => "SDL.window.kmsdrm.dev_index"u8; [NativeTypeName("#define SDL_PROP_WINDOW_KMSDRM_DRM_FD_NUMBER \"SDL.window.kmsdrm.drm_fd\"")] - public static ReadOnlySpan PropWindowKmsdrmDrmFdNumber => "SDL.window.kmsdrm.drm_fd"u8; + public static Utf8String PropWindowKmsdrmDrmFdNumber => "SDL.window.kmsdrm.drm_fd"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_KMSDRM_GBM_DEVICE_POINTER \"SDL.window.kmsdrm.gbm_dev\"" )] - public static ReadOnlySpan PropWindowKmsdrmGbmDevicePointer => - "SDL.window.kmsdrm.gbm_dev"u8; + public static Utf8String PropWindowKmsdrmGbmDevicePointer => "SDL.window.kmsdrm.gbm_dev"u8; [NativeTypeName("#define SDL_PROP_WINDOW_COCOA_WINDOW_POINTER \"SDL.window.cocoa.window\"")] - public static ReadOnlySpan PropWindowCocoaWindowPointer => "SDL.window.cocoa.window"u8; + public static Utf8String PropWindowCocoaWindowPointer => "SDL.window.cocoa.window"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_COCOA_METAL_VIEW_TAG_NUMBER \"SDL.window.cocoa.metal_view_tag\"" )] - public static ReadOnlySpan PropWindowCocoaMetalViewTagNumber => + public static Utf8String PropWindowCocoaMetalViewTagNumber => "SDL.window.cocoa.metal_view_tag"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_VIVANTE_DISPLAY_POINTER \"SDL.window.vivante.display\"" )] - public static ReadOnlySpan PropWindowVivanteDisplayPointer => - "SDL.window.vivante.display"u8; + public static Utf8String PropWindowVivanteDisplayPointer => "SDL.window.vivante.display"u8; [NativeTypeName("#define SDL_PROP_WINDOW_VIVANTE_WINDOW_POINTER \"SDL.window.vivante.window\"")] - public static ReadOnlySpan PropWindowVivanteWindowPointer => - "SDL.window.vivante.window"u8; + public static Utf8String PropWindowVivanteWindowPointer => "SDL.window.vivante.window"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_VIVANTE_SURFACE_POINTER \"SDL.window.vivante.surface\"" )] - public static ReadOnlySpan PropWindowVivanteSurfacePointer => - "SDL.window.vivante.surface"u8; + public static Utf8String PropWindowVivanteSurfacePointer => "SDL.window.vivante.surface"u8; [NativeTypeName("#define SDL_PROP_WINDOW_WINRT_WINDOW_POINTER \"SDL.window.winrt.window\"")] - public static ReadOnlySpan PropWindowWinrtWindowPointer => "SDL.window.winrt.window"u8; + public static Utf8String PropWindowWinrtWindowPointer => "SDL.window.winrt.window"u8; [NativeTypeName("#define SDL_PROP_WINDOW_WIN32_HWND_POINTER \"SDL.window.win32.hwnd\"")] - public static ReadOnlySpan PropWindowWin32HwndPointer => "SDL.window.win32.hwnd"u8; + public static Utf8String PropWindowWin32HwndPointer => "SDL.window.win32.hwnd"u8; [NativeTypeName("#define SDL_PROP_WINDOW_WIN32_HDC_POINTER \"SDL.window.win32.hdc\"")] - public static ReadOnlySpan PropWindowWin32HdcPointer => "SDL.window.win32.hdc"u8; + public static Utf8String PropWindowWin32HdcPointer => "SDL.window.win32.hdc"u8; [NativeTypeName("#define SDL_PROP_WINDOW_WIN32_INSTANCE_POINTER \"SDL.window.win32.instance\"")] - public static ReadOnlySpan PropWindowWin32InstancePointer => - "SDL.window.win32.instance"u8; + public static Utf8String PropWindowWin32InstancePointer => "SDL.window.win32.instance"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_WAYLAND_DISPLAY_POINTER \"SDL.window.wayland.display\"" )] - public static ReadOnlySpan PropWindowWaylandDisplayPointer => - "SDL.window.wayland.display"u8; + public static Utf8String PropWindowWaylandDisplayPointer => "SDL.window.wayland.display"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_WAYLAND_SURFACE_POINTER \"SDL.window.wayland.surface\"" )] - public static ReadOnlySpan PropWindowWaylandSurfacePointer => - "SDL.window.wayland.surface"u8; + public static Utf8String PropWindowWaylandSurfacePointer => "SDL.window.wayland.surface"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_WAYLAND_EGL_WINDOW_POINTER \"SDL.window.wayland.egl_window\"" )] - public static ReadOnlySpan PropWindowWaylandEglWindowPointer => - "SDL.window.wayland.egl_window"u8; + public static Utf8String PropWindowWaylandEglWindowPointer => "SDL.window.wayland.egl_window"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_WAYLAND_XDG_SURFACE_POINTER \"SDL.window.wayland.xdg_surface\"" )] - public static ReadOnlySpan PropWindowWaylandXdgSurfacePointer => + public static Utf8String PropWindowWaylandXdgSurfacePointer => "SDL.window.wayland.xdg_surface"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_WAYLAND_XDG_TOPLEVEL_POINTER \"SDL.window.wayland.xdg_toplevel\"" )] - public static ReadOnlySpan PropWindowWaylandXdgToplevelPointer => + public static Utf8String PropWindowWaylandXdgToplevelPointer => "SDL.window.wayland.xdg_toplevel"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_WAYLAND_XDG_TOPLEVEL_EXPORT_HANDLE_STRING \"SDL.window.wayland.xdg_toplevel_export_handle\"" )] - public static ReadOnlySpan PropWindowWaylandXdgToplevelExportHandleString => + public static Utf8String PropWindowWaylandXdgToplevelExportHandleString => "SDL.window.wayland.xdg_toplevel_export_handle"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_WAYLAND_XDG_POPUP_POINTER \"SDL.window.wayland.xdg_popup\"" )] - public static ReadOnlySpan PropWindowWaylandXdgPopupPointer => - "SDL.window.wayland.xdg_popup"u8; + public static Utf8String PropWindowWaylandXdgPopupPointer => "SDL.window.wayland.xdg_popup"u8; [NativeTypeName( "#define SDL_PROP_WINDOW_WAYLAND_XDG_POSITIONER_POINTER \"SDL.window.wayland.xdg_positioner\"" )] - public static ReadOnlySpan PropWindowWaylandXdgPositionerPointer => + public static Utf8String PropWindowWaylandXdgPositionerPointer => "SDL.window.wayland.xdg_positioner"u8; [NativeTypeName("#define SDL_PROP_WINDOW_X11_DISPLAY_POINTER \"SDL.window.x11.display\"")] - public static ReadOnlySpan PropWindowX11DisplayPointer => "SDL.window.x11.display"u8; + public static Utf8String PropWindowX11DisplayPointer => "SDL.window.x11.display"u8; [NativeTypeName("#define SDL_PROP_WINDOW_X11_SCREEN_NUMBER \"SDL.window.x11.screen\"")] - public static ReadOnlySpan PropWindowX11ScreenNumber => "SDL.window.x11.screen"u8; + public static Utf8String PropWindowX11ScreenNumber => "SDL.window.x11.screen"u8; [NativeTypeName("#define SDL_PROP_WINDOW_X11_WINDOW_NUMBER \"SDL.window.x11.window\"")] - public static ReadOnlySpan PropWindowX11WindowNumber => "SDL.window.x11.window"u8; + public static Utf8String PropWindowX11WindowNumber => "SDL.window.x11.window"u8; [NativeTypeName("#define SDL_CACHELINE_SIZE 128")] public const int CachelineSize = 128; @@ -37519,24 +37500,23 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public const double IphoneMaxGforce = 5.0; [NativeTypeName("#define SDL_PROP_JOYSTICK_CAP_MONO_LED_BOOLEAN \"SDL.joystick.cap.mono_led\"")] - public static ReadOnlySpan PropJoystickCapMonoLedBoolean => "SDL.joystick.cap.mono_led"u8; + public static Utf8String PropJoystickCapMonoLedBoolean => "SDL.joystick.cap.mono_led"u8; [NativeTypeName("#define SDL_PROP_JOYSTICK_CAP_RGB_LED_BOOLEAN \"SDL.joystick.cap.rgb_led\"")] - public static ReadOnlySpan PropJoystickCapRgbLedBoolean => "SDL.joystick.cap.rgb_led"u8; + public static Utf8String PropJoystickCapRgbLedBoolean => "SDL.joystick.cap.rgb_led"u8; [NativeTypeName( "#define SDL_PROP_JOYSTICK_CAP_PLAYER_LED_BOOLEAN \"SDL.joystick.cap.player_led\"" )] - public static ReadOnlySpan PropJoystickCapPlayerLedBoolean => - "SDL.joystick.cap.player_led"u8; + public static Utf8String PropJoystickCapPlayerLedBoolean => "SDL.joystick.cap.player_led"u8; [NativeTypeName("#define SDL_PROP_JOYSTICK_CAP_RUMBLE_BOOLEAN \"SDL.joystick.cap.rumble\"")] - public static ReadOnlySpan PropJoystickCapRumbleBoolean => "SDL.joystick.cap.rumble"u8; + public static Utf8String PropJoystickCapRumbleBoolean => "SDL.joystick.cap.rumble"u8; [NativeTypeName( "#define SDL_PROP_JOYSTICK_CAP_TRIGGER_RUMBLE_BOOLEAN \"SDL.joystick.cap.trigger_rumble\"" )] - public static ReadOnlySpan PropJoystickCapTriggerRumbleBoolean => + public static Utf8String PropJoystickCapTriggerRumbleBoolean => "SDL.joystick.cap.trigger_rumble"u8; [NativeTypeName("#define SDL_HAT_CENTERED 0x00")] @@ -37572,28 +37552,27 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName( "#define SDL_PROP_GAMEPAD_CAP_MONO_LED_BOOLEAN SDL_PROP_JOYSTICK_CAP_MONO_LED_BOOLEAN" )] - public static ReadOnlySpan PropGamepadCapMonoLedBoolean => "SDL.joystick.cap.mono_led"u8; + public static Utf8String PropGamepadCapMonoLedBoolean => "SDL.joystick.cap.mono_led"u8; [NativeTypeName( "#define SDL_PROP_GAMEPAD_CAP_RGB_LED_BOOLEAN SDL_PROP_JOYSTICK_CAP_RGB_LED_BOOLEAN" )] - public static ReadOnlySpan PropGamepadCapRgbLedBoolean => "SDL.joystick.cap.rgb_led"u8; + public static Utf8String PropGamepadCapRgbLedBoolean => "SDL.joystick.cap.rgb_led"u8; [NativeTypeName( "#define SDL_PROP_GAMEPAD_CAP_PLAYER_LED_BOOLEAN SDL_PROP_JOYSTICK_CAP_PLAYER_LED_BOOLEAN" )] - public static ReadOnlySpan PropGamepadCapPlayerLedBoolean => - "SDL.joystick.cap.player_led"u8; + public static Utf8String PropGamepadCapPlayerLedBoolean => "SDL.joystick.cap.player_led"u8; [NativeTypeName( "#define SDL_PROP_GAMEPAD_CAP_RUMBLE_BOOLEAN SDL_PROP_JOYSTICK_CAP_RUMBLE_BOOLEAN" )] - public static ReadOnlySpan PropGamepadCapRumbleBoolean => "SDL.joystick.cap.rumble"u8; + public static Utf8String PropGamepadCapRumbleBoolean => "SDL.joystick.cap.rumble"u8; [NativeTypeName( "#define SDL_PROP_GAMEPAD_CAP_TRIGGER_RUMBLE_BOOLEAN SDL_PROP_JOYSTICK_CAP_TRIGGER_RUMBLE_BOOLEAN" )] - public static ReadOnlySpan PropGamepadCapTriggerRumbleBoolean => + public static Utf8String PropGamepadCapTriggerRumbleBoolean => "SDL.joystick.cap.trigger_rumble"u8; [NativeTypeName("#define SDLK_SCANCODE_MASK (1<<30)")] @@ -38565,1157 +38544,1089 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName( "#define SDL_HINT_ALLOW_ALT_TAB_WHILE_GRABBED \"SDL_ALLOW_ALT_TAB_WHILE_GRABBED\"" )] - public static ReadOnlySpan HintAllowAltTabWhileGrabbed => - "SDL_ALLOW_ALT_TAB_WHILE_GRABBED"u8; + public static Utf8String HintAllowAltTabWhileGrabbed => "SDL_ALLOW_ALT_TAB_WHILE_GRABBED"u8; [NativeTypeName( "#define SDL_HINT_ANDROID_ALLOW_RECREATE_ACTIVITY \"SDL_ANDROID_ALLOW_RECREATE_ACTIVITY\"" )] - public static ReadOnlySpan HintAndroidAllowRecreateActivity => + public static Utf8String HintAndroidAllowRecreateActivity => "SDL_ANDROID_ALLOW_RECREATE_ACTIVITY"u8; [NativeTypeName("#define SDL_HINT_ANDROID_BLOCK_ON_PAUSE \"SDL_ANDROID_BLOCK_ON_PAUSE\"")] - public static ReadOnlySpan HintAndroidBlockOnPause => "SDL_ANDROID_BLOCK_ON_PAUSE"u8; + public static Utf8String HintAndroidBlockOnPause => "SDL_ANDROID_BLOCK_ON_PAUSE"u8; [NativeTypeName( "#define SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO \"SDL_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO\"" )] - public static ReadOnlySpan HintAndroidBlockOnPausePauseaudio => + public static Utf8String HintAndroidBlockOnPausePauseaudio => "SDL_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO"u8; [NativeTypeName("#define SDL_HINT_ANDROID_TRAP_BACK_BUTTON \"SDL_ANDROID_TRAP_BACK_BUTTON\"")] - public static ReadOnlySpan HintAndroidTrapBackButton => "SDL_ANDROID_TRAP_BACK_BUTTON"u8; + public static Utf8String HintAndroidTrapBackButton => "SDL_ANDROID_TRAP_BACK_BUTTON"u8; [NativeTypeName("#define SDL_HINT_APP_ID \"SDL_APP_ID\"")] - public static ReadOnlySpan HintAppId => "SDL_APP_ID"u8; + public static Utf8String HintAppId => "SDL_APP_ID"u8; [NativeTypeName("#define SDL_HINT_APP_NAME \"SDL_APP_NAME\"")] - public static ReadOnlySpan HintAppName => "SDL_APP_NAME"u8; + public static Utf8String HintAppName => "SDL_APP_NAME"u8; [NativeTypeName( "#define SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS \"SDL_APPLE_TV_CONTROLLER_UI_EVENTS\"" )] - public static ReadOnlySpan HintAppleTvControllerUiEvents => - "SDL_APPLE_TV_CONTROLLER_UI_EVENTS"u8; + public static Utf8String HintAppleTvControllerUiEvents => "SDL_APPLE_TV_CONTROLLER_UI_EVENTS"u8; [NativeTypeName( "#define SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION \"SDL_APPLE_TV_REMOTE_ALLOW_ROTATION\"" )] - public static ReadOnlySpan HintAppleTvRemoteAllowRotation => + public static Utf8String HintAppleTvRemoteAllowRotation => "SDL_APPLE_TV_REMOTE_ALLOW_ROTATION"u8; [NativeTypeName("#define SDL_HINT_AUDIO_CATEGORY \"SDL_AUDIO_CATEGORY\"")] - public static ReadOnlySpan HintAudioCategory => "SDL_AUDIO_CATEGORY"u8; + public static Utf8String HintAudioCategory => "SDL_AUDIO_CATEGORY"u8; [NativeTypeName("#define SDL_HINT_AUDIO_DEVICE_APP_NAME \"SDL_AUDIO_DEVICE_APP_NAME\"")] - public static ReadOnlySpan HintAudioDeviceAppName => "SDL_AUDIO_DEVICE_APP_NAME"u8; + public static Utf8String HintAudioDeviceAppName => "SDL_AUDIO_DEVICE_APP_NAME"u8; [NativeTypeName( "#define SDL_HINT_AUDIO_DEVICE_SAMPLE_FRAMES \"SDL_AUDIO_DEVICE_SAMPLE_FRAMES\"" )] - public static ReadOnlySpan HintAudioDeviceSampleFrames => - "SDL_AUDIO_DEVICE_SAMPLE_FRAMES"u8; + public static Utf8String HintAudioDeviceSampleFrames => "SDL_AUDIO_DEVICE_SAMPLE_FRAMES"u8; [NativeTypeName("#define SDL_HINT_AUDIO_DEVICE_STREAM_NAME \"SDL_AUDIO_DEVICE_STREAM_NAME\"")] - public static ReadOnlySpan HintAudioDeviceStreamName => "SDL_AUDIO_DEVICE_STREAM_NAME"u8; + public static Utf8String HintAudioDeviceStreamName => "SDL_AUDIO_DEVICE_STREAM_NAME"u8; [NativeTypeName("#define SDL_HINT_AUDIO_DEVICE_STREAM_ROLE \"SDL_AUDIO_DEVICE_STREAM_ROLE\"")] - public static ReadOnlySpan HintAudioDeviceStreamRole => "SDL_AUDIO_DEVICE_STREAM_ROLE"u8; + public static Utf8String HintAudioDeviceStreamRole => "SDL_AUDIO_DEVICE_STREAM_ROLE"u8; [NativeTypeName("#define SDL_HINT_AUDIO_DRIVER \"SDL_AUDIO_DRIVER\"")] - public static ReadOnlySpan HintAudioDriver => "SDL_AUDIO_DRIVER"u8; + public static Utf8String HintAudioDriver => "SDL_AUDIO_DRIVER"u8; [NativeTypeName("#define SDL_HINT_AUDIO_INCLUDE_MONITORS \"SDL_AUDIO_INCLUDE_MONITORS\"")] - public static ReadOnlySpan HintAudioIncludeMonitors => "SDL_AUDIO_INCLUDE_MONITORS"u8; + public static Utf8String HintAudioIncludeMonitors => "SDL_AUDIO_INCLUDE_MONITORS"u8; [NativeTypeName("#define SDL_HINT_AUTO_UPDATE_JOYSTICKS \"SDL_AUTO_UPDATE_JOYSTICKS\"")] - public static ReadOnlySpan HintAutoUpdateJoysticks => "SDL_AUTO_UPDATE_JOYSTICKS"u8; + public static Utf8String HintAutoUpdateJoysticks => "SDL_AUTO_UPDATE_JOYSTICKS"u8; [NativeTypeName("#define SDL_HINT_AUTO_UPDATE_SENSORS \"SDL_AUTO_UPDATE_SENSORS\"")] - public static ReadOnlySpan HintAutoUpdateSensors => "SDL_AUTO_UPDATE_SENSORS"u8; + public static Utf8String HintAutoUpdateSensors => "SDL_AUTO_UPDATE_SENSORS"u8; [NativeTypeName("#define SDL_HINT_BMP_SAVE_LEGACY_FORMAT \"SDL_BMP_SAVE_LEGACY_FORMAT\"")] - public static ReadOnlySpan HintBmpSaveLegacyFormat => "SDL_BMP_SAVE_LEGACY_FORMAT"u8; + public static Utf8String HintBmpSaveLegacyFormat => "SDL_BMP_SAVE_LEGACY_FORMAT"u8; [NativeTypeName("#define SDL_HINT_CAMERA_DRIVER \"SDL_CAMERA_DRIVER\"")] - public static ReadOnlySpan HintCameraDriver => "SDL_CAMERA_DRIVER"u8; + public static Utf8String HintCameraDriver => "SDL_CAMERA_DRIVER"u8; [NativeTypeName("#define SDL_HINT_CPU_FEATURE_MASK \"SDL_CPU_FEATURE_MASK\"")] - public static ReadOnlySpan HintCpuFeatureMask => "SDL_CPU_FEATURE_MASK"u8; + public static Utf8String HintCpuFeatureMask => "SDL_CPU_FEATURE_MASK"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_DIRECTINPUT \"SDL_JOYSTICK_DIRECTINPUT\"")] - public static ReadOnlySpan HintJoystickDirectinput => "SDL_JOYSTICK_DIRECTINPUT"u8; + public static Utf8String HintJoystickDirectinput => "SDL_JOYSTICK_DIRECTINPUT"u8; [NativeTypeName("#define SDL_HINT_FILE_DIALOG_DRIVER \"SDL_FILE_DIALOG_DRIVER\"")] - public static ReadOnlySpan HintFileDialogDriver => "SDL_FILE_DIALOG_DRIVER"u8; + public static Utf8String HintFileDialogDriver => "SDL_FILE_DIALOG_DRIVER"u8; [NativeTypeName("#define SDL_HINT_DISPLAY_USABLE_BOUNDS \"SDL_DISPLAY_USABLE_BOUNDS\"")] - public static ReadOnlySpan HintDisplayUsableBounds => "SDL_DISPLAY_USABLE_BOUNDS"u8; + public static Utf8String HintDisplayUsableBounds => "SDL_DISPLAY_USABLE_BOUNDS"u8; [NativeTypeName("#define SDL_HINT_EMSCRIPTEN_ASYNCIFY \"SDL_EMSCRIPTEN_ASYNCIFY\"")] - public static ReadOnlySpan HintEmscriptenAsyncify => "SDL_EMSCRIPTEN_ASYNCIFY"u8; + public static Utf8String HintEmscriptenAsyncify => "SDL_EMSCRIPTEN_ASYNCIFY"u8; [NativeTypeName( "#define SDL_HINT_EMSCRIPTEN_CANVAS_SELECTOR \"SDL_EMSCRIPTEN_CANVAS_SELECTOR\"" )] - public static ReadOnlySpan HintEmscriptenCanvasSelector => - "SDL_EMSCRIPTEN_CANVAS_SELECTOR"u8; + public static Utf8String HintEmscriptenCanvasSelector => "SDL_EMSCRIPTEN_CANVAS_SELECTOR"u8; [NativeTypeName( "#define SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT \"SDL_EMSCRIPTEN_KEYBOARD_ELEMENT\"" )] - public static ReadOnlySpan HintEmscriptenKeyboardElement => - "SDL_EMSCRIPTEN_KEYBOARD_ELEMENT"u8; + public static Utf8String HintEmscriptenKeyboardElement => "SDL_EMSCRIPTEN_KEYBOARD_ELEMENT"u8; [NativeTypeName("#define SDL_HINT_ENABLE_SCREEN_KEYBOARD \"SDL_ENABLE_SCREEN_KEYBOARD\"")] - public static ReadOnlySpan HintEnableScreenKeyboard => "SDL_ENABLE_SCREEN_KEYBOARD"u8; + public static Utf8String HintEnableScreenKeyboard => "SDL_ENABLE_SCREEN_KEYBOARD"u8; [NativeTypeName("#define SDL_HINT_EVENT_LOGGING \"SDL_EVENT_LOGGING\"")] - public static ReadOnlySpan HintEventLogging => "SDL_EVENT_LOGGING"u8; + public static Utf8String HintEventLogging => "SDL_EVENT_LOGGING"u8; [NativeTypeName("#define SDL_HINT_FORCE_RAISEWINDOW \"SDL_FORCE_RAISEWINDOW\"")] - public static ReadOnlySpan HintForceRaisewindow => "SDL_FORCE_RAISEWINDOW"u8; + public static Utf8String HintForceRaisewindow => "SDL_FORCE_RAISEWINDOW"u8; [NativeTypeName("#define SDL_HINT_FRAMEBUFFER_ACCELERATION \"SDL_FRAMEBUFFER_ACCELERATION\"")] - public static ReadOnlySpan HintFramebufferAcceleration => - "SDL_FRAMEBUFFER_ACCELERATION"u8; + public static Utf8String HintFramebufferAcceleration => "SDL_FRAMEBUFFER_ACCELERATION"u8; [NativeTypeName("#define SDL_HINT_GAMECONTROLLERCONFIG \"SDL_GAMECONTROLLERCONFIG\"")] - public static ReadOnlySpan HintGamecontrollerconfig => "SDL_GAMECONTROLLERCONFIG"u8; + public static Utf8String HintGamecontrollerconfig => "SDL_GAMECONTROLLERCONFIG"u8; [NativeTypeName("#define SDL_HINT_GAMECONTROLLERCONFIG_FILE \"SDL_GAMECONTROLLERCONFIG_FILE\"")] - public static ReadOnlySpan HintGamecontrollerconfigFile => - "SDL_GAMECONTROLLERCONFIG_FILE"u8; + public static Utf8String HintGamecontrollerconfigFile => "SDL_GAMECONTROLLERCONFIG_FILE"u8; [NativeTypeName("#define SDL_HINT_GAMECONTROLLERTYPE \"SDL_GAMECONTROLLERTYPE\"")] - public static ReadOnlySpan HintGamecontrollertype => "SDL_GAMECONTROLLERTYPE"u8; + public static Utf8String HintGamecontrollertype => "SDL_GAMECONTROLLERTYPE"u8; [NativeTypeName( "#define SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES \"SDL_GAMECONTROLLER_IGNORE_DEVICES\"" )] - public static ReadOnlySpan HintGamecontrollerIgnoreDevices => + public static Utf8String HintGamecontrollerIgnoreDevices => "SDL_GAMECONTROLLER_IGNORE_DEVICES"u8; [NativeTypeName( "#define SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT \"SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT\"" )] - public static ReadOnlySpan HintGamecontrollerIgnoreDevicesExcept => + public static Utf8String HintGamecontrollerIgnoreDevicesExcept => "SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT"u8; [NativeTypeName( "#define SDL_HINT_GAMECONTROLLER_SENSOR_FUSION \"SDL_GAMECONTROLLER_SENSOR_FUSION\"" )] - public static ReadOnlySpan HintGamecontrollerSensorFusion => - "SDL_GAMECONTROLLER_SENSOR_FUSION"u8; + public static Utf8String HintGamecontrollerSensorFusion => "SDL_GAMECONTROLLER_SENSOR_FUSION"u8; [NativeTypeName( "#define SDL_HINT_GDK_TEXTINPUT_DEFAULT_TEXT \"SDL_GDK_TEXTINPUT_DEFAULT_TEXT\"" )] - public static ReadOnlySpan HintGdkTextinputDefaultText => - "SDL_GDK_TEXTINPUT_DEFAULT_TEXT"u8; + public static Utf8String HintGdkTextinputDefaultText => "SDL_GDK_TEXTINPUT_DEFAULT_TEXT"u8; [NativeTypeName("#define SDL_HINT_GDK_TEXTINPUT_DESCRIPTION \"SDL_GDK_TEXTINPUT_DESCRIPTION\"")] - public static ReadOnlySpan HintGdkTextinputDescription => - "SDL_GDK_TEXTINPUT_DESCRIPTION"u8; + public static Utf8String HintGdkTextinputDescription => "SDL_GDK_TEXTINPUT_DESCRIPTION"u8; [NativeTypeName("#define SDL_HINT_GDK_TEXTINPUT_MAX_LENGTH \"SDL_GDK_TEXTINPUT_MAX_LENGTH\"")] - public static ReadOnlySpan HintGdkTextinputMaxLength => "SDL_GDK_TEXTINPUT_MAX_LENGTH"u8; + public static Utf8String HintGdkTextinputMaxLength => "SDL_GDK_TEXTINPUT_MAX_LENGTH"u8; [NativeTypeName("#define SDL_HINT_GDK_TEXTINPUT_SCOPE \"SDL_GDK_TEXTINPUT_SCOPE\"")] - public static ReadOnlySpan HintGdkTextinputScope => "SDL_GDK_TEXTINPUT_SCOPE"u8; + public static Utf8String HintGdkTextinputScope => "SDL_GDK_TEXTINPUT_SCOPE"u8; [NativeTypeName("#define SDL_HINT_GDK_TEXTINPUT_TITLE \"SDL_GDK_TEXTINPUT_TITLE\"")] - public static ReadOnlySpan HintGdkTextinputTitle => "SDL_GDK_TEXTINPUT_TITLE"u8; + public static Utf8String HintGdkTextinputTitle => "SDL_GDK_TEXTINPUT_TITLE"u8; [NativeTypeName( "#define SDL_HINT_HIDAPI_ENUMERATE_ONLY_CONTROLLERS \"SDL_HIDAPI_ENUMERATE_ONLY_CONTROLLERS\"" )] - public static ReadOnlySpan HintHidapiEnumerateOnlyControllers => + public static Utf8String HintHidapiEnumerateOnlyControllers => "SDL_HIDAPI_ENUMERATE_ONLY_CONTROLLERS"u8; [NativeTypeName("#define SDL_HINT_HIDAPI_IGNORE_DEVICES \"SDL_HIDAPI_IGNORE_DEVICES\"")] - public static ReadOnlySpan HintHidapiIgnoreDevices => "SDL_HIDAPI_IGNORE_DEVICES"u8; + public static Utf8String HintHidapiIgnoreDevices => "SDL_HIDAPI_IGNORE_DEVICES"u8; [NativeTypeName("#define SDL_HINT_IME_INTERNAL_EDITING \"SDL_IME_INTERNAL_EDITING\"")] - public static ReadOnlySpan HintImeInternalEditing => "SDL_IME_INTERNAL_EDITING"u8; + public static Utf8String HintImeInternalEditing => "SDL_IME_INTERNAL_EDITING"u8; [NativeTypeName("#define SDL_HINT_IME_SHOW_UI \"SDL_IME_SHOW_UI\"")] - public static ReadOnlySpan HintImeShowUi => "SDL_IME_SHOW_UI"u8; + public static Utf8String HintImeShowUi => "SDL_IME_SHOW_UI"u8; [NativeTypeName("#define SDL_HINT_IOS_HIDE_HOME_INDICATOR \"SDL_IOS_HIDE_HOME_INDICATOR\"")] - public static ReadOnlySpan HintIosHideHomeIndicator => "SDL_IOS_HIDE_HOME_INDICATOR"u8; + public static Utf8String HintIosHideHomeIndicator => "SDL_IOS_HIDE_HOME_INDICATOR"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS \"SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS\"" )] - public static ReadOnlySpan HintJoystickAllowBackgroundEvents => + public static Utf8String HintJoystickAllowBackgroundEvents => "SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_ARCADESTICK_DEVICES \"SDL_JOYSTICK_ARCADESTICK_DEVICES\"" )] - public static ReadOnlySpan HintJoystickArcadestickDevices => - "SDL_JOYSTICK_ARCADESTICK_DEVICES"u8; + public static Utf8String HintJoystickArcadestickDevices => "SDL_JOYSTICK_ARCADESTICK_DEVICES"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_ARCADESTICK_DEVICES_EXCLUDED \"SDL_JOYSTICK_ARCADESTICK_DEVICES_EXCLUDED\"" )] - public static ReadOnlySpan HintJoystickArcadestickDevicesExcluded => + public static Utf8String HintJoystickArcadestickDevicesExcluded => "SDL_JOYSTICK_ARCADESTICK_DEVICES_EXCLUDED"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_BLACKLIST_DEVICES \"SDL_JOYSTICK_BLACKLIST_DEVICES\"" )] - public static ReadOnlySpan HintJoystickBlacklistDevices => - "SDL_JOYSTICK_BLACKLIST_DEVICES"u8; + public static Utf8String HintJoystickBlacklistDevices => "SDL_JOYSTICK_BLACKLIST_DEVICES"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_BLACKLIST_DEVICES_EXCLUDED \"SDL_JOYSTICK_BLACKLIST_DEVICES_EXCLUDED\"" )] - public static ReadOnlySpan HintJoystickBlacklistDevicesExcluded => + public static Utf8String HintJoystickBlacklistDevicesExcluded => "SDL_JOYSTICK_BLACKLIST_DEVICES_EXCLUDED"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_DEVICE \"SDL_JOYSTICK_DEVICE\"")] - public static ReadOnlySpan HintJoystickDevice => "SDL_JOYSTICK_DEVICE"u8; + public static Utf8String HintJoystickDevice => "SDL_JOYSTICK_DEVICE"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_FLIGHTSTICK_DEVICES \"SDL_JOYSTICK_FLIGHTSTICK_DEVICES\"" )] - public static ReadOnlySpan HintJoystickFlightstickDevices => - "SDL_JOYSTICK_FLIGHTSTICK_DEVICES"u8; + public static Utf8String HintJoystickFlightstickDevices => "SDL_JOYSTICK_FLIGHTSTICK_DEVICES"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_FLIGHTSTICK_DEVICES_EXCLUDED \"SDL_JOYSTICK_FLIGHTSTICK_DEVICES_EXCLUDED\"" )] - public static ReadOnlySpan HintJoystickFlightstickDevicesExcluded => + public static Utf8String HintJoystickFlightstickDevicesExcluded => "SDL_JOYSTICK_FLIGHTSTICK_DEVICES_EXCLUDED"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_GAMECUBE_DEVICES \"SDL_JOYSTICK_GAMECUBE_DEVICES\"")] - public static ReadOnlySpan HintJoystickGamecubeDevices => - "SDL_JOYSTICK_GAMECUBE_DEVICES"u8; + public static Utf8String HintJoystickGamecubeDevices => "SDL_JOYSTICK_GAMECUBE_DEVICES"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_GAMECUBE_DEVICES_EXCLUDED \"SDL_JOYSTICK_GAMECUBE_DEVICES_EXCLUDED\"" )] - public static ReadOnlySpan HintJoystickGamecubeDevicesExcluded => + public static Utf8String HintJoystickGamecubeDevicesExcluded => "SDL_JOYSTICK_GAMECUBE_DEVICES_EXCLUDED"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI \"SDL_JOYSTICK_HIDAPI\"")] - public static ReadOnlySpan HintJoystickHidapi => "SDL_JOYSTICK_HIDAPI"u8; + public static Utf8String HintJoystickHidapi => "SDL_JOYSTICK_HIDAPI"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS \"SDL_JOYSTICK_HIDAPI_COMBINE_JOY_CONS\"" )] - public static ReadOnlySpan HintJoystickHidapiCombineJoyCons => + public static Utf8String HintJoystickHidapiCombineJoyCons => "SDL_JOYSTICK_HIDAPI_COMBINE_JOY_CONS"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_GAMECUBE \"SDL_JOYSTICK_HIDAPI_GAMECUBE\"")] - public static ReadOnlySpan HintJoystickHidapiGamecube => "SDL_JOYSTICK_HIDAPI_GAMECUBE"u8; + public static Utf8String HintJoystickHidapiGamecube => "SDL_JOYSTICK_HIDAPI_GAMECUBE"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_GAMECUBE_RUMBLE_BRAKE \"SDL_JOYSTICK_HIDAPI_GAMECUBE_RUMBLE_BRAKE\"" )] - public static ReadOnlySpan HintJoystickHidapiGamecubeRumbleBrake => + public static Utf8String HintJoystickHidapiGamecubeRumbleBrake => "SDL_JOYSTICK_HIDAPI_GAMECUBE_RUMBLE_BRAKE"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS \"SDL_JOYSTICK_HIDAPI_JOY_CONS\"")] - public static ReadOnlySpan HintJoystickHidapiJoyCons => "SDL_JOYSTICK_HIDAPI_JOY_CONS"u8; + public static Utf8String HintJoystickHidapiJoyCons => "SDL_JOYSTICK_HIDAPI_JOY_CONS"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED \"SDL_JOYSTICK_HIDAPI_JOYCON_HOME_LED\"" )] - public static ReadOnlySpan HintJoystickHidapiJoyconHomeLed => + public static Utf8String HintJoystickHidapiJoyconHomeLed => "SDL_JOYSTICK_HIDAPI_JOYCON_HOME_LED"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_LUNA \"SDL_JOYSTICK_HIDAPI_LUNA\"")] - public static ReadOnlySpan HintJoystickHidapiLuna => "SDL_JOYSTICK_HIDAPI_LUNA"u8; + public static Utf8String HintJoystickHidapiLuna => "SDL_JOYSTICK_HIDAPI_LUNA"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC \"SDL_JOYSTICK_HIDAPI_NINTENDO_CLASSIC\"" )] - public static ReadOnlySpan HintJoystickHidapiNintendoClassic => + public static Utf8String HintJoystickHidapiNintendoClassic => "SDL_JOYSTICK_HIDAPI_NINTENDO_CLASSIC"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_PS3 \"SDL_JOYSTICK_HIDAPI_PS3\"")] - public static ReadOnlySpan HintJoystickHidapiPs3 => "SDL_JOYSTICK_HIDAPI_PS3"u8; + public static Utf8String HintJoystickHidapiPs3 => "SDL_JOYSTICK_HIDAPI_PS3"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_PS3_SIXAXIS_DRIVER \"SDL_JOYSTICK_HIDAPI_PS3_SIXAXIS_DRIVER\"" )] - public static ReadOnlySpan HintJoystickHidapiPs3SixaxisDriver => + public static Utf8String HintJoystickHidapiPs3SixaxisDriver => "SDL_JOYSTICK_HIDAPI_PS3_SIXAXIS_DRIVER"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_PS4 \"SDL_JOYSTICK_HIDAPI_PS4\"")] - public static ReadOnlySpan HintJoystickHidapiPs4 => "SDL_JOYSTICK_HIDAPI_PS4"u8; + public static Utf8String HintJoystickHidapiPs4 => "SDL_JOYSTICK_HIDAPI_PS4"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE \"SDL_JOYSTICK_HIDAPI_PS4_RUMBLE\"" )] - public static ReadOnlySpan HintJoystickHidapiPs4Rumble => - "SDL_JOYSTICK_HIDAPI_PS4_RUMBLE"u8; + public static Utf8String HintJoystickHidapiPs4Rumble => "SDL_JOYSTICK_HIDAPI_PS4_RUMBLE"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_PS5 \"SDL_JOYSTICK_HIDAPI_PS5\"")] - public static ReadOnlySpan HintJoystickHidapiPs5 => "SDL_JOYSTICK_HIDAPI_PS5"u8; + public static Utf8String HintJoystickHidapiPs5 => "SDL_JOYSTICK_HIDAPI_PS5"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED \"SDL_JOYSTICK_HIDAPI_PS5_PLAYER_LED\"" )] - public static ReadOnlySpan HintJoystickHidapiPs5PlayerLed => + public static Utf8String HintJoystickHidapiPs5PlayerLed => "SDL_JOYSTICK_HIDAPI_PS5_PLAYER_LED"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE \"SDL_JOYSTICK_HIDAPI_PS5_RUMBLE\"" )] - public static ReadOnlySpan HintJoystickHidapiPs5Rumble => - "SDL_JOYSTICK_HIDAPI_PS5_RUMBLE"u8; + public static Utf8String HintJoystickHidapiPs5Rumble => "SDL_JOYSTICK_HIDAPI_PS5_RUMBLE"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_SHIELD \"SDL_JOYSTICK_HIDAPI_SHIELD\"")] - public static ReadOnlySpan HintJoystickHidapiShield => "SDL_JOYSTICK_HIDAPI_SHIELD"u8; + public static Utf8String HintJoystickHidapiShield => "SDL_JOYSTICK_HIDAPI_SHIELD"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_STADIA \"SDL_JOYSTICK_HIDAPI_STADIA\"")] - public static ReadOnlySpan HintJoystickHidapiStadia => "SDL_JOYSTICK_HIDAPI_STADIA"u8; + public static Utf8String HintJoystickHidapiStadia => "SDL_JOYSTICK_HIDAPI_STADIA"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_STEAM \"SDL_JOYSTICK_HIDAPI_STEAM\"")] - public static ReadOnlySpan HintJoystickHidapiSteam => "SDL_JOYSTICK_HIDAPI_STEAM"u8; + public static Utf8String HintJoystickHidapiSteam => "SDL_JOYSTICK_HIDAPI_STEAM"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_STEAMDECK \"SDL_JOYSTICK_HIDAPI_STEAMDECK\"")] - public static ReadOnlySpan HintJoystickHidapiSteamdeck => - "SDL_JOYSTICK_HIDAPI_STEAMDECK"u8; + public static Utf8String HintJoystickHidapiSteamdeck => "SDL_JOYSTICK_HIDAPI_STEAMDECK"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH \"SDL_JOYSTICK_HIDAPI_SWITCH\"")] - public static ReadOnlySpan HintJoystickHidapiSwitch => "SDL_JOYSTICK_HIDAPI_SWITCH"u8; + public static Utf8String HintJoystickHidapiSwitch => "SDL_JOYSTICK_HIDAPI_SWITCH"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED \"SDL_JOYSTICK_HIDAPI_SWITCH_HOME_LED\"" )] - public static ReadOnlySpan HintJoystickHidapiSwitchHomeLed => + public static Utf8String HintJoystickHidapiSwitchHomeLed => "SDL_JOYSTICK_HIDAPI_SWITCH_HOME_LED"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED \"SDL_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED\"" )] - public static ReadOnlySpan HintJoystickHidapiSwitchPlayerLed => + public static Utf8String HintJoystickHidapiSwitchPlayerLed => "SDL_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS \"SDL_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS\"" )] - public static ReadOnlySpan HintJoystickHidapiVerticalJoyCons => + public static Utf8String HintJoystickHidapiVerticalJoyCons => "SDL_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_WII \"SDL_JOYSTICK_HIDAPI_WII\"")] - public static ReadOnlySpan HintJoystickHidapiWii => "SDL_JOYSTICK_HIDAPI_WII"u8; + public static Utf8String HintJoystickHidapiWii => "SDL_JOYSTICK_HIDAPI_WII"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED \"SDL_JOYSTICK_HIDAPI_WII_PLAYER_LED\"" )] - public static ReadOnlySpan HintJoystickHidapiWiiPlayerLed => + public static Utf8String HintJoystickHidapiWiiPlayerLed => "SDL_JOYSTICK_HIDAPI_WII_PLAYER_LED"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_XBOX \"SDL_JOYSTICK_HIDAPI_XBOX\"")] - public static ReadOnlySpan HintJoystickHidapiXbox => "SDL_JOYSTICK_HIDAPI_XBOX"u8; + public static Utf8String HintJoystickHidapiXbox => "SDL_JOYSTICK_HIDAPI_XBOX"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_XBOX_360 \"SDL_JOYSTICK_HIDAPI_XBOX_360\"")] - public static ReadOnlySpan HintJoystickHidapiXbox360 => "SDL_JOYSTICK_HIDAPI_XBOX_360"u8; + public static Utf8String HintJoystickHidapiXbox360 => "SDL_JOYSTICK_HIDAPI_XBOX_360"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED \"SDL_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED\"" )] - public static ReadOnlySpan HintJoystickHidapiXbox360PlayerLed => + public static Utf8String HintJoystickHidapiXbox360PlayerLed => "SDL_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS \"SDL_JOYSTICK_HIDAPI_XBOX_360_WIRELESS\"" )] - public static ReadOnlySpan HintJoystickHidapiXbox360Wireless => + public static Utf8String HintJoystickHidapiXbox360Wireless => "SDL_JOYSTICK_HIDAPI_XBOX_360_WIRELESS"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE \"SDL_JOYSTICK_HIDAPI_XBOX_ONE\"")] - public static ReadOnlySpan HintJoystickHidapiXboxOne => "SDL_JOYSTICK_HIDAPI_XBOX_ONE"u8; + public static Utf8String HintJoystickHidapiXboxOne => "SDL_JOYSTICK_HIDAPI_XBOX_ONE"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED \"SDL_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED\"" )] - public static ReadOnlySpan HintJoystickHidapiXboxOneHomeLed => + public static Utf8String HintJoystickHidapiXboxOneHomeLed => "SDL_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_IOKIT \"SDL_JOYSTICK_IOKIT\"")] - public static ReadOnlySpan HintJoystickIokit => "SDL_JOYSTICK_IOKIT"u8; + public static Utf8String HintJoystickIokit => "SDL_JOYSTICK_IOKIT"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_LINUX_CLASSIC \"SDL_JOYSTICK_LINUX_CLASSIC\"")] - public static ReadOnlySpan HintJoystickLinuxClassic => "SDL_JOYSTICK_LINUX_CLASSIC"u8; + public static Utf8String HintJoystickLinuxClassic => "SDL_JOYSTICK_LINUX_CLASSIC"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_LINUX_DEADZONES \"SDL_JOYSTICK_LINUX_DEADZONES\"")] - public static ReadOnlySpan HintJoystickLinuxDeadzones => "SDL_JOYSTICK_LINUX_DEADZONES"u8; + public static Utf8String HintJoystickLinuxDeadzones => "SDL_JOYSTICK_LINUX_DEADZONES"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_LINUX_DIGITAL_HATS \"SDL_JOYSTICK_LINUX_DIGITAL_HATS\"" )] - public static ReadOnlySpan HintJoystickLinuxDigitalHats => - "SDL_JOYSTICK_LINUX_DIGITAL_HATS"u8; + public static Utf8String HintJoystickLinuxDigitalHats => "SDL_JOYSTICK_LINUX_DIGITAL_HATS"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_LINUX_HAT_DEADZONES \"SDL_JOYSTICK_LINUX_HAT_DEADZONES\"" )] - public static ReadOnlySpan HintJoystickLinuxHatDeadzones => - "SDL_JOYSTICK_LINUX_HAT_DEADZONES"u8; + public static Utf8String HintJoystickLinuxHatDeadzones => "SDL_JOYSTICK_LINUX_HAT_DEADZONES"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_MFI \"SDL_JOYSTICK_MFI\"")] - public static ReadOnlySpan HintJoystickMfi => "SDL_JOYSTICK_MFI"u8; + public static Utf8String HintJoystickMfi => "SDL_JOYSTICK_MFI"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_RAWINPUT \"SDL_JOYSTICK_RAWINPUT\"")] - public static ReadOnlySpan HintJoystickRawinput => "SDL_JOYSTICK_RAWINPUT"u8; + public static Utf8String HintJoystickRawinput => "SDL_JOYSTICK_RAWINPUT"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT \"SDL_JOYSTICK_RAWINPUT_CORRELATE_XINPUT\"" )] - public static ReadOnlySpan HintJoystickRawinputCorrelateXinput => + public static Utf8String HintJoystickRawinputCorrelateXinput => "SDL_JOYSTICK_RAWINPUT_CORRELATE_XINPUT"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_ROG_CHAKRAM \"SDL_JOYSTICK_ROG_CHAKRAM\"")] - public static ReadOnlySpan HintJoystickRogChakram => "SDL_JOYSTICK_ROG_CHAKRAM"u8; + public static Utf8String HintJoystickRogChakram => "SDL_JOYSTICK_ROG_CHAKRAM"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_THREAD \"SDL_JOYSTICK_THREAD\"")] - public static ReadOnlySpan HintJoystickThread => "SDL_JOYSTICK_THREAD"u8; + public static Utf8String HintJoystickThread => "SDL_JOYSTICK_THREAD"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_THROTTLE_DEVICES \"SDL_JOYSTICK_THROTTLE_DEVICES\"")] - public static ReadOnlySpan HintJoystickThrottleDevices => - "SDL_JOYSTICK_THROTTLE_DEVICES"u8; + public static Utf8String HintJoystickThrottleDevices => "SDL_JOYSTICK_THROTTLE_DEVICES"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_THROTTLE_DEVICES_EXCLUDED \"SDL_JOYSTICK_THROTTLE_DEVICES_EXCLUDED\"" )] - public static ReadOnlySpan HintJoystickThrottleDevicesExcluded => + public static Utf8String HintJoystickThrottleDevicesExcluded => "SDL_JOYSTICK_THROTTLE_DEVICES_EXCLUDED"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_WGI \"SDL_JOYSTICK_WGI\"")] - public static ReadOnlySpan HintJoystickWgi => "SDL_JOYSTICK_WGI"u8; + public static Utf8String HintJoystickWgi => "SDL_JOYSTICK_WGI"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_WHEEL_DEVICES \"SDL_JOYSTICK_WHEEL_DEVICES\"")] - public static ReadOnlySpan HintJoystickWheelDevices => "SDL_JOYSTICK_WHEEL_DEVICES"u8; + public static Utf8String HintJoystickWheelDevices => "SDL_JOYSTICK_WHEEL_DEVICES"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_WHEEL_DEVICES_EXCLUDED \"SDL_JOYSTICK_WHEEL_DEVICES_EXCLUDED\"" )] - public static ReadOnlySpan HintJoystickWheelDevicesExcluded => + public static Utf8String HintJoystickWheelDevicesExcluded => "SDL_JOYSTICK_WHEEL_DEVICES_EXCLUDED"u8; [NativeTypeName( "#define SDL_HINT_JOYSTICK_ZERO_CENTERED_DEVICES \"SDL_JOYSTICK_ZERO_CENTERED_DEVICES\"" )] - public static ReadOnlySpan HintJoystickZeroCenteredDevices => + public static Utf8String HintJoystickZeroCenteredDevices => "SDL_JOYSTICK_ZERO_CENTERED_DEVICES"u8; [NativeTypeName("#define SDL_HINT_KMSDRM_DEVICE_INDEX \"SDL_KMSDRM_DEVICE_INDEX\"")] - public static ReadOnlySpan HintKmsdrmDeviceIndex => "SDL_KMSDRM_DEVICE_INDEX"u8; + public static Utf8String HintKmsdrmDeviceIndex => "SDL_KMSDRM_DEVICE_INDEX"u8; [NativeTypeName("#define SDL_HINT_KMSDRM_REQUIRE_DRM_MASTER \"SDL_KMSDRM_REQUIRE_DRM_MASTER\"")] - public static ReadOnlySpan HintKmsdrmRequireDrmMaster => - "SDL_KMSDRM_REQUIRE_DRM_MASTER"u8; + public static Utf8String HintKmsdrmRequireDrmMaster => "SDL_KMSDRM_REQUIRE_DRM_MASTER"u8; [NativeTypeName("#define SDL_HINT_LOGGING \"SDL_LOGGING\"")] - public static ReadOnlySpan HintLogging => "SDL_LOGGING"u8; + public static Utf8String HintLogging => "SDL_LOGGING"u8; [NativeTypeName("#define SDL_HINT_MAC_BACKGROUND_APP \"SDL_MAC_BACKGROUND_APP\"")] - public static ReadOnlySpan HintMacBackgroundApp => "SDL_MAC_BACKGROUND_APP"u8; + public static Utf8String HintMacBackgroundApp => "SDL_MAC_BACKGROUND_APP"u8; [NativeTypeName( "#define SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK \"SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK\"" )] - public static ReadOnlySpan HintMacCtrlClickEmulateRightClick => + public static Utf8String HintMacCtrlClickEmulateRightClick => "SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK"u8; [NativeTypeName("#define SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH \"SDL_MAC_OPENGL_ASYNC_DISPATCH\"")] - public static ReadOnlySpan HintMacOpenglAsyncDispatch => - "SDL_MAC_OPENGL_ASYNC_DISPATCH"u8; + public static Utf8String HintMacOpenglAsyncDispatch => "SDL_MAC_OPENGL_ASYNC_DISPATCH"u8; [NativeTypeName("#define SDL_HINT_MAIN_CALLBACK_RATE \"SDL_MAIN_CALLBACK_RATE\"")] - public static ReadOnlySpan HintMainCallbackRate => "SDL_MAIN_CALLBACK_RATE"u8; + public static Utf8String HintMainCallbackRate => "SDL_MAIN_CALLBACK_RATE"u8; [NativeTypeName("#define SDL_HINT_MOUSE_AUTO_CAPTURE \"SDL_MOUSE_AUTO_CAPTURE\"")] - public static ReadOnlySpan HintMouseAutoCapture => "SDL_MOUSE_AUTO_CAPTURE"u8; + public static Utf8String HintMouseAutoCapture => "SDL_MOUSE_AUTO_CAPTURE"u8; [NativeTypeName("#define SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS \"SDL_MOUSE_DOUBLE_CLICK_RADIUS\"")] - public static ReadOnlySpan HintMouseDoubleClickRadius => - "SDL_MOUSE_DOUBLE_CLICK_RADIUS"u8; + public static Utf8String HintMouseDoubleClickRadius => "SDL_MOUSE_DOUBLE_CLICK_RADIUS"u8; [NativeTypeName("#define SDL_HINT_MOUSE_DOUBLE_CLICK_TIME \"SDL_MOUSE_DOUBLE_CLICK_TIME\"")] - public static ReadOnlySpan HintMouseDoubleClickTime => "SDL_MOUSE_DOUBLE_CLICK_TIME"u8; + public static Utf8String HintMouseDoubleClickTime => "SDL_MOUSE_DOUBLE_CLICK_TIME"u8; [NativeTypeName("#define SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH \"SDL_MOUSE_FOCUS_CLICKTHROUGH\"")] - public static ReadOnlySpan HintMouseFocusClickthrough => "SDL_MOUSE_FOCUS_CLICKTHROUGH"u8; + public static Utf8String HintMouseFocusClickthrough => "SDL_MOUSE_FOCUS_CLICKTHROUGH"u8; [NativeTypeName("#define SDL_HINT_MOUSE_NORMAL_SPEED_SCALE \"SDL_MOUSE_NORMAL_SPEED_SCALE\"")] - public static ReadOnlySpan HintMouseNormalSpeedScale => "SDL_MOUSE_NORMAL_SPEED_SCALE"u8; + public static Utf8String HintMouseNormalSpeedScale => "SDL_MOUSE_NORMAL_SPEED_SCALE"u8; [NativeTypeName( "#define SDL_HINT_MOUSE_RELATIVE_MODE_CENTER \"SDL_MOUSE_RELATIVE_MODE_CENTER\"" )] - public static ReadOnlySpan HintMouseRelativeModeCenter => - "SDL_MOUSE_RELATIVE_MODE_CENTER"u8; + public static Utf8String HintMouseRelativeModeCenter => "SDL_MOUSE_RELATIVE_MODE_CENTER"u8; [NativeTypeName("#define SDL_HINT_MOUSE_RELATIVE_MODE_WARP \"SDL_MOUSE_RELATIVE_MODE_WARP\"")] - public static ReadOnlySpan HintMouseRelativeModeWarp => "SDL_MOUSE_RELATIVE_MODE_WARP"u8; + public static Utf8String HintMouseRelativeModeWarp => "SDL_MOUSE_RELATIVE_MODE_WARP"u8; [NativeTypeName( "#define SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE \"SDL_MOUSE_RELATIVE_SPEED_SCALE\"" )] - public static ReadOnlySpan HintMouseRelativeSpeedScale => - "SDL_MOUSE_RELATIVE_SPEED_SCALE"u8; + public static Utf8String HintMouseRelativeSpeedScale => "SDL_MOUSE_RELATIVE_SPEED_SCALE"u8; [NativeTypeName( "#define SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE \"SDL_MOUSE_RELATIVE_SYSTEM_SCALE\"" )] - public static ReadOnlySpan HintMouseRelativeSystemScale => - "SDL_MOUSE_RELATIVE_SYSTEM_SCALE"u8; + public static Utf8String HintMouseRelativeSystemScale => "SDL_MOUSE_RELATIVE_SYSTEM_SCALE"u8; [NativeTypeName( "#define SDL_HINT_MOUSE_RELATIVE_WARP_MOTION \"SDL_MOUSE_RELATIVE_WARP_MOTION\"" )] - public static ReadOnlySpan HintMouseRelativeWarpMotion => - "SDL_MOUSE_RELATIVE_WARP_MOTION"u8; + public static Utf8String HintMouseRelativeWarpMotion => "SDL_MOUSE_RELATIVE_WARP_MOTION"u8; [NativeTypeName("#define SDL_HINT_MOUSE_TOUCH_EVENTS \"SDL_MOUSE_TOUCH_EVENTS\"")] - public static ReadOnlySpan HintMouseTouchEvents => "SDL_MOUSE_TOUCH_EVENTS"u8; + public static Utf8String HintMouseTouchEvents => "SDL_MOUSE_TOUCH_EVENTS"u8; [NativeTypeName("#define SDL_HINT_NO_SIGNAL_HANDLERS \"SDL_NO_SIGNAL_HANDLERS\"")] - public static ReadOnlySpan HintNoSignalHandlers => "SDL_NO_SIGNAL_HANDLERS"u8; + public static Utf8String HintNoSignalHandlers => "SDL_NO_SIGNAL_HANDLERS"u8; [NativeTypeName("#define SDL_HINT_OPENGL_ES_DRIVER \"SDL_OPENGL_ES_DRIVER\"")] - public static ReadOnlySpan HintOpenglEsDriver => "SDL_OPENGL_ES_DRIVER"u8; + public static Utf8String HintOpenglEsDriver => "SDL_OPENGL_ES_DRIVER"u8; [NativeTypeName("#define SDL_HINT_ORIENTATIONS \"SDL_IOS_ORIENTATIONS\"")] - public static ReadOnlySpan HintOrientations => "SDL_IOS_ORIENTATIONS"u8; + public static Utf8String HintOrientations => "SDL_IOS_ORIENTATIONS"u8; [NativeTypeName("#define SDL_HINT_PEN_DELAY_MOUSE_BUTTON \"SDL_PEN_DELAY_MOUSE_BUTTON\"")] - public static ReadOnlySpan HintPenDelayMouseButton => "SDL_PEN_DELAY_MOUSE_BUTTON"u8; + public static Utf8String HintPenDelayMouseButton => "SDL_PEN_DELAY_MOUSE_BUTTON"u8; [NativeTypeName("#define SDL_HINT_PEN_NOT_MOUSE \"SDL_PEN_NOT_MOUSE\"")] - public static ReadOnlySpan HintPenNotMouse => "SDL_PEN_NOT_MOUSE"u8; + public static Utf8String HintPenNotMouse => "SDL_PEN_NOT_MOUSE"u8; [NativeTypeName("#define SDL_HINT_POLL_SENTINEL \"SDL_POLL_SENTINEL\"")] - public static ReadOnlySpan HintPollSentinel => "SDL_POLL_SENTINEL"u8; + public static Utf8String HintPollSentinel => "SDL_POLL_SENTINEL"u8; [NativeTypeName("#define SDL_HINT_PREFERRED_LOCALES \"SDL_PREFERRED_LOCALES\"")] - public static ReadOnlySpan HintPreferredLocales => "SDL_PREFERRED_LOCALES"u8; + public static Utf8String HintPreferredLocales => "SDL_PREFERRED_LOCALES"u8; [NativeTypeName("#define SDL_HINT_QUIT_ON_LAST_WINDOW_CLOSE \"SDL_QUIT_ON_LAST_WINDOW_CLOSE\"")] - public static ReadOnlySpan HintQuitOnLastWindowClose => "SDL_QUIT_ON_LAST_WINDOW_CLOSE"u8; + public static Utf8String HintQuitOnLastWindowClose => "SDL_QUIT_ON_LAST_WINDOW_CLOSE"u8; [NativeTypeName( "#define SDL_HINT_RENDER_DIRECT3D_THREADSAFE \"SDL_RENDER_DIRECT3D_THREADSAFE\"" )] - public static ReadOnlySpan HintRenderDirect3DThreadsafe => - "SDL_RENDER_DIRECT3D_THREADSAFE"u8; + public static Utf8String HintRenderDirect3DThreadsafe => "SDL_RENDER_DIRECT3D_THREADSAFE"u8; [NativeTypeName("#define SDL_HINT_RENDER_DIRECT3D11_DEBUG \"SDL_RENDER_DIRECT3D11_DEBUG\"")] - public static ReadOnlySpan HintRenderDirect3D11Debug => "SDL_RENDER_DIRECT3D11_DEBUG"u8; + public static Utf8String HintRenderDirect3D11Debug => "SDL_RENDER_DIRECT3D11_DEBUG"u8; [NativeTypeName("#define SDL_HINT_RENDER_VULKAN_DEBUG \"SDL_RENDER_VULKAN_DEBUG\"")] - public static ReadOnlySpan HintRenderVulkanDebug => "SDL_RENDER_VULKAN_DEBUG"u8; + public static Utf8String HintRenderVulkanDebug => "SDL_RENDER_VULKAN_DEBUG"u8; [NativeTypeName("#define SDL_HINT_RENDER_DRIVER \"SDL_RENDER_DRIVER\"")] - public static ReadOnlySpan HintRenderDriver => "SDL_RENDER_DRIVER"u8; + public static Utf8String HintRenderDriver => "SDL_RENDER_DRIVER"u8; [NativeTypeName("#define SDL_HINT_RENDER_LINE_METHOD \"SDL_RENDER_LINE_METHOD\"")] - public static ReadOnlySpan HintRenderLineMethod => "SDL_RENDER_LINE_METHOD"u8; + public static Utf8String HintRenderLineMethod => "SDL_RENDER_LINE_METHOD"u8; [NativeTypeName( "#define SDL_HINT_RENDER_METAL_PREFER_LOW_POWER_DEVICE \"SDL_RENDER_METAL_PREFER_LOW_POWER_DEVICE\"" )] - public static ReadOnlySpan HintRenderMetalPreferLowPowerDevice => + public static Utf8String HintRenderMetalPreferLowPowerDevice => "SDL_RENDER_METAL_PREFER_LOW_POWER_DEVICE"u8; [NativeTypeName("#define SDL_HINT_RENDER_PS2_DYNAMIC_VSYNC \"SDL_RENDER_PS2_DYNAMIC_VSYNC\"")] - public static ReadOnlySpan HintRenderPs2DynamicVsync => "SDL_RENDER_PS2_DYNAMIC_VSYNC"u8; + public static Utf8String HintRenderPs2DynamicVsync => "SDL_RENDER_PS2_DYNAMIC_VSYNC"u8; [NativeTypeName("#define SDL_HINT_RENDER_VSYNC \"SDL_RENDER_VSYNC\"")] - public static ReadOnlySpan HintRenderVsync => "SDL_RENDER_VSYNC"u8; + public static Utf8String HintRenderVsync => "SDL_RENDER_VSYNC"u8; [NativeTypeName("#define SDL_HINT_RETURN_KEY_HIDES_IME \"SDL_RETURN_KEY_HIDES_IME\"")] - public static ReadOnlySpan HintReturnKeyHidesIme => "SDL_RETURN_KEY_HIDES_IME"u8; + public static Utf8String HintReturnKeyHidesIme => "SDL_RETURN_KEY_HIDES_IME"u8; [NativeTypeName("#define SDL_HINT_ROG_GAMEPAD_MICE \"SDL_ROG_GAMEPAD_MICE\"")] - public static ReadOnlySpan HintRogGamepadMice => "SDL_ROG_GAMEPAD_MICE"u8; + public static Utf8String HintRogGamepadMice => "SDL_ROG_GAMEPAD_MICE"u8; [NativeTypeName("#define SDL_HINT_ROG_GAMEPAD_MICE_EXCLUDED \"SDL_ROG_GAMEPAD_MICE_EXCLUDED\"")] - public static ReadOnlySpan HintRogGamepadMiceExcluded => - "SDL_ROG_GAMEPAD_MICE_EXCLUDED"u8; + public static Utf8String HintRogGamepadMiceExcluded => "SDL_ROG_GAMEPAD_MICE_EXCLUDED"u8; [NativeTypeName("#define SDL_HINT_RPI_VIDEO_LAYER \"SDL_RPI_VIDEO_LAYER\"")] - public static ReadOnlySpan HintRpiVideoLayer => "SDL_RPI_VIDEO_LAYER"u8; + public static Utf8String HintRpiVideoLayer => "SDL_RPI_VIDEO_LAYER"u8; [NativeTypeName( "#define SDL_HINT_SCREENSAVER_INHIBIT_ACTIVITY_NAME \"SDL_SCREENSAVER_INHIBIT_ACTIVITY_NAME\"" )] - public static ReadOnlySpan HintScreensaverInhibitActivityName => + public static Utf8String HintScreensaverInhibitActivityName => "SDL_SCREENSAVER_INHIBIT_ACTIVITY_NAME"u8; [NativeTypeName("#define SDL_HINT_SHUTDOWN_DBUS_ON_QUIT \"SDL_SHUTDOWN_DBUS_ON_QUIT\"")] - public static ReadOnlySpan HintShutdownDbusOnQuit => "SDL_SHUTDOWN_DBUS_ON_QUIT"u8; + public static Utf8String HintShutdownDbusOnQuit => "SDL_SHUTDOWN_DBUS_ON_QUIT"u8; [NativeTypeName("#define SDL_HINT_STORAGE_TITLE_DRIVER \"SDL_STORAGE_TITLE_DRIVER\"")] - public static ReadOnlySpan HintStorageTitleDriver => "SDL_STORAGE_TITLE_DRIVER"u8; + public static Utf8String HintStorageTitleDriver => "SDL_STORAGE_TITLE_DRIVER"u8; [NativeTypeName("#define SDL_HINT_STORAGE_USER_DRIVER \"SDL_STORAGE_USER_DRIVER\"")] - public static ReadOnlySpan HintStorageUserDriver => "SDL_STORAGE_USER_DRIVER"u8; + public static Utf8String HintStorageUserDriver => "SDL_STORAGE_USER_DRIVER"u8; [NativeTypeName( "#define SDL_HINT_THREAD_FORCE_REALTIME_TIME_CRITICAL \"SDL_THREAD_FORCE_REALTIME_TIME_CRITICAL\"" )] - public static ReadOnlySpan HintThreadForceRealtimeTimeCritical => + public static Utf8String HintThreadForceRealtimeTimeCritical => "SDL_THREAD_FORCE_REALTIME_TIME_CRITICAL"u8; [NativeTypeName("#define SDL_HINT_THREAD_PRIORITY_POLICY \"SDL_THREAD_PRIORITY_POLICY\"")] - public static ReadOnlySpan HintThreadPriorityPolicy => "SDL_THREAD_PRIORITY_POLICY"u8; + public static Utf8String HintThreadPriorityPolicy => "SDL_THREAD_PRIORITY_POLICY"u8; [NativeTypeName("#define SDL_HINT_TIMER_RESOLUTION \"SDL_TIMER_RESOLUTION\"")] - public static ReadOnlySpan HintTimerResolution => "SDL_TIMER_RESOLUTION"u8; + public static Utf8String HintTimerResolution => "SDL_TIMER_RESOLUTION"u8; [NativeTypeName("#define SDL_HINT_TOUCH_MOUSE_EVENTS \"SDL_TOUCH_MOUSE_EVENTS\"")] - public static ReadOnlySpan HintTouchMouseEvents => "SDL_TOUCH_MOUSE_EVENTS"u8; + public static Utf8String HintTouchMouseEvents => "SDL_TOUCH_MOUSE_EVENTS"u8; [NativeTypeName("#define SDL_HINT_TRACKPAD_IS_TOUCH_ONLY \"SDL_TRACKPAD_IS_TOUCH_ONLY\"")] - public static ReadOnlySpan HintTrackpadIsTouchOnly => "SDL_TRACKPAD_IS_TOUCH_ONLY"u8; + public static Utf8String HintTrackpadIsTouchOnly => "SDL_TRACKPAD_IS_TOUCH_ONLY"u8; [NativeTypeName("#define SDL_HINT_TV_REMOTE_AS_JOYSTICK \"SDL_TV_REMOTE_AS_JOYSTICK\"")] - public static ReadOnlySpan HintTvRemoteAsJoystick => "SDL_TV_REMOTE_AS_JOYSTICK"u8; + public static Utf8String HintTvRemoteAsJoystick => "SDL_TV_REMOTE_AS_JOYSTICK"u8; [NativeTypeName("#define SDL_HINT_VIDEO_ALLOW_SCREENSAVER \"SDL_VIDEO_ALLOW_SCREENSAVER\"")] - public static ReadOnlySpan HintVideoAllowScreensaver => "SDL_VIDEO_ALLOW_SCREENSAVER"u8; + public static Utf8String HintVideoAllowScreensaver => "SDL_VIDEO_ALLOW_SCREENSAVER"u8; [NativeTypeName("#define SDL_HINT_VIDEO_DOUBLE_BUFFER \"SDL_VIDEO_DOUBLE_BUFFER\"")] - public static ReadOnlySpan HintVideoDoubleBuffer => "SDL_VIDEO_DOUBLE_BUFFER"u8; + public static Utf8String HintVideoDoubleBuffer => "SDL_VIDEO_DOUBLE_BUFFER"u8; [NativeTypeName("#define SDL_HINT_VIDEO_DRIVER \"SDL_VIDEO_DRIVER\"")] - public static ReadOnlySpan HintVideoDriver => "SDL_VIDEO_DRIVER"u8; + public static Utf8String HintVideoDriver => "SDL_VIDEO_DRIVER"u8; [NativeTypeName( "#define SDL_HINT_VIDEO_EGL_ALLOW_GETDISPLAY_FALLBACK \"SDL_VIDEO_EGL_GETDISPLAY_FALLBACK\"" )] - public static ReadOnlySpan HintVideoEglAllowGetdisplayFallback => + public static Utf8String HintVideoEglAllowGetdisplayFallback => "SDL_VIDEO_EGL_GETDISPLAY_FALLBACK"u8; [NativeTypeName("#define SDL_HINT_VIDEO_FORCE_EGL \"SDL_VIDEO_FORCE_EGL\"")] - public static ReadOnlySpan HintVideoForceEgl => "SDL_VIDEO_FORCE_EGL"u8; + public static Utf8String HintVideoForceEgl => "SDL_VIDEO_FORCE_EGL"u8; [NativeTypeName( "#define SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES \"SDL_VIDEO_MAC_FULLSCREEN_SPACES\"" )] - public static ReadOnlySpan HintVideoMacFullscreenSpaces => - "SDL_VIDEO_MAC_FULLSCREEN_SPACES"u8; + public static Utf8String HintVideoMacFullscreenSpaces => "SDL_VIDEO_MAC_FULLSCREEN_SPACES"u8; [NativeTypeName( "#define SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS \"SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS\"" )] - public static ReadOnlySpan HintVideoMinimizeOnFocusLoss => - "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS"u8; + public static Utf8String HintVideoMinimizeOnFocusLoss => "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS"u8; [NativeTypeName( "#define SDL_HINT_VIDEO_SYNC_WINDOW_OPERATIONS \"SDL_VIDEO_SYNC_WINDOW_OPERATIONS\"" )] - public static ReadOnlySpan HintVideoSyncWindowOperations => - "SDL_VIDEO_SYNC_WINDOW_OPERATIONS"u8; + public static Utf8String HintVideoSyncWindowOperations => "SDL_VIDEO_SYNC_WINDOW_OPERATIONS"u8; [NativeTypeName( "#define SDL_HINT_VIDEO_WAYLAND_ALLOW_LIBDECOR \"SDL_VIDEO_WAYLAND_ALLOW_LIBDECOR\"" )] - public static ReadOnlySpan HintVideoWaylandAllowLibdecor => - "SDL_VIDEO_WAYLAND_ALLOW_LIBDECOR"u8; + public static Utf8String HintVideoWaylandAllowLibdecor => "SDL_VIDEO_WAYLAND_ALLOW_LIBDECOR"u8; [NativeTypeName( "#define SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP \"SDL_VIDEO_WAYLAND_EMULATE_MOUSE_WARP\"" )] - public static ReadOnlySpan HintVideoWaylandEmulateMouseWarp => + public static Utf8String HintVideoWaylandEmulateMouseWarp => "SDL_VIDEO_WAYLAND_EMULATE_MOUSE_WARP"u8; [NativeTypeName( "#define SDL_HINT_VIDEO_WAYLAND_MODE_EMULATION \"SDL_VIDEO_WAYLAND_MODE_EMULATION\"" )] - public static ReadOnlySpan HintVideoWaylandModeEmulation => - "SDL_VIDEO_WAYLAND_MODE_EMULATION"u8; + public static Utf8String HintVideoWaylandModeEmulation => "SDL_VIDEO_WAYLAND_MODE_EMULATION"u8; [NativeTypeName( "#define SDL_HINT_VIDEO_WAYLAND_MODE_SCALING \"SDL_VIDEO_WAYLAND_MODE_SCALING\"" )] - public static ReadOnlySpan HintVideoWaylandModeScaling => - "SDL_VIDEO_WAYLAND_MODE_SCALING"u8; + public static Utf8String HintVideoWaylandModeScaling => "SDL_VIDEO_WAYLAND_MODE_SCALING"u8; [NativeTypeName( "#define SDL_HINT_VIDEO_WAYLAND_PREFER_LIBDECOR \"SDL_VIDEO_WAYLAND_PREFER_LIBDECOR\"" )] - public static ReadOnlySpan HintVideoWaylandPreferLibdecor => + public static Utf8String HintVideoWaylandPreferLibdecor => "SDL_VIDEO_WAYLAND_PREFER_LIBDECOR"u8; [NativeTypeName( "#define SDL_HINT_VIDEO_WAYLAND_SCALE_TO_DISPLAY \"SDL_VIDEO_WAYLAND_SCALE_TO_DISPLAY\"" )] - public static ReadOnlySpan HintVideoWaylandScaleToDisplay => + public static Utf8String HintVideoWaylandScaleToDisplay => "SDL_VIDEO_WAYLAND_SCALE_TO_DISPLAY"u8; [NativeTypeName("#define SDL_HINT_VIDEO_WIN_D3DCOMPILER \"SDL_VIDEO_WIN_D3DCOMPILER\"")] - public static ReadOnlySpan HintVideoWinD3Dcompiler => "SDL_VIDEO_WIN_D3DCOMPILER"u8; + public static Utf8String HintVideoWinD3Dcompiler => "SDL_VIDEO_WIN_D3DCOMPILER"u8; [NativeTypeName( "#define SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR \"SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR\"" )] - public static ReadOnlySpan HintVideoX11NetWmBypassCompositor => + public static Utf8String HintVideoX11NetWmBypassCompositor => "SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR"u8; [NativeTypeName("#define SDL_HINT_VIDEO_X11_NET_WM_PING \"SDL_VIDEO_X11_NET_WM_PING\"")] - public static ReadOnlySpan HintVideoX11NetWmPing => "SDL_VIDEO_X11_NET_WM_PING"u8; + public static Utf8String HintVideoX11NetWmPing => "SDL_VIDEO_X11_NET_WM_PING"u8; [NativeTypeName("#define SDL_HINT_VIDEO_X11_SCALING_FACTOR \"SDL_VIDEO_X11_SCALING_FACTOR\"")] - public static ReadOnlySpan HintVideoX11ScalingFactor => "SDL_VIDEO_X11_SCALING_FACTOR"u8; + public static Utf8String HintVideoX11ScalingFactor => "SDL_VIDEO_X11_SCALING_FACTOR"u8; [NativeTypeName("#define SDL_HINT_VIDEO_X11_WINDOW_VISUALID \"SDL_VIDEO_X11_WINDOW_VISUALID\"")] - public static ReadOnlySpan HintVideoX11WindowVisualid => - "SDL_VIDEO_X11_WINDOW_VISUALID"u8; + public static Utf8String HintVideoX11WindowVisualid => "SDL_VIDEO_X11_WINDOW_VISUALID"u8; [NativeTypeName("#define SDL_HINT_VIDEO_X11_XRANDR \"SDL_VIDEO_X11_XRANDR\"")] - public static ReadOnlySpan HintVideoX11Xrandr => "SDL_VIDEO_X11_XRANDR"u8; + public static Utf8String HintVideoX11Xrandr => "SDL_VIDEO_X11_XRANDR"u8; [NativeTypeName("#define SDL_HINT_VITA_TOUCH_MOUSE_DEVICE \"SDL_VITA_TOUCH_MOUSE_DEVICE\"")] - public static ReadOnlySpan HintVitaTouchMouseDevice => "SDL_VITA_TOUCH_MOUSE_DEVICE"u8; + public static Utf8String HintVitaTouchMouseDevice => "SDL_VITA_TOUCH_MOUSE_DEVICE"u8; [NativeTypeName("#define SDL_HINT_WAVE_FACT_CHUNK \"SDL_WAVE_FACT_CHUNK\"")] - public static ReadOnlySpan HintWaveFactChunk => "SDL_WAVE_FACT_CHUNK"u8; + public static Utf8String HintWaveFactChunk => "SDL_WAVE_FACT_CHUNK"u8; [NativeTypeName("#define SDL_HINT_WAVE_RIFF_CHUNK_SIZE \"SDL_WAVE_RIFF_CHUNK_SIZE\"")] - public static ReadOnlySpan HintWaveRiffChunkSize => "SDL_WAVE_RIFF_CHUNK_SIZE"u8; + public static Utf8String HintWaveRiffChunkSize => "SDL_WAVE_RIFF_CHUNK_SIZE"u8; [NativeTypeName("#define SDL_HINT_WAVE_TRUNCATION \"SDL_WAVE_TRUNCATION\"")] - public static ReadOnlySpan HintWaveTruncation => "SDL_WAVE_TRUNCATION"u8; + public static Utf8String HintWaveTruncation => "SDL_WAVE_TRUNCATION"u8; [NativeTypeName( "#define SDL_HINT_WINDOW_ACTIVATE_WHEN_RAISED \"SDL_WINDOW_ACTIVATE_WHEN_RAISED\"" )] - public static ReadOnlySpan HintWindowActivateWhenRaised => - "SDL_WINDOW_ACTIVATE_WHEN_RAISED"u8; + public static Utf8String HintWindowActivateWhenRaised => "SDL_WINDOW_ACTIVATE_WHEN_RAISED"u8; [NativeTypeName( "#define SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN \"SDL_WINDOW_ACTIVATE_WHEN_SHOWN\"" )] - public static ReadOnlySpan HintWindowActivateWhenShown => - "SDL_WINDOW_ACTIVATE_WHEN_SHOWN"u8; + public static Utf8String HintWindowActivateWhenShown => "SDL_WINDOW_ACTIVATE_WHEN_SHOWN"u8; [NativeTypeName("#define SDL_HINT_WINDOW_ALLOW_TOPMOST \"SDL_WINDOW_ALLOW_TOPMOST\"")] - public static ReadOnlySpan HintWindowAllowTopmost => "SDL_WINDOW_ALLOW_TOPMOST"u8; + public static Utf8String HintWindowAllowTopmost => "SDL_WINDOW_ALLOW_TOPMOST"u8; [NativeTypeName( "#define SDL_HINT_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN \"SDL_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN\"" )] - public static ReadOnlySpan HintWindowFrameUsableWhileCursorHidden => + public static Utf8String HintWindowFrameUsableWhileCursorHidden => "SDL_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN"u8; [NativeTypeName("#define SDL_HINT_WINDOWS_CLOSE_ON_ALT_F4 \"SDL_WINDOWS_CLOSE_ON_ALT_F4\"")] - public static ReadOnlySpan HintWindowsCloseOnAltF4 => "SDL_WINDOWS_CLOSE_ON_ALT_F4"u8; + public static Utf8String HintWindowsCloseOnAltF4 => "SDL_WINDOWS_CLOSE_ON_ALT_F4"u8; [NativeTypeName( "#define SDL_HINT_WINDOWS_ENABLE_MENU_MNEMONICS \"SDL_WINDOWS_ENABLE_MENU_MNEMONICS\"" )] - public static ReadOnlySpan HintWindowsEnableMenuMnemonics => + public static Utf8String HintWindowsEnableMenuMnemonics => "SDL_WINDOWS_ENABLE_MENU_MNEMONICS"u8; [NativeTypeName( "#define SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP \"SDL_WINDOWS_ENABLE_MESSAGELOOP\"" )] - public static ReadOnlySpan HintWindowsEnableMessageloop => - "SDL_WINDOWS_ENABLE_MESSAGELOOP"u8; + public static Utf8String HintWindowsEnableMessageloop => "SDL_WINDOWS_ENABLE_MESSAGELOOP"u8; [NativeTypeName("#define SDL_HINT_WINDOWS_RAW_KEYBOARD \"SDL_WINDOWS_RAW_KEYBOARD\"")] - public static ReadOnlySpan HintWindowsRawKeyboard => "SDL_WINDOWS_RAW_KEYBOARD"u8; + public static Utf8String HintWindowsRawKeyboard => "SDL_WINDOWS_RAW_KEYBOARD"u8; [NativeTypeName( "#define SDL_HINT_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS \"SDL_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS\"" )] - public static ReadOnlySpan HintWindowsForceMutexCriticalSections => + public static Utf8String HintWindowsForceMutexCriticalSections => "SDL_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS"u8; [NativeTypeName( "#define SDL_HINT_WINDOWS_FORCE_SEMAPHORE_KERNEL \"SDL_WINDOWS_FORCE_SEMAPHORE_KERNEL\"" )] - public static ReadOnlySpan HintWindowsForceSemaphoreKernel => + public static Utf8String HintWindowsForceSemaphoreKernel => "SDL_WINDOWS_FORCE_SEMAPHORE_KERNEL"u8; [NativeTypeName("#define SDL_HINT_WINDOWS_INTRESOURCE_ICON \"SDL_WINDOWS_INTRESOURCE_ICON\"")] - public static ReadOnlySpan HintWindowsIntresourceIcon => "SDL_WINDOWS_INTRESOURCE_ICON"u8; + public static Utf8String HintWindowsIntresourceIcon => "SDL_WINDOWS_INTRESOURCE_ICON"u8; [NativeTypeName( "#define SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL \"SDL_WINDOWS_INTRESOURCE_ICON_SMALL\"" )] - public static ReadOnlySpan HintWindowsIntresourceIconSmall => + public static Utf8String HintWindowsIntresourceIconSmall => "SDL_WINDOWS_INTRESOURCE_ICON_SMALL"u8; [NativeTypeName("#define SDL_HINT_WINDOWS_USE_D3D9EX \"SDL_WINDOWS_USE_D3D9EX\"")] - public static ReadOnlySpan HintWindowsUseD3D9Ex => "SDL_WINDOWS_USE_D3D9EX"u8; + public static Utf8String HintWindowsUseD3D9Ex => "SDL_WINDOWS_USE_D3D9EX"u8; [NativeTypeName("#define SDL_HINT_WINRT_HANDLE_BACK_BUTTON \"SDL_WINRT_HANDLE_BACK_BUTTON\"")] - public static ReadOnlySpan HintWinrtHandleBackButton => "SDL_WINRT_HANDLE_BACK_BUTTON"u8; + public static Utf8String HintWinrtHandleBackButton => "SDL_WINRT_HANDLE_BACK_BUTTON"u8; [NativeTypeName( "#define SDL_HINT_WINRT_PRIVACY_POLICY_LABEL \"SDL_WINRT_PRIVACY_POLICY_LABEL\"" )] - public static ReadOnlySpan HintWinrtPrivacyPolicyLabel => - "SDL_WINRT_PRIVACY_POLICY_LABEL"u8; + public static Utf8String HintWinrtPrivacyPolicyLabel => "SDL_WINRT_PRIVACY_POLICY_LABEL"u8; [NativeTypeName("#define SDL_HINT_WINRT_PRIVACY_POLICY_URL \"SDL_WINRT_PRIVACY_POLICY_URL\"")] - public static ReadOnlySpan HintWinrtPrivacyPolicyUrl => "SDL_WINRT_PRIVACY_POLICY_URL"u8; + public static Utf8String HintWinrtPrivacyPolicyUrl => "SDL_WINRT_PRIVACY_POLICY_URL"u8; [NativeTypeName( "#define SDL_HINT_X11_FORCE_OVERRIDE_REDIRECT \"SDL_X11_FORCE_OVERRIDE_REDIRECT\"" )] - public static ReadOnlySpan HintX11ForceOverrideRedirect => - "SDL_X11_FORCE_OVERRIDE_REDIRECT"u8; + public static Utf8String HintX11ForceOverrideRedirect => "SDL_X11_FORCE_OVERRIDE_REDIRECT"u8; [NativeTypeName("#define SDL_HINT_X11_WINDOW_TYPE \"SDL_X11_WINDOW_TYPE\"")] - public static ReadOnlySpan HintX11WindowType => "SDL_X11_WINDOW_TYPE"u8; + public static Utf8String HintX11WindowType => "SDL_X11_WINDOW_TYPE"u8; [NativeTypeName("#define SDL_HINT_XINPUT_ENABLED \"SDL_XINPUT_ENABLED\"")] - public static ReadOnlySpan HintXinputEnabled => "SDL_XINPUT_ENABLED"u8; + public static Utf8String HintXinputEnabled => "SDL_XINPUT_ENABLED"u8; [NativeTypeName("#define SDL_SOFTWARE_RENDERER \"software\"")] - public static ReadOnlySpan SoftwareRenderer => "software"u8; + public static Utf8String SoftwareRenderer => "software"u8; [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_NAME_STRING \"name\"")] - public static ReadOnlySpan PropRendererCreateNameString => "name"u8; + public static Utf8String PropRendererCreateNameString => "name"u8; [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_WINDOW_POINTER \"window\"")] - public static ReadOnlySpan PropRendererCreateWindowPointer => "window"u8; + public static Utf8String PropRendererCreateWindowPointer => "window"u8; [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_SURFACE_POINTER \"surface\"")] - public static ReadOnlySpan PropRendererCreateSurfacePointer => "surface"u8; + public static Utf8String PropRendererCreateSurfacePointer => "surface"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_CREATE_OUTPUT_COLORSPACE_NUMBER \"output_colorspace\"" )] - public static ReadOnlySpan PropRendererCreateOutputColorspaceNumber => - "output_colorspace"u8; + public static Utf8String PropRendererCreateOutputColorspaceNumber => "output_colorspace"u8; [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_PRESENT_VSYNC_BOOLEAN \"present_vsync\"")] - public static ReadOnlySpan PropRendererCreatePresentVsyncBoolean => "present_vsync"u8; + public static Utf8String PropRendererCreatePresentVsyncBoolean => "present_vsync"u8; [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_VULKAN_INSTANCE_POINTER \"vulkan.instance\"")] - public static ReadOnlySpan PropRendererCreateVulkanInstancePointer => "vulkan.instance"u8; + public static Utf8String PropRendererCreateVulkanInstancePointer => "vulkan.instance"u8; [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_VULKAN_SURFACE_NUMBER \"vulkan.surface\"")] - public static ReadOnlySpan PropRendererCreateVulkanSurfaceNumber => "vulkan.surface"u8; + public static Utf8String PropRendererCreateVulkanSurfaceNumber => "vulkan.surface"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_CREATE_VULKAN_PHYSICAL_DEVICE_POINTER \"vulkan.physical_device\"" )] - public static ReadOnlySpan PropRendererCreateVulkanPhysicalDevicePointer => + public static Utf8String PropRendererCreateVulkanPhysicalDevicePointer => "vulkan.physical_device"u8; [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_VULKAN_DEVICE_POINTER \"vulkan.device\"")] - public static ReadOnlySpan PropRendererCreateVulkanDevicePointer => "vulkan.device"u8; + public static Utf8String PropRendererCreateVulkanDevicePointer => "vulkan.device"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_CREATE_VULKAN_GRAPHICS_QUEUE_FAMILY_INDEX_NUMBER \"vulkan.graphics_queue_family_index\"" )] - public static ReadOnlySpan PropRendererCreateVulkanGraphicsQueueFamilyIndexNumber => + public static Utf8String PropRendererCreateVulkanGraphicsQueueFamilyIndexNumber => "vulkan.graphics_queue_family_index"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_CREATE_VULKAN_PRESENT_QUEUE_FAMILY_INDEX_NUMBER \"vulkan.present_queue_family_index\"" )] - public static ReadOnlySpan PropRendererCreateVulkanPresentQueueFamilyIndexNumber => + public static Utf8String PropRendererCreateVulkanPresentQueueFamilyIndexNumber => "vulkan.present_queue_family_index"u8; [NativeTypeName("#define SDL_PROP_RENDERER_NAME_STRING \"SDL.renderer.name\"")] - public static ReadOnlySpan PropRendererNameString => "SDL.renderer.name"u8; + public static Utf8String PropRendererNameString => "SDL.renderer.name"u8; [NativeTypeName("#define SDL_PROP_RENDERER_WINDOW_POINTER \"SDL.renderer.window\"")] - public static ReadOnlySpan PropRendererWindowPointer => "SDL.renderer.window"u8; + public static Utf8String PropRendererWindowPointer => "SDL.renderer.window"u8; [NativeTypeName("#define SDL_PROP_RENDERER_SURFACE_POINTER \"SDL.renderer.surface\"")] - public static ReadOnlySpan PropRendererSurfacePointer => "SDL.renderer.surface"u8; + public static Utf8String PropRendererSurfacePointer => "SDL.renderer.surface"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_OUTPUT_COLORSPACE_NUMBER \"SDL.renderer.output_colorspace\"" )] - public static ReadOnlySpan PropRendererOutputColorspaceNumber => + public static Utf8String PropRendererOutputColorspaceNumber => "SDL.renderer.output_colorspace"u8; [NativeTypeName("#define SDL_PROP_RENDERER_HDR_ENABLED_BOOLEAN \"SDL.renderer.HDR_enabled\"")] - public static ReadOnlySpan PropRendererHdrEnabledBoolean => "SDL.renderer.HDR_enabled"u8; + public static Utf8String PropRendererHdrEnabledBoolean => "SDL.renderer.HDR_enabled"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_SDR_WHITE_POINT_FLOAT \"SDL.renderer.SDR_white_point\"" )] - public static ReadOnlySpan PropRendererSdrWhitePointFloat => - "SDL.renderer.SDR_white_point"u8; + public static Utf8String PropRendererSdrWhitePointFloat => "SDL.renderer.SDR_white_point"u8; [NativeTypeName("#define SDL_PROP_RENDERER_HDR_HEADROOM_FLOAT \"SDL.renderer.HDR_headroom\"")] - public static ReadOnlySpan PropRendererHdrHeadroomFloat => "SDL.renderer.HDR_headroom"u8; + public static Utf8String PropRendererHdrHeadroomFloat => "SDL.renderer.HDR_headroom"u8; [NativeTypeName("#define SDL_PROP_RENDERER_D3D9_DEVICE_POINTER \"SDL.renderer.d3d9.device\"")] - public static ReadOnlySpan PropRendererD3D9DevicePointer => "SDL.renderer.d3d9.device"u8; + public static Utf8String PropRendererD3D9DevicePointer => "SDL.renderer.d3d9.device"u8; [NativeTypeName("#define SDL_PROP_RENDERER_D3D11_DEVICE_POINTER \"SDL.renderer.d3d11.device\"")] - public static ReadOnlySpan PropRendererD3D11DevicePointer => - "SDL.renderer.d3d11.device"u8; + public static Utf8String PropRendererD3D11DevicePointer => "SDL.renderer.d3d11.device"u8; [NativeTypeName("#define SDL_PROP_RENDERER_D3D12_DEVICE_POINTER \"SDL.renderer.d3d12.device\"")] - public static ReadOnlySpan PropRendererD3D12DevicePointer => - "SDL.renderer.d3d12.device"u8; + public static Utf8String PropRendererD3D12DevicePointer => "SDL.renderer.d3d12.device"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_D3D12_COMMAND_QUEUE_POINTER \"SDL.renderer.d3d12.command_queue\"" )] - public static ReadOnlySpan PropRendererD3D12CommandQueuePointer => + public static Utf8String PropRendererD3D12CommandQueuePointer => "SDL.renderer.d3d12.command_queue"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_VULKAN_INSTANCE_POINTER \"SDL.renderer.vulkan.instance\"" )] - public static ReadOnlySpan PropRendererVulkanInstancePointer => - "SDL.renderer.vulkan.instance"u8; + public static Utf8String PropRendererVulkanInstancePointer => "SDL.renderer.vulkan.instance"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_VULKAN_SURFACE_NUMBER \"SDL.renderer.vulkan.surface\"" )] - public static ReadOnlySpan PropRendererVulkanSurfaceNumber => - "SDL.renderer.vulkan.surface"u8; + public static Utf8String PropRendererVulkanSurfaceNumber => "SDL.renderer.vulkan.surface"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_VULKAN_PHYSICAL_DEVICE_POINTER \"SDL.renderer.vulkan.physical_device\"" )] - public static ReadOnlySpan PropRendererVulkanPhysicalDevicePointer => + public static Utf8String PropRendererVulkanPhysicalDevicePointer => "SDL.renderer.vulkan.physical_device"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_VULKAN_DEVICE_POINTER \"SDL.renderer.vulkan.device\"" )] - public static ReadOnlySpan PropRendererVulkanDevicePointer => - "SDL.renderer.vulkan.device"u8; + public static Utf8String PropRendererVulkanDevicePointer => "SDL.renderer.vulkan.device"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_VULKAN_GRAPHICS_QUEUE_FAMILY_INDEX_NUMBER \"SDL.renderer.vulkan.graphics_queue_family_index\"" )] - public static ReadOnlySpan PropRendererVulkanGraphicsQueueFamilyIndexNumber => + public static Utf8String PropRendererVulkanGraphicsQueueFamilyIndexNumber => "SDL.renderer.vulkan.graphics_queue_family_index"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_VULKAN_PRESENT_QUEUE_FAMILY_INDEX_NUMBER \"SDL.renderer.vulkan.present_queue_family_index\"" )] - public static ReadOnlySpan PropRendererVulkanPresentQueueFamilyIndexNumber => + public static Utf8String PropRendererVulkanPresentQueueFamilyIndexNumber => "SDL.renderer.vulkan.present_queue_family_index"u8; [NativeTypeName( "#define SDL_PROP_RENDERER_VULKAN_SWAPCHAIN_IMAGE_COUNT_NUMBER \"SDL.renderer.vulkan.swapchain_image_count\"" )] - public static ReadOnlySpan PropRendererVulkanSwapchainImageCountNumber => + public static Utf8String PropRendererVulkanSwapchainImageCountNumber => "SDL.renderer.vulkan.swapchain_image_count"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_COLORSPACE_NUMBER \"colorspace\"")] - public static ReadOnlySpan PropTextureCreateColorspaceNumber => "colorspace"u8; + public static Utf8String PropTextureCreateColorspaceNumber => "colorspace"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_FORMAT_NUMBER \"format\"")] - public static ReadOnlySpan PropTextureCreateFormatNumber => "format"u8; + public static Utf8String PropTextureCreateFormatNumber => "format"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_ACCESS_NUMBER \"access\"")] - public static ReadOnlySpan PropTextureCreateAccessNumber => "access"u8; + public static Utf8String PropTextureCreateAccessNumber => "access"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_WIDTH_NUMBER \"width\"")] - public static ReadOnlySpan PropTextureCreateWidthNumber => "width"u8; + public static Utf8String PropTextureCreateWidthNumber => "width"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_HEIGHT_NUMBER \"height\"")] - public static ReadOnlySpan PropTextureCreateHeightNumber => "height"u8; + public static Utf8String PropTextureCreateHeightNumber => "height"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_SDR_WHITE_POINT_FLOAT \"SDR_white_point\"")] - public static ReadOnlySpan PropTextureCreateSdrWhitePointFloat => "SDR_white_point"u8; + public static Utf8String PropTextureCreateSdrWhitePointFloat => "SDR_white_point"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_HDR_HEADROOM_FLOAT \"HDR_headroom\"")] - public static ReadOnlySpan PropTextureCreateHdrHeadroomFloat => "HDR_headroom"u8; + public static Utf8String PropTextureCreateHdrHeadroomFloat => "HDR_headroom"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_POINTER \"d3d11.texture\"")] - public static ReadOnlySpan PropTextureCreateD3D11TexturePointer => "d3d11.texture"u8; + public static Utf8String PropTextureCreateD3D11TexturePointer => "d3d11.texture"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_U_POINTER \"d3d11.texture_u\"")] - public static ReadOnlySpan PropTextureCreateD3D11TextureUPointer => "d3d11.texture_u"u8; + public static Utf8String PropTextureCreateD3D11TextureUPointer => "d3d11.texture_u"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_V_POINTER \"d3d11.texture_v\"")] - public static ReadOnlySpan PropTextureCreateD3D11TextureVPointer => "d3d11.texture_v"u8; + public static Utf8String PropTextureCreateD3D11TextureVPointer => "d3d11.texture_v"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D12_TEXTURE_POINTER \"d3d12.texture\"")] - public static ReadOnlySpan PropTextureCreateD3D12TexturePointer => "d3d12.texture"u8; + public static Utf8String PropTextureCreateD3D12TexturePointer => "d3d12.texture"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D12_TEXTURE_U_POINTER \"d3d12.texture_u\"")] - public static ReadOnlySpan PropTextureCreateD3D12TextureUPointer => "d3d12.texture_u"u8; + public static Utf8String PropTextureCreateD3D12TextureUPointer => "d3d12.texture_u"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D12_TEXTURE_V_POINTER \"d3d12.texture_v\"")] - public static ReadOnlySpan PropTextureCreateD3D12TextureVPointer => "d3d12.texture_v"u8; + public static Utf8String PropTextureCreateD3D12TextureVPointer => "d3d12.texture_v"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_CREATE_METAL_PIXELBUFFER_POINTER \"metal.pixelbuffer\"" )] - public static ReadOnlySpan PropTextureCreateMetalPixelbufferPointer => - "metal.pixelbuffer"u8; + public static Utf8String PropTextureCreateMetalPixelbufferPointer => "metal.pixelbuffer"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_NUMBER \"opengl.texture\"")] - public static ReadOnlySpan PropTextureCreateOpenglTextureNumber => "opengl.texture"u8; + public static Utf8String PropTextureCreateOpenglTextureNumber => "opengl.texture"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_UV_NUMBER \"opengl.texture_uv\"" )] - public static ReadOnlySpan PropTextureCreateOpenglTextureUvNumber => - "opengl.texture_uv"u8; + public static Utf8String PropTextureCreateOpenglTextureUvNumber => "opengl.texture_uv"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_U_NUMBER \"opengl.texture_u\"")] - public static ReadOnlySpan PropTextureCreateOpenglTextureUNumber => "opengl.texture_u"u8; + public static Utf8String PropTextureCreateOpenglTextureUNumber => "opengl.texture_u"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_V_NUMBER \"opengl.texture_v\"")] - public static ReadOnlySpan PropTextureCreateOpenglTextureVNumber => "opengl.texture_v"u8; + public static Utf8String PropTextureCreateOpenglTextureVNumber => "opengl.texture_v"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_NUMBER \"opengles2.texture\"" )] - public static ReadOnlySpan PropTextureCreateOpengles2TextureNumber => - "opengles2.texture"u8; + public static Utf8String PropTextureCreateOpengles2TextureNumber => "opengles2.texture"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_UV_NUMBER \"opengles2.texture_uv\"" )] - public static ReadOnlySpan PropTextureCreateOpengles2TextureUvNumber => - "opengles2.texture_uv"u8; + public static Utf8String PropTextureCreateOpengles2TextureUvNumber => "opengles2.texture_uv"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_U_NUMBER \"opengles2.texture_u\"" )] - public static ReadOnlySpan PropTextureCreateOpengles2TextureUNumber => - "opengles2.texture_u"u8; + public static Utf8String PropTextureCreateOpengles2TextureUNumber => "opengles2.texture_u"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_V_NUMBER \"opengles2.texture_v\"" )] - public static ReadOnlySpan PropTextureCreateOpengles2TextureVNumber => - "opengles2.texture_v"u8; + public static Utf8String PropTextureCreateOpengles2TextureVNumber => "opengles2.texture_v"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_VULKAN_TEXTURE_NUMBER \"vulkan.texture\"")] - public static ReadOnlySpan PropTextureCreateVulkanTextureNumber => "vulkan.texture"u8; + public static Utf8String PropTextureCreateVulkanTextureNumber => "vulkan.texture"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_COLORSPACE_NUMBER \"SDL.texture.colorspace\"")] - public static ReadOnlySpan PropTextureColorspaceNumber => "SDL.texture.colorspace"u8; + public static Utf8String PropTextureColorspaceNumber => "SDL.texture.colorspace"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_SDR_WHITE_POINT_FLOAT \"SDL.texture.SDR_white_point\"" )] - public static ReadOnlySpan PropTextureSdrWhitePointFloat => - "SDL.texture.SDR_white_point"u8; + public static Utf8String PropTextureSdrWhitePointFloat => "SDL.texture.SDR_white_point"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_HDR_HEADROOM_FLOAT \"SDL.texture.HDR_headroom\"")] - public static ReadOnlySpan PropTextureHdrHeadroomFloat => "SDL.texture.HDR_headroom"u8; + public static Utf8String PropTextureHdrHeadroomFloat => "SDL.texture.HDR_headroom"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_D3D11_TEXTURE_POINTER \"SDL.texture.d3d11.texture\"")] - public static ReadOnlySpan PropTextureD3D11TexturePointer => - "SDL.texture.d3d11.texture"u8; + public static Utf8String PropTextureD3D11TexturePointer => "SDL.texture.d3d11.texture"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_D3D11_TEXTURE_U_POINTER \"SDL.texture.d3d11.texture_u\"" )] - public static ReadOnlySpan PropTextureD3D11TextureUPointer => - "SDL.texture.d3d11.texture_u"u8; + public static Utf8String PropTextureD3D11TextureUPointer => "SDL.texture.d3d11.texture_u"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_D3D11_TEXTURE_V_POINTER \"SDL.texture.d3d11.texture_v\"" )] - public static ReadOnlySpan PropTextureD3D11TextureVPointer => - "SDL.texture.d3d11.texture_v"u8; + public static Utf8String PropTextureD3D11TextureVPointer => "SDL.texture.d3d11.texture_v"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_D3D12_TEXTURE_POINTER \"SDL.texture.d3d12.texture\"")] - public static ReadOnlySpan PropTextureD3D12TexturePointer => - "SDL.texture.d3d12.texture"u8; + public static Utf8String PropTextureD3D12TexturePointer => "SDL.texture.d3d12.texture"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_D3D12_TEXTURE_U_POINTER \"SDL.texture.d3d12.texture_u\"" )] - public static ReadOnlySpan PropTextureD3D12TextureUPointer => - "SDL.texture.d3d12.texture_u"u8; + public static Utf8String PropTextureD3D12TextureUPointer => "SDL.texture.d3d12.texture_u"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_D3D12_TEXTURE_V_POINTER \"SDL.texture.d3d12.texture_v\"" )] - public static ReadOnlySpan PropTextureD3D12TextureVPointer => - "SDL.texture.d3d12.texture_v"u8; + public static Utf8String PropTextureD3D12TextureVPointer => "SDL.texture.d3d12.texture_v"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_OPENGL_TEXTURE_NUMBER \"SDL.texture.opengl.texture\"" )] - public static ReadOnlySpan PropTextureOpenglTextureNumber => - "SDL.texture.opengl.texture"u8; + public static Utf8String PropTextureOpenglTextureNumber => "SDL.texture.opengl.texture"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_OPENGL_TEXTURE_UV_NUMBER \"SDL.texture.opengl.texture_uv\"" )] - public static ReadOnlySpan PropTextureOpenglTextureUvNumber => - "SDL.texture.opengl.texture_uv"u8; + public static Utf8String PropTextureOpenglTextureUvNumber => "SDL.texture.opengl.texture_uv"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_OPENGL_TEXTURE_U_NUMBER \"SDL.texture.opengl.texture_u\"" )] - public static ReadOnlySpan PropTextureOpenglTextureUNumber => - "SDL.texture.opengl.texture_u"u8; + public static Utf8String PropTextureOpenglTextureUNumber => "SDL.texture.opengl.texture_u"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_OPENGL_TEXTURE_V_NUMBER \"SDL.texture.opengl.texture_v\"" )] - public static ReadOnlySpan PropTextureOpenglTextureVNumber => - "SDL.texture.opengl.texture_v"u8; + public static Utf8String PropTextureOpenglTextureVNumber => "SDL.texture.opengl.texture_v"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_OPENGL_TEXTURE_TARGET_NUMBER \"SDL.texture.opengl.target\"" )] - public static ReadOnlySpan PropTextureOpenglTextureTargetNumber => - "SDL.texture.opengl.target"u8; + public static Utf8String PropTextureOpenglTextureTargetNumber => "SDL.texture.opengl.target"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_OPENGL_TEX_W_FLOAT \"SDL.texture.opengl.tex_w\"")] - public static ReadOnlySpan PropTextureOpenglTexWFloat => "SDL.texture.opengl.tex_w"u8; + public static Utf8String PropTextureOpenglTexWFloat => "SDL.texture.opengl.tex_w"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_OPENGL_TEX_H_FLOAT \"SDL.texture.opengl.tex_h\"")] - public static ReadOnlySpan PropTextureOpenglTexHFloat => "SDL.texture.opengl.tex_h"u8; + public static Utf8String PropTextureOpenglTexHFloat => "SDL.texture.opengl.tex_h"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_OPENGLES2_TEXTURE_NUMBER \"SDL.texture.opengles2.texture\"" )] - public static ReadOnlySpan PropTextureOpengles2TextureNumber => - "SDL.texture.opengles2.texture"u8; + public static Utf8String PropTextureOpengles2TextureNumber => "SDL.texture.opengles2.texture"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_OPENGLES2_TEXTURE_UV_NUMBER \"SDL.texture.opengles2.texture_uv\"" )] - public static ReadOnlySpan PropTextureOpengles2TextureUvNumber => + public static Utf8String PropTextureOpengles2TextureUvNumber => "SDL.texture.opengles2.texture_uv"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_OPENGLES2_TEXTURE_U_NUMBER \"SDL.texture.opengles2.texture_u\"" )] - public static ReadOnlySpan PropTextureOpengles2TextureUNumber => + public static Utf8String PropTextureOpengles2TextureUNumber => "SDL.texture.opengles2.texture_u"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_OPENGLES2_TEXTURE_V_NUMBER \"SDL.texture.opengles2.texture_v\"" )] - public static ReadOnlySpan PropTextureOpengles2TextureVNumber => + public static Utf8String PropTextureOpengles2TextureVNumber => "SDL.texture.opengles2.texture_v"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_OPENGLES2_TEXTURE_TARGET_NUMBER \"SDL.texture.opengles2.target\"" )] - public static ReadOnlySpan PropTextureOpengles2TextureTargetNumber => + public static Utf8String PropTextureOpengles2TextureTargetNumber => "SDL.texture.opengles2.target"u8; [NativeTypeName( "#define SDL_PROP_TEXTURE_VULKAN_TEXTURE_NUMBER \"SDL.texture.vulkan.texture\"" )] - public static ReadOnlySpan PropTextureVulkanTextureNumber => - "SDL.texture.vulkan.texture"u8; + public static Utf8String PropTextureVulkanTextureNumber => "SDL.texture.vulkan.texture"u8; [NativeTypeName("#define SDL_PROP_GLOBAL_SYSTEM_DATE_FORMAT_NUMBER \"SDL.time.date_format\"")] - public static ReadOnlySpan PropGlobalSystemDateFormatNumber => "SDL.time.date_format"u8; + public static Utf8String PropGlobalSystemDateFormatNumber => "SDL.time.date_format"u8; [NativeTypeName("#define SDL_PROP_GLOBAL_SYSTEM_TIME_FORMAT_NUMBER \"SDL.time.time_format\"")] - public static ReadOnlySpan PropGlobalSystemTimeFormatNumber => "SDL.time.time_format"u8; + public static Utf8String PropGlobalSystemTimeFormatNumber => "SDL.time.time_format"u8; [NativeTypeName("#define SDL_MS_PER_SECOND 1000")] public const int MsPerSecond = 1000; diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs b/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs index cbb81a8401..47feeffc0b 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs @@ -26,7 +26,8 @@ public class ModLoader nameof(MixKhronosData) => typeof(MixKhronosData), nameof(TransformHandles) => typeof(TransformHandles), nameof(ExtractNestedTyping) => typeof(ExtractNestedTyping), + nameof(TransformProperties) => typeof(TransformProperties), nameof(ClangScraper) => typeof(ClangScraper), - _ => null + _ => null, }; } diff --git a/sources/SilkTouch/SilkTouch/Mods/TransformProperties.cs b/sources/SilkTouch/SilkTouch/Mods/TransformProperties.cs new file mode 100644 index 0000000000..bed5366d8a --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Mods/TransformProperties.cs @@ -0,0 +1,67 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Threading; +using System.Threading.Tasks; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; + +namespace Silk.NET.SilkTouch.Mods; + +/// +/// Applies transformations to property signatures. +/// +/// +/// Today, this only includes transforming properties like static ReadOnlySpan<byte> Thing => "thing"u8; +/// to be static Utf8String Thing => "thing"u8;. +/// +public class TransformProperties : IMod +{ + /// + public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) + { + var rw = new Rewriter(); + var proj = ctx.SourceProject; + foreach (var docId in ctx.SourceProject?.DocumentIds ?? []) + { + var doc = + proj!.GetDocument(docId) ?? throw new InvalidOperationException("Document missing"); + if (await doc.GetSyntaxRootAsync(ct) is { } root) + { + proj = doc.WithSyntaxRoot(rw.Visit(root)).Project; + } + } + + ctx.SourceProject = proj; + } + + private class Rewriter : CSharpSyntaxRewriter + { + public override SyntaxNode? VisitPropertyDeclaration(PropertyDeclarationSyntax node) + { + if ( + node.Modifiers.Any(SyntaxKind.StaticKeyword) + && node.Type + is GenericNameSyntax + { + TypeArgumentList.Arguments: [PredefinedTypeSyntax pt], + Identifier.Text: "ReadOnlySpan" + } + && ( + pt.Keyword.IsKind(SyntaxKind.ByteKeyword) + || pt.Keyword.IsKind(SyntaxKind.SByteKeyword) + ) + && node.ExpressionBody is { Expression: LiteralExpressionSyntax lit } + && lit.IsKind(SyntaxKind.Utf8StringLiteralExpression) + ) + { + node = node.WithType(IdentifierName("Utf8String")).NormalizeWhitespace(); + } + + return base.VisitPropertyDeclaration(node); + } + } +} diff --git a/tests/Core/Core/Ref2DTests.cs b/tests/Core/Core/Ref2DTests.cs index 2821df2f67..c752ea8250 100644 --- a/tests/Core/Core/Ref2DTests.cs +++ b/tests/Core/Core/Ref2DTests.cs @@ -52,6 +52,56 @@ public void SingleStringPtrUtf32FromSpan() Assert.That(thingPtr.ReadToStringArray(length: 1)?[0], Is.EqualTo(STR_1)); } + [Test] + public void SingleStringPtrUtf8FromReadOnlySpan() + { + ReadOnlySpan thing = Encoding.UTF8.GetBytes(STR_1 + "\0"); + var thingPtr = thing.AsRef2D(); + Assert.That((string)thingPtr.Ref, Is.EqualTo(STR_1)); + Assert.That((string)thingPtr[0], Is.EqualTo(STR_1)); + Assert.That(thingPtr[0][0], Is.EqualTo(STR_1[0])); + Assert.That( + Encoding.UTF8.GetString(thingPtr[0].AsSpan(Encoding.UTF8.GetByteCount(STR_1))), + Is.EqualTo(STR_1) + ); + Assert.That(thingPtr.ReadToStringArray(length: 1)?[0], Is.EqualTo(STR_1)); + } + + [Test] + public unsafe void SingleStringPtrUtf16FromReadOnlySpan() + { + ReadOnlySpan thing = MemoryMarshal.Cast( + Encoding.Unicode.GetBytes(STR_1 + "\0") + ); + var thingPtr = thing.AsRef2D(); + Assert.That((string)thingPtr.Ref, Is.EqualTo(STR_1)); + Assert.That((string)thingPtr[0], Is.EqualTo(STR_1)); + Assert.That(thingPtr[0][0], Is.EqualTo(STR_1[0])); + Assert.That(thingPtr[0].AsSpan(STR_1.Length).ToString(), Is.EqualTo(STR_1)); + Assert.That(thingPtr.ReadToStringArray(length: 1)?[0], Is.EqualTo(STR_1)); + } + + [Test] + public void SingleStringPtrUtf32FromReadOnlySpan() + { + ReadOnlySpan thing = MemoryMarshal.Cast( + Encoding.UTF32.GetBytes(STR_1 + "\0") + ); + var thingPtr = thing.AsRef2D(); + Assert.That((string)thingPtr.Ref, Is.EqualTo(STR_1)); + Assert.That((string)thingPtr[0], Is.EqualTo(STR_1)); + Assert.That(thingPtr[0][0], Is.EqualTo(STR_1[0])); + Assert.That( + Encoding.UTF32.GetString( + MemoryMarshal.Cast( + thingPtr[0].AsSpan(Encoding.UTF32.GetByteCount(STR_1) / 4) + ) + ), + Is.EqualTo(STR_1) + ); + Assert.That(thingPtr.ReadToStringArray(length: 1)?[0], Is.EqualTo(STR_1)); + } + [Test] public unsafe void SingleStringPtrUtf8FromPointerArray() { @@ -123,7 +173,7 @@ public unsafe void SingleStringPtrUtf16FromJaggedArray() { Ref2D thingPtr = new[] { - MemoryMarshal.Cast(Encoding.Unicode.GetBytes(STR_1 + "\0")).ToArray() + MemoryMarshal.Cast(Encoding.Unicode.GetBytes(STR_1 + "\0")).ToArray(), }; Assert.That((string)thingPtr.Ref, Is.EqualTo(STR_1)); Assert.That((string)thingPtr[0], Is.EqualTo(STR_1)); @@ -137,7 +187,7 @@ public unsafe void SingleStringPtrUtf32FromJaggedArray() { Ref2D thingPtr = new[] { - MemoryMarshal.Cast(Encoding.UTF32.GetBytes(STR_1 + "\0")).ToArray() + MemoryMarshal.Cast(Encoding.UTF32.GetBytes(STR_1 + "\0")).ToArray(), }; Assert.That((string)thingPtr.Ref, Is.EqualTo(STR_1)); Assert.That((string)thingPtr[0], Is.EqualTo(STR_1)); diff --git a/tests/Core/Core/RefTests.cs b/tests/Core/Core/RefTests.cs index 3c9136dd24..b011577bec 100644 --- a/tests/Core/Core/RefTests.cs +++ b/tests/Core/Core/RefTests.cs @@ -10,14 +10,21 @@ public class RefTests public void SingleStringUtf8FromByteArray() { Ref thing = Encoding.UTF8.GetBytes(STR_1 + "\0"); - Assert.That((string) thing, Is.EqualTo(STR_1)); + Assert.That((string)thing, Is.EqualTo(STR_1)); } [Test] public void SingleStringUtf8FromSpan() { Ref thing = Encoding.UTF8.GetBytes(STR_1 + "\0").AsSpan(); - Assert.That((string) thing, Is.EqualTo(STR_1)); + Assert.That((string)thing, Is.EqualTo(STR_1)); + } + + [Test] + public void SingleStringUtf8FromReadOnlySpan() + { + Ref thing = (ReadOnlySpan)Encoding.UTF8.GetBytes(STR_1 + "\0").AsSpan(); + Assert.That((string)thing, Is.EqualTo(STR_1)); } [Test] @@ -34,14 +41,21 @@ public unsafe void SingleStringUtf8FromRawPointer() public void SingleStringUtf16FromByteArray() { Ref thing = STR_1.ToArray(); - Assert.That((string) thing, Is.EqualTo(STR_1)); + Assert.That((string)thing, Is.EqualTo(STR_1)); } [Test] public void SingleStringUtf16FromSpan() { Ref thing = STR_1.AsSpan().ToArray().AsSpan(); - Assert.That((string) thing, Is.EqualTo(STR_1)); + Assert.That((string)thing, Is.EqualTo(STR_1)); + } + + [Test] + public void SingleStringUtf16FromReadOnlySpan() + { + Ref thing = (ReadOnlySpan)STR_1.AsSpan().ToArray().AsSpan(); + Assert.That((string)thing, Is.EqualTo(STR_1)); } [Test] @@ -57,15 +71,26 @@ public unsafe void SingleStringUtf16FromRawPointer() [Test] public void SingleStringUtf32FromByteArray() { - Ref thing = MemoryMarshal.Cast(Encoding.UTF32.GetBytes(STR_1 + "\0")).ToArray(); - Assert.That((string) thing, Is.EqualTo(STR_1)); + Ref thing = MemoryMarshal + .Cast(Encoding.UTF32.GetBytes(STR_1 + "\0")) + .ToArray(); + Assert.That((string)thing, Is.EqualTo(STR_1)); } [Test] public void SingleStringUtf32FromSpan() { Ref thing = MemoryMarshal.Cast(Encoding.UTF32.GetBytes(STR_1 + "\0")); - Assert.That((string) thing, Is.EqualTo(STR_1)); + Assert.That((string)thing, Is.EqualTo(STR_1)); + } + + [Test] + public void SingleStringUtf32FromReadOnlySpan() + { + Ref thing = + (ReadOnlySpan) + MemoryMarshal.Cast(Encoding.UTF32.GetBytes(STR_1 + "\0")); + Assert.That((string)thing, Is.EqualTo(STR_1)); } [Test] @@ -85,7 +110,7 @@ public unsafe void NullIsNull() Assert.That(Unsafe.IsNullRef(ref Unsafe.AsRef(in ptr.Handle)), Is.True); Assert.That(Unsafe.IsNullRef(ref Unsafe.AsRef(in ptr[0])), Is.True); Assert.That(Unsafe.IsNullRef(ref Unsafe.AsRef(in ptr.GetPinnableReference())), Is.True); - Assert.That((nint*) ptr is null, Is.True); - Assert.That((void*) ptr is null, Is.True); + Assert.That((nint*)ptr is null, Is.True); + Assert.That((void*)ptr is null, Is.True); } } From a7c35a0bf9d1a308003bb8c6e265985ecba6bc0e Mon Sep 17 00:00:00 2001 From: Dylan Perks Date: Sat, 16 Nov 2024 22:34:23 +0000 Subject: [PATCH 2/8] Move bakery functionality into a mod separate from SupportedApiProfiles --- generator.json | 15 +- sources/OpenGL/OpenGL/Enums/GLEnum.gen.cs | 2 +- sources/OpenGL/OpenGL/gl/GL.gen.cs | 6 +- .../SilkTouch/Mods/AddApiProfiles.cs | 819 ++---------------- .../SilkTouch/Mods/BakeSourceSets.cs | 480 ++++++++++ .../SilkTouch/Mods/Bakery/BakeSet.cs | 19 + .../SilkTouch/Mods/Bakery/BakedMember.cs | 15 + .../Mods/Bakery/DefaultBakeStrategy.cs | 262 ++++++ .../SilkTouch/Mods/Bakery/IBakeStrategy.cs | 32 + .../SilkTouch/Mods/Common/ModLoader.cs | 1 + .../SilkTouch/Mods/Metadata/MetadataUtils.cs | 92 +- .../SilkTouch/ServiceCollectionExtensions.cs | 3 + 12 files changed, 993 insertions(+), 753 deletions(-) create mode 100644 sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs create mode 100644 sources/SilkTouch/SilkTouch/Mods/Bakery/BakeSet.cs create mode 100644 sources/SilkTouch/SilkTouch/Mods/Bakery/BakedMember.cs create mode 100644 sources/SilkTouch/SilkTouch/Mods/Bakery/DefaultBakeStrategy.cs create mode 100644 sources/SilkTouch/SilkTouch/Mods/Bakery/IBakeStrategy.cs diff --git a/generator.json b/generator.json index f627a041ab..6921658b9a 100644 --- a/generator.json +++ b/generator.json @@ -72,6 +72,7 @@ "AddIncludes", "ClangScraper", "AddApiProfiles", + "BakeSourceSets", "MixKhronosData", "AddOpaqueStructs", "TransformFunctions", @@ -89,29 +90,33 @@ "Profiles": [ { "Profile": "gl", - "SourceSubdirectory": "glcompat", - "BakedOutputSubdirectory": "gl" + "SourceSubdirectory": "glcompat" }, { "Profile": "glcore", "SourceSubdirectory": "glcore", - "BakedOutputSubdirectory": "gl", "MinVersion": "3.2" }, { "Profile": "gles1", "SourceSubdirectory": "gles1", - "BakedOutputSubdirectory": "gl", "MaxVersion": "2.0" }, { "Profile": "gles2", "SourceSubdirectory": "gles2", - "BakedOutputSubdirectory": "gl", "MinVersion": "2.0" } ] }, + "BakeSourceSets": { + "SourceSets": { + "glcompat": "gl", + "glcore": "gl", + "gles1": "gl", + "gles2": "gl" + } + }, "AddOpaqueStructs": { "Names": [ "GLsync" diff --git a/sources/OpenGL/OpenGL/Enums/GLEnum.gen.cs b/sources/OpenGL/OpenGL/Enums/GLEnum.gen.cs index af6137ad5e..b57750cb91 100644 --- a/sources/OpenGL/OpenGL/Enums/GLEnum.gen.cs +++ b/sources/OpenGL/OpenGL/Enums/GLEnum.gen.cs @@ -3194,7 +3194,7 @@ public enum GLEnum : uint LayoutDepthAttachmentStencilReadOnlyEXT = unchecked((uint)0x9531), HandleTypeD3D12FenceEXT = unchecked((uint)0x9594), D3D12FenceValueEXT = unchecked((uint)0x9595), - ActiveProgramEXT = unchecked((uint)0x8B8D), + ActiveProgramEXT = unchecked((uint)0x8259), LightModelColorControlEXT = unchecked((uint)0x81F8), SingleColorEXT = unchecked((uint)0x81F9), SeparateSpecularColorEXT = unchecked((uint)0x81FA), diff --git a/sources/OpenGL/OpenGL/gl/GL.gen.cs b/sources/OpenGL/OpenGL/gl/GL.gen.cs index f581b93235..25894ec802 100644 --- a/sources/OpenGL/OpenGL/gl/GL.gen.cs +++ b/sources/OpenGL/OpenGL/gl/GL.gen.cs @@ -7,10 +7,10 @@ namespace Silk.NET.OpenGL; -[SupportedApiProfile("gles1", MaxVersion = "2.0")] -[SupportedApiProfile("gles2", MinVersion = "2.0")] -[SupportedApiProfile("glcore", MinVersion = "3.2")] [SupportedApiProfile("gl")] +[SupportedApiProfile("glcore", MinVersion = "3.2")] +[SupportedApiProfile("gles2", MinVersion = "2.0")] +[SupportedApiProfile("gles1", MaxVersion = "2.0")] public unsafe partial class GL : IGL, IGL.Static { public partial class DllImport : IGL.Static diff --git a/sources/SilkTouch/SilkTouch/Mods/AddApiProfiles.cs b/sources/SilkTouch/SilkTouch/Mods/AddApiProfiles.cs index 0700a3f18b..dcb5f1e16b 100644 --- a/sources/SilkTouch/SilkTouch/Mods/AddApiProfiles.cs +++ b/sources/SilkTouch/SilkTouch/Mods/AddApiProfiles.cs @@ -1,12 +1,9 @@ -using System; +using System; using System.Collections.Generic; -using System.Collections.Immutable; using System.Diagnostics; -using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; -using Humanizer; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; @@ -19,7 +16,7 @@ namespace Silk.NET.SilkTouch.Mods; /// -/// Adds SupportedApiProfile attributes to APIs in given source roots, optionally merging APIs into a single source set. +/// Adds SupportedApiProfile attributes to APIs in given source roots. /// /// The logger to use. /// The configuration snapshot. @@ -53,12 +50,6 @@ public record Configuration /// APIs declared in this relative source root are part of this profile. /// public required string SourceSubdirectory { get; init; } - - /// - /// If provided, merge and deduplicate ("bake") the APIs contained in the into - /// this root with any other profiles being baked into this root. - /// - public string? BakedOutputSubdirectory { get; init; } } class Rewriter( @@ -66,211 +57,77 @@ class Rewriter( IEnumerable< IApiMetadataProvider> > versionProviders - ) : ModCSharpSyntaxRewriter + ) : CSharpSyntaxRewriter { - public BakeSet? Baked { get; set; } - public ApiProfileDecl? Profile { get; set; } - public ILogger? Logger { get; set; } + private string? _currentParentSymbol; - private SupportedApiProfileAttribute GetVersionInfo( - string? parentSymbol = null, - string? childSymbol = null - ) + private AttributeSyntax GetProfileAttribute(string? childSymbol) { Debug.Assert(Profile is not null); - if (parentSymbol is null) - { - return Profile; - } - - SupportedApiProfileAttribute? parent = null; - foreach (var apimd in versionProviders) - { - if ( - childSymbol is not null - && apimd.TryGetChildSymbolMetadata( - jobKey, - parentSymbol, - childSymbol, - out var vers - ) - && vers.FirstOrDefault(x => x.Profile == Profile.Profile) is { } ver + return versionProviders + .GetMetadata( + jobKey, + _currentParentSymbol, + childSymbol, + x => x.Profile == Profile.Profile, + Profile ) - { - return ver; - } - - if ( - apimd.TryGetSymbolMetadata(jobKey, parentSymbol, out var parentVers) - && ( - parent = - parentVers.FirstOrDefault(x => x.Profile == Profile.Profile) ?? parent - ) - is not null - && childSymbol is null - ) - { - break; - } - } - - return parent ?? Profile; + .GetSupportedApiProfileAttribute(); } - private string? _currentParentSymbol; - - private AttributeSyntax GetProfileAttribute(string? childSymbol) => - GetVersionInfo(_currentParentSymbol, childSymbol).GetSupportedApiProfileAttribute(); - - // Allowable type members for baking (we need to override these): - // - [x] FieldDeclarationSyntax (VariableDeclarator) - // - [x] EventFieldDeclarationSyntax - // - [x] EventDeclarationSyntax - // - [x] IndexerDeclarationSyntax - // - [x] PropertyDeclarationSyntax - // - [x] DelegateDeclarationSyntax - // - [x] BaseMethodDeclarationSyntax: - // - [x] ConstructorDeclarationSyntax - // - [x] ConversionOperatorDeclarationSyntax - // - [x] DestructorDeclarationSyntax - // - [x] MethodDeclarationSyntax - // - [x] OperatorDeclarationSyntax - // - [x] EnumMemberDeclarationSyntax - // - // Additional allowed members (done for free by GetOrRegisterTypeBakeSet) - // - [x] StructDeclarationSyntax - // - [x] ClassDeclarationSyntax - // - [x] EnumDeclarationSyntax - // - [x] RecordDeclarationSyntax - // - [x] InterfaceDeclarationSyntax - public override SyntaxNode? VisitDelegateDeclaration(DelegateDeclarationSyntax node) => - Visit( - node, - node.Identifier.ToString(), - node.Identifier - + ( - node is { TypeParameterList.Parameters.Count: > 0 and var cnt } - ? $"`{cnt}" - : string.Empty - ), - base.VisitDelegateDeclaration - ); + Visit(node, node.Identifier.ToString(), base.VisitDelegateDeclaration); public override SyntaxNode? VisitEventDeclaration(EventDeclarationSyntax node) => - Visit( - node, - node.Identifier.ToString(), - node.Identifier.ToString(), - base.VisitEventDeclaration - ); + Visit(node, node.Identifier.ToString(), base.VisitEventDeclaration); public override SyntaxNode? VisitPropertyDeclaration(PropertyDeclarationSyntax node) => - Visit( - node, - node.Identifier.ToString(), - node.Identifier.ToString(), - base.VisitPropertyDeclaration - ); + Visit(node, node.Identifier.ToString(), base.VisitPropertyDeclaration); public override SyntaxNode? VisitEnumMemberDeclaration(EnumMemberDeclarationSyntax node) => - Visit( - node, - node.Identifier.ToString(), - node.Identifier.ToString(), - base.VisitEnumMemberDeclaration - ); + Visit(node, node.Identifier.ToString(), base.VisitEnumMemberDeclaration); public override SyntaxNode? VisitIndexerDeclaration(IndexerDeclarationSyntax node) => - Visit( + Visit(node, null, base.VisitIndexerDeclaration); + + public override SyntaxNode? VisitFieldDeclaration(FieldDeclarationSyntax node) + { + Debug.Assert(node.Declaration.Variables.Count == 1); + return Visit( node, - null, - $"this[{string.Join(", ", node.ParameterList.Parameters.Select(ModUtils.DiscrimStr))}]", - base.VisitIndexerDeclaration + node.Declaration.Variables[0].Identifier.ToString(), + base.VisitFieldDeclaration ); + } - public override SyntaxNode? VisitFieldDeclaration(FieldDeclarationSyntax node) => - VisitField(node, base.VisitFieldDeclaration); - - public override SyntaxNode? VisitEventFieldDeclaration(EventFieldDeclarationSyntax node) => - VisitField(node, base.VisitEventFieldDeclaration); - - public override SyntaxNode? VisitVariableDeclarator(VariableDeclaratorSyntax node) => - node.FirstAncestorOrSelf() is { } baseFld - && node.FirstAncestorOrSelf() is { } varDecl - ? Visit( - // We want to add just this one specific individual standalone field. - baseFld.WithDeclaration(varDecl.WithVariables(SingletonSeparatedList(node))), - // But we're visiting the inner declarator representing that field. - node, - // So we discriminate using the identifier of the field's declarator (which should be guaranteed to - // be unique as you can't have differing fields with the same name) - node.Identifier.ToString(), - node.Identifier.ToString(), - // And if for whatever reason we can't continue on with the baking logic, we carry on to the base - // inner declarator visitation logic as usual. - base.VisitVariableDeclarator - ) - : base.VisitVariableDeclarator(node); + public override SyntaxNode? VisitEventFieldDeclaration(EventFieldDeclarationSyntax node) + { + Debug.Assert(node.Declaration.Variables.Count == 1); + return Visit( + node, + node.Declaration.Variables[0].Identifier.ToString(), + base.VisitEventFieldDeclaration + ); + } public override SyntaxNode? VisitConstructorDeclaration( ConstructorDeclarationSyntax node - ) => - Visit( - node, - null, - ModUtils.DiscrimStr(node.Modifiers, null, string.Empty, node.ParameterList, null), - base.VisitConstructorDeclaration - ); + ) => Visit(node, null, base.VisitConstructorDeclaration); public override SyntaxNode? VisitDestructorDeclaration(DestructorDeclarationSyntax node) => - Visit(node, null, "~", base.VisitDestructorDeclaration); + Visit(node, null, base.VisitDestructorDeclaration); public override SyntaxNode? VisitOperatorDeclaration(OperatorDeclarationSyntax node) => - Visit( - node, - null, - ModUtils.DiscrimStr( - node.Modifiers, - null, - $"op_{node.OperatorToken.Kind()}", - node.ParameterList, - node.ReturnType - ), - base.VisitOperatorDeclaration - ); + Visit(node, null, base.VisitOperatorDeclaration); public override SyntaxNode? VisitConversionOperatorDeclaration( ConversionOperatorDeclarationSyntax node - ) => - Visit( - node, - null, - ModUtils.DiscrimStr( - node.Modifiers, - null, - $"op_{node.ImplicitOrExplicitKeyword.Kind()}", - node.ParameterList, - node.Type - ), - base.VisitConversionOperatorDeclaration - ); + ) => Visit(node, null, base.VisitConversionOperatorDeclaration); public override SyntaxNode? VisitMethodDeclaration(MethodDeclarationSyntax node) => - Visit( - node, - node.Identifier.ToString(), - ModUtils.DiscrimStr( - node.Modifiers, - node.TypeParameterList, - node.Identifier.ToString(), - node.ParameterList, - node.ReturnType - ), - base.VisitMethodDeclaration - ); + Visit(node, node.Identifier.ToString(), base.VisitMethodDeclaration); public override SyntaxNode? VisitStructDeclaration(StructDeclarationSyntax node) => VisitType(node, base.VisitStructDeclaration); @@ -287,37 +144,36 @@ ConversionOperatorDeclarationSyntax node public override SyntaxNode? VisitInterfaceDeclaration(InterfaceDeclarationSyntax node) => VisitType(node, base.VisitInterfaceDeclaration); - private SyntaxNode? VisitField(T node, Func @base) - where T : BaseFieldDeclarationSyntax + private SyntaxNode? VisitType(T node, Func @base) + where T : BaseTypeDeclarationSyntax { - var retNode = @base(node); - if (Baked is null && Profile is not null && retNode is T ret) + // If it's a struct, split field decls with multiple var decs into individual field decls. This is so we can + // find the attributes individually. + if (node is StructDeclarationSyntax @struct) { - // When we're in baking mode, all of the baking logic is done in VisitVariableDeclarator. However this - // does nothing in the non-baking case, where we should add the attribute to the field as a marker. - return ret.AddAttributeLists( - AttributeList( - SingletonSeparatedList( - GetProfileAttribute( - ret.Declaration.Variables.Count == 1 - ? ret.Declaration.Variables[0].Identifier.ToString() - : null - ) + @struct = @struct.WithMembers( + List( + @struct.Members.SelectMany(x => + x is not BaseFieldDeclarationSyntax fld + ? [x] + : fld.Declaration.Variables.Select< + VariableDeclaratorSyntax, + MemberDeclarationSyntax + >(v => + fld.WithDeclaration( + fld.Declaration.WithVariables(SingletonSeparatedList(v)) + ) + ) ) ) ); + node = (T)(object)@struct; } - return retNode; - } - - private SyntaxNode? VisitType(T node, Func @base) - where T : BaseTypeDeclarationSyntax - { - var parentSymbolBefore = _currentParentSymbol; - _currentParentSymbol = parentSymbolBefore is not null - ? $"{_currentParentSymbol}.{node.Identifier}" - : node.Identifier.ToString(); + _currentParentSymbol = _currentParentSymbol.PushParentSymbolIdentifier( + node.Identifier.ToString(), + out var parentSymbolBefore + ); var retNode = @base(node); _currentParentSymbol = parentSymbolBefore; if (Profile is null) @@ -325,422 +181,38 @@ ConversionOperatorDeclarationSyntax node return retNode; } - if (Baked is null) - { - return retNode is T ret - ? ret.AddAttributeLists( - AttributeList(SingletonSeparatedList(GetProfileAttribute(null))) - ) - : retNode; - } - - // Get this type's bake set for some final validation checks. - // This also registers the bake set if the type had no members. - var bakeSet = GetOrRegisterTypeBakeSet(node); - - // If this is a struct or record struct, fields should exactly match. - if ( - ( - node is StructDeclarationSyntax s - ? (SyntaxList?)s.Members - : node is RecordDeclarationSyntax r - && r.Modifiers.Any(SyntaxKind.StructKeyword) - ? r.Members - : null + return retNode is T ret + ? ret.AddAttributeLists( + AttributeList(SingletonSeparatedList(GetProfileAttribute(null))) ) - is not { } members - ) - { - // If it's not a struct or record struct, we've registered the type and that's all we really need to do. - // Any members will have been registered in the base call. - return null; // baking erases, but the caller should know that. - } - - var bakedFields = bakeSet - .Children.OrderBy(x => x.Value.Index) - .Select(x => x.Value.Syntax) - .OfType() - .SelectMany(x => x.Declaration.Variables.Select(y => (x.Declaration.Type, Var: y))) - .ToArray(); - var ourFields = members - .OfType() - .SelectMany(x => x.Declaration.Variables.Select(y => (x.Declaration.Type, Var: y))) - .ToArray(); - if (bakedFields.Length != ourFields.Length) - { - throw new InvalidOperationException( - $"Differing number of fields between definitions of {node.Identifier} ({bakedFields.Length} vs " - + $"{ourFields.Length})" - ); - } - - for (var i = 0; i < bakedFields.Length; i++) - { - if ( - bakedFields[i].Type.ToString() != ourFields[i].Type.ToString() - || bakedFields[i].Var.Identifier.ToString() - != ourFields[i].Var.Identifier.ToString() - || bakedFields[i].Var.Initializer?.ToString() - != ourFields[i].Var.Initializer?.ToString() - || bakedFields[i].Var.ArgumentList?.ToString() - != ourFields[i].Var.ArgumentList?.ToString() - ) - { - throw new InvalidOperationException( - $"Field {i} differs between definitions of {node.Identifier}. " - + $"Left: {bakedFields[i]}, right: {ourFields[i]}" - ); - } - } - - return null; // baking erases, but the caller should know that. + : retNode; } - private SyntaxNode? Visit( - T node, - string? name, - string discrim, - Func @base - ) - where T : MemberDeclarationSyntax => Visit(node, node, name, discrim, @base); - - // This is super convoluted but to deduplicate the member handling code for fields (wherein one field decl may - // have many declarators of logically independent fields) we separate nodeToAdd vs nodeVisiting. Most of the - // time these will be the same, but for fields we will be wanting to add a field representing that one - // individual field whereas we're actually visiting the declarator for that individual field (because if we - // tried to add the field decl as nodeVisiting directly we'd be adding 3 fields in one) - private SyntaxNode? Visit( - TSeparated nodeToAdd, - TVisiting nodeVisiting, - string? name, - string discrim, - Func @base - ) - where TSeparated : MemberDeclarationSyntax - where TVisiting : SyntaxNode + private SyntaxNode? Visit(T node, string? name, Func @base) + where T : MemberDeclarationSyntax { // First, call the base visitor logic. - var retNode = @base(nodeVisiting); + var retNode = @base(node); // If we have no profile to get information pertaining to the current profile (why are we even here?) - if (Profile is null) + if (Profile is null || retNode is not T ret) { // early out, we can't do anything return retNode; } - // If we're not in baking mode... - if (Baked is null) - { - // If we didn't get an inner node when we're not in baking mode, return now as this is bad. - // Also, we can only add attributes for TSeparated, not the inner TVisiting, so we also return now if we - // want to add an attribute. This is super convoluted I know. The onus is on the caller to add the - // attribute in this case. - if (retNode is not (TSeparated ret and TVisiting)) - { - // expected to at least be TVisiting, but we can only add if it's TSeparated. If it's not at least - // TVisiting, it is likely null. In either case this does what we want. - return retNode; - } - - // Add the attribute if this is the node we are visiting. - return ret.AddAttributeLists( - AttributeList(SingletonSeparatedList(GetProfileAttribute(name))) - ); - } - - Logger?.LogTrace( - "Baking item for \"{}\" with discriminator \"{}\": {}", - Profile.Profile, - discrim, - nodeToAdd - ); - var parent = GetOrRegisterAncestorBakeSet(nodeVisiting); - - // Have we seen the member before? - if (parent.Children.TryGetValue(discrim, out var baked)) - { - // Make sure it's the same concrete type - if (baked.Syntax.GetType() != nodeToAdd.GetType()) - { - throw new InvalidOperationException( - $"The existing definition for \"{discrim}\" is a {baked.Syntax.GetType()} whereas this " - + $"definition is a {nodeToAdd.GetType()}. Left: {baked.Syntax}, right: {nodeToAdd}" - ); - } - - // Boldly assume it's the same implementation, modifiers, etc - // TODO ^^^ is this okay? should be fine if we're getting DllImports as inputs. - - // Okay fine here's some extra handling just in case it's a partial: - var bakedNode = (TSeparated)baked.Syntax; - if ( - nodeToAdd is BaseMethodDeclarationSyntax meth - && bakedNode is BaseMethodDeclarationSyntax bakedMeth - && baked.Syntax.Modifiers.Any(SyntaxKind.PartialKeyword) - && nodeToAdd.Modifiers.Any(SyntaxKind.PartialKeyword) - ) - { - var precedence = false; - if (bakedMeth.Body is null && meth.Body is not null) - { - if (bakedMeth.ExpressionBody is not null) - { - throw new InvalidOperationException( - $"The existing definition for \"{discrim}\" provides an expression body whereas this " - + "definition provides a statement body" - ); - } - - // Our definition takes precedence - precedence = true; - } - - if (bakedMeth.ExpressionBody is null && meth.ExpressionBody is not null) - { - if (bakedMeth.Body is not null) - { - throw new InvalidOperationException( - $"The existing definition for \"{discrim}\" provides an expression body whereas this " - + "definition provides a statement body" - ); - } - - if (precedence) - { - throw new InvalidOperationException( - $"This definition for \"{discrim}\" provides both an expression and a statement body." - ); - } - - // Our definition takes precedence - precedence = true; - } - - if (precedence) - { - baked.Syntax = nodeToAdd.AddAttributeLists( - baked - .Syntax.AttributeLists.Select(x => - x.WithAttributes( - SeparatedList( - x.Attributes.Where(y => - y.IsAttribute("Silk.NET.Core.SupportedApiAttribute") - ) - ) - ) - ) - .Where(x => x.Attributes.Count > 0) - .ToArray() - ); - } - } - - // Check that constants and enums have the same value - if ( - (baked.Syntax, nodeToAdd) is - - (EnumMemberDeclarationSyntax lEnum, EnumMemberDeclarationSyntax rEnum) - ) - { - if (lEnum.EqualsValue?.Value.ToString() != rEnum.EqualsValue?.Value.ToString()) - { - Logger?.LogWarning( - "Enum member with discriminator \"{}\" differs between definitions. Left: {}, right: {}", - discrim, - lEnum.EqualsValue?.Value.ToString() ?? "auto-assigned", - rEnum.EqualsValue?.Value.ToString() ?? "auto-assigned" - ); - } - } - else if ( - (baked.Syntax, nodeToAdd) is - - (FieldDeclarationSyntax lConst, FieldDeclarationSyntax rConst) - ) - { - var isConst = lConst.Modifiers.Any(SyntaxKind.ConstKeyword); - if (isConst != rConst.Modifiers.Any(SyntaxKind.ConstKeyword)) - { - Logger?.LogWarning( - "Const with discriminator \"{}\" isn't const in its redefinition. Left: {}, right: {}", - discrim, - lConst.ToString(), - rConst.ToString() - ); - } - else if ( - isConst - && lConst.Declaration.Variables[0].Initializer?.Value.ToString() - != rConst.Declaration.Variables[0].Initializer?.Value.ToString() - ) - { - Logger?.LogWarning( - "Const value with discriminator \"{}\" differs between definitions. Left: {}, right: {}", - discrim, - lConst.Declaration.Variables[0].Initializer?.Value.ToString(), - rConst.Declaration.Variables[0].Initializer?.Value.ToString() - ); - } - } - } - - // Update the bake set. This adds if we haven't seen the member before, otherwise we just update the - // existing declaration by adding our attribute list. - parent.Children[discrim] = ( - (baked.Syntax ?? nodeToAdd).AddAttributeLists( - AttributeList(SingletonSeparatedList(GetProfileAttribute(name))) - ), - null, - baked.Syntax is null ? parent.Children.Count : baked.Index + // Add the attribute if this is the node we are visiting. + return ret.AddAttributeLists( + AttributeList(SingletonSeparatedList(GetProfileAttribute(name))) ); - - return null; // erase it, but the caller should know to do that anyway. - } - - private BakeSet GetOrRegisterAncestorBakeSet(SyntaxNode node) => - node.Parent is null - ? Baked ?? throw new InvalidOperationException("BakeSet not set") - : GetOrRegisterTypeBakeSet(node.Parent); - - private BakeSet GetOrRegisterTypeBakeSet(SyntaxNode node) - { - var nsPre = node.NamespaceFromSyntaxNode() is { Length: > 0 } ns - ? $"{ns}." - : string.Empty; - var bakeSet = Baked ?? throw new InvalidOperationException("BakeSet not set"); - - // To handle nested types, we go through each ancestor (starting from the top, hence the reverse) and get - // the bake set (or create if needed), and do this for each ancestor until we finally get to the containing - // type of the given node. - foreach ( - var decl in node.AncestorsAndSelf().OfType().Reverse() - ) - { - var discrim = $"{nsPre}{decl.Identifier}"; - if ( - decl is TypeDeclarationSyntax - { - TypeParameterList.Parameters.Count: > 0 and var cnt - } - ) - { - discrim += $"`{cnt}"; - } - nsPre = string.Empty; // only the top-level type shall be prefixed with the namespace - bakeSet = ( - bakeSet!.Children.TryGetValue(discrim, out var baked) - ? bakeSet.Children[discrim] = ( - MergeDecls( - WithProfile(StripBare(decl), Profile), - (BaseTypeDeclarationSyntax)baked.Syntax - ), - baked.Inner ?? new BakeSet(), - baked.Index - ) - : bakeSet.Children[discrim] = ( - WithProfile(StripBare(decl), Profile), - new BakeSet(), - bakeSet.Children.Count - ) - ).Inner; - } - - return bakeSet!; - static BaseTypeDeclarationSyntax StripBare(BaseTypeDeclarationSyntax node) => - node switch - { - // TODO do we need to strip more than this for dedupe purposes? - TypeDeclarationSyntax klass => klass.WithMembers(default), - EnumDeclarationSyntax enumeration => enumeration.WithMembers(default), - _ => node - }; - - static BaseTypeDeclarationSyntax MergeDecls( - BaseTypeDeclarationSyntax node1, - BaseTypeDeclarationSyntax node2 - ) - { - if (node1.GetType() != node2.GetType()) - { - throw new ArgumentException( - "Node types differed - the profiles may contain two types with the " - + "same name but with a different datatype (i.e. profile 1 contains a " - + $"{node1.Kind().Humanize()} whereas profile 2 contains a {node2.Kind().Humanize()})" - ); - } - return node1 - .WithModifiers( - TokenList( - node2.Modifiers.Concat(node2.Modifiers).DistinctBy(x => x.ToString()) - ) - ) - .WithBaseList( - node1.BaseList?.WithTypes( - SeparatedList( - node1 - .BaseList.Types.Concat( - node2.BaseList?.Types ?? Enumerable.Empty() - ) - .DistinctBy(x => x.ToString()) - ) - ) - ) - .WithAttributeLists( - List( - node1 - .AttributeLists.SelectMany(x => - x.Attributes.Select(y => - x.WithAttributes(SingletonSeparatedList(y)) - ) - ) - .Concat( - node2.AttributeLists.SelectMany(x => - x.Attributes.Select(y => - x.WithAttributes(SingletonSeparatedList(y)) - ) - ) - ) - .DistinctBy(x => x.ToString()) - ) - ); - } - - BaseTypeDeclarationSyntax WithProfile( - BaseTypeDeclarationSyntax decl, - ApiProfileDecl? profile - ) => - profile is null - ? decl - : decl.AddAttributeLists( - AttributeList( - SingletonSeparatedList(GetProfileAttribute(decl.Identifier.ToString())) - ) - ); } } - class BakeSet - { - public Dictionary< - string, - (MemberDeclarationSyntax Syntax, BakeSet? Inner, int Index) - > Children { get; } = new(); - } - - /// - /// A map of baked roots to deduplicated es and their associated discriminants. - /// - private Dictionary _baked = new(); - /// public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { await base.ExecuteAsync(ctx, ct); - if ( - ctx.SourceProject is null - || await ctx.SourceProject.GetCompilationAsync(ct) is not { } comp - ) + if (ctx.SourceProject is null) { return; } @@ -749,13 +221,7 @@ ctx.SourceProject is null var rewriter = new Rewriter( ctx.JobKey, versionProviders.SelectMany(x => x.Get(ctx.JobKey)).ToArray() - ) - { - Logger = logger - }; - var bakery = new Dictionary(); - var baked = new List(); - var aggregatedUsings = new Dictionary(); + ); foreach (var docId in ctx.SourceProject.DocumentIds) { var doc = @@ -785,143 +251,10 @@ ctx.SourceProject is null } logger.LogDebug("Identified profile {} for {}", rewriter.Profile, path); - if (rewriter.Profile.BakedOutputSubdirectory is not null) - { - var discrim = rewriter.Profile.BakedOutputSubdirectory.Trim('/'); - if (!bakery.TryGetValue(discrim, out var bakeSet)) - { - bakeSet = bakery[discrim] = new BakeSet(); - } - - rewriter.Baked = bakeSet; - baked.Add(path); - } - ctx.SourceProject = doc.WithSyntaxRoot( rewriter.Visit(root).NormalizeWhitespace() ).Project; - foreach (var (k, v) in rewriter.UsingsToAdd) - { - aggregatedUsings.TryAdd(k, v); - } - rewriter.UsingsToAdd.Clear(); - rewriter.Baked = null; rewriter.Profile = null; } - - var proj = ctx.SourceProject.RemoveDocuments( - [ - .. ctx - .SourceProject.Documents.Where(x => - x.RelativePath() is { } rp && baked.Contains(rp) - ) - .Select(x => x.Id) - ] - ); - foreach ( - var (bakedRoot, bakedPath) in GetBaked(bakery, aggregatedUsings) - .Select(x => (x.Value, path: x.Key)) - ) - { - proj = proj.AddDocument( - Path.GetFileName(bakedPath), - bakedRoot.NormalizeWhitespace(), - // we can forgive the below nulls because RelativePath checks them, and returns null if they're null. - filePath: proj.FullPath(bakedPath) - ).Project; - } - - ctx.SourceProject = proj; } - - private IEnumerable> GetBaked( - Dictionary bakery, - Dictionary aggregatedUsings - ) - { - foreach (var (subdir, bakeSet) in bakery) - { - foreach (var (fqTopLevelType, bakedMember) in bakeSet.Children) - { - var (iden, bakedSyntax) = Bake(bakedMember); - if (iden is null) - { - throw new InvalidOperationException( - "Cannot output an unidentified syntax. Top-level syntax should be type declarations only." - ); - } - - var ns = fqTopLevelType.LastIndexOf('.') is not -1 and var idx - ? fqTopLevelType[..idx] - : null; - yield return new KeyValuePair( - $"{subdir}/{PathForFullyQualified(fqTopLevelType)}", - CompilationUnit() - .WithMembers( - ns is null - ? SingletonList(bakedSyntax) - : SingletonList( - FileScopedNamespaceDeclaration( - ModUtils.NamespaceIntoIdentifierName(ns) - ) - .WithMembers(SingletonList(bakedSyntax)) - ) - ) - .WithUsings(ModCSharpSyntaxRewriter.GetUsings(aggregatedUsings, null)) - ); - } - } - } - - private static (string? Identifier, MemberDeclarationSyntax Syntax) Bake( - (MemberDeclarationSyntax Syntax, BakeSet? Inner, int Index) member - ) => - member.Syntax switch - { - TypeDeclarationSyntax ty - => ( - ty.Identifier - + ( - ty.TypeParameterList is { Parameters.Count: > 0 and var cnt } - ? $"`{cnt}" - : string.Empty - ), - ty.WithMembers( - List( - ty.Members.Concat( - member - .Inner?.Children.Values.OrderBy(x => x.Index) - .Select(x => Bake(x).Syntax) - ?? Enumerable.Empty() - ) - ) - ) - ), - EnumDeclarationSyntax enumDecl - => ( - enumDecl.Identifier.ToString(), - enumDecl.WithMembers( - SeparatedList( - enumDecl.Members.Concat( - member - .Inner?.Children.Values.OrderBy(x => x.Index) - .Select(x => x.Syntax) - .OfType() - ?? Enumerable.Empty() - ) - ) - ) - ), - DelegateDeclarationSyntax del - => ( - del.Identifier - + ( - del.TypeParameterList is { Parameters.Count: > 0 and var cnt } - ? $"`{cnt}" - : string.Empty - ), - del - ), - var x => (null, x) - }; } diff --git a/sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs b/sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs new file mode 100644 index 0000000000..5b81d2b016 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs @@ -0,0 +1,480 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using Silk.NET.SilkTouch.Mods.Bakery; +using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; + +namespace Silk.NET.SilkTouch.Mods; + +/// +/// Merging the APIs of multiple source sets into a single source set. +/// +/// The logger to use. +/// The configuration snapshot. +/// +/// The available bake strategies. The actual strategy to use is determined from the configuration. +/// +[ModConfiguration] +public class BakeSourceSets( + ILogger logger, + IOptionsSnapshot config, + IEnumerable> strategies +) : Mod +{ + /// + /// The mod configuration. + /// + public record Configuration + { + /// + /// The to use. + /// + public string? Strategy { get; init; } + + /// + /// The source sets to bake/merge. + /// + public required Dictionary SourceSets { get; init; } + } + + class Rewriter(IBakeStrategy strategy, ILogger logger) : ModCSharpSyntaxRewriter + { + public BakeSet? Baked { get; set; } + + public string? SourceSet { get; set; } + + // Allowable type members for baking (we need to override these): + // - [x] FieldDeclarationSyntax (VariableDeclarator) + // - [x] EventFieldDeclarationSyntax + // - [x] EventDeclarationSyntax + // - [x] IndexerDeclarationSyntax + // - [x] PropertyDeclarationSyntax + // - [x] DelegateDeclarationSyntax + // - [x] BaseMethodDeclarationSyntax: + // - [x] ConstructorDeclarationSyntax + // - [x] ConversionOperatorDeclarationSyntax + // - [x] DestructorDeclarationSyntax + // - [x] MethodDeclarationSyntax + // - [x] OperatorDeclarationSyntax + // - [x] EnumMemberDeclarationSyntax + // + // Additional allowed members (done for free by GetOrRegisterTypeBakeSet) + // - [x] StructDeclarationSyntax + // - [x] ClassDeclarationSyntax + // - [x] EnumDeclarationSyntax + // - [x] RecordDeclarationSyntax + // - [x] InterfaceDeclarationSyntax + + public override SyntaxNode? VisitDelegateDeclaration(DelegateDeclarationSyntax node) => + Visit( + node, + node.Identifier + + ( + node is { TypeParameterList.Parameters.Count: > 0 and var cnt } + ? $"`{cnt}" + : string.Empty + ), + base.VisitDelegateDeclaration + ); + + public override SyntaxNode? VisitEventDeclaration(EventDeclarationSyntax node) => + Visit(node, node.Identifier.ToString(), base.VisitEventDeclaration); + + public override SyntaxNode? VisitPropertyDeclaration(PropertyDeclarationSyntax node) => + Visit(node, node.Identifier.ToString(), base.VisitPropertyDeclaration); + + public override SyntaxNode? VisitEnumMemberDeclaration(EnumMemberDeclarationSyntax node) => + Visit(node, node.Identifier.ToString(), base.VisitEnumMemberDeclaration); + + public override SyntaxNode? VisitIndexerDeclaration(IndexerDeclarationSyntax node) => + Visit( + node, + $"this[{string.Join(", ", node.ParameterList.Parameters.Select(ModUtils.DiscrimStr))}]", + base.VisitIndexerDeclaration + ); + + public override SyntaxNode? VisitVariableDeclarator(VariableDeclaratorSyntax node) => + node.FirstAncestorOrSelf() is { } baseFld + && node.FirstAncestorOrSelf() is { } varDecl + ? Visit( + // We want to add just this one specific individual standalone field. + baseFld.WithDeclaration(varDecl.WithVariables(SingletonSeparatedList(node))), + // But we're visiting the inner declarator representing that field. + node, + node.Identifier.ToString(), + // And if for whatever reason we can't continue on with the baking logic, we carry on to the base + // inner declarator visitation logic as usual. + base.VisitVariableDeclarator + ) + : base.VisitVariableDeclarator(node); + + public override SyntaxNode? VisitConstructorDeclaration( + ConstructorDeclarationSyntax node + ) => + Visit( + node, + ModUtils.DiscrimStr(node.Modifiers, null, string.Empty, node.ParameterList, null), + base.VisitConstructorDeclaration + ); + + public override SyntaxNode? VisitDestructorDeclaration(DestructorDeclarationSyntax node) => + Visit(node, "~", base.VisitDestructorDeclaration); + + public override SyntaxNode? VisitOperatorDeclaration(OperatorDeclarationSyntax node) => + Visit( + node, + ModUtils.DiscrimStr( + node.Modifiers, + null, + $"op_{node.OperatorToken.Kind()}", + node.ParameterList, + node.ReturnType + ), + base.VisitOperatorDeclaration + ); + + public override SyntaxNode? VisitConversionOperatorDeclaration( + ConversionOperatorDeclarationSyntax node + ) => + Visit( + node, + ModUtils.DiscrimStr( + node.Modifiers, + null, + $"op_{node.ImplicitOrExplicitKeyword.Kind()}", + node.ParameterList, + node.Type + ), + base.VisitConversionOperatorDeclaration + ); + + public override SyntaxNode? VisitMethodDeclaration(MethodDeclarationSyntax node) => + Visit( + node, + ModUtils.DiscrimStr( + node.Modifiers, + node.TypeParameterList, + node.Identifier.ToString(), + node.ParameterList, + node.ReturnType + ), + base.VisitMethodDeclaration + ); + + public override SyntaxNode? VisitStructDeclaration(StructDeclarationSyntax node) => + VisitType(node, base.VisitStructDeclaration); + + public override SyntaxNode? VisitClassDeclaration(ClassDeclarationSyntax node) => + VisitType(node, base.VisitClassDeclaration); + + public override SyntaxNode? VisitEnumDeclaration(EnumDeclarationSyntax node) => + VisitType(node, base.VisitEnumDeclaration); + + public override SyntaxNode? VisitRecordDeclaration(RecordDeclarationSyntax node) => + VisitType(node, base.VisitRecordDeclaration); + + public override SyntaxNode? VisitInterfaceDeclaration(InterfaceDeclarationSyntax node) => + VisitType(node, base.VisitInterfaceDeclaration); + + private SyntaxNode? VisitType(T node, Func @base) + where T : BaseTypeDeclarationSyntax + { + @base(node); + + // Get this type's bake set for some final validation checks. + // This also registers the bake set if the type had no members. + GetOrRegisterTypeBakeSet(node); + + return null; // baking erases, but the caller should know that. + } + + private SyntaxNode? Visit(T node, string discrim, Func @base) + where T : MemberDeclarationSyntax => Visit(node, node, discrim, @base); + + // This is super convoluted but to deduplicate the member handling code for fields (wherein one field decl may + // have many declarators of logically independent fields) we separate nodeToAdd vs nodeVisiting. Most of the + // time these will be the same, but for fields we will be wanting to add a field representing that one + // individual field whereas we're actually visiting the declarator for that individual field (because if we + // tried to add the field decl as nodeVisiting directly we'd be adding 3 fields in one) + private SyntaxNode? Visit( + TSeparated nodeToAdd, + TVisiting nodeVisiting, + string discrim, + Func @base + ) + where TSeparated : MemberDeclarationSyntax + where TVisiting : SyntaxNode + { + // First, call the base visitor logic. + var retNode = @base(nodeVisiting); + + logger.LogTrace( + "Baking item for source set at \"{}\" with discriminator \"{}\": {}", + SourceSet, + discrim, + nodeToAdd + ); + + var parent = GetOrRegisterAncestorBakeSet(nodeVisiting); + + // Update the bake set. This adds if we haven't seen the member before, otherwise we just update the + // existing declaration by adding our attribute list. + parent.Children[discrim] = new BakedMember( + strategy.GetTypeDeclaration( + nodeToAdd, + discrim, + parent.Children.TryGetValue(discrim, out var baked) ? baked : null + ), + null, + baked.Syntax is null ? parent.Children.Count : baked.Index + ); + + return null; // erase it, but the caller should know to do that anyway. + } + + private BakeSet GetOrRegisterAncestorBakeSet(SyntaxNode node) => + node.Parent is null + ? Baked ?? throw new InvalidOperationException("BakeSet not set") + : GetOrRegisterTypeBakeSet(node.Parent); + + private BakeSet GetOrRegisterTypeBakeSet(SyntaxNode node) + { + var nsPre = node.NamespaceFromSyntaxNode() is { Length: > 0 } ns + ? $"{ns}." + : string.Empty; + var bakeSet = Baked ?? throw new InvalidOperationException("BakeSet not set"); + + // To handle nested types, we go through each ancestor (starting from the top, hence the reverse) and get + // the bake set (or create if needed), and do this for each ancestor until we finally get to the containing + // type of the given node. + foreach ( + var decl in node.AncestorsAndSelf().OfType().Reverse() + ) + { + var discrim = $"{nsPre}{decl.Identifier}"; + if ( + decl is TypeDeclarationSyntax + { + TypeParameterList.Parameters.Count: > 0 and var cnt + } + ) + { + discrim += $"`{cnt}"; + } + nsPre = string.Empty; // only the top-level type shall be prefixed with the namespace + bakeSet = ( + bakeSet!.Children[discrim] = new BakedMember( + strategy.GetTypeDeclaration( + decl, + discrim, + bakeSet.Children.TryGetValue(discrim, out var baked) ? baked : null + ), + baked.Inner ?? new BakeSet(), + baked.Syntax is null ? bakeSet.Children.Count : baked.Index + ) + ).Inner; + } + + return bakeSet!; + } + } + + /// + /// A map of baked roots to deduplicated es and their associated discriminants. + /// + private Dictionary _baked = new(); + + /// + public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) + { + await base.ExecuteAsync(ctx, ct); + if (ctx.SourceProject is null) + { + return; + } + + var cfg = config.Get(ctx.JobKey); + + // Locate the bake strategy the user's after. + var strategy = strategies + .SelectMany(x => x.Get(ctx.JobKey)) + .FirstOrDefault(x => + x.Name == cfg.Strategy + || (cfg.Strategy is null && x.GetType() == typeof(DefaultBakeStrategy)) + ); + if (strategy is null) + { + throw new ConfigurationErrorsException( + "The strategy referenced in the configuration was not found." + ); + } + + var rewriter = new Rewriter(strategy, logger); + var bakery = new Dictionary(); + var baked = new List(); + var aggregatedUsings = new Dictionary(); + foreach (var docId in ctx.SourceProject.DocumentIds) + { + var doc = + ctx.SourceProject.GetDocument(docId) + ?? throw new InvalidOperationException("Document missing"); + var path = doc.RelativePath(); + if (path is null) + { + continue; + } + + var tree = await doc.GetSyntaxTreeAsync(ct); + if (tree is null) + { + continue; + } + + var root = await tree.GetRootAsync(ct); + var srcSet = cfg + .SourceSets.Where(x => path.StartsWith(x.Key, StringComparison.OrdinalIgnoreCase)) + .MaxBy(x => x.Key.Length); + rewriter.SourceSet = srcSet.Key; + if (rewriter.SourceSet is null) + { + continue; + } + + logger.LogDebug("Identified profile {} for {}", rewriter.SourceSet, path); + var discrim = srcSet.Value.Trim('/'); + if (!bakery.TryGetValue(discrim, out var bakeSet)) + { + bakeSet = bakery[discrim] = new BakeSet(); + } + + rewriter.Baked = bakeSet; + baked.Add(path); + + rewriter.Visit(root); + foreach (var (k, v) in rewriter.UsingsToAdd) + { + aggregatedUsings.TryAdd(k, v); + } + rewriter.UsingsToAdd.Clear(); + rewriter.Baked = null; + rewriter.SourceSet = null; + } + + var proj = ctx.SourceProject.RemoveDocuments( + [ + .. ctx + .SourceProject.Documents.Where(x => + x.RelativePath() is { } rp && baked.Contains(rp) + ) + .Select(x => x.Id), + ] + ); + foreach ( + var (bakedRoot, bakedPath) in GetBaked(bakery, aggregatedUsings) + .Select(x => (x.Value, path: x.Key)) + ) + { + proj = proj.AddDocument( + Path.GetFileName(bakedPath), + bakedRoot.NormalizeWhitespace(), + // we can forgive the below nulls because RelativePath checks them, and returns null if they're null. + filePath: proj.FullPath(bakedPath) + ).Project; + } + + ctx.SourceProject = proj; + } + + private IEnumerable> GetBaked( + Dictionary bakery, + Dictionary aggregatedUsings + ) + { + foreach (var (subdir, bakeSet) in bakery) + { + foreach (var (fqTopLevelType, bakedMember) in bakeSet.Children) + { + var (iden, bakedSyntax) = Bake(bakedMember); + if (iden is null) + { + throw new InvalidOperationException( + "Cannot output an unidentified syntax. Top-level syntax should be type declarations only." + ); + } + + var ns = fqTopLevelType.LastIndexOf('.') is not -1 and var idx + ? fqTopLevelType[..idx] + : null; + yield return new KeyValuePair( + $"{subdir}/{PathForFullyQualified(fqTopLevelType)}", + CompilationUnit() + .WithMembers( + ns is null + ? SingletonList(bakedSyntax) + : SingletonList( + FileScopedNamespaceDeclaration( + ModUtils.NamespaceIntoIdentifierName(ns) + ) + .WithMembers(SingletonList(bakedSyntax)) + ) + ) + .WithUsings(ModCSharpSyntaxRewriter.GetUsings(aggregatedUsings, null)) + ); + } + } + } + + private static (string? Identifier, MemberDeclarationSyntax Syntax) Bake(BakedMember member) => + member.Syntax switch + { + TypeDeclarationSyntax ty => ( + ty.Identifier + + ( + ty.TypeParameterList is { Parameters.Count: > 0 and var cnt } + ? $"`{cnt}" + : string.Empty + ), + ty.WithMembers( + List( + ty.Members.Concat( + member + .Inner?.Children.Values.OrderBy(x => x.Index) + .Select(x => Bake(x).Syntax) ?? [] + ) + ) + ) + ), + EnumDeclarationSyntax enumDecl => ( + enumDecl.Identifier.ToString(), + enumDecl.WithMembers( + SeparatedList( + enumDecl.Members.Concat( + member + .Inner?.Children.Values.OrderBy(x => x.Index) + .Select(x => x.Syntax) + .OfType() ?? [] + ) + ) + ) + ), + DelegateDeclarationSyntax del => ( + del.Identifier + + ( + del.TypeParameterList is { Parameters.Count: > 0 and var cnt } + ? $"`{cnt}" + : string.Empty + ), + del + ), + var x => (null, x), + }; +} diff --git a/sources/SilkTouch/SilkTouch/Mods/Bakery/BakeSet.cs b/sources/SilkTouch/SilkTouch/Mods/Bakery/BakeSet.cs new file mode 100644 index 0000000000..0a25d9a299 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Mods/Bakery/BakeSet.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. + +using System.Collections.Generic; +using Microsoft.CodeAnalysis.CSharp.Syntax; + +namespace Silk.NET.SilkTouch.Mods.Bakery; + +/// +/// Represents a map of API discriminators to a merged ("baked") declaration syntax, a +/// representing the APIs contained therein, and a declaration order hint. +/// +public class BakeSet +{ + /// + /// The bake set. + /// + public Dictionary Children { get; } = new(); +} diff --git a/sources/SilkTouch/SilkTouch/Mods/Bakery/BakedMember.cs b/sources/SilkTouch/SilkTouch/Mods/Bakery/BakedMember.cs new file mode 100644 index 0000000000..d0ddafb7d3 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Mods/Bakery/BakedMember.cs @@ -0,0 +1,15 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Microsoft.CodeAnalysis.CSharp.Syntax; + +namespace Silk.NET.SilkTouch.Mods.Bakery; + +/// +/// Represents a baked with its own child +/// es, if any, split into a separate inner . +/// +/// The baked declaration. +/// The children contained in this member. +/// A hint for the order in which this member was declared in its parent. +public record struct BakedMember(MemberDeclarationSyntax Syntax, BakeSet? Inner, int Index); diff --git a/sources/SilkTouch/SilkTouch/Mods/Bakery/DefaultBakeStrategy.cs b/sources/SilkTouch/SilkTouch/Mods/Bakery/DefaultBakeStrategy.cs new file mode 100644 index 0000000000..f200ad022b --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Mods/Bakery/DefaultBakeStrategy.cs @@ -0,0 +1,262 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Collections.Generic; +using System.Linq; +using Humanizer; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.Extensions.Logging; +using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; + +namespace Silk.NET.SilkTouch.Mods.Bakery; + +/// +/// Represents the default logic for merging multiple source sets into one source set. This will expect that +/// where there are duplicate definitions between the source sets, the relevant declarations are for the most part +/// exactly the same, save for some metadata. +/// +public class DefaultBakeStrategy(ILogger logger) : IBakeStrategy +{ + /// + public virtual string Name => + GetType() == typeof(DefaultBakeStrategy) ? "Default" : GetType().FullName ?? GetType().Name; + + /// + public virtual MemberDeclarationSyntax GetTypeDeclaration( + MemberDeclarationSyntax node, + string? discrim, + BakedMember? existing + ) + { + // Strip the declaration down to its bare necessities. + node = node switch + { + // TODO do we need to strip more than this for dedupe purposes? + TypeDeclarationSyntax klass => klass.WithMembers(default), + EnumDeclarationSyntax enumeration => enumeration.WithMembers(default), + _ => node, + }; + + if (existing is null) + { + return node; + } + + if (node.GetType() != existing.Value.Syntax.GetType()) + { + throw new ArgumentException( + "Node types differed - the profiles may contain two types with the " + + $"same name but with a different datatype (i.e. profile 1 contains a {node.Kind().Humanize()} " + + $"whereas profile 2 contains a {existing.Value.Syntax.Kind().Humanize()})" + ); + } + + node = node.WithAttributeLists( + List( + existing + .Value.Syntax.AttributeLists.SelectMany(x => + x.Attributes.Select(y => x.WithAttributes(SingletonSeparatedList(y))) + ) + .Concat( + node.AttributeLists.SelectMany(x => + x.Attributes.Select(y => x.WithAttributes(SingletonSeparatedList(y))) + ) + ) + .DistinctBy(x => x.ToString()) + ) + ); + + if (node is BaseTypeDeclarationSyntax ty) + { + node = ty.WithModifiers( + TokenList(node.Modifiers.Concat(node.Modifiers).DistinctBy(x => x.ToString())) + ) + .WithBaseList( + ty.BaseList?.WithTypes( + SeparatedList( + ty.BaseList.Types.Concat( + ((BaseTypeDeclarationSyntax)existing.Value.Syntax) + .BaseList + ?.Types ?? Enumerable.Empty() + ) + .DistinctBy(x => x.ToString()) + ) + ) + ); + + // If this is a struct or record struct, fields should exactly match. + if ( + ( + node is StructDeclarationSyntax s + ? (SyntaxList?)s.Members + : node is RecordDeclarationSyntax r && r.Modifiers.Any(SyntaxKind.StructKeyword) + ? r.Members + : null + ) is + { } members + ) + { + var bakedFields = ( + existing.Value.Inner?.Children.Values ?? (IEnumerable)[] + ) + .OrderBy(x => x.Index) + .Select(x => x.Syntax) + .OfType() + .SelectMany(x => + x.Declaration.Variables.Select(y => (x.Declaration.Type, Var: y)) + ) + .ToArray(); + var ourFields = members + .OfType() + .SelectMany(x => + x.Declaration.Variables.Select(y => (x.Declaration.Type, Var: y)) + ) + .ToArray(); + if (bakedFields.Length != ourFields.Length) + { + throw new InvalidOperationException( + $"Differing number of fields between definitions of {ty.Identifier} ({bakedFields.Length} vs " + + $"{ourFields.Length})" + ); + } + + for (var i = 0; i < bakedFields.Length; i++) + { + if ( + bakedFields[i].Type.ToString() != ourFields[i].Type.ToString() + || bakedFields[i].Var.Identifier.ToString() + != ourFields[i].Var.Identifier.ToString() + || bakedFields[i].Var.Initializer?.ToString() + != ourFields[i].Var.Initializer?.ToString() + || bakedFields[i].Var.ArgumentList?.ToString() + != ourFields[i].Var.ArgumentList?.ToString() + ) + { + throw new InvalidOperationException( + $"Field {i} differs between definitions of {ty.Identifier}. " + + $"Left: {bakedFields[i]}, right: {ourFields[i]}" + ); + } + } + } + } + + // Boldly assume it's the same implementation, modifiers, etc + // TODO ^^^ is this okay? should be fine if we're getting DllImports as inputs. + + // Okay fine here's some extra handling just in case it's a partial: + if ( + node is BaseMethodDeclarationSyntax meth + && existing.Value.Syntax is BaseMethodDeclarationSyntax bakedMeth + && existing.Value.Syntax.Modifiers.Any(SyntaxKind.PartialKeyword) + && node.Modifiers.Any(SyntaxKind.PartialKeyword) + ) + { + var precedence = false; + if (bakedMeth.Body is null && meth.Body is not null) + { + if (bakedMeth.ExpressionBody is not null) + { + throw new InvalidOperationException( + $"The existing definition for \"{discrim}\" provides an expression body whereas this " + + "definition provides a statement body" + ); + } + + // Our definition takes precedence + precedence = true; + } + + if (bakedMeth.ExpressionBody is null && meth.ExpressionBody is not null) + { + if (bakedMeth.Body is not null) + { + throw new InvalidOperationException( + $"The existing definition for \"{discrim}\" provides an expression body whereas this " + + "definition provides a statement body" + ); + } + + if (precedence) + { + throw new InvalidOperationException( + $"This definition for \"{discrim}\" provides both an expression and a statement body." + ); + } + + // Our definition takes precedence + precedence = true; + } + + if (!precedence) + { + node = existing.Value.Syntax.AddAttributeLists( + node.AttributeLists.Select(x => + x.WithAttributes( + SeparatedList( + x.Attributes.Where(y => + y.IsAttribute("Silk.NET.Core.SupportedApiAttribute") + ) + ) + ) + ) + .Where(x => x.Attributes.Count > 0) + .ToArray() + ); + } + } + + // Check that constants and enums have the same value + if ( + (existing.Value.Syntax, node) is + + (EnumMemberDeclarationSyntax lEnum, EnumMemberDeclarationSyntax rEnum) + ) + { + if (lEnum.EqualsValue?.Value.ToString() != rEnum.EqualsValue?.Value.ToString()) + { + logger.LogWarning( + "Enum member with discriminator \"{}\" differs between definitions. Left: {}, right: {}", + discrim, + lEnum.EqualsValue?.Value.ToString() ?? "auto-assigned", + rEnum.EqualsValue?.Value.ToString() ?? "auto-assigned" + ); + } + } + else if ( + (existing.Value.Syntax, node) is + + (FieldDeclarationSyntax lConst, FieldDeclarationSyntax rConst) + ) + { + var isConst = lConst.Modifiers.Any(SyntaxKind.ConstKeyword); + if (isConst != rConst.Modifiers.Any(SyntaxKind.ConstKeyword)) + { + logger.LogWarning( + "Const with discriminator \"{}\" isn't const in its redefinition. Left: {}, right: {}", + discrim, + lConst.ToString(), + rConst.ToString() + ); + } + else if ( + isConst + && lConst.Declaration.Variables[0].Initializer?.Value.ToString() + != rConst.Declaration.Variables[0].Initializer?.Value.ToString() + ) + { + logger.LogWarning( + "Const value with discriminator \"{}\" differs between definitions. Left: {}, right: {}", + discrim, + lConst.Declaration.Variables[0].Initializer?.Value.ToString(), + rConst.Declaration.Variables[0].Initializer?.Value.ToString() + ); + } + } + + return node; + } +} diff --git a/sources/SilkTouch/SilkTouch/Mods/Bakery/IBakeStrategy.cs b/sources/SilkTouch/SilkTouch/Mods/Bakery/IBakeStrategy.cs new file mode 100644 index 0000000000..567a64ee9d --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Mods/Bakery/IBakeStrategy.cs @@ -0,0 +1,32 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp.Syntax; + +namespace Silk.NET.SilkTouch.Mods.Bakery; + +/// +/// Represents a strategy with which syntax declarations and hierarchies from multiple source sets are merged. +/// +public interface IBakeStrategy // the temptation to call this IRecipe was sooooooooooo big +{ + /// + /// A name for the bake strategy as identified in . + /// + string Name { get; } + + /// + /// Gets a type declaration to store in a element, merging the encountered declaration with + /// the existing one in that element if provided. + /// + /// The encountered syntax node. + /// The discriminator for this member. + /// The current member stored in the . + /// The merged type declaration. + MemberDeclarationSyntax GetTypeDeclaration( + MemberDeclarationSyntax node, + string? discrim, + BakedMember? existing + ); +} diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs b/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs index 47feeffc0b..f6832b1528 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs @@ -22,6 +22,7 @@ public class ModLoader nameof(PrettifyNames) => typeof(PrettifyNames), nameof(AddOpaqueStructs) => typeof(AddOpaqueStructs), nameof(AddVTables) => typeof(AddVTables), + nameof(BakeSourceSets) => typeof(BakeSourceSets), nameof(AddApiProfiles) => typeof(AddApiProfiles), nameof(MixKhronosData) => typeof(MixKhronosData), nameof(TransformHandles) => typeof(TransformHandles), diff --git a/sources/SilkTouch/SilkTouch/Mods/Metadata/MetadataUtils.cs b/sources/SilkTouch/SilkTouch/Mods/Metadata/MetadataUtils.cs index 220d80cc44..ea2987084a 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Metadata/MetadataUtils.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Metadata/MetadataUtils.cs @@ -3,6 +3,8 @@ using System; using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; using System.Linq; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; @@ -78,6 +80,94 @@ out int outerCount && !cType.EndsWith(" const"); } + /// + /// Gets the first matching metadata item for a specific symbol. + /// + /// The metadata providers. + /// The current job key. + /// + /// The parent symbol, optionally containing the symbol identified by if provided. + /// Used as input to if + /// is not null, + /// otherwise. + /// + /// + /// The target symbol to get metadata for. If null, represents the target + /// symbol. Otherwise, this is used as input to . + /// + /// + /// Filters the resolved metadata. If null, the first matching metadata item shall be used. + /// + /// The value to return if no matching metadata was found. + /// The type of the metadata. + /// The metadata item. + [return: NotNullIfNotNull(nameof(defaultValue))] + public static T? GetMetadata( + this IEnumerable>> metadataProviders, + string? jobKey, + string? parentSymbol = null, + string? childSymbol = null, + Predicate? filter = default, + T? defaultValue = default + ) + { + if (parentSymbol is null) + { + return defaultValue; + } + + T? parent = default; + foreach (var apimd in metadataProviders) + { + if ( + childSymbol is not null + && apimd.TryGetChildSymbolMetadata(jobKey, parentSymbol, childSymbol, out var vers) + && vers.FirstOrDefault(x => filter?.Invoke(x) ?? true) is { } ver + ) + { + return ver; + } + + // parentVers.FirstOrDefault(x => x.Profile == Profile.Profile) ?? parent + if ( + apimd.TryGetSymbolMetadata(jobKey, parentSymbol, out var parentVers) + && (parent = parentVers.FirstOrDefault(x => filter?.Invoke(x) ?? true)) is not null + && childSymbol is null + ) + { + break; + } + } + + return parent ?? defaultValue; + } + + /// + /// Sets to indicate that the type indicated by + /// is being recursed into. If indicates that + /// this is itself being done as part of a recursion (i.e. this is nested type symbol), the returned value shall + /// denote that type qualification. + /// + /// + /// This is mostly just a helper method to reduce code duplication for the metadata symbol identifier format of + /// OuterClass.InnerClass should ever it change in the future. It's very doubtful that'd happen, nonetheless + /// this should be used if nothing else for code cleanliness. + /// + /// The current parent symbol identifier value. + /// The parent symbol being recursed into. + /// + /// The old value, to restore as soon as has been recursed into. + /// + /// The new value for . + public static string? PushParentSymbolIdentifier( + this string? parentSymbol, + string innerParentSymbol, + out string? oldValue + ) => + (oldValue = parentSymbol) is not null + ? $"{parentSymbol}.{innerParentSymbol}" + : innerParentSymbol; + /// /// Creates symbol constraints based on the given length and mutability data. No other properties are set. /// @@ -124,7 +214,7 @@ int outerCount && lengths.Length > 0 && lengths[0] == "null-terminated" ) - ) + ), ], IsMutable: mutability[0], ComputedFromNames: compSize ? [.. lengths] : [], diff --git a/sources/SilkTouch/SilkTouch/ServiceCollectionExtensions.cs b/sources/SilkTouch/SilkTouch/ServiceCollectionExtensions.cs index 2f68398bab..4809f51f0b 100644 --- a/sources/SilkTouch/SilkTouch/ServiceCollectionExtensions.cs +++ b/sources/SilkTouch/SilkTouch/ServiceCollectionExtensions.cs @@ -9,6 +9,7 @@ using Silk.NET.SilkTouch.Caching; using Silk.NET.SilkTouch.Clang; using Silk.NET.SilkTouch.Mods; +using Silk.NET.SilkTouch.Mods.Bakery; using Silk.NET.SilkTouch.Mods.Transformation; using Silk.NET.SilkTouch.Naming; using Silk.NET.SilkTouch.Sources; @@ -103,7 +104,9 @@ IConfiguration config s.GetRequiredService() ); services.AddSingleton(); + services.AddSingleton(); services.AddSingleton(s => s.GetRequiredService()); + services.AddSingleton(s => s.GetRequiredService()); services.AddSingleton(typeof(IJobDependency<>), typeof(JobDependencies.Global<>)); services.TryAddSingleton(); services.AddSingleton(); From 5606e93482b473fd33de4a159b047dd549579cd4 Mon Sep 17 00:00:00 2001 From: Dylan Perks Date: Sun, 17 Nov 2024 13:10:10 +0000 Subject: [PATCH 3/8] Rename GetTypeDeclaration to BakeMember --- sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs | 4 ++-- .../SilkTouch/SilkTouch/Mods/Bakery/DefaultBakeStrategy.cs | 2 +- sources/SilkTouch/SilkTouch/Mods/Bakery/IBakeStrategy.cs | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs b/sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs index 5b81d2b016..0f1fd372ab 100644 --- a/sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs +++ b/sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs @@ -229,7 +229,7 @@ ConversionOperatorDeclarationSyntax node // Update the bake set. This adds if we haven't seen the member before, otherwise we just update the // existing declaration by adding our attribute list. parent.Children[discrim] = new BakedMember( - strategy.GetTypeDeclaration( + strategy.BakeMember( nodeToAdd, discrim, parent.Children.TryGetValue(discrim, out var baked) ? baked : null @@ -273,7 +273,7 @@ decl is TypeDeclarationSyntax nsPre = string.Empty; // only the top-level type shall be prefixed with the namespace bakeSet = ( bakeSet!.Children[discrim] = new BakedMember( - strategy.GetTypeDeclaration( + strategy.BakeMember( decl, discrim, bakeSet.Children.TryGetValue(discrim, out var baked) ? baked : null diff --git a/sources/SilkTouch/SilkTouch/Mods/Bakery/DefaultBakeStrategy.cs b/sources/SilkTouch/SilkTouch/Mods/Bakery/DefaultBakeStrategy.cs index f200ad022b..e11aac3239 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Bakery/DefaultBakeStrategy.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Bakery/DefaultBakeStrategy.cs @@ -25,7 +25,7 @@ public class DefaultBakeStrategy(ILogger logger) : IBakeStr GetType() == typeof(DefaultBakeStrategy) ? "Default" : GetType().FullName ?? GetType().Name; /// - public virtual MemberDeclarationSyntax GetTypeDeclaration( + public virtual MemberDeclarationSyntax BakeMember( MemberDeclarationSyntax node, string? discrim, BakedMember? existing diff --git a/sources/SilkTouch/SilkTouch/Mods/Bakery/IBakeStrategy.cs b/sources/SilkTouch/SilkTouch/Mods/Bakery/IBakeStrategy.cs index 567a64ee9d..af5b953d21 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Bakery/IBakeStrategy.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Bakery/IBakeStrategy.cs @@ -17,14 +17,14 @@ public interface IBakeStrategy // the temptation to call this IRecipe was sooooo string Name { get; } /// - /// Gets a type declaration to store in a element, merging the encountered declaration with - /// the existing one in that element if provided. + /// Gets a declaration to store in a element, merging the encountered declaration with the + /// existing one in that element if provided. /// /// The encountered syntax node. /// The discriminator for this member. /// The current member stored in the . /// The merged type declaration. - MemberDeclarationSyntax GetTypeDeclaration( + MemberDeclarationSyntax BakeMember( MemberDeclarationSyntax node, string? discrim, BakedMember? existing From fbc0eddc146b116c917cedd6421373c560bdff78 Mon Sep 17 00:00:00 2001 From: Dylan Perks Date: Sun, 17 Nov 2024 15:27:19 +0000 Subject: [PATCH 4/8] Cache the result of function pointer loading --- sources/OpenGL/OpenGL/GL.gen.cs | 2 + sources/OpenGL/OpenGL/gl/GL.gen.cs | 26240 ++++++++++++---- sources/SDL/SDL/SDL3/Sdl.gen.cs | 6288 +++- sources/SDL/SDL/Sdl.gen.cs | 1 + .../SilkTouch/SilkTouch/Mods/AddVTables.cs | 231 +- 5 files changed, 24390 insertions(+), 8372 deletions(-) diff --git a/sources/OpenGL/OpenGL/GL.gen.cs b/sources/OpenGL/OpenGL/GL.gen.cs index fb816c59ce..2945dd9f3b 100644 --- a/sources/OpenGL/OpenGL/GL.gen.cs +++ b/sources/OpenGL/OpenGL/GL.gen.cs @@ -23,6 +23,8 @@ public partial class ThisThread : IGL.Static public static partial void MakeCurrent(IGL ctx); } + private readonly unsafe void*[] _slots = new void*[3291]; + public static IGL Create(INativeContext ctx) => new GL(ctx); /// diff --git a/sources/OpenGL/OpenGL/gl/GL.gen.cs b/sources/OpenGL/OpenGL/gl/GL.gen.cs index 25894ec802..a5c8c03a33 100644 --- a/sources/OpenGL/OpenGL/gl/GL.gen.cs +++ b/sources/OpenGL/OpenGL/gl/GL.gen.cs @@ -415005,10 +415005,13 @@ public static void WriteMaskEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Accum([NativeTypeName("GLenum")] uint op, [NativeTypeName("GLfloat")] float value) => - ((delegate* unmanaged)nativeContext.LoadFunction("glAccum", "opengl"))( - op, - value - ); + ( + (delegate* unmanaged)( + _slots[0] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[0] = nativeContext.LoadFunction("glAccum", "opengl") + ) + )(op, value); [SupportedApiProfile( "gl", @@ -415083,10 +415086,13 @@ public static void Accum( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.AccumxOES([NativeTypeName("GLenum")] uint op, [NativeTypeName("GLfixed")] int value) => - ((delegate* unmanaged)nativeContext.LoadFunction("glAccumxOES", "opengl"))( - op, - value - ); + ( + (delegate* unmanaged)( + _slots[1] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1] = nativeContext.LoadFunction("glAccumxOES", "opengl") + ) + )(op, value); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glAccumxOES")] @@ -415122,8 +415128,14 @@ uint IGL.AcquireKeyedMutexWin32EXTRaw( [NativeTypeName("GLuint")] uint timeout ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAcquireKeyedMutexWin32EXT", "opengl") + (delegate* unmanaged)( + _slots[2] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2] = nativeContext.LoadFunction( + "glAcquireKeyedMutexWin32EXT", + "opengl" + ) + ) )(memory, key, timeout); [return: NativeTypeName("GLboolean")] @@ -415140,8 +415152,11 @@ public static uint AcquireKeyedMutexWin32EXTRaw( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ActiveProgramEXT([NativeTypeName("GLuint")] uint program) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glActiveProgramEXT", "opengl") + (delegate* unmanaged)( + _slots[3] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3] = nativeContext.LoadFunction("glActiveProgramEXT", "opengl") + ) )(program); [SupportedApiProfile("gl", ["GL_EXT_separate_shader_objects"])] @@ -415157,8 +415172,11 @@ void IGL.ActiveShaderProgram( [NativeTypeName("GLuint")] uint program ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glActiveShaderProgram", "opengl") + (delegate* unmanaged)( + _slots[4] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[4] = nativeContext.LoadFunction("glActiveShaderProgram", "opengl") + ) )(pipeline, program); [SupportedApiProfile( @@ -415200,8 +415218,11 @@ void IGL.ActiveShaderProgramEXT( [NativeTypeName("GLuint")] uint program ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glActiveShaderProgramEXT", "opengl") + (delegate* unmanaged)( + _slots[5] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[5] = nativeContext.LoadFunction("glActiveShaderProgramEXT", "opengl") + ) )(pipeline, program); [SupportedApiProfile("gles2", ["GL_EXT_separate_shader_objects"])] @@ -415215,8 +415236,11 @@ public static void ActiveShaderProgramEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ActiveStencilFaceEXT([NativeTypeName("GLenum")] uint face) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glActiveStencilFaceEXT", "opengl") + (delegate* unmanaged)( + _slots[6] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[6] = nativeContext.LoadFunction("glActiveStencilFaceEXT", "opengl") + ) )(face); [SupportedApiProfile("gl", ["GL_EXT_stencil_two_side"])] @@ -415240,9 +415264,13 @@ public static void ActiveStencilFaceEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ActiveTexture([NativeTypeName("GLenum")] uint texture) => - ((delegate* unmanaged)nativeContext.LoadFunction("glActiveTexture", "opengl"))( - texture - ); + ( + (delegate* unmanaged)( + _slots[7] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[7] = nativeContext.LoadFunction("glActiveTexture", "opengl") + ) + )(texture); [SupportedApiProfile( "gl", @@ -415364,8 +415392,11 @@ public static void ActiveTexture( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ActiveTextureARB([NativeTypeName("GLenum")] uint texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glActiveTextureARB", "opengl") + (delegate* unmanaged)( + _slots[8] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[8] = nativeContext.LoadFunction("glActiveTextureARB", "opengl") + ) )(texture); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -415393,8 +415424,11 @@ void IGL.ActiveVaryingNV( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glActiveVaryingNV", "opengl") + (delegate* unmanaged)( + _slots[9] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[9] = nativeContext.LoadFunction("glActiveVaryingNV", "opengl") + ) )(program, name); [SupportedApiProfile("gl", ["GL_NV_transform_feedback"])] @@ -415436,8 +415470,11 @@ void IGL.AlphaFragmentOp1ATI( [NativeTypeName("GLuint")] uint arg1Mod ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAlphaFragmentOp1ATI", "opengl") + (delegate* unmanaged)( + _slots[10] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[10] = nativeContext.LoadFunction("glAlphaFragmentOp1ATI", "opengl") + ) )(op, dst, dstMod, arg1, arg1Rep, arg1Mod); [SupportedApiProfile("gl", ["GL_ATI_fragment_shader"])] @@ -415496,8 +415533,11 @@ void IGL.AlphaFragmentOp2ATI( [NativeTypeName("GLuint")] uint arg2Mod ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAlphaFragmentOp2ATI", "opengl") + (delegate* unmanaged)( + _slots[11] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[11] = nativeContext.LoadFunction("glAlphaFragmentOp2ATI", "opengl") + ) )(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod); [SupportedApiProfile("gl", ["GL_ATI_fragment_shader"])] @@ -415606,8 +415646,11 @@ void IGL.AlphaFragmentOp3ATI( uint, uint, uint, - void>) - nativeContext.LoadFunction("glAlphaFragmentOp3ATI", "opengl") + void>)( + _slots[12] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[12] = nativeContext.LoadFunction("glAlphaFragmentOp3ATI", "opengl") + ) )(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod); [SupportedApiProfile("gl", ["GL_ATI_fragment_shader"])] @@ -415711,8 +415754,11 @@ void IGL.AlphaFunc( [NativeTypeName("GLfloat")] float @ref ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAlphaFunc", "opengl") + (delegate* unmanaged)( + _slots[13] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[13] = nativeContext.LoadFunction("glAlphaFunc", "opengl") + ) )(func, @ref); [SupportedApiProfile( @@ -415794,8 +415840,11 @@ void IGL.AlphaFuncQCOM( [NativeTypeName("GLclampf")] float @ref ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAlphaFuncQCOM", "opengl") + (delegate* unmanaged)( + _slots[14] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[14] = nativeContext.LoadFunction("glAlphaFuncQCOM", "opengl") + ) )(func, @ref); [SupportedApiProfile("gles2", ["GL_QCOM_alpha_test"])] @@ -415812,8 +415861,11 @@ void IGL.AlphaFuncx( [NativeTypeName("GLfixed")] int @ref ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAlphaFuncx", "opengl") + (delegate* unmanaged)( + _slots[15] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[15] = nativeContext.LoadFunction("glAlphaFuncx", "opengl") + ) )(func, @ref); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -415845,8 +415897,11 @@ void IGL.AlphaFuncxOES( [NativeTypeName("GLfixed")] int @ref ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAlphaFuncxOES", "opengl") + (delegate* unmanaged)( + _slots[16] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[16] = nativeContext.LoadFunction("glAlphaFuncxOES", "opengl") + ) )(func, @ref); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -415877,8 +415932,14 @@ public static void AlphaFuncxOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.AlphaToCoverageDitherControlNV([NativeTypeName("GLenum")] uint mode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAlphaToCoverageDitherControlNV", "opengl") + (delegate* unmanaged)( + _slots[17] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[17] = nativeContext.LoadFunction( + "glAlphaToCoverageDitherControlNV", + "opengl" + ) + ) )(mode); [SupportedApiProfile("gl", ["GL_NV_alpha_to_coverage_dither_control"])] @@ -415890,8 +415951,14 @@ public static void AlphaToCoverageDitherControlNV([NativeTypeName("GLenum")] uin [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ApplyFramebufferAttachmentCMAAIntel() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glApplyFramebufferAttachmentCMAAINTEL", "opengl") + (delegate* unmanaged)( + _slots[18] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[18] = nativeContext.LoadFunction( + "glApplyFramebufferAttachmentCMAAINTEL", + "opengl" + ) + ) )(); [SupportedApiProfile("gl", ["GL_INTEL_framebuffer_CMAA"])] @@ -415905,8 +415972,11 @@ public static void ApplyFramebufferAttachmentCMAAIntel() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ApplyTextureEXT([NativeTypeName("GLenum")] uint mode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glApplyTextureEXT", "opengl") + (delegate* unmanaged)( + _slots[19] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[19] = nativeContext.LoadFunction("glApplyTextureEXT", "opengl") + ) )(mode); [SupportedApiProfile("gl", ["GL_EXT_light_texture"])] @@ -415935,8 +416005,11 @@ uint IGL.AreProgramsResidentNV( [NativeTypeName("GLboolean *")] uint* residences ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAreProgramsResidentNV", "opengl") + (delegate* unmanaged)( + _slots[20] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[20] = nativeContext.LoadFunction("glAreProgramsResidentNV", "opengl") + ) )(n, programs, residences); [return: NativeTypeName("GLboolean")] @@ -415982,8 +416055,11 @@ uint IGL.AreTexturesResident( [NativeTypeName("GLboolean *")] uint* residences ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAreTexturesResident", "opengl") + (delegate* unmanaged)( + _slots[21] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[21] = nativeContext.LoadFunction("glAreTexturesResident", "opengl") + ) )(n, textures, residences); [return: NativeTypeName("GLboolean")] @@ -416075,8 +416151,11 @@ uint IGL.AreTexturesResidentEXT( [NativeTypeName("GLboolean *")] uint* residences ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAreTexturesResidentEXT", "opengl") + (delegate* unmanaged)( + _slots[22] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[22] = nativeContext.LoadFunction("glAreTexturesResidentEXT", "opengl") + ) )(n, textures, residences); [return: NativeTypeName("GLboolean")] @@ -416117,7 +416196,13 @@ public static MaybeBool AreTexturesResidentEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ArrayElement([NativeTypeName("GLint")] int i) => - ((delegate* unmanaged)nativeContext.LoadFunction("glArrayElement", "opengl"))(i); + ( + (delegate* unmanaged)( + _slots[23] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[23] = nativeContext.LoadFunction("glArrayElement", "opengl") + ) + )(i); [SupportedApiProfile( "gl", @@ -416149,9 +416234,13 @@ void IGL.ArrayElement([NativeTypeName("GLint")] int i) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ArrayElementEXT([NativeTypeName("GLint")] int i) => - ((delegate* unmanaged)nativeContext.LoadFunction("glArrayElementEXT", "opengl"))( - i - ); + ( + (delegate* unmanaged)( + _slots[24] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[24] = nativeContext.LoadFunction("glArrayElementEXT", "opengl") + ) + )(i); [SupportedApiProfile("gl", ["GL_EXT_vertex_array"])] [NativeFunction("opengl", EntryPoint = "glArrayElementEXT")] @@ -416169,8 +416258,11 @@ void IGL.ArrayObjectATI( [NativeTypeName("GLuint")] uint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glArrayObjectATI", "opengl") + (delegate* unmanaged)( + _slots[25] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[25] = nativeContext.LoadFunction("glArrayObjectATI", "opengl") + ) )(array, size, type, stride, buffer, offset); [SupportedApiProfile("gl", ["GL_ATI_vertex_array_object"])] @@ -416239,8 +416331,14 @@ uint IGL.AsyncCopyBufferSubDataNVX( uint, uint*, ulong*, - uint>) - nativeContext.LoadFunction("glAsyncCopyBufferSubDataNVX", "opengl") + uint>)( + _slots[26] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[26] = nativeContext.LoadFunction( + "glAsyncCopyBufferSubDataNVX", + "opengl" + ) + ) )( waitSemaphoreCount, waitSemaphoreArray, @@ -416420,8 +416518,14 @@ uint IGL.AsyncCopyImageSubDataNVX( uint, uint*, ulong*, - uint>) - nativeContext.LoadFunction("glAsyncCopyImageSubDataNVX", "opengl") + uint>)( + _slots[27] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[27] = nativeContext.LoadFunction( + "glAsyncCopyImageSubDataNVX", + "opengl" + ) + ) )( waitSemaphoreCount, waitSemaphoreArray, @@ -416623,8 +416727,11 @@ public static uint AsyncCopyImageSubDataNVX( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.AsyncMarkerSGIX([NativeTypeName("GLuint")] uint marker) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAsyncMarkerSGIX", "opengl") + (delegate* unmanaged)( + _slots[28] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[28] = nativeContext.LoadFunction("glAsyncMarkerSGIX", "opengl") + ) )(marker); [SupportedApiProfile("gl", ["GL_SGIX_async"])] @@ -416639,8 +416746,11 @@ void IGL.AttachObjectARB( [NativeTypeName("GLhandleARB")] uint obj ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAttachObjectARB", "opengl") + (delegate* unmanaged)( + _slots[29] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[29] = nativeContext.LoadFunction("glAttachObjectARB", "opengl") + ) )(containerObj, obj); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -416657,8 +416767,11 @@ void IGL.AttachShader( [NativeTypeName("GLuint")] uint shader ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glAttachShader", "opengl") + (delegate* unmanaged)( + _slots[30] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[30] = nativeContext.LoadFunction("glAttachShader", "opengl") + ) )(program, shader); [SupportedApiProfile( @@ -416713,7 +416826,13 @@ public static void AttachShader( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Begin([NativeTypeName("GLenum")] uint mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glBegin", "opengl"))(mode); + ( + (delegate* unmanaged)( + _slots[31] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[31] = nativeContext.LoadFunction("glBegin", "opengl") + ) + )(mode); [SupportedApiProfile( "gl", @@ -416786,8 +416905,11 @@ void IGL.BeginConditionalRender( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginConditionalRender", "opengl") + (delegate* unmanaged)( + _slots[32] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[32] = nativeContext.LoadFunction("glBeginConditionalRender", "opengl") + ) )(id, mode); [SupportedApiProfile( @@ -416885,8 +417007,14 @@ void IGL.BeginConditionalRenderNV( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginConditionalRenderNV", "opengl") + (delegate* unmanaged)( + _slots[33] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[33] = nativeContext.LoadFunction( + "glBeginConditionalRenderNV", + "opengl" + ) + ) )(id, mode); [SupportedApiProfile("gl", ["GL_NV_conditional_render"])] @@ -416919,8 +417047,14 @@ public static void BeginConditionalRenderNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BeginConditionalRenderNVX([NativeTypeName("GLuint")] uint id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginConditionalRenderNVX", "opengl") + (delegate* unmanaged)( + _slots[34] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[34] = nativeContext.LoadFunction( + "glBeginConditionalRenderNVX", + "opengl" + ) + ) )(id); [SupportedApiProfile("gl", ["GL_NVX_conditional_render"])] @@ -416932,8 +417066,11 @@ public static void BeginConditionalRenderNVX([NativeTypeName("GLuint")] uint id) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BeginFragmentShaderATI() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginFragmentShaderATI", "opengl") + (delegate* unmanaged)( + _slots[35] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[35] = nativeContext.LoadFunction("glBeginFragmentShaderATI", "opengl") + ) )(); [SupportedApiProfile("gl", ["GL_ATI_fragment_shader"])] @@ -416944,8 +417081,11 @@ void IGL.BeginFragmentShaderATI() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BeginOcclusionQueryNV([NativeTypeName("GLuint")] uint id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginOcclusionQueryNV", "opengl") + (delegate* unmanaged)( + _slots[36] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[36] = nativeContext.LoadFunction("glBeginOcclusionQueryNV", "opengl") + ) )(id); [SupportedApiProfile("gl", ["GL_NV_occlusion_query"])] @@ -416957,8 +417097,11 @@ public static void BeginOcclusionQueryNV([NativeTypeName("GLuint")] uint id) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BeginPerfMonitorAMD([NativeTypeName("GLuint")] uint monitor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginPerfMonitorAMD", "opengl") + (delegate* unmanaged)( + _slots[37] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[37] = nativeContext.LoadFunction("glBeginPerfMonitorAMD", "opengl") + ) )(monitor); [SupportedApiProfile("gl", ["GL_AMD_performance_monitor"])] @@ -416972,8 +417115,11 @@ public static void BeginPerfMonitorAMD([NativeTypeName("GLuint")] uint monitor) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BeginPerfQueryIntel([NativeTypeName("GLuint")] uint queryHandle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginPerfQueryINTEL", "opengl") + (delegate* unmanaged)( + _slots[38] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[38] = nativeContext.LoadFunction("glBeginPerfQueryINTEL", "opengl") + ) )(queryHandle); [SupportedApiProfile("gl", ["GL_INTEL_performance_query"])] @@ -416990,8 +417136,11 @@ void IGL.BeginQuery( [NativeTypeName("GLuint")] uint id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginQuery", "opengl") + (delegate* unmanaged)( + _slots[39] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[39] = nativeContext.LoadFunction("glBeginQuery", "opengl") + ) )(target, id); [SupportedApiProfile( @@ -417101,8 +417250,11 @@ void IGL.BeginQueryARB( [NativeTypeName("GLuint")] uint id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginQueryARB", "opengl") + (delegate* unmanaged)( + _slots[40] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[40] = nativeContext.LoadFunction("glBeginQueryARB", "opengl") + ) )(target, id); [SupportedApiProfile("gl", ["GL_ARB_occlusion_query"])] @@ -417134,8 +417286,11 @@ void IGL.BeginQueryEXT( [NativeTypeName("GLuint")] uint id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginQueryEXT", "opengl") + (delegate* unmanaged)( + _slots[41] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[41] = nativeContext.LoadFunction("glBeginQueryEXT", "opengl") + ) )(target, id); [SupportedApiProfile( @@ -417174,8 +417329,11 @@ void IGL.BeginQueryIndexed( [NativeTypeName("GLuint")] uint id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginQueryIndexed", "opengl") + (delegate* unmanaged)( + _slots[42] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[42] = nativeContext.LoadFunction("glBeginQueryIndexed", "opengl") + ) )(target, index, id); [SupportedApiProfile( @@ -417261,8 +417419,11 @@ public static void BeginQueryIndexed( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BeginTransformFeedback([NativeTypeName("GLenum")] uint primitiveMode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginTransformFeedback", "opengl") + (delegate* unmanaged)( + _slots[43] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[43] = nativeContext.LoadFunction("glBeginTransformFeedback", "opengl") + ) )(primitiveMode); [SupportedApiProfile( @@ -417353,8 +417514,14 @@ public static void BeginTransformFeedback( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BeginTransformFeedbackEXT([NativeTypeName("GLenum")] uint primitiveMode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginTransformFeedbackEXT", "opengl") + (delegate* unmanaged)( + _slots[44] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[44] = nativeContext.LoadFunction( + "glBeginTransformFeedbackEXT", + "opengl" + ) + ) )(primitiveMode); [SupportedApiProfile("gl", ["GL_EXT_transform_feedback"])] @@ -417379,8 +417546,14 @@ public static void BeginTransformFeedbackEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BeginTransformFeedbackNV([NativeTypeName("GLenum")] uint primitiveMode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginTransformFeedbackNV", "opengl") + (delegate* unmanaged)( + _slots[45] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[45] = nativeContext.LoadFunction( + "glBeginTransformFeedbackNV", + "opengl" + ) + ) )(primitiveMode); [SupportedApiProfile("gl", ["GL_NV_transform_feedback"])] @@ -417405,8 +417578,11 @@ public static void BeginTransformFeedbackNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BeginVertexShaderEXT() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginVertexShaderEXT", "opengl") + (delegate* unmanaged)( + _slots[46] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[46] = nativeContext.LoadFunction("glBeginVertexShaderEXT", "opengl") + ) )(); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -417417,8 +417593,11 @@ void IGL.BeginVertexShaderEXT() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BeginVideoCaptureNV([NativeTypeName("GLuint")] uint video_capture_slot) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBeginVideoCaptureNV", "opengl") + (delegate* unmanaged)( + _slots[47] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[47] = nativeContext.LoadFunction("glBeginVideoCaptureNV", "opengl") + ) )(video_capture_slot); [SupportedApiProfile("gl", ["GL_NV_video_capture"])] @@ -417434,8 +417613,11 @@ void IGL.BindAttribLocation( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindAttribLocation", "opengl") + (delegate* unmanaged)( + _slots[48] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[48] = nativeContext.LoadFunction("glBindAttribLocation", "opengl") + ) )(program, index, name); [SupportedApiProfile( @@ -417561,8 +417743,11 @@ void IGL.BindAttribLocationARB( [NativeTypeName("const GLcharARB *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindAttribLocationARB", "opengl") + (delegate* unmanaged)( + _slots[49] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[49] = nativeContext.LoadFunction("glBindAttribLocationARB", "opengl") + ) )(programObj, index, name); [SupportedApiProfile("gl", ["GL_ARB_vertex_shader"])] @@ -417603,8 +417788,11 @@ void IGL.BindBuffer( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindBuffer", "opengl") + (delegate* unmanaged)( + _slots[50] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[50] = nativeContext.LoadFunction("glBindBuffer", "opengl") + ) )(target, buffer); [SupportedApiProfile( @@ -417726,8 +417914,11 @@ void IGL.BindBufferARB( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindBufferARB", "opengl") + (delegate* unmanaged)( + _slots[51] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[51] = nativeContext.LoadFunction("glBindBufferARB", "opengl") + ) )(target, buffer); [SupportedApiProfile("gl", ["GL_ARB_vertex_buffer_object"])] @@ -417760,8 +417951,11 @@ void IGL.BindBufferBase( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindBufferBase", "opengl") + (delegate* unmanaged)( + _slots[52] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[52] = nativeContext.LoadFunction("glBindBufferBase", "opengl") + ) )(target, index, buffer); [SupportedApiProfile( @@ -417867,8 +418061,11 @@ void IGL.BindBufferBaseEXT( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindBufferBaseEXT", "opengl") + (delegate* unmanaged)( + _slots[53] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[53] = nativeContext.LoadFunction("glBindBufferBaseEXT", "opengl") + ) )(target, index, buffer); [SupportedApiProfile("gl", ["GL_EXT_transform_feedback"])] @@ -417904,8 +418101,11 @@ void IGL.BindBufferBaseNV( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindBufferBaseNV", "opengl") + (delegate* unmanaged)( + _slots[54] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[54] = nativeContext.LoadFunction("glBindBufferBaseNV", "opengl") + ) )(target, index, buffer); [SupportedApiProfile("gl", ["GL_NV_transform_feedback"])] @@ -417942,8 +418142,11 @@ void IGL.BindBufferOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindBufferOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[55] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[55] = nativeContext.LoadFunction("glBindBufferOffsetEXT", "opengl") + ) )(target, index, buffer, offset); [SupportedApiProfile("gl", ["GL_EXT_transform_feedback"])] @@ -417983,8 +418186,11 @@ void IGL.BindBufferOffsetNV( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindBufferOffsetNV", "opengl") + (delegate* unmanaged)( + _slots[56] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[56] = nativeContext.LoadFunction("glBindBufferOffsetNV", "opengl") + ) )(target, index, buffer, offset); [SupportedApiProfile("gl", ["GL_NV_transform_feedback"])] @@ -418025,8 +418231,11 @@ void IGL.BindBufferRange( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindBufferRange", "opengl") + (delegate* unmanaged)( + _slots[57] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[57] = nativeContext.LoadFunction("glBindBufferRange", "opengl") + ) )(target, index, buffer, offset, size); [SupportedApiProfile( @@ -418140,8 +418349,11 @@ void IGL.BindBufferRangeEXT( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindBufferRangeEXT", "opengl") + (delegate* unmanaged)( + _slots[58] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[58] = nativeContext.LoadFunction("glBindBufferRangeEXT", "opengl") + ) )(target, index, buffer, offset, size); [SupportedApiProfile("gl", ["GL_EXT_transform_feedback"])] @@ -418185,8 +418397,11 @@ void IGL.BindBufferRangeNV( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindBufferRangeNV", "opengl") + (delegate* unmanaged)( + _slots[59] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[59] = nativeContext.LoadFunction("glBindBufferRangeNV", "opengl") + ) )(target, index, buffer, offset, size); [SupportedApiProfile("gl", ["GL_NV_transform_feedback"])] @@ -418229,8 +418444,11 @@ void IGL.BindBuffersBase( [NativeTypeName("const GLuint *")] uint* buffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindBuffersBase", "opengl") + (delegate* unmanaged)( + _slots[60] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[60] = nativeContext.LoadFunction("glBindBuffersBase", "opengl") + ) )(target, first, count, buffers); [SupportedApiProfile( @@ -418322,8 +418540,11 @@ void IGL.BindBuffersRange( [NativeTypeName("const GLsizeiptr *")] nuint* sizes ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindBuffersRange", "opengl") + (delegate* unmanaged)( + _slots[61] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[61] = nativeContext.LoadFunction("glBindBuffersRange", "opengl") + ) )(target, first, count, buffers, offsets, sizes); [SupportedApiProfile( @@ -418401,8 +418622,11 @@ void IGL.BindFragDataLocation( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindFragDataLocation", "opengl") + (delegate* unmanaged)( + _slots[62] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[62] = nativeContext.LoadFunction("glBindFragDataLocation", "opengl") + ) )(program, color, name); [SupportedApiProfile( @@ -418510,8 +418734,11 @@ void IGL.BindFragDataLocationEXT( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindFragDataLocationEXT", "opengl") + (delegate* unmanaged)( + _slots[63] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[63] = nativeContext.LoadFunction("glBindFragDataLocationEXT", "opengl") + ) )(program, color, name); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4"])] @@ -418556,8 +418783,14 @@ void IGL.BindFragDataLocationIndexed( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindFragDataLocationIndexed", "opengl") + (delegate* unmanaged)( + _slots[64] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[64] = nativeContext.LoadFunction( + "glBindFragDataLocationIndexed", + "opengl" + ) + ) )(program, colorNumber, index, name); [SupportedApiProfile( @@ -418661,8 +418894,14 @@ void IGL.BindFragDataLocationIndexedEXT( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindFragDataLocationIndexedEXT", "opengl") + (delegate* unmanaged)( + _slots[65] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[65] = nativeContext.LoadFunction( + "glBindFragDataLocationIndexedEXT", + "opengl" + ) + ) )(program, colorNumber, index, name); [SupportedApiProfile("gles2", ["GL_EXT_blend_func_extended"])] @@ -418703,8 +418942,11 @@ public static void BindFragDataLocationIndexedEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BindFragmentShaderATI([NativeTypeName("GLuint")] uint id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindFragmentShaderATI", "opengl") + (delegate* unmanaged)( + _slots[66] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[66] = nativeContext.LoadFunction("glBindFragmentShaderATI", "opengl") + ) )(id); [SupportedApiProfile("gl", ["GL_ATI_fragment_shader"])] @@ -418719,8 +418961,11 @@ void IGL.BindFramebuffer( [NativeTypeName("GLuint")] uint framebuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindFramebuffer", "opengl") + (delegate* unmanaged)( + _slots[67] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[67] = nativeContext.LoadFunction("glBindFramebuffer", "opengl") + ) )(target, framebuffer); [SupportedApiProfile( @@ -418832,8 +419077,11 @@ void IGL.BindFramebufferEXT( [NativeTypeName("GLuint")] uint framebuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindFramebufferEXT", "opengl") + (delegate* unmanaged)( + _slots[68] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[68] = nativeContext.LoadFunction("glBindFramebufferEXT", "opengl") + ) )(target, framebuffer); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -418865,8 +419113,11 @@ void IGL.BindFramebufferOES( [NativeTypeName("GLuint")] uint framebuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindFramebufferOES", "opengl") + (delegate* unmanaged)( + _slots[69] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[69] = nativeContext.LoadFunction("glBindFramebufferOES", "opengl") + ) )(target, framebuffer); [SupportedApiProfile("gles1", ["GL_OES_framebuffer_object"])] @@ -418903,8 +419154,11 @@ void IGL.BindImageTexture( [NativeTypeName("GLenum")] uint format ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindImageTexture", "opengl") + (delegate* unmanaged)( + _slots[70] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[70] = nativeContext.LoadFunction("glBindImageTexture", "opengl") + ) )(unit, texture, level, layered, layer, access, format); [SupportedApiProfile( @@ -419035,8 +419289,11 @@ void IGL.BindImageTextureEXT( [NativeTypeName("GLint")] int format ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindImageTextureEXT", "opengl") + (delegate* unmanaged)( + _slots[72] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[72] = nativeContext.LoadFunction("glBindImageTextureEXT", "opengl") + ) )(index, texture, level, layered, layer, access, format); [SupportedApiProfile("gl", ["GL_EXT_shader_image_load_store"])] @@ -419093,8 +419350,11 @@ void IGL.BindImageTextures( [NativeTypeName("const GLuint *")] uint* textures ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindImageTextures", "opengl") + (delegate* unmanaged)( + _slots[71] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[71] = nativeContext.LoadFunction("glBindImageTextures", "opengl") + ) )(first, count, textures); [SupportedApiProfile( @@ -419153,8 +419413,11 @@ uint IGL.BindLightParameterEXT( [NativeTypeName("GLenum")] uint value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindLightParameterEXT", "opengl") + (delegate* unmanaged)( + _slots[73] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[73] = nativeContext.LoadFunction("glBindLightParameterEXT", "opengl") + ) )(light, value); [return: NativeTypeName("GLuint")] @@ -419188,8 +419451,14 @@ uint IGL.BindMaterialParameterEXT( [NativeTypeName("GLenum")] uint value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindMaterialParameterEXT", "opengl") + (delegate* unmanaged)( + _slots[74] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[74] = nativeContext.LoadFunction( + "glBindMaterialParameterEXT", + "opengl" + ) + ) )(face, value); [return: NativeTypeName("GLuint")] @@ -419224,8 +419493,11 @@ void IGL.BindMultiTextureEXT( [NativeTypeName("GLuint")] uint texture ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindMultiTextureEXT", "opengl") + (delegate* unmanaged)( + _slots[75] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[75] = nativeContext.LoadFunction("glBindMultiTextureEXT", "opengl") + ) )(texunit, target, texture); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -419259,8 +419531,11 @@ public static void BindMultiTextureEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.BindParameterEXT([NativeTypeName("GLenum")] uint value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindParameterEXT", "opengl") + (delegate* unmanaged)( + _slots[76] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[76] = nativeContext.LoadFunction("glBindParameterEXT", "opengl") + ) )(value); [return: NativeTypeName("GLuint")] @@ -419290,8 +419565,11 @@ void IGL.BindProgramARB( [NativeTypeName("GLuint")] uint program ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindProgramARB", "opengl") + (delegate* unmanaged)( + _slots[77] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[77] = nativeContext.LoadFunction("glBindProgramARB", "opengl") + ) )(target, program); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -419323,8 +419601,11 @@ void IGL.BindProgramNV( [NativeTypeName("GLuint")] uint id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindProgramNV", "opengl") + (delegate* unmanaged)( + _slots[78] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[78] = nativeContext.LoadFunction("glBindProgramNV", "opengl") + ) )(target, id); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -419353,8 +419634,11 @@ public static void BindProgramNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BindProgramPipeline([NativeTypeName("GLuint")] uint pipeline) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindProgramPipeline", "opengl") + (delegate* unmanaged)( + _slots[79] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[79] = nativeContext.LoadFunction("glBindProgramPipeline", "opengl") + ) )(pipeline); [SupportedApiProfile( @@ -419391,8 +419675,11 @@ public static void BindProgramPipeline([NativeTypeName("GLuint")] uint pipeline) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BindProgramPipelineEXT([NativeTypeName("GLuint")] uint pipeline) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindProgramPipelineEXT", "opengl") + (delegate* unmanaged)( + _slots[80] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[80] = nativeContext.LoadFunction("glBindProgramPipelineEXT", "opengl") + ) )(pipeline); [SupportedApiProfile("gles2", ["GL_EXT_separate_shader_objects"])] @@ -419407,8 +419694,11 @@ void IGL.BindRenderbuffer( [NativeTypeName("GLuint")] uint renderbuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindRenderbuffer", "opengl") + (delegate* unmanaged)( + _slots[81] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[81] = nativeContext.LoadFunction("glBindRenderbuffer", "opengl") + ) )(target, renderbuffer); [SupportedApiProfile( @@ -419520,8 +419810,11 @@ void IGL.BindRenderbufferEXT( [NativeTypeName("GLuint")] uint renderbuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindRenderbufferEXT", "opengl") + (delegate* unmanaged)( + _slots[82] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[82] = nativeContext.LoadFunction("glBindRenderbufferEXT", "opengl") + ) )(target, renderbuffer); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -419553,8 +419846,11 @@ void IGL.BindRenderbufferOES( [NativeTypeName("GLuint")] uint renderbuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindRenderbufferOES", "opengl") + (delegate* unmanaged)( + _slots[83] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[83] = nativeContext.LoadFunction("glBindRenderbufferOES", "opengl") + ) )(target, renderbuffer); [SupportedApiProfile("gles1", ["GL_OES_framebuffer_object"])] @@ -419586,8 +419882,11 @@ void IGL.BindSampler( [NativeTypeName("GLuint")] uint sampler ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindSampler", "opengl") + (delegate* unmanaged)( + _slots[84] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[84] = nativeContext.LoadFunction("glBindSampler", "opengl") + ) )(unit, sampler); [SupportedApiProfile( @@ -419639,8 +419938,11 @@ void IGL.BindSamplers( [NativeTypeName("const GLuint *")] uint* samplers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindSamplers", "opengl") + (delegate* unmanaged)( + _slots[85] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[85] = nativeContext.LoadFunction("glBindSamplers", "opengl") + ) )(first, count, samplers); [SupportedApiProfile( @@ -419696,8 +419998,11 @@ public static void BindSamplers( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BindShadingRateImageNV([NativeTypeName("GLuint")] uint texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindShadingRateImageNV", "opengl") + (delegate* unmanaged)( + _slots[86] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[86] = nativeContext.LoadFunction("glBindShadingRateImageNV", "opengl") + ) )(texture); [SupportedApiProfile("gl", ["GL_NV_shading_rate_image"])] @@ -419715,8 +420020,11 @@ uint IGL.BindTexGenParameterEXT( [NativeTypeName("GLenum")] uint value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindTexGenParameterEXT", "opengl") + (delegate* unmanaged)( + _slots[87] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[87] = nativeContext.LoadFunction("glBindTexGenParameterEXT", "opengl") + ) )(unit, coord, value); [return: NativeTypeName("GLuint")] @@ -419753,8 +420061,11 @@ void IGL.BindTexture( [NativeTypeName("GLuint")] uint texture ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindTexture", "opengl") + (delegate* unmanaged)( + _slots[88] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[88] = nativeContext.LoadFunction("glBindTexture", "opengl") + ) )(target, texture); [SupportedApiProfile( @@ -419892,8 +420203,11 @@ void IGL.BindTextureEXT( [NativeTypeName("GLuint")] uint texture ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindTextureEXT", "opengl") + (delegate* unmanaged)( + _slots[89] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[89] = nativeContext.LoadFunction("glBindTextureEXT", "opengl") + ) )(target, texture); [SupportedApiProfile("gl", ["GL_EXT_texture_object"])] @@ -419926,8 +420240,11 @@ void IGL.BindTextures( [NativeTypeName("const GLuint *")] uint* textures ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindTextures", "opengl") + (delegate* unmanaged)( + _slots[90] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[90] = nativeContext.LoadFunction("glBindTextures", "opengl") + ) )(first, count, textures); [SupportedApiProfile( @@ -419986,8 +420303,11 @@ void IGL.BindTextureUnit( [NativeTypeName("GLuint")] uint texture ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindTextureUnit", "opengl") + (delegate* unmanaged)( + _slots[91] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[91] = nativeContext.LoadFunction("glBindTextureUnit", "opengl") + ) )(unit, texture); [SupportedApiProfile( @@ -420013,8 +420333,14 @@ uint IGL.BindTextureUnitParameterEXT( [NativeTypeName("GLenum")] uint value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindTextureUnitParameterEXT", "opengl") + (delegate* unmanaged)( + _slots[92] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[92] = nativeContext.LoadFunction( + "glBindTextureUnitParameterEXT", + "opengl" + ) + ) )(unit, value); [return: NativeTypeName("GLuint")] @@ -420048,8 +420374,11 @@ void IGL.BindTransformFeedback( [NativeTypeName("GLuint")] uint id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindTransformFeedback", "opengl") + (delegate* unmanaged)( + _slots[93] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[93] = nativeContext.LoadFunction("glBindTransformFeedback", "opengl") + ) )(target, id); [SupportedApiProfile( @@ -420135,8 +420464,11 @@ void IGL.BindTransformFeedbackNV( [NativeTypeName("GLuint")] uint id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindTransformFeedbackNV", "opengl") + (delegate* unmanaged)( + _slots[94] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[94] = nativeContext.LoadFunction("glBindTransformFeedbackNV", "opengl") + ) )(target, id); [SupportedApiProfile("gl", ["GL_NV_transform_feedback2"])] @@ -420165,8 +420497,11 @@ public static void BindTransformFeedbackNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BindVertexArray([NativeTypeName("GLuint")] uint array) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindVertexArray", "opengl") + (delegate* unmanaged)( + _slots[95] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[95] = nativeContext.LoadFunction("glBindVertexArray", "opengl") + ) )(array); [SupportedApiProfile( @@ -420213,8 +420548,11 @@ public static void BindVertexArray([NativeTypeName("GLuint")] uint array) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BindVertexArrayApple([NativeTypeName("GLuint")] uint array) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindVertexArrayAPPLE", "opengl") + (delegate* unmanaged)( + _slots[96] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[96] = nativeContext.LoadFunction("glBindVertexArrayAPPLE", "opengl") + ) )(array); [SupportedApiProfile("gl", ["GL_APPLE_vertex_array_object"])] @@ -420226,8 +420564,11 @@ public static void BindVertexArrayApple([NativeTypeName("GLuint")] uint array) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BindVertexArrayOES([NativeTypeName("GLuint")] uint array) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindVertexArrayOES", "opengl") + (delegate* unmanaged)( + _slots[97] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[97] = nativeContext.LoadFunction("glBindVertexArrayOES", "opengl") + ) )(array); [SupportedApiProfile("gles2", ["GL_OES_vertex_array_object"])] @@ -420245,8 +420586,11 @@ void IGL.BindVertexBuffer( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindVertexBuffer", "opengl") + (delegate* unmanaged)( + _slots[98] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[98] = nativeContext.LoadFunction("glBindVertexBuffer", "opengl") + ) )(bindingindex, buffer, offset, stride); [SupportedApiProfile( @@ -420289,8 +420633,11 @@ void IGL.BindVertexBuffers( [NativeTypeName("const GLsizei *")] uint* strides ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindVertexBuffers", "opengl") + (delegate* unmanaged)( + _slots[99] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[99] = nativeContext.LoadFunction("glBindVertexBuffers", "opengl") + ) )(first, count, buffers, offsets, strides); [SupportedApiProfile( @@ -420360,8 +420707,11 @@ public static void BindVertexBuffers( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BindVertexShaderEXT([NativeTypeName("GLuint")] uint id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindVertexShaderEXT", "opengl") + (delegate* unmanaged)( + _slots[100] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[100] = nativeContext.LoadFunction("glBindVertexShaderEXT", "opengl") + ) )(id); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -420378,8 +420728,14 @@ void IGL.BindVideoCaptureStreamBufferNV( [NativeTypeName("GLintptrARB")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindVideoCaptureStreamBufferNV", "opengl") + (delegate* unmanaged)( + _slots[101] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[101] = nativeContext.LoadFunction( + "glBindVideoCaptureStreamBufferNV", + "opengl" + ) + ) )(video_capture_slot, stream, frame_region, offset); [SupportedApiProfile("gl", ["GL_NV_video_capture"])] @@ -420402,8 +420758,14 @@ void IGL.BindVideoCaptureStreamTextureNV( [NativeTypeName("GLuint")] uint texture ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBindVideoCaptureStreamTextureNV", "opengl") + (delegate* unmanaged)( + _slots[102] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[102] = nativeContext.LoadFunction( + "glBindVideoCaptureStreamTextureNV", + "opengl" + ) + ) )(video_capture_slot, stream, frame_region, target, texture); [SupportedApiProfile("gl", ["GL_NV_video_capture"])] @@ -420431,8 +420793,11 @@ void IGL.Binormal3EXT( [NativeTypeName("GLbyte")] sbyte bz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBinormal3bEXT", "opengl") + (delegate* unmanaged)( + _slots[103] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[103] = nativeContext.LoadFunction("glBinormal3bEXT", "opengl") + ) )(bx, by, bz); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -420447,8 +420812,11 @@ public static void Binormal3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Binormal3EXT([NativeTypeName("const GLbyte *")] sbyte* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBinormal3bvEXT", "opengl") + (delegate* unmanaged)( + _slots[104] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[104] = nativeContext.LoadFunction("glBinormal3bvEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -420480,8 +420848,11 @@ void IGL.Binormal3EXT( [NativeTypeName("GLdouble")] double bz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBinormal3dEXT", "opengl") + (delegate* unmanaged)( + _slots[105] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[105] = nativeContext.LoadFunction("glBinormal3dEXT", "opengl") + ) )(bx, by, bz); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -420496,8 +420867,11 @@ public static void Binormal3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Binormal3EXT([NativeTypeName("const GLdouble *")] double* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBinormal3dvEXT", "opengl") + (delegate* unmanaged)( + _slots[106] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[106] = nativeContext.LoadFunction("glBinormal3dvEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -420529,8 +420903,11 @@ void IGL.Binormal3EXT( [NativeTypeName("GLfloat")] float bz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBinormal3fEXT", "opengl") + (delegate* unmanaged)( + _slots[107] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[107] = nativeContext.LoadFunction("glBinormal3fEXT", "opengl") + ) )(bx, by, bz); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -420545,8 +420922,11 @@ public static void Binormal3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Binormal3EXT([NativeTypeName("const GLfloat *")] float* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBinormal3fvEXT", "opengl") + (delegate* unmanaged)( + _slots[108] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[108] = nativeContext.LoadFunction("glBinormal3fvEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -420578,8 +420958,11 @@ void IGL.Binormal3EXT( [NativeTypeName("GLint")] int bz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBinormal3iEXT", "opengl") + (delegate* unmanaged)( + _slots[109] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[109] = nativeContext.LoadFunction("glBinormal3iEXT", "opengl") + ) )(bx, by, bz); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -420593,9 +420976,13 @@ public static void Binormal3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Binormal3EXT([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glBinormal3ivEXT", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[110] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[110] = nativeContext.LoadFunction("glBinormal3ivEXT", "opengl") + ) + )(v); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] [NativeFunction("opengl", EntryPoint = "glBinormal3ivEXT")] @@ -420626,8 +421013,11 @@ void IGL.Binormal3EXT( [NativeTypeName("GLshort")] short bz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBinormal3sEXT", "opengl") + (delegate* unmanaged)( + _slots[111] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[111] = nativeContext.LoadFunction("glBinormal3sEXT", "opengl") + ) )(bx, by, bz); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -420642,8 +421032,11 @@ public static void Binormal3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Binormal3EXT([NativeTypeName("const GLshort *")] short* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBinormal3svEXT", "opengl") + (delegate* unmanaged)( + _slots[112] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[112] = nativeContext.LoadFunction("glBinormal3svEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -420675,8 +421068,11 @@ void IGL.BinormalPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBinormalPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[113] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[113] = nativeContext.LoadFunction("glBinormalPointerEXT", "opengl") + ) )(type, stride, pointer); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -420722,8 +421118,11 @@ void IGL.Bitmap( [NativeTypeName("const GLubyte *")] byte* bitmap ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBitmap", "opengl") + (delegate* unmanaged)( + _slots[114] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[114] = nativeContext.LoadFunction("glBitmap", "opengl") + ) )(width, height, xorig, yorig, xmove, ymove, bitmap); [SupportedApiProfile( @@ -420899,8 +421298,11 @@ void IGL.BitmapxOES( [NativeTypeName("const GLubyte *")] byte* bitmap ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBitmapxOES", "opengl") + (delegate* unmanaged)( + _slots[115] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[115] = nativeContext.LoadFunction("glBitmapxOES", "opengl") + ) )(width, height, xorig, yorig, xmove, ymove, bitmap); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -420949,7 +421351,13 @@ public static void BitmapxOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BlendBarrierKHR() => - ((delegate* unmanaged)nativeContext.LoadFunction("glBlendBarrierKHR", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[116] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[116] = nativeContext.LoadFunction("glBlendBarrierKHR", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_KHR_blend_equation_advanced"])] [SupportedApiProfile("glcore", ["GL_KHR_blend_equation_advanced"])] @@ -420960,7 +421368,13 @@ void IGL.BlendBarrierKHR() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BlendBarrierNV() => - ((delegate* unmanaged)nativeContext.LoadFunction("glBlendBarrierNV", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[117] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[117] = nativeContext.LoadFunction("glBlendBarrierNV", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_NV_blend_equation_advanced"])] [SupportedApiProfile("glcore", ["GL_NV_blend_equation_advanced"])] @@ -420977,8 +421391,11 @@ void IGL.BlendColor( [NativeTypeName("GLfloat")] float alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendColor", "opengl") + (delegate* unmanaged)( + _slots[118] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[118] = nativeContext.LoadFunction("glBlendColor", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile( @@ -421047,8 +421464,11 @@ void IGL.BlendColorEXT( [NativeTypeName("GLfloat")] float alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendColorEXT", "opengl") + (delegate* unmanaged)( + _slots[119] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[119] = nativeContext.LoadFunction("glBlendColorEXT", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile("gl", ["GL_EXT_blend_color"])] @@ -421069,8 +421489,11 @@ void IGL.BlendColorxOES( [NativeTypeName("GLfixed")] int alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendColorxOES", "opengl") + (delegate* unmanaged)( + _slots[120] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[120] = nativeContext.LoadFunction("glBlendColorxOES", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -421085,9 +421508,13 @@ public static void BlendColorxOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BlendEquation([NativeTypeName("GLenum")] uint mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glBlendEquation", "opengl"))( - mode - ); + ( + (delegate* unmanaged)( + _slots[121] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[121] = nativeContext.LoadFunction("glBlendEquation", "opengl") + ) + )(mode); [SupportedApiProfile( "gl", @@ -421207,8 +421634,11 @@ public static void BlendEquation( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BlendEquationEXT([NativeTypeName("GLenum")] uint mode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationEXT", "opengl") + (delegate* unmanaged)( + _slots[122] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[122] = nativeContext.LoadFunction("glBlendEquationEXT", "opengl") + ) )(mode); [SupportedApiProfile("gl", ["GL_EXT_blend_minmax"])] @@ -421236,8 +421666,11 @@ void IGL.BlendEquation( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationi", "opengl") + (delegate* unmanaged)( + _slots[123] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[123] = nativeContext.LoadFunction("glBlendEquationi", "opengl") + ) )(buf, mode); [SupportedApiProfile( @@ -421319,8 +421752,11 @@ void IGL.BlendEquationARB( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationiARB", "opengl") + (delegate* unmanaged)( + _slots[124] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[124] = nativeContext.LoadFunction("glBlendEquationiARB", "opengl") + ) )(buf, mode); [SupportedApiProfile("gl", ["GL_ARB_draw_buffers_blend"])] @@ -421354,8 +421790,11 @@ void IGL.BlendEquationEXT( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationiEXT", "opengl") + (delegate* unmanaged)( + _slots[125] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[125] = nativeContext.LoadFunction("glBlendEquationiEXT", "opengl") + ) )(buf, mode); [SupportedApiProfile("gles2", ["GL_EXT_draw_buffers_indexed"])] @@ -421387,8 +421826,14 @@ void IGL.BlendEquationIndexedAMD( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationIndexedAMD", "opengl") + (delegate* unmanaged)( + _slots[126] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[126] = nativeContext.LoadFunction( + "glBlendEquationIndexedAMD", + "opengl" + ) + ) )(buf, mode); [SupportedApiProfile("gl", ["GL_AMD_draw_buffers_blend"])] @@ -421420,8 +421865,11 @@ void IGL.BlendEquationOES( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationiOES", "opengl") + (delegate* unmanaged)( + _slots[127] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[127] = nativeContext.LoadFunction("glBlendEquationiOES", "opengl") + ) )(buf, mode); [SupportedApiProfile("gles2", ["GL_OES_draw_buffers_indexed"])] @@ -421450,8 +421898,11 @@ public static void BlendEquationOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.BlendEquationOES([NativeTypeName("GLenum")] uint mode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationOES", "opengl") + (delegate* unmanaged)( + _slots[128] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[128] = nativeContext.LoadFunction("glBlendEquationOES", "opengl") + ) )(mode); [SupportedApiProfile("gles1", ["GL_OES_blend_subtract"])] @@ -421479,8 +421930,11 @@ void IGL.BlendEquationSeparate( [NativeTypeName("GLenum")] uint modeAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationSeparate", "opengl") + (delegate* unmanaged)( + _slots[129] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[129] = nativeContext.LoadFunction("glBlendEquationSeparate", "opengl") + ) )(modeRGB, modeAlpha); [SupportedApiProfile( @@ -421596,8 +422050,14 @@ void IGL.BlendEquationSeparateEXT( [NativeTypeName("GLenum")] uint modeAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationSeparateEXT", "opengl") + (delegate* unmanaged)( + _slots[130] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[130] = nativeContext.LoadFunction( + "glBlendEquationSeparateEXT", + "opengl" + ) + ) )(modeRGB, modeAlpha); [SupportedApiProfile("gl", ["GL_EXT_blend_equation_separate"])] @@ -421630,8 +422090,11 @@ void IGL.BlendEquationSeparate( [NativeTypeName("GLenum")] uint modeAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationSeparatei", "opengl") + (delegate* unmanaged)( + _slots[131] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[131] = nativeContext.LoadFunction("glBlendEquationSeparatei", "opengl") + ) )(buf, modeRGB, modeAlpha); [SupportedApiProfile( @@ -421717,8 +422180,14 @@ void IGL.BlendEquationSeparateARB( [NativeTypeName("GLenum")] uint modeAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationSeparateiARB", "opengl") + (delegate* unmanaged)( + _slots[132] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[132] = nativeContext.LoadFunction( + "glBlendEquationSeparateiARB", + "opengl" + ) + ) )(buf, modeRGB, modeAlpha); [SupportedApiProfile("gl", ["GL_ARB_draw_buffers_blend"])] @@ -421756,8 +422225,14 @@ void IGL.BlendEquationSeparateEXT( [NativeTypeName("GLenum")] uint modeAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationSeparateiEXT", "opengl") + (delegate* unmanaged)( + _slots[133] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[133] = nativeContext.LoadFunction( + "glBlendEquationSeparateiEXT", + "opengl" + ) + ) )(buf, modeRGB, modeAlpha); [SupportedApiProfile("gles2", ["GL_EXT_draw_buffers_indexed"])] @@ -421793,8 +422268,14 @@ void IGL.BlendEquationSeparateIndexedAMD( [NativeTypeName("GLenum")] uint modeAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationSeparateIndexedAMD", "opengl") + (delegate* unmanaged)( + _slots[134] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[134] = nativeContext.LoadFunction( + "glBlendEquationSeparateIndexedAMD", + "opengl" + ) + ) )(buf, modeRGB, modeAlpha); [SupportedApiProfile("gl", ["GL_AMD_draw_buffers_blend"])] @@ -421830,8 +422311,14 @@ void IGL.BlendEquationSeparateOES( [NativeTypeName("GLenum")] uint modeAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationSeparateiOES", "opengl") + (delegate* unmanaged)( + _slots[135] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[135] = nativeContext.LoadFunction( + "glBlendEquationSeparateiOES", + "opengl" + ) + ) )(buf, modeRGB, modeAlpha); [SupportedApiProfile("gles2", ["GL_OES_draw_buffers_indexed"])] @@ -421866,8 +422353,14 @@ void IGL.BlendEquationSeparateOES( [NativeTypeName("GLenum")] uint modeAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendEquationSeparateOES", "opengl") + (delegate* unmanaged)( + _slots[136] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[136] = nativeContext.LoadFunction( + "glBlendEquationSeparateOES", + "opengl" + ) + ) )(modeRGB, modeAlpha); [SupportedApiProfile("gles1", ["GL_OES_blend_equation_separate"])] @@ -421899,8 +422392,11 @@ void IGL.BlendFunc( [NativeTypeName("GLenum")] uint dfactor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFunc", "opengl") + (delegate* unmanaged)( + _slots[137] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[137] = nativeContext.LoadFunction("glBlendFunc", "opengl") + ) )(sfactor, dfactor); [SupportedApiProfile( @@ -422043,8 +422539,11 @@ void IGL.BlendFunc( [NativeTypeName("GLenum")] uint dst ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFunci", "opengl") + (delegate* unmanaged)( + _slots[138] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[138] = nativeContext.LoadFunction("glBlendFunci", "opengl") + ) )(buf, src, dst); [SupportedApiProfile( @@ -422130,8 +422629,11 @@ void IGL.BlendFuncARB( [NativeTypeName("GLenum")] uint dst ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFunciARB", "opengl") + (delegate* unmanaged)( + _slots[139] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[139] = nativeContext.LoadFunction("glBlendFunciARB", "opengl") + ) )(buf, src, dst); [SupportedApiProfile("gl", ["GL_ARB_draw_buffers_blend"])] @@ -422169,8 +422671,11 @@ void IGL.BlendFuncEXT( [NativeTypeName("GLenum")] uint dst ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFunciEXT", "opengl") + (delegate* unmanaged)( + _slots[140] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[140] = nativeContext.LoadFunction("glBlendFunciEXT", "opengl") + ) )(buf, src, dst); [SupportedApiProfile("gles2", ["GL_EXT_draw_buffers_indexed"])] @@ -422206,8 +422711,11 @@ void IGL.BlendFuncIndexedAMD( [NativeTypeName("GLenum")] uint dst ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFuncIndexedAMD", "opengl") + (delegate* unmanaged)( + _slots[141] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[141] = nativeContext.LoadFunction("glBlendFuncIndexedAMD", "opengl") + ) )(buf, src, dst); [SupportedApiProfile("gl", ["GL_AMD_draw_buffers_blend"])] @@ -422226,8 +422734,11 @@ void IGL.BlendFuncOES( [NativeTypeName("GLenum")] uint dst ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFunciOES", "opengl") + (delegate* unmanaged)( + _slots[142] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[142] = nativeContext.LoadFunction("glBlendFunciOES", "opengl") + ) )(buf, src, dst); [SupportedApiProfile("gles2", ["GL_OES_draw_buffers_indexed"])] @@ -422264,8 +422775,11 @@ void IGL.BlendFuncSeparate( [NativeTypeName("GLenum")] uint dfactorAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFuncSeparate", "opengl") + (delegate* unmanaged)( + _slots[143] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[143] = nativeContext.LoadFunction("glBlendFuncSeparate", "opengl") + ) )(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); [SupportedApiProfile( @@ -422403,8 +422917,11 @@ void IGL.BlendFuncSeparateEXT( [NativeTypeName("GLenum")] uint dfactorAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFuncSeparateEXT", "opengl") + (delegate* unmanaged)( + _slots[144] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[144] = nativeContext.LoadFunction("glBlendFuncSeparateEXT", "opengl") + ) )(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); [SupportedApiProfile("gl", ["GL_EXT_blend_func_separate"])] @@ -422451,8 +422968,11 @@ void IGL.BlendFuncSeparate( [NativeTypeName("GLenum")] uint dstAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFuncSeparatei", "opengl") + (delegate* unmanaged)( + _slots[145] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[145] = nativeContext.LoadFunction("glBlendFuncSeparatei", "opengl") + ) )(buf, srcRGB, dstRGB, srcAlpha, dstAlpha); [SupportedApiProfile( @@ -422553,8 +423073,11 @@ void IGL.BlendFuncSeparateARB( [NativeTypeName("GLenum")] uint dstAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFuncSeparateiARB", "opengl") + (delegate* unmanaged)( + _slots[146] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[146] = nativeContext.LoadFunction("glBlendFuncSeparateiARB", "opengl") + ) )(buf, srcRGB, dstRGB, srcAlpha, dstAlpha); [SupportedApiProfile("gl", ["GL_ARB_draw_buffers_blend"])] @@ -422607,8 +423130,11 @@ void IGL.BlendFuncSeparateEXT( [NativeTypeName("GLenum")] uint dstAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFuncSeparateiEXT", "opengl") + (delegate* unmanaged)( + _slots[147] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[147] = nativeContext.LoadFunction("glBlendFuncSeparateiEXT", "opengl") + ) )(buf, srcRGB, dstRGB, srcAlpha, dstAlpha); [SupportedApiProfile("gles2", ["GL_EXT_draw_buffers_indexed"])] @@ -422659,8 +423185,14 @@ void IGL.BlendFuncSeparateIndexedAMD( [NativeTypeName("GLenum")] uint dstAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFuncSeparateIndexedAMD", "opengl") + (delegate* unmanaged)( + _slots[148] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[148] = nativeContext.LoadFunction( + "glBlendFuncSeparateIndexedAMD", + "opengl" + ) + ) )(buf, srcRGB, dstRGB, srcAlpha, dstAlpha); [SupportedApiProfile("gl", ["GL_AMD_draw_buffers_blend"])] @@ -422710,8 +423242,11 @@ void IGL.BlendFuncSeparateINGR( [NativeTypeName("GLenum")] uint dfactorAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFuncSeparateINGR", "opengl") + (delegate* unmanaged)( + _slots[149] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[149] = nativeContext.LoadFunction("glBlendFuncSeparateINGR", "opengl") + ) )(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); [SupportedApiProfile("gl", ["GL_INGR_blend_func_separate"])] @@ -422758,8 +423293,11 @@ void IGL.BlendFuncSeparateOES( [NativeTypeName("GLenum")] uint dstAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFuncSeparateiOES", "opengl") + (delegate* unmanaged)( + _slots[150] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[150] = nativeContext.LoadFunction("glBlendFuncSeparateiOES", "opengl") + ) )(buf, srcRGB, dstRGB, srcAlpha, dstAlpha); [SupportedApiProfile("gles2", ["GL_OES_draw_buffers_indexed"])] @@ -422809,8 +423347,11 @@ void IGL.BlendFuncSeparateOES( [NativeTypeName("GLenum")] uint dstAlpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendFuncSeparateOES", "opengl") + (delegate* unmanaged)( + _slots[151] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[151] = nativeContext.LoadFunction("glBlendFuncSeparateOES", "opengl") + ) )(srcRGB, dstRGB, srcAlpha, dstAlpha); [SupportedApiProfile("gles1", ["GL_OES_blend_func_separate"])] @@ -422854,8 +423395,11 @@ void IGL.BlendParameterNV( [NativeTypeName("GLint")] int value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlendParameteriNV", "opengl") + (delegate* unmanaged)( + _slots[152] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[152] = nativeContext.LoadFunction("glBlendParameteriNV", "opengl") + ) )(pname, value); [SupportedApiProfile("gl", ["GL_NV_blend_equation_advanced"])] @@ -422882,8 +423426,11 @@ void IGL.BlitFramebuffer( [NativeTypeName("GLenum")] uint filter ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlitFramebuffer", "opengl") + (delegate* unmanaged)( + _slots[153] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[153] = nativeContext.LoadFunction("glBlitFramebuffer", "opengl") + ) )(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); [SupportedApiProfile( @@ -423053,8 +423600,11 @@ void IGL.BlitFramebufferAngle( [NativeTypeName("GLenum")] uint filter ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlitFramebufferANGLE", "opengl") + (delegate* unmanaged)( + _slots[154] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[154] = nativeContext.LoadFunction("glBlitFramebufferANGLE", "opengl") + ) )(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); [SupportedApiProfile("gles2", ["GL_ANGLE_framebuffer_blit"])] @@ -423154,8 +423704,11 @@ void IGL.BlitFramebufferEXT( [NativeTypeName("GLenum")] uint filter ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlitFramebufferEXT", "opengl") + (delegate* unmanaged)( + _slots[155] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[155] = nativeContext.LoadFunction("glBlitFramebufferEXT", "opengl") + ) )(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_blit"])] @@ -423270,8 +423823,14 @@ void IGL.BlitFramebufferLayerEXT( int, uint, uint, - void>) - nativeContext.LoadFunction("glBlitFramebufferLayerEXT", "opengl") + void>)( + _slots[156] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[156] = nativeContext.LoadFunction( + "glBlitFramebufferLayerEXT", + "opengl" + ) + ) )(srcX0, srcY0, srcX1, srcY1, srcLayer, dstX0, dstY0, dstX1, dstY1, dstLayer, mask, filter); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_blit_layers"])] @@ -423385,8 +423944,14 @@ void IGL.BlitFramebufferLayersEXT( [NativeTypeName("GLenum")] uint filter ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlitFramebufferLayersEXT", "opengl") + (delegate* unmanaged)( + _slots[157] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[157] = nativeContext.LoadFunction( + "glBlitFramebufferLayersEXT", + "opengl" + ) + ) )(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_blit_layers"])] @@ -423488,8 +424053,11 @@ void IGL.BlitFramebufferNV( [NativeTypeName("GLenum")] uint filter ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBlitFramebufferNV", "opengl") + (delegate* unmanaged)( + _slots[158] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[158] = nativeContext.LoadFunction("glBlitFramebufferNV", "opengl") + ) )(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); [SupportedApiProfile("gles2", ["GL_NV_framebuffer_blit"])] @@ -423604,8 +424172,11 @@ void IGL.BlitNamedFramebuffer( int, uint, uint, - void>) - nativeContext.LoadFunction("glBlitNamedFramebuffer", "opengl") + void>)( + _slots[159] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[159] = nativeContext.LoadFunction("glBlitNamedFramebuffer", "opengl") + ) )( readFramebuffer, drawFramebuffer, @@ -423742,8 +424313,11 @@ void IGL.BufferAddressRangeNV( [NativeTypeName("GLsizeiptr")] nuint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferAddressRangeNV", "opengl") + (delegate* unmanaged)( + _slots[160] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[160] = nativeContext.LoadFunction("glBufferAddressRangeNV", "opengl") + ) )(pname, index, address, length); [SupportedApiProfile("gl", ["GL_NV_vertex_buffer_unified_memory"])] @@ -423764,8 +424338,11 @@ void IGL.BufferAttachMemoryNV( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferAttachMemoryNV", "opengl") + (delegate* unmanaged)( + _slots[161] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[161] = nativeContext.LoadFunction("glBufferAttachMemoryNV", "opengl") + ) )(target, memory, offset); [SupportedApiProfile("gl", ["GL_NV_memory_attachment"])] @@ -423806,8 +424383,11 @@ void IGL.BufferData( [NativeTypeName("GLenum")] uint usage ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferData", "opengl") + (delegate* unmanaged)( + _slots[162] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[162] = nativeContext.LoadFunction("glBufferData", "opengl") + ) )(target, size, data, usage); [SupportedApiProfile( @@ -423943,8 +424523,11 @@ void IGL.BufferDataARB( [NativeTypeName("GLenum")] uint usage ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferDataARB", "opengl") + (delegate* unmanaged)( + _slots[163] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[163] = nativeContext.LoadFunction("glBufferDataARB", "opengl") + ) )(target, size, data, usage); [SupportedApiProfile("gl", ["GL_ARB_vertex_buffer_object"])] @@ -423990,8 +424573,14 @@ void IGL.BufferPageCommitmentARB( [NativeTypeName("GLboolean")] uint commit ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferPageCommitmentARB", "opengl") + (delegate* unmanaged)( + _slots[164] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[164] = nativeContext.LoadFunction( + "glBufferPageCommitmentARB", + "opengl" + ) + ) )(target, offset, size, commit); [SupportedApiProfile("gl", ["GL_ARB_sparse_buffer"])] @@ -424035,8 +424624,14 @@ void IGL.BufferPageCommitmentMemNV( [NativeTypeName("GLboolean")] uint commit ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferPageCommitmentMemNV", "opengl") + (delegate* unmanaged)( + _slots[165] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[165] = nativeContext.LoadFunction( + "glBufferPageCommitmentMemNV", + "opengl" + ) + ) )(target, offset, size, memory, memOffset, commit); [SupportedApiProfile("gl", ["GL_NV_memory_object_sparse"])] @@ -424093,8 +424688,11 @@ void IGL.BufferParameterApple( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferParameteriAPPLE", "opengl") + (delegate* unmanaged)( + _slots[166] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[166] = nativeContext.LoadFunction("glBufferParameteriAPPLE", "opengl") + ) )(target, pname, param2); [SupportedApiProfile("gl", ["GL_APPLE_flush_buffer_range"])] @@ -424114,8 +424712,11 @@ void IGL.BufferStorage( [NativeTypeName("GLbitfield")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferStorage", "opengl") + (delegate* unmanaged)( + _slots[167] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[167] = nativeContext.LoadFunction("glBufferStorage", "opengl") + ) )(target, size, data, flags); [SupportedApiProfile( @@ -424179,8 +424780,11 @@ void IGL.BufferStorageEXT( [NativeTypeName("GLbitfield")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferStorageEXT", "opengl") + (delegate* unmanaged)( + _slots[168] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[168] = nativeContext.LoadFunction("glBufferStorageEXT", "opengl") + ) )(target, size, data, flags); [SupportedApiProfile("gles2", ["GL_EXT_buffer_storage"])] @@ -424227,8 +424831,14 @@ void IGL.BufferStorageExternalEXT( [NativeTypeName("GLbitfield")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferStorageExternalEXT", "opengl") + (delegate* unmanaged)( + _slots[169] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[169] = nativeContext.LoadFunction( + "glBufferStorageExternalEXT", + "opengl" + ) + ) )(target, offset, size, clientBuffer, flags); [SupportedApiProfile("gl", ["GL_EXT_external_buffer"])] @@ -424285,8 +424895,11 @@ void IGL.BufferStorageMemEXT( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferStorageMemEXT", "opengl") + (delegate* unmanaged)( + _slots[170] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[170] = nativeContext.LoadFunction("glBufferStorageMemEXT", "opengl") + ) )(target, size, memory, offset); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -424328,8 +424941,11 @@ void IGL.BufferSubData( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferSubData", "opengl") + (delegate* unmanaged)( + _slots[171] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[171] = nativeContext.LoadFunction("glBufferSubData", "opengl") + ) )(target, offset, size, data); [SupportedApiProfile( @@ -424465,8 +425081,11 @@ void IGL.BufferSubDataARB( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glBufferSubDataARB", "opengl") + (delegate* unmanaged)( + _slots[172] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[172] = nativeContext.LoadFunction("glBufferSubDataARB", "opengl") + ) )(target, offset, size, data); [SupportedApiProfile("gl", ["GL_ARB_vertex_buffer_object"])] @@ -424507,8 +425126,11 @@ public static void BufferSubDataARB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.CallCommandListNV([NativeTypeName("GLuint")] uint list) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCallCommandListNV", "opengl") + (delegate* unmanaged)( + _slots[173] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[173] = nativeContext.LoadFunction("glCallCommandListNV", "opengl") + ) )(list); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -424520,7 +425142,13 @@ public static void CallCommandListNV([NativeTypeName("GLuint")] uint list) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.CallList([NativeTypeName("GLuint")] uint list) => - ((delegate* unmanaged)nativeContext.LoadFunction("glCallList", "opengl"))(list); + ( + (delegate* unmanaged)( + _slots[174] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[174] = nativeContext.LoadFunction("glCallList", "opengl") + ) + )(list); [SupportedApiProfile( "gl", @@ -424558,8 +425186,11 @@ void IGL.CallLists( [NativeTypeName("const void *")] void* lists ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCallLists", "opengl") + (delegate* unmanaged)( + _slots[175] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[175] = nativeContext.LoadFunction("glCallLists", "opengl") + ) )(n, type, lists); [SupportedApiProfile( @@ -424645,8 +425276,11 @@ public static void CallLists( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.CheckFramebufferStatus([NativeTypeName("GLenum")] uint target) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCheckFramebufferStatus", "opengl") + (delegate* unmanaged)( + _slots[176] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[176] = nativeContext.LoadFunction("glCheckFramebufferStatus", "opengl") + ) )(target); [return: NativeTypeName("GLenum")] @@ -424755,8 +425389,14 @@ public static Constant CheckFramebufferStatus( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.CheckFramebufferStatusEXT([NativeTypeName("GLenum")] uint target) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCheckFramebufferStatusEXT", "opengl") + (delegate* unmanaged)( + _slots[177] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[177] = nativeContext.LoadFunction( + "glCheckFramebufferStatusEXT", + "opengl" + ) + ) )(target); [return: NativeTypeName("GLenum")] @@ -424785,8 +425425,14 @@ public static Constant CheckFramebufferStatusEX [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.CheckFramebufferStatusOES([NativeTypeName("GLenum")] uint target) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCheckFramebufferStatusOES", "opengl") + (delegate* unmanaged)( + _slots[178] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[178] = nativeContext.LoadFunction( + "glCheckFramebufferStatusOES", + "opengl" + ) + ) )(target); [return: NativeTypeName("GLenum")] @@ -424818,8 +425464,14 @@ uint IGL.CheckNamedFramebufferStatus( [NativeTypeName("GLenum")] uint target ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCheckNamedFramebufferStatus", "opengl") + (delegate* unmanaged)( + _slots[179] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[179] = nativeContext.LoadFunction( + "glCheckNamedFramebufferStatus", + "opengl" + ) + ) )(framebuffer, target); [return: NativeTypeName("GLenum")] @@ -424873,8 +425525,14 @@ uint IGL.CheckNamedFramebufferStatusEXT( [NativeTypeName("GLenum")] uint target ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCheckNamedFramebufferStatusEXT", "opengl") + (delegate* unmanaged)( + _slots[180] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[180] = nativeContext.LoadFunction( + "glCheckNamedFramebufferStatusEXT", + "opengl" + ) + ) )(framebuffer, target); [return: NativeTypeName("GLenum")] @@ -424912,8 +425570,11 @@ void IGL.ClampColor( [NativeTypeName("GLenum")] uint clamp ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClampColor", "opengl") + (delegate* unmanaged)( + _slots[181] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[181] = nativeContext.LoadFunction("glClampColor", "opengl") + ) )(target, clamp); [SupportedApiProfile( @@ -425011,8 +425672,11 @@ void IGL.ClampColorARB( [NativeTypeName("GLenum")] uint clamp ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClampColorARB", "opengl") + (delegate* unmanaged)( + _slots[182] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[182] = nativeContext.LoadFunction("glClampColorARB", "opengl") + ) )(target, clamp); [SupportedApiProfile("gl", ["GL_ARB_color_buffer_float"])] @@ -425040,7 +425704,13 @@ public static void ClampColorARB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Clear([NativeTypeName("GLbitfield")] uint mask) => - ((delegate* unmanaged)nativeContext.LoadFunction("glClear", "opengl"))(mask); + ( + (delegate* unmanaged)( + _slots[183] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[183] = nativeContext.LoadFunction("glClear", "opengl") + ) + )(mask); [SupportedApiProfile( "gl", @@ -425177,8 +425847,11 @@ void IGL.ClearAccum( [NativeTypeName("GLfloat")] float alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearAccum", "opengl") + (delegate* unmanaged)( + _slots[184] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[184] = nativeContext.LoadFunction("glClearAccum", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile( @@ -425223,8 +425896,11 @@ void IGL.ClearAccumxOES( [NativeTypeName("GLfixed")] int alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearAccumxOES", "opengl") + (delegate* unmanaged)( + _slots[185] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[185] = nativeContext.LoadFunction("glClearAccumxOES", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -425246,8 +425922,11 @@ void IGL.ClearBufferData( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearBufferData", "opengl") + (delegate* unmanaged)( + _slots[186] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[186] = nativeContext.LoadFunction("glClearBufferData", "opengl") + ) )(target, internalformat, format, type, data); [SupportedApiProfile( @@ -425344,8 +426023,11 @@ void IGL.ClearBuffer( [NativeTypeName("GLint")] int stencil ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearBufferfi", "opengl") + (delegate* unmanaged)( + _slots[187] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[187] = nativeContext.LoadFunction("glClearBufferfi", "opengl") + ) )(buffer, drawbuffer, depth, stencil); [SupportedApiProfile( @@ -425450,8 +426132,11 @@ void IGL.ClearBuffer( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearBufferfv", "opengl") + (delegate* unmanaged)( + _slots[188] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[188] = nativeContext.LoadFunction("glClearBufferfv", "opengl") + ) )(buffer, drawbuffer, value); [SupportedApiProfile( @@ -425559,8 +426244,11 @@ void IGL.ClearBuffer( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearBufferiv", "opengl") + (delegate* unmanaged)( + _slots[189] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[189] = nativeContext.LoadFunction("glClearBufferiv", "opengl") + ) )(buffer, drawbuffer, value); [SupportedApiProfile( @@ -425672,8 +426360,11 @@ void IGL.ClearBufferSubData( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearBufferSubData", "opengl") + (delegate* unmanaged)( + _slots[190] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[190] = nativeContext.LoadFunction("glClearBufferSubData", "opengl") + ) )(target, internalformat, offset, size, format, type, data); [SupportedApiProfile( @@ -425777,8 +426468,11 @@ void IGL.ClearBuffer( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearBufferuiv", "opengl") + (delegate* unmanaged)( + _slots[191] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[191] = nativeContext.LoadFunction("glClearBufferuiv", "opengl") + ) )(buffer, drawbuffer, value); [SupportedApiProfile( @@ -425887,8 +426581,11 @@ void IGL.ClearColor( [NativeTypeName("GLfloat")] float alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearColor", "opengl") + (delegate* unmanaged)( + _slots[192] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[192] = nativeContext.LoadFunction("glClearColor", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile( @@ -425964,8 +426661,11 @@ void IGL.ClearColorIEXT( [NativeTypeName("GLint")] int alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearColorIiEXT", "opengl") + (delegate* unmanaged)( + _slots[193] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[193] = nativeContext.LoadFunction("glClearColorIiEXT", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile("gl", ["GL_EXT_texture_integer"])] @@ -425986,8 +426686,11 @@ void IGL.ClearColorIEXT( [NativeTypeName("GLuint")] uint alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearColorIuiEXT", "opengl") + (delegate* unmanaged)( + _slots[194] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[194] = nativeContext.LoadFunction("glClearColorIuiEXT", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile("gl", ["GL_EXT_texture_integer"])] @@ -426008,8 +426711,11 @@ void IGL.ClearColorx( [NativeTypeName("GLfixed")] int alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearColorx", "opengl") + (delegate* unmanaged)( + _slots[195] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[195] = nativeContext.LoadFunction("glClearColorx", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -426030,8 +426736,11 @@ void IGL.ClearColorxOES( [NativeTypeName("GLfixed")] int alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearColorxOES", "opengl") + (delegate* unmanaged)( + _slots[196] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[196] = nativeContext.LoadFunction("glClearColorxOES", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -426047,9 +426756,13 @@ public static void ClearColorxOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ClearDepth([NativeTypeName("GLdouble")] double depth) => - ((delegate* unmanaged)nativeContext.LoadFunction("glClearDepth", "opengl"))( - depth - ); + ( + (delegate* unmanaged)( + _slots[197] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[197] = nativeContext.LoadFunction("glClearDepth", "opengl") + ) + )(depth); [SupportedApiProfile( "gl", @@ -426109,8 +426822,11 @@ public static void ClearDepth([NativeTypeName("GLdouble")] double depth) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ClearDepthNV([NativeTypeName("GLdouble")] double depth) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearDepthdNV", "opengl") + (delegate* unmanaged)( + _slots[198] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[198] = nativeContext.LoadFunction("glClearDepthdNV", "opengl") + ) )(depth); [SupportedApiProfile("gl", ["GL_NV_depth_buffer_float"])] @@ -426122,9 +426838,13 @@ public static void ClearDepthNV([NativeTypeName("GLdouble")] double depth) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ClearDepth([NativeTypeName("GLfloat")] float d) => - ((delegate* unmanaged)nativeContext.LoadFunction("glClearDepthf", "opengl"))( - d - ); + ( + (delegate* unmanaged)( + _slots[199] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[199] = nativeContext.LoadFunction("glClearDepthf", "opengl") + ) + )(d); [SupportedApiProfile( "gl", @@ -426165,8 +426885,11 @@ void IGL.ClearDepth([NativeTypeName("GLfloat")] float d) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ClearDepthOES([NativeTypeName("GLclampf")] float depth) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearDepthfOES", "opengl") + (delegate* unmanaged)( + _slots[200] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[200] = nativeContext.LoadFunction("glClearDepthfOES", "opengl") + ) )(depth); [SupportedApiProfile("gl", ["GL_OES_single_precision"])] @@ -426178,9 +426901,13 @@ public static void ClearDepthOES([NativeTypeName("GLclampf")] float depth) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ClearDepthx([NativeTypeName("GLfixed")] int depth) => - ((delegate* unmanaged)nativeContext.LoadFunction("glClearDepthx", "opengl"))( - depth - ); + ( + (delegate* unmanaged)( + _slots[201] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[201] = nativeContext.LoadFunction("glClearDepthx", "opengl") + ) + )(depth); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] [NativeFunction("opengl", EntryPoint = "glClearDepthx")] @@ -426190,9 +426917,13 @@ public static void ClearDepthx([NativeTypeName("GLfixed")] int depth) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ClearDepthxOES([NativeTypeName("GLfixed")] int depth) => - ((delegate* unmanaged)nativeContext.LoadFunction("glClearDepthxOES", "opengl"))( - depth - ); + ( + (delegate* unmanaged)( + _slots[202] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[202] = nativeContext.LoadFunction("glClearDepthxOES", "opengl") + ) + )(depth); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [SupportedApiProfile("gles1", ["GL_OES_fixed_point"])] @@ -426203,7 +426934,13 @@ public static void ClearDepthxOES([NativeTypeName("GLfixed")] int depth) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ClearIndex([NativeTypeName("GLfloat")] float c) => - ((delegate* unmanaged)nativeContext.LoadFunction("glClearIndex", "opengl"))(c); + ( + (delegate* unmanaged)( + _slots[203] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[203] = nativeContext.LoadFunction("glClearIndex", "opengl") + ) + )(c); [SupportedApiProfile( "gl", @@ -426243,8 +426980,11 @@ void IGL.ClearNamedBufferData( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearNamedBufferData", "opengl") + (delegate* unmanaged)( + _slots[204] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[204] = nativeContext.LoadFunction("glClearNamedBufferData", "opengl") + ) )(buffer, internalformat, format, type, data); [SupportedApiProfile( @@ -426318,8 +427058,14 @@ void IGL.ClearNamedBufferDataEXT( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearNamedBufferDataEXT", "opengl") + (delegate* unmanaged)( + _slots[205] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[205] = nativeContext.LoadFunction( + "glClearNamedBufferDataEXT", + "opengl" + ) + ) )(buffer, internalformat, format, type, data); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -426379,8 +427125,14 @@ void IGL.ClearNamedBufferSubData( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearNamedBufferSubData", "opengl") + (delegate* unmanaged)( + _slots[206] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[206] = nativeContext.LoadFunction( + "glClearNamedBufferSubData", + "opengl" + ) + ) )(buffer, internalformat, offset, size, format, type, data); [SupportedApiProfile( @@ -426482,8 +427234,14 @@ void IGL.ClearNamedBufferSubDataEXT( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearNamedBufferSubDataEXT", "opengl") + (delegate* unmanaged)( + _slots[207] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[207] = nativeContext.LoadFunction( + "glClearNamedBufferSubDataEXT", + "opengl" + ) + ) )(buffer, internalformat, offset, size, format, type, data); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -426567,8 +427325,14 @@ void IGL.ClearNamedFramebuffer( [NativeTypeName("GLint")] int stencil ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearNamedFramebufferfi", "opengl") + (delegate* unmanaged)( + _slots[208] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[208] = nativeContext.LoadFunction( + "glClearNamedFramebufferfi", + "opengl" + ) + ) )(framebuffer, buffer, drawbuffer, depth, stencil); [SupportedApiProfile( @@ -426629,8 +427393,14 @@ void IGL.ClearNamedFramebuffer( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearNamedFramebufferfv", "opengl") + (delegate* unmanaged)( + _slots[209] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[209] = nativeContext.LoadFunction( + "glClearNamedFramebufferfv", + "opengl" + ) + ) )(framebuffer, buffer, drawbuffer, value); [SupportedApiProfile( @@ -426694,8 +427464,14 @@ void IGL.ClearNamedFramebuffer( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearNamedFramebufferiv", "opengl") + (delegate* unmanaged)( + _slots[210] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[210] = nativeContext.LoadFunction( + "glClearNamedFramebufferiv", + "opengl" + ) + ) )(framebuffer, buffer, drawbuffer, value); [SupportedApiProfile( @@ -426759,8 +427535,14 @@ void IGL.ClearNamedFramebuffer( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearNamedFramebufferuiv", "opengl") + (delegate* unmanaged)( + _slots[211] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[211] = nativeContext.LoadFunction( + "glClearNamedFramebufferuiv", + "opengl" + ) + ) )(framebuffer, buffer, drawbuffer, value); [SupportedApiProfile( @@ -426823,8 +427605,14 @@ void IGL.ClearPixelLocalStorageEXT( [NativeTypeName("const GLuint *")] uint* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearPixelLocalStorageuiEXT", "opengl") + (delegate* unmanaged)( + _slots[212] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[212] = nativeContext.LoadFunction( + "glClearPixelLocalStorageuiEXT", + "opengl" + ) + ) )(offset, n, values); [SupportedApiProfile("gles2", ["GL_EXT_shader_pixel_local_storage2"])] @@ -426876,7 +427664,13 @@ public static void ClearPixelLocalStorageEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ClearStencil([NativeTypeName("GLint")] int s) => - ((delegate* unmanaged)nativeContext.LoadFunction("glClearStencil", "opengl"))(s); + ( + (delegate* unmanaged)( + _slots[213] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[213] = nativeContext.LoadFunction("glClearStencil", "opengl") + ) + )(s); [SupportedApiProfile( "gl", @@ -426947,8 +427741,11 @@ void IGL.ClearTexImage( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearTexImage", "opengl") + (delegate* unmanaged)( + _slots[214] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[214] = nativeContext.LoadFunction("glClearTexImage", "opengl") + ) )(texture, level, format, type, data); [SupportedApiProfile( @@ -427016,8 +427813,11 @@ void IGL.ClearTexImageEXT( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClearTexImageEXT", "opengl") + (delegate* unmanaged)( + _slots[215] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[215] = nativeContext.LoadFunction("glClearTexImageEXT", "opengl") + ) )(texture, level, format, type, data); [SupportedApiProfile("gles2", ["GL_EXT_clear_texture"])] @@ -427085,8 +427885,11 @@ void IGL.ClearTexSubImage( uint, uint, void*, - void>) - nativeContext.LoadFunction("glClearTexSubImage", "opengl") + void>)( + _slots[216] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[216] = nativeContext.LoadFunction("glClearTexSubImage", "opengl") + ) )(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, data); [SupportedApiProfile( @@ -427228,8 +428031,11 @@ void IGL.ClearTexSubImageEXT( uint, uint, void*, - void>) - nativeContext.LoadFunction("glClearTexSubImageEXT", "opengl") + void>)( + _slots[217] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[217] = nativeContext.LoadFunction("glClearTexSubImageEXT", "opengl") + ) )(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, data); [SupportedApiProfile("gles2", ["GL_EXT_clear_texture"])] @@ -427329,8 +428135,11 @@ public static void ClearTexSubImageEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ClientActiveTexture([NativeTypeName("GLenum")] uint texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClientActiveTexture", "opengl") + (delegate* unmanaged)( + _slots[218] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[218] = nativeContext.LoadFunction("glClientActiveTexture", "opengl") + ) )(texture); [SupportedApiProfile( @@ -427399,8 +428208,11 @@ public static void ClientActiveTexture( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ClientActiveTextureARB([NativeTypeName("GLenum")] uint texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClientActiveTextureARB", "opengl") + (delegate* unmanaged)( + _slots[219] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[219] = nativeContext.LoadFunction("glClientActiveTextureARB", "opengl") + ) )(texture); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -427425,8 +428237,14 @@ public static void ClientActiveTextureARB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ClientActiveVertexStreamATI([NativeTypeName("GLenum")] uint stream) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClientActiveVertexStreamATI", "opengl") + (delegate* unmanaged)( + _slots[220] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[220] = nativeContext.LoadFunction( + "glClientActiveVertexStreamATI", + "opengl" + ) + ) )(stream); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -427451,8 +428269,11 @@ public static void ClientActiveVertexStreamATI( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ClientAttribDefaultEXT([NativeTypeName("GLbitfield")] uint mask) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClientAttribDefaultEXT", "opengl") + (delegate* unmanaged)( + _slots[221] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[221] = nativeContext.LoadFunction("glClientAttribDefaultEXT", "opengl") + ) )(mask); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -427483,8 +428304,14 @@ void IGL.ClientWaitSemaphoreNVX( [NativeTypeName("const GLuint64 *")] ulong* fenceValueArray ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClientWaitSemaphoreui64NVX", "opengl") + (delegate* unmanaged)( + _slots[222] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[222] = nativeContext.LoadFunction( + "glClientWaitSemaphoreui64NVX", + "opengl" + ) + ) )(fenceObjectCount, semaphoreArray, fenceValueArray); [SupportedApiProfile("gl", ["GL_NVX_progress_fence"])] @@ -427531,8 +428358,11 @@ uint IGL.ClientWaitSync( [NativeTypeName("GLuint64")] ulong timeout ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClientWaitSync", "opengl") + (delegate* unmanaged)( + _slots[223] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[223] = nativeContext.LoadFunction("glClientWaitSync", "opengl") + ) )(sync, flags, timeout); [return: NativeTypeName("GLenum")] @@ -427639,8 +428469,11 @@ uint IGL.ClientWaitSyncApple( [NativeTypeName("GLuint64")] ulong timeout ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClientWaitSyncAPPLE", "opengl") + (delegate* unmanaged)( + _slots[224] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[224] = nativeContext.LoadFunction("glClientWaitSyncAPPLE", "opengl") + ) )(sync, flags, timeout); [return: NativeTypeName("GLenum")] @@ -427686,8 +428519,11 @@ void IGL.ClipControl( [NativeTypeName("GLenum")] uint depth ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClipControl", "opengl") + (delegate* unmanaged)( + _slots[225] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[225] = nativeContext.LoadFunction("glClipControl", "opengl") + ) )(origin, depth); [SupportedApiProfile( @@ -427737,8 +428573,11 @@ void IGL.ClipControlEXT( [NativeTypeName("GLenum")] uint depth ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClipControlEXT", "opengl") + (delegate* unmanaged)( + _slots[226] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[226] = nativeContext.LoadFunction("glClipControlEXT", "opengl") + ) )(origin, depth); [SupportedApiProfile("gles2", ["GL_EXT_clip_control"])] @@ -427755,8 +428594,11 @@ void IGL.ClipPlane( [NativeTypeName("const GLdouble *")] double* equation ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClipPlane", "opengl") + (delegate* unmanaged)( + _slots[227] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[227] = nativeContext.LoadFunction("glClipPlane", "opengl") + ) )(plane, equation); [SupportedApiProfile( @@ -427842,8 +428684,11 @@ void IGL.ClipPlane( [NativeTypeName("const GLfloat *")] float* eqn ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClipPlanef", "opengl") + (delegate* unmanaged)( + _slots[228] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[228] = nativeContext.LoadFunction("glClipPlanef", "opengl") + ) )(p, eqn); [SupportedApiProfile("gles1", MaxVersion = "2.0")] @@ -427881,8 +428726,11 @@ void IGL.ClipPlaneIMG( [NativeTypeName("const GLfloat *")] float* eqn ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClipPlanefIMG", "opengl") + (delegate* unmanaged)( + _slots[229] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[229] = nativeContext.LoadFunction("glClipPlanefIMG", "opengl") + ) )(p, eqn); [SupportedApiProfile("gles1", ["GL_IMG_user_clip_plane"])] @@ -427920,8 +428768,11 @@ void IGL.ClipPlaneOES( [NativeTypeName("const GLfloat *")] float* equation ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClipPlanefOES", "opengl") + (delegate* unmanaged)( + _slots[230] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[230] = nativeContext.LoadFunction("glClipPlanefOES", "opengl") + ) )(plane, equation); [SupportedApiProfile("gl", ["GL_OES_single_precision"])] @@ -427961,8 +428812,11 @@ void IGL.ClipPlanex( [NativeTypeName("const GLfixed *")] int* equation ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClipPlanex", "opengl") + (delegate* unmanaged)( + _slots[231] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[231] = nativeContext.LoadFunction("glClipPlanex", "opengl") + ) )(plane, equation); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -428000,8 +428854,11 @@ void IGL.ClipPlanexIMG( [NativeTypeName("const GLfixed *")] int* eqn ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClipPlanexIMG", "opengl") + (delegate* unmanaged)( + _slots[232] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[232] = nativeContext.LoadFunction("glClipPlanexIMG", "opengl") + ) )(p, eqn); [SupportedApiProfile("gles1", ["GL_IMG_user_clip_plane"])] @@ -428039,8 +428896,11 @@ void IGL.ClipPlanexOES( [NativeTypeName("const GLfixed *")] int* equation ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glClipPlanexOES", "opengl") + (delegate* unmanaged)( + _slots[233] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[233] = nativeContext.LoadFunction("glClipPlanexOES", "opengl") + ) )(plane, equation); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -428081,8 +428941,11 @@ void IGL.Color3( [NativeTypeName("GLbyte")] sbyte blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor3b", "opengl") + (delegate* unmanaged)( + _slots[234] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[234] = nativeContext.LoadFunction("glColor3b", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -428120,7 +428983,13 @@ public static void Color3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color3([NativeTypeName("const GLbyte *")] sbyte* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor3bv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[235] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[235] = nativeContext.LoadFunction("glColor3bv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -428198,8 +429067,11 @@ void IGL.Color3( [NativeTypeName("GLdouble")] double blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor3d", "opengl") + (delegate* unmanaged)( + _slots[236] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[236] = nativeContext.LoadFunction("glColor3d", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -428237,7 +429109,13 @@ public static void Color3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color3([NativeTypeName("const GLdouble *")] double* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor3dv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[237] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[237] = nativeContext.LoadFunction("glColor3dv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -428316,8 +429194,11 @@ void IGL.Color3( [NativeTypeName("GLfloat")] float blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor3f", "opengl") + (delegate* unmanaged)( + _slots[238] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[238] = nativeContext.LoadFunction("glColor3f", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -428355,7 +429236,13 @@ public static void Color3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color3([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor3fv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[239] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[239] = nativeContext.LoadFunction("glColor3fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -428436,8 +429323,11 @@ void IGL.Color3FVertex3SUN( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor3fVertex3fSUN", "opengl") + (delegate* unmanaged)( + _slots[240] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[240] = nativeContext.LoadFunction("glColor3fVertex3fSUN", "opengl") + ) )(r, g, b, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -428458,8 +429348,11 @@ void IGL.Color3FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor3fVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[241] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[241] = nativeContext.LoadFunction("glColor3fVertex3fvSUN", "opengl") + ) )(c, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -428499,8 +429392,11 @@ void IGL.Color3NV( [NativeTypeName("GLhalfNV")] ushort blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor3hNV", "opengl") + (delegate* unmanaged)( + _slots[242] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[242] = nativeContext.LoadFunction("glColor3hNV", "opengl") + ) )(red, green, blue); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -428514,9 +429410,13 @@ public static void Color3NV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color3NV([NativeTypeName("const GLhalfNV *")] ushort* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor3hvNV", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[243] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[243] = nativeContext.LoadFunction("glColor3hvNV", "opengl") + ) + )(v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] [NativeFunction("opengl", EntryPoint = "glColor3hvNV")] @@ -428547,8 +429447,11 @@ void IGL.Color3( [NativeTypeName("GLint")] int blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor3i", "opengl") + (delegate* unmanaged)( + _slots[244] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[244] = nativeContext.LoadFunction("glColor3i", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -428586,7 +429489,13 @@ public static void Color3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color3([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor3iv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[245] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[245] = nativeContext.LoadFunction("glColor3iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -428663,8 +429572,11 @@ void IGL.Color3( [NativeTypeName("GLshort")] short blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor3s", "opengl") + (delegate* unmanaged)( + _slots[246] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[246] = nativeContext.LoadFunction("glColor3s", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -428702,7 +429614,13 @@ public static void Color3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color3([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor3sv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[247] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[247] = nativeContext.LoadFunction("glColor3sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -428780,8 +429698,11 @@ void IGL.Color3( [NativeTypeName("GLubyte")] byte blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor3ub", "opengl") + (delegate* unmanaged)( + _slots[248] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[248] = nativeContext.LoadFunction("glColor3ub", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -428819,7 +429740,13 @@ public static void Color3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color3([NativeTypeName("const GLubyte *")] byte* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor3ubv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[249] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[249] = nativeContext.LoadFunction("glColor3ubv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -428897,8 +429824,11 @@ void IGL.Color3( [NativeTypeName("GLuint")] uint blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor3ui", "opengl") + (delegate* unmanaged)( + _slots[250] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[250] = nativeContext.LoadFunction("glColor3ui", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -428936,7 +429866,13 @@ public static void Color3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color3([NativeTypeName("const GLuint *")] uint* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor3uiv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[251] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[251] = nativeContext.LoadFunction("glColor3uiv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -429014,8 +429950,11 @@ void IGL.Color3( [NativeTypeName("GLushort")] ushort blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor3us", "opengl") + (delegate* unmanaged)( + _slots[252] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[252] = nativeContext.LoadFunction("glColor3us", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -429053,9 +429992,13 @@ public static void Color3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color3([NativeTypeName("const GLushort *")] ushort* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor3usv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[253] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[253] = nativeContext.LoadFunction("glColor3usv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -429134,8 +430077,11 @@ void IGL.Color3XOES( [NativeTypeName("GLfixed")] int blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor3xOES", "opengl") + (delegate* unmanaged)( + _slots[254] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[254] = nativeContext.LoadFunction("glColor3xOES", "opengl") + ) )(red, green, blue); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -429149,9 +430095,13 @@ public static void Color3XOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color3XOES([NativeTypeName("const GLfixed *")] int* components) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor3xvOES", "opengl"))( - components - ); + ( + (delegate* unmanaged)( + _slots[255] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[255] = nativeContext.LoadFunction("glColor3xvOES", "opengl") + ) + )(components); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glColor3xvOES")] @@ -429183,8 +430133,11 @@ void IGL.Color4( [NativeTypeName("GLbyte")] sbyte alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4b", "opengl") + (delegate* unmanaged)( + _slots[256] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[256] = nativeContext.LoadFunction("glColor4b", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile( @@ -429223,7 +430176,13 @@ public static void Color4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color4([NativeTypeName("const GLbyte *")] sbyte* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor4bv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[257] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[257] = nativeContext.LoadFunction("glColor4bv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -429302,8 +430261,11 @@ void IGL.Color4( [NativeTypeName("GLdouble")] double alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4d", "opengl") + (delegate* unmanaged)( + _slots[258] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[258] = nativeContext.LoadFunction("glColor4d", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile( @@ -429342,7 +430304,13 @@ public static void Color4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color4([NativeTypeName("const GLdouble *")] double* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor4dv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[259] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[259] = nativeContext.LoadFunction("glColor4dv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -429422,8 +430390,11 @@ void IGL.Color4( [NativeTypeName("GLfloat")] float alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4f", "opengl") + (delegate* unmanaged)( + _slots[260] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[260] = nativeContext.LoadFunction("glColor4f", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile( @@ -429486,8 +430457,14 @@ void IGL.Color4FNormal3FVertex3SUN( float, float, float, - void>) - nativeContext.LoadFunction("glColor4fNormal3fVertex3fSUN", "opengl") + void>)( + _slots[261] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[261] = nativeContext.LoadFunction( + "glColor4fNormal3fVertex3fSUN", + "opengl" + ) + ) )(r, g, b, a, nx, ny, nz, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -429513,8 +430490,14 @@ void IGL.Color4FNormal3FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4fNormal3fVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[262] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[262] = nativeContext.LoadFunction( + "glColor4fNormal3fVertex3fvSUN", + "opengl" + ) + ) )(c, n, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -429553,7 +430536,13 @@ public static void Color4FNormal3FVertex3SUN( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color4([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor4fv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[263] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[263] = nativeContext.LoadFunction("glColor4fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -429632,8 +430621,11 @@ void IGL.Color4NV( [NativeTypeName("GLhalfNV")] ushort alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4hNV", "opengl") + (delegate* unmanaged)( + _slots[264] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[264] = nativeContext.LoadFunction("glColor4hNV", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -429648,9 +430640,13 @@ public static void Color4NV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color4NV([NativeTypeName("const GLhalfNV *")] ushort* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor4hvNV", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[265] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[265] = nativeContext.LoadFunction("glColor4hvNV", "opengl") + ) + )(v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] [NativeFunction("opengl", EntryPoint = "glColor4hvNV")] @@ -429682,8 +430678,11 @@ void IGL.Color4( [NativeTypeName("GLint")] int alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4i", "opengl") + (delegate* unmanaged)( + _slots[266] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[266] = nativeContext.LoadFunction("glColor4i", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile( @@ -429722,7 +430721,13 @@ public static void Color4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color4([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor4iv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[267] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[267] = nativeContext.LoadFunction("glColor4iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -429800,8 +430805,11 @@ void IGL.Color4( [NativeTypeName("GLshort")] short alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4s", "opengl") + (delegate* unmanaged)( + _slots[268] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[268] = nativeContext.LoadFunction("glColor4s", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile( @@ -429840,7 +430848,13 @@ public static void Color4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color4([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor4sv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[269] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[269] = nativeContext.LoadFunction("glColor4sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -429919,8 +430933,11 @@ void IGL.Color4( [NativeTypeName("GLubyte")] byte alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4ub", "opengl") + (delegate* unmanaged)( + _slots[270] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[270] = nativeContext.LoadFunction("glColor4ub", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile( @@ -429960,7 +430977,13 @@ public static void Color4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color4([NativeTypeName("const GLubyte *")] byte* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor4ubv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[271] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[271] = nativeContext.LoadFunction("glColor4ubv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -430041,8 +431064,11 @@ void IGL.Color4UbVertex2SUN( [NativeTypeName("GLfloat")] float y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4ubVertex2fSUN", "opengl") + (delegate* unmanaged)( + _slots[272] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[272] = nativeContext.LoadFunction("glColor4ubVertex2fSUN", "opengl") + ) )(r, g, b, a, x, y); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -430063,8 +431089,11 @@ void IGL.Color4UbVertex2SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4ubVertex2fvSUN", "opengl") + (delegate* unmanaged)( + _slots[273] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[273] = nativeContext.LoadFunction("glColor4ubVertex2fvSUN", "opengl") + ) )(c, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -430108,8 +431137,11 @@ void IGL.Color4UbVertex3SUN( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4ubVertex3fSUN", "opengl") + (delegate* unmanaged)( + _slots[274] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[274] = nativeContext.LoadFunction("glColor4ubVertex3fSUN", "opengl") + ) )(r, g, b, a, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -430131,8 +431163,11 @@ void IGL.Color4UbVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4ubVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[275] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[275] = nativeContext.LoadFunction("glColor4ubVertex3fvSUN", "opengl") + ) )(c, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -430173,8 +431208,11 @@ void IGL.Color4( [NativeTypeName("GLuint")] uint alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4ui", "opengl") + (delegate* unmanaged)( + _slots[276] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[276] = nativeContext.LoadFunction("glColor4ui", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile( @@ -430213,7 +431251,13 @@ public static void Color4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color4([NativeTypeName("const GLuint *")] uint* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor4uiv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[277] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[277] = nativeContext.LoadFunction("glColor4uiv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -430292,8 +431336,11 @@ void IGL.Color4( [NativeTypeName("GLushort")] ushort alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4us", "opengl") + (delegate* unmanaged)( + _slots[278] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[278] = nativeContext.LoadFunction("glColor4us", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile( @@ -430332,9 +431379,13 @@ public static void Color4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color4([NativeTypeName("const GLushort *")] ushort* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor4usv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[279] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[279] = nativeContext.LoadFunction("glColor4usv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -430414,8 +431465,11 @@ void IGL.Color4X( [NativeTypeName("GLfixed")] int alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4x", "opengl") + (delegate* unmanaged)( + _slots[280] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[280] = nativeContext.LoadFunction("glColor4x", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -430436,8 +431490,11 @@ void IGL.Color4XOES( [NativeTypeName("GLfixed")] int alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColor4xOES", "opengl") + (delegate* unmanaged)( + _slots[281] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[281] = nativeContext.LoadFunction("glColor4xOES", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -430453,9 +431510,13 @@ public static void Color4XOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Color4XOES([NativeTypeName("const GLfixed *")] int* components) => - ((delegate* unmanaged)nativeContext.LoadFunction("glColor4xvOES", "opengl"))( - components - ); + ( + (delegate* unmanaged)( + _slots[282] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[282] = nativeContext.LoadFunction("glColor4xvOES", "opengl") + ) + )(components); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glColor4xvOES")] @@ -430486,8 +431547,11 @@ void IGL.ColorFormatNV( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorFormatNV", "opengl") + (delegate* unmanaged)( + _slots[283] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[283] = nativeContext.LoadFunction("glColorFormatNV", "opengl") + ) )(size, type, stride); [SupportedApiProfile("gl", ["GL_NV_vertex_buffer_unified_memory"])] @@ -430529,8 +431593,11 @@ void IGL.ColorFragmentOp1ATI( [NativeTypeName("GLuint")] uint arg1Mod ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorFragmentOp1ATI", "opengl") + (delegate* unmanaged)( + _slots[284] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[284] = nativeContext.LoadFunction("glColorFragmentOp1ATI", "opengl") + ) )(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod); [SupportedApiProfile("gl", ["GL_ATI_fragment_shader"])] @@ -430594,8 +431661,11 @@ void IGL.ColorFragmentOp2ATI( [NativeTypeName("GLuint")] uint arg2Mod ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorFragmentOp2ATI", "opengl") + (delegate* unmanaged)( + _slots[285] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[285] = nativeContext.LoadFunction("glColorFragmentOp2ATI", "opengl") + ) )(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod); [SupportedApiProfile("gl", ["GL_ATI_fragment_shader"])] @@ -430712,8 +431782,11 @@ void IGL.ColorFragmentOp3ATI( uint, uint, uint, - void>) - nativeContext.LoadFunction("glColorFragmentOp3ATI", "opengl") + void>)( + _slots[286] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[286] = nativeContext.LoadFunction("glColorFragmentOp3ATI", "opengl") + ) )( op, dst, @@ -430839,8 +431912,11 @@ void IGL.ColorMask( [NativeTypeName("GLboolean")] uint alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorMask", "opengl") + (delegate* unmanaged)( + _slots[287] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[287] = nativeContext.LoadFunction("glColorMask", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile( @@ -430991,8 +432067,11 @@ void IGL.ColorMask( [NativeTypeName("GLboolean")] uint a ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorMaski", "opengl") + (delegate* unmanaged)( + _slots[288] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[288] = nativeContext.LoadFunction("glColorMaski", "opengl") + ) )(index, r, g, b, a); [SupportedApiProfile( @@ -431102,8 +432181,11 @@ void IGL.ColorMaskEXT( [NativeTypeName("GLboolean")] uint a ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorMaskiEXT", "opengl") + (delegate* unmanaged)( + _slots[289] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[289] = nativeContext.LoadFunction("glColorMaskiEXT", "opengl") + ) )(index, r, g, b, a); [SupportedApiProfile("gles2", ["GL_EXT_draw_buffers_indexed"])] @@ -431147,8 +432229,11 @@ void IGL.ColorMaskIndexedEXT( [NativeTypeName("GLboolean")] uint a ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorMaskIndexedEXT", "opengl") + (delegate* unmanaged)( + _slots[290] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[290] = nativeContext.LoadFunction("glColorMaskIndexedEXT", "opengl") + ) )(index, r, g, b, a); [SupportedApiProfile("gl", ["GL_EXT_draw_buffers2"])] @@ -431192,8 +432277,11 @@ void IGL.ColorMaskOES( [NativeTypeName("GLboolean")] uint a ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorMaskiOES", "opengl") + (delegate* unmanaged)( + _slots[291] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[291] = nativeContext.LoadFunction("glColorMaskiOES", "opengl") + ) )(index, r, g, b, a); [SupportedApiProfile("gles2", ["GL_OES_draw_buffers_indexed"])] @@ -431234,8 +432322,11 @@ void IGL.ColorMaterial( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorMaterial", "opengl") + (delegate* unmanaged)( + _slots[292] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[292] = nativeContext.LoadFunction("glColorMaterial", "opengl") + ) )(face, mode); [SupportedApiProfile( @@ -431312,8 +432403,11 @@ public static void ColorMaterial( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ColorP3([NativeTypeName("GLenum")] uint type, [NativeTypeName("GLuint")] uint color) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorP3ui", "opengl") + (delegate* unmanaged)( + _slots[293] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[293] = nativeContext.LoadFunction("glColorP3ui", "opengl") + ) )(type, color); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -431345,8 +432439,11 @@ void IGL.ColorP3Uiv( [NativeTypeName("const GLuint *")] uint* color ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorP3uiv", "opengl") + (delegate* unmanaged)( + _slots[294] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[294] = nativeContext.LoadFunction("glColorP3uiv", "opengl") + ) )(type, color); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -431396,8 +432493,11 @@ public static void ColorP3Uiv( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ColorP4([NativeTypeName("GLenum")] uint type, [NativeTypeName("GLuint")] uint color) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorP4ui", "opengl") + (delegate* unmanaged)( + _slots[295] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[295] = nativeContext.LoadFunction("glColorP4ui", "opengl") + ) )(type, color); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -431429,8 +432529,11 @@ void IGL.ColorP4Uiv( [NativeTypeName("const GLuint *")] uint* color ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorP4uiv", "opengl") + (delegate* unmanaged)( + _slots[296] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[296] = nativeContext.LoadFunction("glColorP4uiv", "opengl") + ) )(type, color); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -431485,8 +432588,11 @@ void IGL.ColorPointer( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorPointer", "opengl") + (delegate* unmanaged)( + _slots[297] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[297] = nativeContext.LoadFunction("glColorPointer", "opengl") + ) )(size, type, stride, pointer); [SupportedApiProfile( @@ -431581,8 +432687,11 @@ void IGL.ColorPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[298] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[298] = nativeContext.LoadFunction("glColorPointerEXT", "opengl") + ) )(size, type, stride, count, pointer); [SupportedApiProfile("gl", ["GL_EXT_vertex_array"])] @@ -431632,8 +432741,11 @@ void IGL.ColorPointerListIBM( [NativeTypeName("GLint")] int ptrstride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorPointerListIBM", "opengl") + (delegate* unmanaged)( + _slots[299] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[299] = nativeContext.LoadFunction("glColorPointerListIBM", "opengl") + ) )(size, type, stride, pointer, ptrstride); [SupportedApiProfile("gl", ["GL_IBM_vertex_array_lists"])] @@ -431703,8 +432815,11 @@ void IGL.ColorPointerIntel( [NativeTypeName("const void **")] void** pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorPointervINTEL", "opengl") + (delegate* unmanaged)( + _slots[300] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[300] = nativeContext.LoadFunction("glColorPointervINTEL", "opengl") + ) )(size, type, pointer); [SupportedApiProfile("gl", ["GL_INTEL_parallel_arrays"])] @@ -431749,8 +432864,11 @@ void IGL.ColorSubTable( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorSubTable", "opengl") + (delegate* unmanaged)( + _slots[301] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[301] = nativeContext.LoadFunction("glColorSubTable", "opengl") + ) )(target, start, count, format, type, data); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -431811,8 +432929,11 @@ void IGL.ColorSubTableEXT( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorSubTableEXT", "opengl") + (delegate* unmanaged)( + _slots[302] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[302] = nativeContext.LoadFunction("glColorSubTableEXT", "opengl") + ) )(target, start, count, format, type, data); [SupportedApiProfile("gl", ["GL_EXT_color_subtable"])] @@ -431873,8 +432994,11 @@ void IGL.ColorTable( [NativeTypeName("const void *")] void* table ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorTable", "opengl") + (delegate* unmanaged)( + _slots[303] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[303] = nativeContext.LoadFunction("glColorTable", "opengl") + ) )(target, internalformat, width, format, type, table); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -431935,8 +433059,11 @@ void IGL.ColorTableEXT( [NativeTypeName("const void *")] void* table ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorTableEXT", "opengl") + (delegate* unmanaged)( + _slots[304] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[304] = nativeContext.LoadFunction("glColorTableEXT", "opengl") + ) )(target, internalFormat, width, format, type, table); [SupportedApiProfile("gl", ["GL_EXT_paletted_texture"])] @@ -431994,8 +433121,11 @@ void IGL.ColorTableParameter( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorTableParameterfv", "opengl") + (delegate* unmanaged)( + _slots[305] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[305] = nativeContext.LoadFunction("glColorTableParameterfv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -432037,8 +433167,14 @@ void IGL.ColorTableParameterSGI( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorTableParameterfvSGI", "opengl") + (delegate* unmanaged)( + _slots[306] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[306] = nativeContext.LoadFunction( + "glColorTableParameterfvSGI", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_SGI_color_table"])] @@ -432080,8 +433216,11 @@ void IGL.ColorTableParameter( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorTableParameteriv", "opengl") + (delegate* unmanaged)( + _slots[307] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[307] = nativeContext.LoadFunction("glColorTableParameteriv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -432123,8 +433262,14 @@ void IGL.ColorTableParameterSGI( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorTableParameterivSGI", "opengl") + (delegate* unmanaged)( + _slots[308] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[308] = nativeContext.LoadFunction( + "glColorTableParameterivSGI", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_SGI_color_table"])] @@ -432169,8 +433314,11 @@ void IGL.ColorTableSGI( [NativeTypeName("const void *")] void* table ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glColorTableSGI", "opengl") + (delegate* unmanaged)( + _slots[309] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[309] = nativeContext.LoadFunction("glColorTableSGI", "opengl") + ) )(target, internalformat, width, format, type, table); [SupportedApiProfile("gl", ["GL_SGI_color_table"])] @@ -432231,8 +433379,11 @@ void IGL.CombinerInputNV( [NativeTypeName("GLenum")] uint componentUsage ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCombinerInputNV", "opengl") + (delegate* unmanaged)( + _slots[310] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[310] = nativeContext.LoadFunction("glCombinerInputNV", "opengl") + ) )(stage, portion, variable, input, mapping, componentUsage); [SupportedApiProfile("gl", ["GL_NV_register_combiners"])] @@ -432292,8 +433443,11 @@ void IGL.CombinerOutputNV( [NativeTypeName("GLboolean")] uint muxSum ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCombinerOutputNV", "opengl") + (delegate* unmanaged)( + _slots[311] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[311] = nativeContext.LoadFunction("glCombinerOutputNV", "opengl") + ) )( stage, portion, @@ -432396,8 +433550,11 @@ void IGL.CombinerParameterNV( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCombinerParameterfNV", "opengl") + (delegate* unmanaged)( + _slots[312] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[312] = nativeContext.LoadFunction("glCombinerParameterfNV", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_NV_register_combiners"])] @@ -432429,8 +433586,11 @@ void IGL.CombinerParameterNV( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCombinerParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[313] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[313] = nativeContext.LoadFunction("glCombinerParameterfvNV", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_NV_register_combiners"])] @@ -432468,8 +433628,11 @@ void IGL.CombinerParameterNV( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCombinerParameteriNV", "opengl") + (delegate* unmanaged)( + _slots[314] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[314] = nativeContext.LoadFunction("glCombinerParameteriNV", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_NV_register_combiners"])] @@ -432501,8 +433664,11 @@ void IGL.CombinerParameterNV( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCombinerParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[315] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[315] = nativeContext.LoadFunction("glCombinerParameterivNV", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_NV_register_combiners"])] @@ -432541,8 +433707,14 @@ void IGL.CombinerStageParameterNV( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCombinerStageParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[316] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[316] = nativeContext.LoadFunction( + "glCombinerStageParameterfvNV", + "opengl" + ) + ) )(stage, pname, @params); [SupportedApiProfile("gl", ["GL_NV_register_combiners2"])] @@ -432583,8 +433755,11 @@ void IGL.CommandListSegmentsNV( [NativeTypeName("GLuint")] uint segments ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCommandListSegmentsNV", "opengl") + (delegate* unmanaged)( + _slots[317] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[317] = nativeContext.LoadFunction("glCommandListSegmentsNV", "opengl") + ) )(list, segments); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -432599,8 +433774,11 @@ public static void CommandListSegmentsNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.CompileCommandListNV([NativeTypeName("GLuint")] uint list) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompileCommandListNV", "opengl") + (delegate* unmanaged)( + _slots[318] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[318] = nativeContext.LoadFunction("glCompileCommandListNV", "opengl") + ) )(list); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -432612,9 +433790,13 @@ public static void CompileCommandListNV([NativeTypeName("GLuint")] uint list) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.CompileShader([NativeTypeName("GLuint")] uint shader) => - ((delegate* unmanaged)nativeContext.LoadFunction("glCompileShader", "opengl"))( - shader - ); + ( + (delegate* unmanaged)( + _slots[319] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[319] = nativeContext.LoadFunction("glCompileShader", "opengl") + ) + )(shader); [SupportedApiProfile( "gl", @@ -432667,8 +433849,11 @@ public static void CompileShader([NativeTypeName("GLuint")] uint shader) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.CompileShaderARB([NativeTypeName("GLhandleARB")] uint shaderObj) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompileShaderARB", "opengl") + (delegate* unmanaged)( + _slots[320] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[320] = nativeContext.LoadFunction("glCompileShaderARB", "opengl") + ) )(shaderObj); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -432685,8 +433870,14 @@ void IGL.CompileShaderIncludeARB( [NativeTypeName("const GLint *")] int* length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompileShaderIncludeARB", "opengl") + (delegate* unmanaged)( + _slots[321] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[321] = nativeContext.LoadFunction( + "glCompileShaderIncludeARB", + "opengl" + ) + ) )(shader, count, path, length); [SupportedApiProfile("gl", ["GL_ARB_shading_language_include"])] @@ -432739,8 +433930,14 @@ void IGL.CompressedMultiTexImage1DEXT( [NativeTypeName("const void *")] void* bits ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedMultiTexImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[322] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[322] = nativeContext.LoadFunction( + "glCompressedMultiTexImage1DEXT", + "opengl" + ) + ) )(texunit, target, level, internalformat, width, border, imageSize, bits); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -432834,8 +434031,14 @@ void IGL.CompressedMultiTexImage2DEXT( [NativeTypeName("const void *")] void* bits ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedMultiTexImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[323] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[323] = nativeContext.LoadFunction( + "glCompressedMultiTexImage2DEXT", + "opengl" + ) + ) )(texunit, target, level, internalformat, width, height, border, imageSize, bits); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -432936,8 +434139,14 @@ void IGL.CompressedMultiTexImage3DEXT( [NativeTypeName("const void *")] void* bits ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedMultiTexImage3DEXT", "opengl") + (delegate* unmanaged)( + _slots[324] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[324] = nativeContext.LoadFunction( + "glCompressedMultiTexImage3DEXT", + "opengl" + ) + ) )(texunit, target, level, internalformat, width, height, depth, border, imageSize, bits); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -433042,8 +434251,14 @@ void IGL.CompressedMultiTexSubImage1DEXT( [NativeTypeName("const void *")] void* bits ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedMultiTexSubImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[325] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[325] = nativeContext.LoadFunction( + "glCompressedMultiTexSubImage1DEXT", + "opengl" + ) + ) )(texunit, target, level, xoffset, width, format, imageSize, bits); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -433138,8 +434353,14 @@ void IGL.CompressedMultiTexSubImage2DEXT( [NativeTypeName("const void *")] void* bits ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedMultiTexSubImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[326] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[326] = nativeContext.LoadFunction( + "glCompressedMultiTexSubImage2DEXT", + "opengl" + ) + ) )(texunit, target, level, xoffset, yoffset, width, height, format, imageSize, bits); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -433261,8 +434482,14 @@ void IGL.CompressedMultiTexSubImage3DEXT( uint, uint, void*, - void>) - nativeContext.LoadFunction("glCompressedMultiTexSubImage3DEXT", "opengl") + void>)( + _slots[327] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[327] = nativeContext.LoadFunction( + "glCompressedMultiTexSubImage3DEXT", + "opengl" + ) + ) )( texunit, target, @@ -433391,8 +434618,11 @@ void IGL.CompressedTexImage1D( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTexImage1D", "opengl") + (delegate* unmanaged)( + _slots[328] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[328] = nativeContext.LoadFunction("glCompressedTexImage1D", "opengl") + ) )(target, level, internalformat, width, border, imageSize, data); [SupportedApiProfile( @@ -433562,8 +434792,14 @@ void IGL.CompressedTexImage1DARB( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTexImage1DARB", "opengl") + (delegate* unmanaged)( + _slots[329] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[329] = nativeContext.LoadFunction( + "glCompressedTexImage1DARB", + "opengl" + ) + ) )(target, level, internalformat, width, border, imageSize, data); [SupportedApiProfile("gl", ["GL_ARB_texture_compression"])] @@ -433648,8 +434884,11 @@ void IGL.CompressedTexImage2D( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTexImage2D", "opengl") + (delegate* unmanaged)( + _slots[330] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[330] = nativeContext.LoadFunction("glCompressedTexImage2D", "opengl") + ) )(target, level, internalformat, width, height, border, imageSize, data); [SupportedApiProfile( @@ -433838,8 +435077,14 @@ void IGL.CompressedTexImage2DARB( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTexImage2DARB", "opengl") + (delegate* unmanaged)( + _slots[331] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[331] = nativeContext.LoadFunction( + "glCompressedTexImage2DARB", + "opengl" + ) + ) )(target, level, internalformat, width, height, border, imageSize, data); [SupportedApiProfile("gl", ["GL_ARB_texture_compression"])] @@ -433931,8 +435176,11 @@ void IGL.CompressedTexImage3D( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTexImage3D", "opengl") + (delegate* unmanaged)( + _slots[332] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[332] = nativeContext.LoadFunction("glCompressedTexImage3D", "opengl") + ) )(target, level, internalformat, width, height, depth, border, imageSize, data); [SupportedApiProfile( @@ -434116,8 +435364,14 @@ void IGL.CompressedTexImage3DARB( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTexImage3DARB", "opengl") + (delegate* unmanaged)( + _slots[333] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[333] = nativeContext.LoadFunction( + "glCompressedTexImage3DARB", + "opengl" + ) + ) )(target, level, internalformat, width, height, depth, border, imageSize, data); [SupportedApiProfile("gl", ["GL_ARB_texture_compression"])] @@ -434215,8 +435469,14 @@ void IGL.CompressedTexImage3DOES( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTexImage3DOES", "opengl") + (delegate* unmanaged)( + _slots[334] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[334] = nativeContext.LoadFunction( + "glCompressedTexImage3DOES", + "opengl" + ) + ) )(target, level, internalformat, width, height, depth, border, imageSize, data); [SupportedApiProfile("gles2", ["GL_OES_texture_3D"])] @@ -434312,8 +435572,14 @@ void IGL.CompressedTexSubImage1D( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTexSubImage1D", "opengl") + (delegate* unmanaged)( + _slots[335] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[335] = nativeContext.LoadFunction( + "glCompressedTexSubImage1D", + "opengl" + ) + ) )(target, level, xoffset, width, format, imageSize, data); [SupportedApiProfile( @@ -434465,8 +435731,14 @@ void IGL.CompressedTexSubImage1DARB( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTexSubImage1DARB", "opengl") + (delegate* unmanaged)( + _slots[336] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[336] = nativeContext.LoadFunction( + "glCompressedTexSubImage1DARB", + "opengl" + ) + ) )(target, level, xoffset, width, format, imageSize, data); [SupportedApiProfile("gl", ["GL_ARB_texture_compression"])] @@ -434552,8 +435824,14 @@ void IGL.CompressedTexSubImage2D( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTexSubImage2D", "opengl") + (delegate* unmanaged)( + _slots[337] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[337] = nativeContext.LoadFunction( + "glCompressedTexSubImage2D", + "opengl" + ) + ) )(target, level, xoffset, yoffset, width, height, format, imageSize, data); [SupportedApiProfile( @@ -434749,8 +436027,14 @@ void IGL.CompressedTexSubImage2DARB( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTexSubImage2DARB", "opengl") + (delegate* unmanaged)( + _slots[338] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[338] = nativeContext.LoadFunction( + "glCompressedTexSubImage2DARB", + "opengl" + ) + ) )(target, level, xoffset, yoffset, width, height, format, imageSize, data); [SupportedApiProfile("gl", ["GL_ARB_texture_compression"])] @@ -434862,8 +436146,14 @@ void IGL.CompressedTexSubImage3D( uint, uint, void*, - void>) - nativeContext.LoadFunction("glCompressedTexSubImage3D", "opengl") + void>)( + _slots[339] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[339] = nativeContext.LoadFunction( + "glCompressedTexSubImage3D", + "opengl" + ) + ) )(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); [SupportedApiProfile( @@ -435073,8 +436363,14 @@ void IGL.CompressedTexSubImage3DARB( uint, uint, void*, - void>) - nativeContext.LoadFunction("glCompressedTexSubImage3DARB", "opengl") + void>)( + _slots[340] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[340] = nativeContext.LoadFunction( + "glCompressedTexSubImage3DARB", + "opengl" + ) + ) )(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); [SupportedApiProfile("gl", ["GL_ARB_texture_compression"])] @@ -435198,8 +436494,14 @@ void IGL.CompressedTexSubImage3DOES( uint, uint, void*, - void>) - nativeContext.LoadFunction("glCompressedTexSubImage3DOES", "opengl") + void>)( + _slots[341] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[341] = nativeContext.LoadFunction( + "glCompressedTexSubImage3DOES", + "opengl" + ) + ) )(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); [SupportedApiProfile("gles2", ["GL_OES_texture_3D"])] @@ -435308,8 +436610,14 @@ void IGL.CompressedTextureImage1DEXT( [NativeTypeName("const void *")] void* bits ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTextureImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[342] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[342] = nativeContext.LoadFunction( + "glCompressedTextureImage1DEXT", + "opengl" + ) + ) )(texture, target, level, internalformat, width, border, imageSize, bits); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -435403,8 +436711,14 @@ void IGL.CompressedTextureImage2DEXT( [NativeTypeName("const void *")] void* bits ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTextureImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[343] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[343] = nativeContext.LoadFunction( + "glCompressedTextureImage2DEXT", + "opengl" + ) + ) )(texture, target, level, internalformat, width, height, border, imageSize, bits); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -435505,8 +436819,14 @@ void IGL.CompressedTextureImage3DEXT( [NativeTypeName("const void *")] void* bits ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTextureImage3DEXT", "opengl") + (delegate* unmanaged)( + _slots[344] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[344] = nativeContext.LoadFunction( + "glCompressedTextureImage3DEXT", + "opengl" + ) + ) )(texture, target, level, internalformat, width, height, depth, border, imageSize, bits); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -435610,8 +436930,14 @@ void IGL.CompressedTextureSubImage1D( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTextureSubImage1D", "opengl") + (delegate* unmanaged)( + _slots[345] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[345] = nativeContext.LoadFunction( + "glCompressedTextureSubImage1D", + "opengl" + ) + ) )(texture, level, xoffset, width, format, imageSize, data); [SupportedApiProfile( @@ -435714,8 +437040,14 @@ void IGL.CompressedTextureSubImage1DEXT( [NativeTypeName("const void *")] void* bits ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTextureSubImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[346] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[346] = nativeContext.LoadFunction( + "glCompressedTextureSubImage1DEXT", + "opengl" + ) + ) )(texture, target, level, xoffset, width, format, imageSize, bits); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -435809,8 +437141,14 @@ void IGL.CompressedTextureSubImage2D( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTextureSubImage2D", "opengl") + (delegate* unmanaged)( + _slots[347] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[347] = nativeContext.LoadFunction( + "glCompressedTextureSubImage2D", + "opengl" + ) + ) )(texture, level, xoffset, yoffset, width, height, format, imageSize, data); [SupportedApiProfile( @@ -435927,8 +437265,14 @@ void IGL.CompressedTextureSubImage2DEXT( [NativeTypeName("const void *")] void* bits ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCompressedTextureSubImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[348] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[348] = nativeContext.LoadFunction( + "glCompressedTextureSubImage2DEXT", + "opengl" + ) + ) )(texture, target, level, xoffset, yoffset, width, height, format, imageSize, bits); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -436048,8 +437392,14 @@ void IGL.CompressedTextureSubImage3D( uint, uint, void*, - void>) - nativeContext.LoadFunction("glCompressedTextureSubImage3D", "opengl") + void>)( + _slots[349] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[349] = nativeContext.LoadFunction( + "glCompressedTextureSubImage3D", + "opengl" + ) + ) )(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); [SupportedApiProfile( @@ -436193,8 +437543,14 @@ void IGL.CompressedTextureSubImage3DEXT( uint, uint, void*, - void>) - nativeContext.LoadFunction("glCompressedTextureSubImage3DEXT", "opengl") + void>)( + _slots[350] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[350] = nativeContext.LoadFunction( + "glCompressedTextureSubImage3DEXT", + "opengl" + ) + ) )( texture, target, @@ -436318,8 +437674,14 @@ void IGL.ConservativeRasterParameterNV( [NativeTypeName("GLfloat")] float value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConservativeRasterParameterfNV", "opengl") + (delegate* unmanaged)( + _slots[351] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[351] = nativeContext.LoadFunction( + "glConservativeRasterParameterfNV", + "opengl" + ) + ) )(pname, value); [SupportedApiProfile("gl", ["GL_NV_conservative_raster_dilate"])] @@ -436337,8 +437699,14 @@ void IGL.ConservativeRasterParameterNV( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConservativeRasterParameteriNV", "opengl") + (delegate* unmanaged)( + _slots[352] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[352] = nativeContext.LoadFunction( + "glConservativeRasterParameteriNV", + "opengl" + ) + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_NV_conservative_raster_pre_snap_triangles"])] @@ -436361,8 +437729,11 @@ void IGL.ConvolutionFilter1D( [NativeTypeName("const void *")] void* image ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionFilter1D", "opengl") + (delegate* unmanaged)( + _slots[353] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[353] = nativeContext.LoadFunction("glConvolutionFilter1D", "opengl") + ) )(target, internalformat, width, format, type, image); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -436423,8 +437794,11 @@ void IGL.ConvolutionFilter1DEXT( [NativeTypeName("const void *")] void* image ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionFilter1DEXT", "opengl") + (delegate* unmanaged)( + _slots[354] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[354] = nativeContext.LoadFunction("glConvolutionFilter1DEXT", "opengl") + ) )(target, internalformat, width, format, type, image); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -436486,8 +437860,11 @@ void IGL.ConvolutionFilter2D( [NativeTypeName("const void *")] void* image ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionFilter2D", "opengl") + (delegate* unmanaged)( + _slots[355] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[355] = nativeContext.LoadFunction("glConvolutionFilter2D", "opengl") + ) )(target, internalformat, width, height, format, type, image); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -436553,8 +437930,11 @@ void IGL.ConvolutionFilter2DEXT( [NativeTypeName("const void *")] void* image ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionFilter2DEXT", "opengl") + (delegate* unmanaged)( + _slots[356] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[356] = nativeContext.LoadFunction("glConvolutionFilter2DEXT", "opengl") + ) )(target, internalformat, width, height, format, type, image); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -436634,8 +438014,11 @@ void IGL.ConvolutionParameter( [NativeTypeName("GLfloat")] float @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionParameterf", "opengl") + (delegate* unmanaged)( + _slots[357] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[357] = nativeContext.LoadFunction("glConvolutionParameterf", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -436671,8 +438054,14 @@ void IGL.ConvolutionParameterEXT( [NativeTypeName("GLfloat")] float @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionParameterfEXT", "opengl") + (delegate* unmanaged)( + _slots[358] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[358] = nativeContext.LoadFunction( + "glConvolutionParameterfEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -436708,8 +438097,11 @@ void IGL.ConvolutionParameter( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionParameterfv", "opengl") + (delegate* unmanaged)( + _slots[359] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[359] = nativeContext.LoadFunction("glConvolutionParameterfv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -436751,8 +438143,14 @@ void IGL.ConvolutionParameterEXT( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[360] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[360] = nativeContext.LoadFunction( + "glConvolutionParameterfvEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -436794,8 +438192,11 @@ void IGL.ConvolutionParameter( [NativeTypeName("GLint")] int @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionParameteri", "opengl") + (delegate* unmanaged)( + _slots[361] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[361] = nativeContext.LoadFunction("glConvolutionParameteri", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -436831,8 +438232,14 @@ void IGL.ConvolutionParameterEXT( [NativeTypeName("GLint")] int @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionParameteriEXT", "opengl") + (delegate* unmanaged)( + _slots[362] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[362] = nativeContext.LoadFunction( + "glConvolutionParameteriEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -436868,8 +438275,11 @@ void IGL.ConvolutionParameter( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionParameteriv", "opengl") + (delegate* unmanaged)( + _slots[363] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[363] = nativeContext.LoadFunction("glConvolutionParameteriv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -436911,8 +438321,14 @@ void IGL.ConvolutionParameterEXT( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[364] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[364] = nativeContext.LoadFunction( + "glConvolutionParameterivEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -436954,8 +438370,14 @@ void IGL.ConvolutionParameterxOES( [NativeTypeName("GLfixed")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionParameterxOES", "opengl") + (delegate* unmanaged)( + _slots[365] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[365] = nativeContext.LoadFunction( + "glConvolutionParameterxOES", + "opengl" + ) + ) )(target, pname, param2); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -436991,8 +438413,14 @@ void IGL.ConvolutionParameterxOES( [NativeTypeName("const GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glConvolutionParameterxvOES", "opengl") + (delegate* unmanaged)( + _slots[366] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[366] = nativeContext.LoadFunction( + "glConvolutionParameterxvOES", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -437036,8 +438464,11 @@ void IGL.CopyBufferSubData( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyBufferSubData", "opengl") + (delegate* unmanaged)( + _slots[367] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[367] = nativeContext.LoadFunction("glCopyBufferSubData", "opengl") + ) )(readTarget, writeTarget, readOffset, writeOffset, size); [SupportedApiProfile( @@ -437154,8 +438585,11 @@ void IGL.CopyBufferSubDataNV( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyBufferSubDataNV", "opengl") + (delegate* unmanaged)( + _slots[368] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[368] = nativeContext.LoadFunction("glCopyBufferSubDataNV", "opengl") + ) )(readTarget, writeTarget, readOffset, writeOffset, size); [SupportedApiProfile("gles2", ["GL_NV_copy_buffer"])] @@ -437206,8 +438640,11 @@ void IGL.CopyColorSubTable( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyColorSubTable", "opengl") + (delegate* unmanaged)( + _slots[369] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[369] = nativeContext.LoadFunction("glCopyColorSubTable", "opengl") + ) )(target, start, x, y, width); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -437251,8 +438688,11 @@ void IGL.CopyColorSubTableEXT( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyColorSubTableEXT", "opengl") + (delegate* unmanaged)( + _slots[370] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[370] = nativeContext.LoadFunction("glCopyColorSubTableEXT", "opengl") + ) )(target, start, x, y, width); [SupportedApiProfile("gl", ["GL_EXT_color_subtable"])] @@ -437296,8 +438736,11 @@ void IGL.CopyColorTable( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyColorTable", "opengl") + (delegate* unmanaged)( + _slots[371] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[371] = nativeContext.LoadFunction("glCopyColorTable", "opengl") + ) )(target, internalformat, x, y, width); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -437341,8 +438784,11 @@ void IGL.CopyColorTableSGI( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyColorTableSGI", "opengl") + (delegate* unmanaged)( + _slots[372] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[372] = nativeContext.LoadFunction("glCopyColorTableSGI", "opengl") + ) )(target, internalformat, x, y, width); [SupportedApiProfile("gl", ["GL_SGI_color_table"])] @@ -437386,8 +438832,14 @@ void IGL.CopyConvolutionFilter1D( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyConvolutionFilter1D", "opengl") + (delegate* unmanaged)( + _slots[373] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[373] = nativeContext.LoadFunction( + "glCopyConvolutionFilter1D", + "opengl" + ) + ) )(target, internalformat, x, y, width); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -437431,8 +438883,14 @@ void IGL.CopyConvolutionFilter1DEXT( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyConvolutionFilter1DEXT", "opengl") + (delegate* unmanaged)( + _slots[374] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[374] = nativeContext.LoadFunction( + "glCopyConvolutionFilter1DEXT", + "opengl" + ) + ) )(target, internalformat, x, y, width); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -437477,8 +438935,14 @@ void IGL.CopyConvolutionFilter2D( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyConvolutionFilter2D", "opengl") + (delegate* unmanaged)( + _slots[375] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[375] = nativeContext.LoadFunction( + "glCopyConvolutionFilter2D", + "opengl" + ) + ) )(target, internalformat, x, y, width, height); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -437534,8 +438998,14 @@ void IGL.CopyConvolutionFilter2DEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyConvolutionFilter2DEXT", "opengl") + (delegate* unmanaged)( + _slots[376] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[376] = nativeContext.LoadFunction( + "glCopyConvolutionFilter2DEXT", + "opengl" + ) + ) )(target, internalformat, x, y, width, height); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -437616,8 +439086,11 @@ void IGL.CopyImageSubData( uint, uint, uint, - void>) - nativeContext.LoadFunction("glCopyImageSubData", "opengl") + void>)( + _slots[377] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[377] = nativeContext.LoadFunction("glCopyImageSubData", "opengl") + ) )( srcName, srcTarget, @@ -437826,8 +439299,11 @@ void IGL.CopyImageSubDataEXT( uint, uint, uint, - void>) - nativeContext.LoadFunction("glCopyImageSubDataEXT", "opengl") + void>)( + _slots[378] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[378] = nativeContext.LoadFunction("glCopyImageSubDataEXT", "opengl") + ) )( srcName, srcTarget, @@ -437994,8 +439470,11 @@ void IGL.CopyImageSubDataNV( uint, uint, uint, - void>) - nativeContext.LoadFunction("glCopyImageSubDataNV", "opengl") + void>)( + _slots[379] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[379] = nativeContext.LoadFunction("glCopyImageSubDataNV", "opengl") + ) )( srcName, srcTarget, @@ -438162,8 +439641,11 @@ void IGL.CopyImageSubDataOES( uint, uint, uint, - void>) - nativeContext.LoadFunction("glCopyImageSubDataOES", "opengl") + void>)( + _slots[380] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[380] = nativeContext.LoadFunction("glCopyImageSubDataOES", "opengl") + ) )( srcName, srcTarget, @@ -438307,8 +439789,11 @@ void IGL.CopyMultiTexImage1DEXT( [NativeTypeName("GLint")] int border ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyMultiTexImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[381] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[381] = nativeContext.LoadFunction("glCopyMultiTexImage1DEXT", "opengl") + ) )(texunit, target, level, internalformat, x, y, width, border); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -438397,8 +439882,11 @@ void IGL.CopyMultiTexImage2DEXT( [NativeTypeName("GLint")] int border ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyMultiTexImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[382] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[382] = nativeContext.LoadFunction("glCopyMultiTexImage2DEXT", "opengl") + ) )(texunit, target, level, internalformat, x, y, width, height, border); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -438491,8 +439979,14 @@ void IGL.CopyMultiTexSubImage1DEXT( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyMultiTexSubImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[383] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[383] = nativeContext.LoadFunction( + "glCopyMultiTexSubImage1DEXT", + "opengl" + ) + ) )(texunit, target, level, xoffset, x, y, width); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -438557,8 +440051,14 @@ void IGL.CopyMultiTexSubImage2DEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyMultiTexSubImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[384] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[384] = nativeContext.LoadFunction( + "glCopyMultiTexSubImage2DEXT", + "opengl" + ) + ) )(texunit, target, level, xoffset, yoffset, x, y, width, height); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -438654,8 +440154,14 @@ void IGL.CopyMultiTexSubImage3DEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyMultiTexSubImage3DEXT", "opengl") + (delegate* unmanaged)( + _slots[385] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[385] = nativeContext.LoadFunction( + "glCopyMultiTexSubImage3DEXT", + "opengl" + ) + ) )(texunit, target, level, xoffset, yoffset, zoffset, x, y, width, height); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -438752,8 +440258,11 @@ void IGL.CopyNamedBufferSubData( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyNamedBufferSubData", "opengl") + (delegate* unmanaged)( + _slots[386] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[386] = nativeContext.LoadFunction("glCopyNamedBufferSubData", "opengl") + ) )(readBuffer, writeBuffer, readOffset, writeOffset, size); [SupportedApiProfile( @@ -438782,8 +440291,11 @@ void IGL.CopyPathNV( [NativeTypeName("GLuint")] uint srcPath ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyPathNV", "opengl") + (delegate* unmanaged)( + _slots[387] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[387] = nativeContext.LoadFunction("glCopyPathNV", "opengl") + ) )(resultPath, srcPath); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -438805,8 +440317,11 @@ void IGL.CopyPixels( [NativeTypeName("GLenum")] uint type ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyPixels", "opengl") + (delegate* unmanaged)( + _slots[388] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[388] = nativeContext.LoadFunction("glCopyPixels", "opengl") + ) )(x, y, width, height, type); [SupportedApiProfile( @@ -438900,8 +440415,11 @@ void IGL.CopyTexImage1D( [NativeTypeName("GLint")] int border ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTexImage1D", "opengl") + (delegate* unmanaged)( + _slots[389] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[389] = nativeContext.LoadFunction("glCopyTexImage1D", "opengl") + ) )(target, level, internalformat, x, y, width, border); [SupportedApiProfile( @@ -439047,8 +440565,11 @@ void IGL.CopyTexImage1DEXT( [NativeTypeName("GLint")] int border ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTexImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[390] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[390] = nativeContext.LoadFunction("glCopyTexImage1DEXT", "opengl") + ) )(target, level, internalformat, x, y, width, border); [SupportedApiProfile("gl", ["GL_EXT_copy_texture"])] @@ -439110,8 +440631,11 @@ void IGL.CopyTexImage2D( [NativeTypeName("GLint")] int border ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTexImage2D", "opengl") + (delegate* unmanaged)( + _slots[391] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[391] = nativeContext.LoadFunction("glCopyTexImage2D", "opengl") + ) )(target, level, internalformat, x, y, width, height, border); [SupportedApiProfile( @@ -439283,8 +440807,11 @@ void IGL.CopyTexImage2DEXT( [NativeTypeName("GLint")] int border ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTexImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[392] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[392] = nativeContext.LoadFunction("glCopyTexImage2DEXT", "opengl") + ) )(target, level, internalformat, x, y, width, height, border); [SupportedApiProfile("gl", ["GL_EXT_copy_texture"])] @@ -439348,8 +440875,11 @@ void IGL.CopyTexSubImage1D( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTexSubImage1D", "opengl") + (delegate* unmanaged)( + _slots[393] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[393] = nativeContext.LoadFunction("glCopyTexSubImage1D", "opengl") + ) )(target, level, xoffset, x, y, width); [SupportedApiProfile( @@ -439491,8 +441021,11 @@ void IGL.CopyTexSubImage1DEXT( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTexSubImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[394] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[394] = nativeContext.LoadFunction("glCopyTexSubImage1DEXT", "opengl") + ) )(target, level, xoffset, x, y, width); [SupportedApiProfile("gl", ["GL_EXT_copy_texture"])] @@ -439542,8 +441075,11 @@ void IGL.CopyTexSubImage2D( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTexSubImage2D", "opengl") + (delegate* unmanaged)( + _slots[395] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[395] = nativeContext.LoadFunction("glCopyTexSubImage2D", "opengl") + ) )(target, level, xoffset, yoffset, x, y, width, height); [SupportedApiProfile( @@ -439705,8 +441241,11 @@ void IGL.CopyTexSubImage2DEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTexSubImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[396] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[396] = nativeContext.LoadFunction("glCopyTexSubImage2DEXT", "opengl") + ) )(target, level, xoffset, yoffset, x, y, width, height); [SupportedApiProfile("gl", ["GL_EXT_copy_texture"])] @@ -439773,8 +441312,11 @@ void IGL.CopyTexSubImage3D( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTexSubImage3D", "opengl") + (delegate* unmanaged)( + _slots[397] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[397] = nativeContext.LoadFunction("glCopyTexSubImage3D", "opengl") + ) )(target, level, xoffset, yoffset, zoffset, x, y, width, height); [SupportedApiProfile( @@ -439937,8 +441479,11 @@ void IGL.CopyTexSubImage3DEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTexSubImage3DEXT", "opengl") + (delegate* unmanaged)( + _slots[398] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[398] = nativeContext.LoadFunction("glCopyTexSubImage3DEXT", "opengl") + ) )(target, level, xoffset, yoffset, zoffset, x, y, width, height); [SupportedApiProfile("gl", ["GL_EXT_copy_texture"])] @@ -440031,8 +441576,11 @@ void IGL.CopyTexSubImage3DOES( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTexSubImage3DOES", "opengl") + (delegate* unmanaged)( + _slots[399] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[399] = nativeContext.LoadFunction("glCopyTexSubImage3DOES", "opengl") + ) )(target, level, xoffset, yoffset, zoffset, x, y, width, height); [SupportedApiProfile("gles2", ["GL_OES_texture_3D"])] @@ -440073,8 +441621,11 @@ void IGL.CopyTextureImage1DEXT( [NativeTypeName("GLint")] int border ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTextureImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[400] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[400] = nativeContext.LoadFunction("glCopyTextureImage1DEXT", "opengl") + ) )(texture, target, level, internalformat, x, y, width, border); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -440163,8 +441714,11 @@ void IGL.CopyTextureImage2DEXT( [NativeTypeName("GLint")] int border ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTextureImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[401] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[401] = nativeContext.LoadFunction("glCopyTextureImage2DEXT", "opengl") + ) )(texture, target, level, internalformat, x, y, width, height, border); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -440254,8 +441808,11 @@ void IGL.CopyTextureLevelApple( [NativeTypeName("GLsizei")] uint sourceLevelCount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTextureLevelsAPPLE", "opengl") + (delegate* unmanaged)( + _slots[402] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[402] = nativeContext.LoadFunction("glCopyTextureLevelsAPPLE", "opengl") + ) )(destinationTexture, sourceTexture, sourceBaseLevel, sourceLevelCount); [SupportedApiProfile("gles2", ["GL_APPLE_copy_texture_levels"])] @@ -440285,8 +441842,11 @@ void IGL.CopyTextureSubImage1D( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTextureSubImage1D", "opengl") + (delegate* unmanaged)( + _slots[403] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[403] = nativeContext.LoadFunction("glCopyTextureSubImage1D", "opengl") + ) )(texture, level, xoffset, x, y, width); [SupportedApiProfile( @@ -440321,8 +441881,14 @@ void IGL.CopyTextureSubImage1DEXT( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTextureSubImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[404] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[404] = nativeContext.LoadFunction( + "glCopyTextureSubImage1DEXT", + "opengl" + ) + ) )(texture, target, level, xoffset, x, y, width); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -440377,8 +441943,11 @@ void IGL.CopyTextureSubImage2D( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTextureSubImage2D", "opengl") + (delegate* unmanaged)( + _slots[405] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[405] = nativeContext.LoadFunction("glCopyTextureSubImage2D", "opengl") + ) )(texture, level, xoffset, yoffset, x, y, width, height); [SupportedApiProfile( @@ -440417,8 +441986,14 @@ void IGL.CopyTextureSubImage2DEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTextureSubImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[406] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[406] = nativeContext.LoadFunction( + "glCopyTextureSubImage2DEXT", + "opengl" + ) + ) )(texture, target, level, xoffset, yoffset, x, y, width, height); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -440513,8 +442088,11 @@ void IGL.CopyTextureSubImage3D( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTextureSubImage3D", "opengl") + (delegate* unmanaged)( + _slots[407] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[407] = nativeContext.LoadFunction("glCopyTextureSubImage3D", "opengl") + ) )(texture, level, xoffset, yoffset, zoffset, x, y, width, height); [SupportedApiProfile( @@ -440566,8 +442144,14 @@ void IGL.CopyTextureSubImage3DEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCopyTextureSubImage3DEXT", "opengl") + (delegate* unmanaged)( + _slots[408] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[408] = nativeContext.LoadFunction( + "glCopyTextureSubImage3DEXT", + "opengl" + ) + ) )(texture, target, level, xoffset, yoffset, zoffset, x, y, width, height); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -440657,9 +442241,13 @@ public static void CopyTextureSubImage3DEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.CoverageMaskNV([NativeTypeName("GLboolean")] uint mask) => - ((delegate* unmanaged)nativeContext.LoadFunction("glCoverageMaskNV", "opengl"))( - mask - ); + ( + (delegate* unmanaged)( + _slots[409] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[409] = nativeContext.LoadFunction("glCoverageMaskNV", "opengl") + ) + )(mask); [SupportedApiProfile("gles2", ["GL_NV_coverage_sample"])] [NativeFunction("opengl", EntryPoint = "glCoverageMaskNV")] @@ -440681,8 +442269,11 @@ public static void CoverageMaskNV([NativeTypeName("GLboolean")] MaybeBool [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.CoverageModulationNV([NativeTypeName("GLenum")] uint components) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCoverageModulationNV", "opengl") + (delegate* unmanaged)( + _slots[410] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[410] = nativeContext.LoadFunction("glCoverageModulationNV", "opengl") + ) )(components); [SupportedApiProfile("gl", ["GL_NV_framebuffer_mixed_samples"])] @@ -440699,8 +442290,14 @@ void IGL.CoverageModulationTableNV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCoverageModulationTableNV", "opengl") + (delegate* unmanaged)( + _slots[411] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[411] = nativeContext.LoadFunction( + "glCoverageModulationTableNV", + "opengl" + ) + ) )(n, v); [SupportedApiProfile("gl", ["GL_NV_framebuffer_mixed_samples"])] @@ -440752,8 +442349,11 @@ public static void CoverageModulationTableNV([NativeTypeName("const GLfloat *")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.CoverageOperationNV([NativeTypeName("GLenum")] uint operation) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCoverageOperationNV", "opengl") + (delegate* unmanaged)( + _slots[412] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[412] = nativeContext.LoadFunction("glCoverageOperationNV", "opengl") + ) )(operation); [SupportedApiProfile("gles2", ["GL_NV_coverage_sample"])] @@ -440773,8 +442373,14 @@ void IGL.CoverFillPathInstancedNV( [NativeTypeName("const GLfloat *")] float* transformValues ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCoverFillPathInstancedNV", "opengl") + (delegate* unmanaged)( + _slots[413] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[413] = nativeContext.LoadFunction( + "glCoverFillPathInstancedNV", + "opengl" + ) + ) )(numPaths, pathNameType, paths, pathBase, coverMode, transformType, transformValues); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -440858,8 +442464,11 @@ void IGL.CoverFillPathNV( [NativeTypeName("GLenum")] uint coverMode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCoverFillPathNV", "opengl") + (delegate* unmanaged)( + _slots[414] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[414] = nativeContext.LoadFunction("glCoverFillPathNV", "opengl") + ) )(path, coverMode); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -440900,8 +442509,14 @@ void IGL.CoverStrokePathInstancedNV( [NativeTypeName("const GLfloat *")] float* transformValues ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCoverStrokePathInstancedNV", "opengl") + (delegate* unmanaged)( + _slots[415] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[415] = nativeContext.LoadFunction( + "glCoverStrokePathInstancedNV", + "opengl" + ) + ) )(numPaths, pathNameType, paths, pathBase, coverMode, transformType, transformValues); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -440985,8 +442600,11 @@ void IGL.CoverStrokePathNV( [NativeTypeName("GLenum")] uint coverMode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCoverStrokePathNV", "opengl") + (delegate* unmanaged)( + _slots[416] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[416] = nativeContext.LoadFunction("glCoverStrokePathNV", "opengl") + ) )(path, coverMode); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -441045,8 +442663,11 @@ void IGL.CreateBuffers( [NativeTypeName("GLuint *")] uint* buffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateBuffers", "opengl") + (delegate* unmanaged)( + _slots[417] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[417] = nativeContext.LoadFunction("glCreateBuffers", "opengl") + ) )(n, buffers); [SupportedApiProfile( @@ -441102,8 +442723,11 @@ void IGL.CreateCommandListsNV( [NativeTypeName("GLuint *")] uint* lists ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateCommandListsNV", "opengl") + (delegate* unmanaged)( + _slots[418] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[418] = nativeContext.LoadFunction("glCreateCommandListsNV", "opengl") + ) )(n, lists); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -441181,8 +442805,11 @@ void IGL.CreateFramebuffers( [NativeTypeName("GLuint *")] uint* framebuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateFramebuffers", "opengl") + (delegate* unmanaged)( + _slots[419] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[419] = nativeContext.LoadFunction("glCreateFramebuffers", "opengl") + ) )(n, framebuffers); [SupportedApiProfile( @@ -441238,8 +442865,11 @@ void IGL.CreateMemoryObjectsEXT( [NativeTypeName("GLuint *")] uint* memoryObjects ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateMemoryObjectsEXT", "opengl") + (delegate* unmanaged)( + _slots[420] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[420] = nativeContext.LoadFunction("glCreateMemoryObjectsEXT", "opengl") + ) )(n, memoryObjects); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -441294,8 +442924,11 @@ void IGL.CreatePerfQueryIntel( [NativeTypeName("GLuint *")] uint* queryHandle ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreatePerfQueryINTEL", "opengl") + (delegate* unmanaged)( + _slots[421] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[421] = nativeContext.LoadFunction("glCreatePerfQueryINTEL", "opengl") + ) )(queryId, queryHandle); [SupportedApiProfile("gl", ["GL_INTEL_performance_query"])] @@ -441349,7 +442982,13 @@ uint IGL.CreatePerfQueryIntel() [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.CreateProgram() => - ((delegate* unmanaged)nativeContext.LoadFunction("glCreateProgram", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[422] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[422] = nativeContext.LoadFunction("glCreateProgram", "opengl") + ) + )(); [return: NativeTypeName("GLuint")] [SupportedApiProfile( @@ -441402,8 +443041,11 @@ uint IGL.CreateProgram() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.CreateProgramObjectARB() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateProgramObjectARB", "opengl") + (delegate* unmanaged)( + _slots[423] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[423] = nativeContext.LoadFunction("glCreateProgramObjectARB", "opengl") + ) )(); [return: NativeTypeName("GLhandleARB")] @@ -441441,8 +443083,11 @@ void IGL.CreateProgramPipelines( [NativeTypeName("GLuint *")] uint* pipelines ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateProgramPipelines", "opengl") + (delegate* unmanaged)( + _slots[424] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[424] = nativeContext.LoadFunction("glCreateProgramPipelines", "opengl") + ) )(n, pipelines); [SupportedApiProfile( @@ -441495,8 +443140,11 @@ public static void CreateProgramPipelines( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.CreateProgressFenceNVX() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateProgressFenceNVX", "opengl") + (delegate* unmanaged)( + _slots[425] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[425] = nativeContext.LoadFunction("glCreateProgressFenceNVX", "opengl") + ) )(); [return: NativeTypeName("GLuint")] @@ -441512,8 +443160,11 @@ void IGL.CreateQueries( [NativeTypeName("GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateQueries", "opengl") + (delegate* unmanaged)( + _slots[426] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[426] = nativeContext.LoadFunction("glCreateQueries", "opengl") + ) )(target, n, ids); [SupportedApiProfile( @@ -441620,8 +443271,11 @@ void IGL.CreateRenderbuffers( [NativeTypeName("GLuint *")] uint* renderbuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateRenderbuffers", "opengl") + (delegate* unmanaged)( + _slots[427] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[427] = nativeContext.LoadFunction("glCreateRenderbuffers", "opengl") + ) )(n, renderbuffers); [SupportedApiProfile( @@ -441700,8 +443354,11 @@ void IGL.CreateSamplers( [NativeTypeName("GLuint *")] uint* samplers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateSamplers", "opengl") + (delegate* unmanaged)( + _slots[428] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[428] = nativeContext.LoadFunction("glCreateSamplers", "opengl") + ) )(n, samplers); [SupportedApiProfile( @@ -441757,8 +443414,11 @@ void IGL.CreateSemaphoresNV( [NativeTypeName("GLuint *")] uint* semaphores ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateSemaphoresNV", "opengl") + (delegate* unmanaged)( + _slots[429] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[429] = nativeContext.LoadFunction("glCreateSemaphoresNV", "opengl") + ) )(n, semaphores); [SupportedApiProfile("gl", ["GL_NV_timeline_semaphore"])] @@ -441809,9 +443469,13 @@ uint IGL.CreateSemaphoresNV() [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.CreateShader([NativeTypeName("GLenum")] uint type) => - ((delegate* unmanaged)nativeContext.LoadFunction("glCreateShader", "opengl"))( - type - ); + ( + (delegate* unmanaged)( + _slots[430] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[430] = nativeContext.LoadFunction("glCreateShader", "opengl") + ) + )(type); [return: NativeTypeName("GLuint")] [SupportedApiProfile( @@ -441920,8 +443584,11 @@ public static uint CreateShader( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.CreateShaderObjectARB([NativeTypeName("GLenum")] uint shaderType) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateShaderObjectARB", "opengl") + (delegate* unmanaged)( + _slots[431] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[431] = nativeContext.LoadFunction("glCreateShaderObjectARB", "opengl") + ) )(shaderType); [return: NativeTypeName("GLhandleARB")] @@ -441951,8 +443618,11 @@ uint IGL.CreateShaderProgramEXT( [NativeTypeName("const GLchar *")] sbyte* @string ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateShaderProgramEXT", "opengl") + (delegate* unmanaged)( + _slots[432] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[432] = nativeContext.LoadFunction("glCreateShaderProgramEXT", "opengl") + ) )(type, @string); [return: NativeTypeName("GLuint")] @@ -441995,8 +443665,11 @@ uint IGL.CreateShaderProgram( [NativeTypeName("const GLchar *const *")] sbyte** strings ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateShaderProgramv", "opengl") + (delegate* unmanaged)( + _slots[433] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[433] = nativeContext.LoadFunction("glCreateShaderProgramv", "opengl") + ) )(type, count, strings); [return: NativeTypeName("GLuint")] @@ -442090,8 +443763,14 @@ uint IGL.CreateShaderProgramEXT( [NativeTypeName("const GLchar *const *")] sbyte** strings ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateShaderProgramvEXT", "opengl") + (delegate* unmanaged)( + _slots[434] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[434] = nativeContext.LoadFunction( + "glCreateShaderProgramvEXT", + "opengl" + ) + ) )(type, count, strings); [return: NativeTypeName("GLuint")] @@ -442134,8 +443813,11 @@ void IGL.CreateStatesNV( [NativeTypeName("GLuint *")] uint* states ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateStatesNV", "opengl") + (delegate* unmanaged)( + _slots[435] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[435] = nativeContext.LoadFunction("glCreateStatesNV", "opengl") + ) )(n, states); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -442191,8 +443873,14 @@ uint IGL.CreateStatesNV() [NativeTypeName("GLbitfield")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateSyncFromCLeventARB", "opengl") + (delegate* unmanaged)( + _slots[436] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[436] = nativeContext.LoadFunction( + "glCreateSyncFromCLeventARB", + "opengl" + ) + ) )(context, @event, flags); [return: NativeTypeName("GLsync")] @@ -442264,8 +443952,11 @@ void IGL.CreateTextures( [NativeTypeName("GLuint *")] uint* textures ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateTextures", "opengl") + (delegate* unmanaged)( + _slots[437] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[437] = nativeContext.LoadFunction("glCreateTextures", "opengl") + ) )(target, n, textures); [SupportedApiProfile( @@ -442347,8 +444038,14 @@ void IGL.CreateTransformFeedbacks( [NativeTypeName("GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateTransformFeedbacks", "opengl") + (delegate* unmanaged)( + _slots[438] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[438] = nativeContext.LoadFunction( + "glCreateTransformFeedbacks", + "opengl" + ) + ) )(n, ids); [SupportedApiProfile( @@ -442427,8 +444124,11 @@ void IGL.CreateVertexArrays( [NativeTypeName("GLuint *")] uint* arrays ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCreateVertexArrays", "opengl") + (delegate* unmanaged)( + _slots[439] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[439] = nativeContext.LoadFunction("glCreateVertexArrays", "opengl") + ) )(n, arrays); [SupportedApiProfile( @@ -442480,7 +444180,13 @@ public static void CreateVertexArrays( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.CullFace([NativeTypeName("GLenum")] uint mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glCullFace", "opengl"))(mode); + ( + (delegate* unmanaged)( + _slots[440] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[440] = nativeContext.LoadFunction("glCullFace", "opengl") + ) + )(mode); [SupportedApiProfile( "gl", @@ -442615,8 +444321,11 @@ void IGL.CullParameterEXT( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCullParameterdvEXT", "opengl") + (delegate* unmanaged)( + _slots[441] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[441] = nativeContext.LoadFunction("glCullParameterdvEXT", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_EXT_cull_vertex"])] @@ -442654,8 +444363,11 @@ void IGL.CullParameterEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCullParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[442] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[442] = nativeContext.LoadFunction("glCullParameterfvEXT", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_EXT_cull_vertex"])] @@ -442690,8 +444402,14 @@ public static void CullParameterEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.CurrentPaletteMatrixARB([NativeTypeName("GLint")] int index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCurrentPaletteMatrixARB", "opengl") + (delegate* unmanaged)( + _slots[443] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[443] = nativeContext.LoadFunction( + "glCurrentPaletteMatrixARB", + "opengl" + ) + ) )(index); [SupportedApiProfile("gl", ["GL_ARB_matrix_palette"])] @@ -442703,8 +444421,14 @@ public static void CurrentPaletteMatrixARB([NativeTypeName("GLint")] int index) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.CurrentPaletteMatrixOES([NativeTypeName("GLuint")] uint matrixpaletteindex) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glCurrentPaletteMatrixOES", "opengl") + (delegate* unmanaged)( + _slots[444] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[444] = nativeContext.LoadFunction( + "glCurrentPaletteMatrixOES", + "opengl" + ) + ) )(matrixpaletteindex); [SupportedApiProfile("gles1", ["GL_OES_matrix_palette"])] @@ -442724,8 +444448,11 @@ void IGL.DebugMessageCallback( (delegate* unmanaged< delegate* unmanaged, void*, - void>) - nativeContext.LoadFunction("glDebugMessageCallback", "opengl") + void>)( + _slots[445] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[445] = nativeContext.LoadFunction("glDebugMessageCallback", "opengl") + ) )(callback, userParam); [SupportedApiProfile( @@ -442788,8 +444515,14 @@ void IGL.DebugMessageCallbackAMD( (delegate* unmanaged< delegate* unmanaged, void*, - void>) - nativeContext.LoadFunction("glDebugMessageCallbackAMD", "opengl") + void>)( + _slots[446] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[446] = nativeContext.LoadFunction( + "glDebugMessageCallbackAMD", + "opengl" + ) + ) )(callback, userParam); [SupportedApiProfile("gl", ["GL_AMD_debug_output"])] @@ -442834,8 +444567,14 @@ void IGL.DebugMessageCallbackARB( (delegate* unmanaged< delegate* unmanaged, void*, - void>) - nativeContext.LoadFunction("glDebugMessageCallbackARB", "opengl") + void>)( + _slots[447] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[447] = nativeContext.LoadFunction( + "glDebugMessageCallbackARB", + "opengl" + ) + ) )(callback, userParam); [SupportedApiProfile("gl", ["GL_ARB_debug_output"])] @@ -442882,8 +444621,14 @@ void IGL.DebugMessageCallbackKHR( (delegate* unmanaged< delegate* unmanaged, void*, - void>) - nativeContext.LoadFunction("glDebugMessageCallbackKHR", "opengl") + void>)( + _slots[448] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[448] = nativeContext.LoadFunction( + "glDebugMessageCallbackKHR", + "opengl" + ) + ) )(callback, userParam); [SupportedApiProfile("gles2", ["GL_KHR_debug"])] @@ -442928,8 +444673,11 @@ void IGL.DebugMessageControl( [NativeTypeName("GLboolean")] uint enabled ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDebugMessageControl", "opengl") + (delegate* unmanaged)( + _slots[449] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[449] = nativeContext.LoadFunction("glDebugMessageControl", "opengl") + ) )(source, type, severity, count, ids, enabled); [SupportedApiProfile( @@ -443046,8 +444794,11 @@ void IGL.DebugMessageControlARB( [NativeTypeName("GLboolean")] uint enabled ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDebugMessageControlARB", "opengl") + (delegate* unmanaged)( + _slots[450] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[450] = nativeContext.LoadFunction("glDebugMessageControlARB", "opengl") + ) )(source, type, severity, count, ids, enabled); [SupportedApiProfile("gl", ["GL_ARB_debug_output"])] @@ -443140,8 +444891,11 @@ void IGL.DebugMessageControlKHR( [NativeTypeName("GLboolean")] uint enabled ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDebugMessageControlKHR", "opengl") + (delegate* unmanaged)( + _slots[451] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[451] = nativeContext.LoadFunction("glDebugMessageControlKHR", "opengl") + ) )(source, type, severity, count, ids, enabled); [SupportedApiProfile("gles2", ["GL_KHR_debug"])] @@ -443201,8 +444955,11 @@ void IGL.DebugMessageEnableAMD( [NativeTypeName("GLboolean")] uint enabled ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDebugMessageEnableAMD", "opengl") + (delegate* unmanaged)( + _slots[452] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[452] = nativeContext.LoadFunction("glDebugMessageEnableAMD", "opengl") + ) )(category, severity, count, ids, enabled); [SupportedApiProfile("gl", ["GL_AMD_debug_output"])] @@ -443278,8 +445035,11 @@ void IGL.DebugMessageInsert( [NativeTypeName("const GLchar *")] sbyte* buf ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDebugMessageInsert", "opengl") + (delegate* unmanaged)( + _slots[453] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[453] = nativeContext.LoadFunction("glDebugMessageInsert", "opengl") + ) )(source, type, id, severity, length, buf); [SupportedApiProfile( @@ -443357,8 +445117,11 @@ void IGL.DebugMessageInsertAMD( [NativeTypeName("const GLchar *")] sbyte* buf ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDebugMessageInsertAMD", "opengl") + (delegate* unmanaged)( + _slots[454] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[454] = nativeContext.LoadFunction("glDebugMessageInsertAMD", "opengl") + ) )(category, severity, id, length, buf); [SupportedApiProfile("gl", ["GL_AMD_debug_output"])] @@ -443428,8 +445191,11 @@ void IGL.DebugMessageInsertARB( [NativeTypeName("const GLchar *")] sbyte* buf ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDebugMessageInsertARB", "opengl") + (delegate* unmanaged)( + _slots[455] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[455] = nativeContext.LoadFunction("glDebugMessageInsertARB", "opengl") + ) )(source, type, id, severity, length, buf); [SupportedApiProfile("gl", ["GL_ARB_debug_output"])] @@ -443522,8 +445288,11 @@ void IGL.DebugMessageInsertKHR( [NativeTypeName("const GLchar *")] sbyte* buf ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDebugMessageInsertKHR", "opengl") + (delegate* unmanaged)( + _slots[456] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[456] = nativeContext.LoadFunction("glDebugMessageInsertKHR", "opengl") + ) )(source, type, id, severity, length, buf); [SupportedApiProfile("gles2", ["GL_KHR_debug"])] @@ -443607,8 +445376,11 @@ void IGL.DeformationMap3SGIX( int, int, double*, - void>) - nativeContext.LoadFunction("glDeformationMap3dSGIX", "opengl") + void>)( + _slots[457] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[457] = nativeContext.LoadFunction("glDeformationMap3dSGIX", "opengl") + ) )( target, u1, @@ -443771,8 +445543,11 @@ void IGL.DeformationMap3SGIX( int, int, float*, - void>) - nativeContext.LoadFunction("glDeformationMap3fSGIX", "opengl") + void>)( + _slots[458] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[458] = nativeContext.LoadFunction("glDeformationMap3fSGIX", "opengl") + ) )( target, u1, @@ -443904,9 +445679,13 @@ public static void DeformationMap3SGIX( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DeformSGIX([NativeTypeName("GLbitfield")] uint mask) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDeformSGIX", "opengl"))( - mask - ); + ( + (delegate* unmanaged)( + _slots[459] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[459] = nativeContext.LoadFunction("glDeformSGIX", "opengl") + ) + )(mask); [SupportedApiProfile("gl", ["GL_SGIX_polynomial_ffd"])] [NativeFunction("opengl", EntryPoint = "glDeformSGIX")] @@ -443932,8 +445711,11 @@ void IGL.DeleteAsyncMarkersSGIX( [NativeTypeName("GLsizei")] uint range ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteAsyncMarkersSGIX", "opengl") + (delegate* unmanaged)( + _slots[460] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[460] = nativeContext.LoadFunction("glDeleteAsyncMarkersSGIX", "opengl") + ) )(marker, range); [SupportedApiProfile("gl", ["GL_SGIX_async"])] @@ -444006,8 +445788,11 @@ void IGL.DeleteBuffers( [NativeTypeName("const GLuint *")] uint* buffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteBuffers", "opengl") + (delegate* unmanaged)( + _slots[461] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[461] = nativeContext.LoadFunction("glDeleteBuffers", "opengl") + ) )(n, buffers); [SupportedApiProfile( @@ -444135,8 +445920,11 @@ void IGL.DeleteBuffersARB( [NativeTypeName("const GLuint *")] uint* buffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteBuffersARB", "opengl") + (delegate* unmanaged)( + _slots[462] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[462] = nativeContext.LoadFunction("glDeleteBuffersARB", "opengl") + ) )(n, buffers); [SupportedApiProfile("gl", ["GL_ARB_vertex_buffer_object"])] @@ -444185,8 +445973,11 @@ void IGL.DeleteCommandListsNV( [NativeTypeName("const GLuint *")] uint* lists ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteCommandListsNV", "opengl") + (delegate* unmanaged)( + _slots[463] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[463] = nativeContext.LoadFunction("glDeleteCommandListsNV", "opengl") + ) )(n, lists); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -444238,8 +446029,11 @@ void IGL.DeleteFencesApple( [NativeTypeName("const GLuint *")] uint* fences ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteFencesAPPLE", "opengl") + (delegate* unmanaged)( + _slots[464] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[464] = nativeContext.LoadFunction("glDeleteFencesAPPLE", "opengl") + ) )(n, fences); [SupportedApiProfile("gl", ["GL_APPLE_fence"])] @@ -444288,8 +446082,11 @@ void IGL.DeleteFencesNV( [NativeTypeName("const GLuint *")] uint* fences ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteFencesNV", "opengl") + (delegate* unmanaged)( + _slots[465] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[465] = nativeContext.LoadFunction("glDeleteFencesNV", "opengl") + ) )(n, fences); [SupportedApiProfile("gl", ["GL_NV_fence"])] @@ -444341,8 +446138,14 @@ public static void DeleteFencesNV([NativeTypeName("const GLuint *")] uint fences [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DeleteFragmentShaderATI([NativeTypeName("GLuint")] uint id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteFragmentShaderATI", "opengl") + (delegate* unmanaged)( + _slots[466] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[466] = nativeContext.LoadFunction( + "glDeleteFragmentShaderATI", + "opengl" + ) + ) )(id); [SupportedApiProfile("gl", ["GL_ATI_fragment_shader"])] @@ -444408,8 +446211,11 @@ void IGL.DeleteFramebuffers( [NativeTypeName("const GLuint *")] uint* framebuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteFramebuffers", "opengl") + (delegate* unmanaged)( + _slots[467] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[467] = nativeContext.LoadFunction("glDeleteFramebuffers", "opengl") + ) )(n, framebuffers); [SupportedApiProfile( @@ -444527,8 +446333,11 @@ void IGL.DeleteFramebuffersEXT( [NativeTypeName("const GLuint *")] uint* framebuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteFramebuffersEXT", "opengl") + (delegate* unmanaged)( + _slots[468] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[468] = nativeContext.LoadFunction("glDeleteFramebuffersEXT", "opengl") + ) )(n, framebuffers); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -444589,8 +446398,11 @@ void IGL.DeleteFramebuffersOES( [NativeTypeName("const GLuint *")] uint* framebuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteFramebuffersOES", "opengl") + (delegate* unmanaged)( + _slots[469] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[469] = nativeContext.LoadFunction("glDeleteFramebuffersOES", "opengl") + ) )(n, framebuffers); [SupportedApiProfile("gles1", ["GL_OES_framebuffer_object"])] @@ -444628,8 +446440,11 @@ void IGL.DeleteLists( [NativeTypeName("GLsizei")] uint range ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteLists", "opengl") + (delegate* unmanaged)( + _slots[470] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[470] = nativeContext.LoadFunction("glDeleteLists", "opengl") + ) )(list, range); [SupportedApiProfile( @@ -444670,8 +446485,11 @@ void IGL.DeleteMemoryObjectsEXT( [NativeTypeName("const GLuint *")] uint* memoryObjects ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteMemoryObjectsEXT", "opengl") + (delegate* unmanaged)( + _slots[471] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[471] = nativeContext.LoadFunction("glDeleteMemoryObjectsEXT", "opengl") + ) )(n, memoryObjects); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -444724,8 +446542,11 @@ void IGL.DeleteNamedStringARB( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteNamedStringARB", "opengl") + (delegate* unmanaged)( + _slots[472] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[472] = nativeContext.LoadFunction("glDeleteNamedStringARB", "opengl") + ) )(namelen, name); [SupportedApiProfile("gl", ["GL_ARB_shading_language_include"])] @@ -444778,8 +446599,11 @@ void IGL.DeleteNamesAMD( [NativeTypeName("const GLuint *")] uint* names ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteNamesAMD", "opengl") + (delegate* unmanaged)( + _slots[473] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[473] = nativeContext.LoadFunction("glDeleteNamesAMD", "opengl") + ) )(identifier, num, names); [SupportedApiProfile("gl", ["GL_AMD_name_gen_delete"])] @@ -444832,8 +446656,11 @@ public static void DeleteNamesAMD( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DeleteObjectARB([NativeTypeName("GLhandleARB")] uint obj) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteObjectARB", "opengl") + (delegate* unmanaged)( + _slots[474] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[474] = nativeContext.LoadFunction("glDeleteObjectARB", "opengl") + ) )(obj); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -444848,8 +446675,14 @@ void IGL.DeleteOcclusionQueriesNV( [NativeTypeName("const GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteOcclusionQueriesNV", "opengl") + (delegate* unmanaged)( + _slots[475] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[475] = nativeContext.LoadFunction( + "glDeleteOcclusionQueriesNV", + "opengl" + ) + ) )(n, ids); [SupportedApiProfile("gl", ["GL_NV_occlusion_query"])] @@ -444898,8 +446731,11 @@ void IGL.DeletePathNV( [NativeTypeName("GLsizei")] uint range ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeletePathsNV", "opengl") + (delegate* unmanaged)( + _slots[476] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[476] = nativeContext.LoadFunction("glDeletePathsNV", "opengl") + ) )(path, range); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -444918,8 +446754,11 @@ void IGL.DeletePerfMonitorsAMD( [NativeTypeName("GLuint *")] uint* monitors ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeletePerfMonitorsAMD", "opengl") + (delegate* unmanaged)( + _slots[477] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[477] = nativeContext.LoadFunction("glDeletePerfMonitorsAMD", "opengl") + ) )(n, monitors); [SupportedApiProfile("gl", ["GL_AMD_performance_monitor"])] @@ -444974,8 +446813,11 @@ uint IGL.DeletePerfMonitorsAMD() [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DeletePerfQueryIntel([NativeTypeName("GLuint")] uint queryHandle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeletePerfQueryINTEL", "opengl") + (delegate* unmanaged)( + _slots[478] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[478] = nativeContext.LoadFunction("glDeletePerfQueryINTEL", "opengl") + ) )(queryHandle); [SupportedApiProfile("gl", ["GL_INTEL_performance_query"])] @@ -444988,9 +446830,13 @@ public static void DeletePerfQueryIntel([NativeTypeName("GLuint")] uint queryHan [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DeleteProgram([NativeTypeName("GLuint")] uint program) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDeleteProgram", "opengl"))( - program - ); + ( + (delegate* unmanaged)( + _slots[479] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[479] = nativeContext.LoadFunction("glDeleteProgram", "opengl") + ) + )(program); [SupportedApiProfile( "gl", @@ -445082,8 +446928,11 @@ void IGL.DeleteProgramPipelines( [NativeTypeName("const GLuint *")] uint* pipelines ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteProgramPipelines", "opengl") + (delegate* unmanaged)( + _slots[480] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[480] = nativeContext.LoadFunction("glDeleteProgramPipelines", "opengl") + ) )(n, pipelines); [SupportedApiProfile( @@ -445171,8 +447020,14 @@ void IGL.DeleteProgramPipelinesEXT( [NativeTypeName("const GLuint *")] uint* pipelines ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteProgramPipelinesEXT", "opengl") + (delegate* unmanaged)( + _slots[481] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[481] = nativeContext.LoadFunction( + "glDeleteProgramPipelinesEXT", + "opengl" + ) + ) )(n, pipelines); [SupportedApiProfile("gles2", ["GL_EXT_separate_shader_objects"])] @@ -445222,8 +447077,11 @@ void IGL.DeleteProgramARB( [NativeTypeName("const GLuint *")] uint* programs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteProgramsARB", "opengl") + (delegate* unmanaged)( + _slots[482] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[482] = nativeContext.LoadFunction("glDeleteProgramsARB", "opengl") + ) )(n, programs); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -445272,8 +447130,11 @@ void IGL.DeleteProgramNV( [NativeTypeName("const GLuint *")] uint* programs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteProgramsNV", "opengl") + (delegate* unmanaged)( + _slots[483] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[483] = nativeContext.LoadFunction("glDeleteProgramsNV", "opengl") + ) )(n, programs); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -445322,8 +447183,11 @@ void IGL.DeleteQueries( [NativeTypeName("const GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteQueries", "opengl") + (delegate* unmanaged)( + _slots[484] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[484] = nativeContext.LoadFunction("glDeleteQueries", "opengl") + ) )(n, ids); [SupportedApiProfile( @@ -445439,8 +447303,11 @@ void IGL.DeleteQueriesARB( [NativeTypeName("const GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteQueriesARB", "opengl") + (delegate* unmanaged)( + _slots[485] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[485] = nativeContext.LoadFunction("glDeleteQueriesARB", "opengl") + ) )(n, ids); [SupportedApiProfile("gl", ["GL_ARB_occlusion_query"])] @@ -445489,8 +447356,11 @@ void IGL.DeleteQueriesEXT( [NativeTypeName("const GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteQueriesEXT", "opengl") + (delegate* unmanaged)( + _slots[486] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[486] = nativeContext.LoadFunction("glDeleteQueriesEXT", "opengl") + ) )(n, ids); [SupportedApiProfile( @@ -445598,8 +447468,14 @@ void IGL.DeleteQueryResourceTagNV( [NativeTypeName("const GLint *")] int* tagIds ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteQueryResourceTagNV", "opengl") + (delegate* unmanaged)( + _slots[487] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[487] = nativeContext.LoadFunction( + "glDeleteQueryResourceTagNV", + "opengl" + ) + ) )(n, tagIds); [SupportedApiProfile("gl", ["GL_NV_query_resource_tag"])] @@ -445699,8 +447575,11 @@ void IGL.DeleteRenderbuffers( [NativeTypeName("const GLuint *")] uint* renderbuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteRenderbuffers", "opengl") + (delegate* unmanaged)( + _slots[488] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[488] = nativeContext.LoadFunction("glDeleteRenderbuffers", "opengl") + ) )(n, renderbuffers); [SupportedApiProfile( @@ -445818,8 +447697,11 @@ void IGL.DeleteRenderbuffersEXT( [NativeTypeName("const GLuint *")] uint* renderbuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteRenderbuffersEXT", "opengl") + (delegate* unmanaged)( + _slots[489] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[489] = nativeContext.LoadFunction("glDeleteRenderbuffersEXT", "opengl") + ) )(n, renderbuffers); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -445881,8 +447763,11 @@ void IGL.DeleteRenderbuffersOES( [NativeTypeName("const GLuint *")] uint* renderbuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteRenderbuffersOES", "opengl") + (delegate* unmanaged)( + _slots[490] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[490] = nativeContext.LoadFunction("glDeleteRenderbuffersOES", "opengl") + ) )(n, renderbuffers); [SupportedApiProfile("gles1", ["GL_OES_framebuffer_object"])] @@ -445965,8 +447850,11 @@ void IGL.DeleteSamplers( [NativeTypeName("const GLuint *")] uint* samplers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteSamplers", "opengl") + (delegate* unmanaged)( + _slots[491] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[491] = nativeContext.LoadFunction("glDeleteSamplers", "opengl") + ) )(count, samplers); [SupportedApiProfile( @@ -446072,8 +447960,11 @@ void IGL.DeleteSemaphoresEXT( [NativeTypeName("const GLuint *")] uint* semaphores ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteSemaphoresEXT", "opengl") + (delegate* unmanaged)( + _slots[492] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[492] = nativeContext.LoadFunction("glDeleteSemaphoresEXT", "opengl") + ) )(n, semaphores); [SupportedApiProfile("gl", ["GL_EXT_semaphore"])] @@ -446121,9 +448012,13 @@ public static void DeleteSemaphoresEXT([NativeTypeName("const GLuint *")] uint s [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DeleteShader([NativeTypeName("GLuint")] uint shader) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDeleteShader", "opengl"))( - shader - ); + ( + (delegate* unmanaged)( + _slots[493] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[493] = nativeContext.LoadFunction("glDeleteShader", "opengl") + ) + )(shader); [SupportedApiProfile( "gl", @@ -446179,8 +448074,11 @@ void IGL.DeleteStatesNV( [NativeTypeName("const GLuint *")] uint* states ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteStatesNV", "opengl") + (delegate* unmanaged)( + _slots[494] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[494] = nativeContext.LoadFunction("glDeleteStatesNV", "opengl") + ) )(n, states); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -446228,9 +448126,13 @@ public static void DeleteStatesNV([NativeTypeName("const GLuint *")] uint states [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DeleteSync([NativeTypeName("GLsync")] Sync* sync) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDeleteSync", "opengl"))( - sync - ); + ( + (delegate* unmanaged)( + _slots[495] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[495] = nativeContext.LoadFunction("glDeleteSync", "opengl") + ) + )(sync); [SupportedApiProfile( "gl", @@ -446319,8 +448221,11 @@ public static void DeleteSync([NativeTypeName("GLsync")] Ref sync) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DeleteSyncApple([NativeTypeName("GLsync")] Sync* sync) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteSyncAPPLE", "opengl") + (delegate* unmanaged)( + _slots[496] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[496] = nativeContext.LoadFunction("glDeleteSyncAPPLE", "opengl") + ) )(sync); [SupportedApiProfile("gles2", ["GL_APPLE_sync"])] @@ -446417,8 +448322,11 @@ void IGL.DeleteTextures( [NativeTypeName("const GLuint *")] uint* textures ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteTextures", "opengl") + (delegate* unmanaged)( + _slots[497] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[497] = nativeContext.LoadFunction("glDeleteTextures", "opengl") + ) )(n, textures); [SupportedApiProfile( @@ -446562,8 +448470,11 @@ void IGL.DeleteTexturesEXT( [NativeTypeName("const GLuint *")] uint* textures ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteTexturesEXT", "opengl") + (delegate* unmanaged)( + _slots[498] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[498] = nativeContext.LoadFunction("glDeleteTexturesEXT", "opengl") + ) )(n, textures); [SupportedApiProfile("gl", ["GL_EXT_texture_object"])] @@ -446650,8 +448561,14 @@ void IGL.DeleteTransformFeedbacks( [NativeTypeName("const GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteTransformFeedbacks", "opengl") + (delegate* unmanaged)( + _slots[499] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[499] = nativeContext.LoadFunction( + "glDeleteTransformFeedbacks", + "opengl" + ) + ) )(n, ids); [SupportedApiProfile( @@ -446743,8 +448660,14 @@ void IGL.DeleteTransformFeedbacksNV( [NativeTypeName("const GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteTransformFeedbacksNV", "opengl") + (delegate* unmanaged)( + _slots[500] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[500] = nativeContext.LoadFunction( + "glDeleteTransformFeedbacksNV", + "opengl" + ) + ) )(n, ids); [SupportedApiProfile("gl", ["GL_NV_transform_feedback2"])] @@ -446839,8 +448762,11 @@ void IGL.DeleteVertexArrays( [NativeTypeName("const GLuint *")] uint* arrays ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteVertexArrays", "opengl") + (delegate* unmanaged)( + _slots[501] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[501] = nativeContext.LoadFunction("glDeleteVertexArrays", "opengl") + ) )(n, arrays); [SupportedApiProfile( @@ -446948,8 +448874,14 @@ void IGL.DeleteVertexArraysApple( [NativeTypeName("const GLuint *")] uint* arrays ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteVertexArraysAPPLE", "opengl") + (delegate* unmanaged)( + _slots[502] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[502] = nativeContext.LoadFunction( + "glDeleteVertexArraysAPPLE", + "opengl" + ) + ) )(n, arrays); [SupportedApiProfile("gl", ["GL_APPLE_vertex_array_object"])] @@ -447010,8 +448942,11 @@ void IGL.DeleteVertexArraysOES( [NativeTypeName("const GLuint *")] uint* arrays ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteVertexArraysOES", "opengl") + (delegate* unmanaged)( + _slots[503] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[503] = nativeContext.LoadFunction("glDeleteVertexArraysOES", "opengl") + ) )(n, arrays); [SupportedApiProfile("gles2", ["GL_OES_vertex_array_object"])] @@ -447048,8 +448983,11 @@ public static void DeleteVertexArraysOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DeleteVertexShaderEXT([NativeTypeName("GLuint")] uint id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDeleteVertexShaderEXT", "opengl") + (delegate* unmanaged)( + _slots[504] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[504] = nativeContext.LoadFunction("glDeleteVertexShaderEXT", "opengl") + ) )(id); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -447064,8 +449002,11 @@ void IGL.DepthBoundsNV( [NativeTypeName("GLdouble")] double zmax ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthBoundsdNV", "opengl") + (delegate* unmanaged)( + _slots[505] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[505] = nativeContext.LoadFunction("glDepthBoundsdNV", "opengl") + ) )(zmin, zmax); [SupportedApiProfile("gl", ["GL_NV_depth_buffer_float"])] @@ -447083,8 +449024,11 @@ void IGL.DepthBoundsEXT( [NativeTypeName("GLclampd")] double zmax ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthBoundsEXT", "opengl") + (delegate* unmanaged)( + _slots[506] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[506] = nativeContext.LoadFunction("glDepthBoundsEXT", "opengl") + ) )(zmin, zmax); [SupportedApiProfile("gl", ["GL_EXT_depth_bounds_test"])] @@ -447097,9 +449041,13 @@ public static void DepthBoundsEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DepthFunc([NativeTypeName("GLenum")] uint func) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDepthFunc", "opengl"))( - func - ); + ( + (delegate* unmanaged)( + _slots[507] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[507] = nativeContext.LoadFunction("glDepthFunc", "opengl") + ) + )(func); [SupportedApiProfile( "gl", @@ -447231,9 +449179,13 @@ public static void DepthFunc( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DepthMask([NativeTypeName("GLboolean")] uint flag) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDepthMask", "opengl"))( - flag - ); + ( + (delegate* unmanaged)( + _slots[508] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[508] = nativeContext.LoadFunction("glDepthMask", "opengl") + ) + )(flag); [SupportedApiProfile( "gl", @@ -447368,8 +449320,11 @@ void IGL.DepthRange( [NativeTypeName("GLdouble")] double f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRange", "opengl") + (delegate* unmanaged)( + _slots[509] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[509] = nativeContext.LoadFunction("glDepthRange", "opengl") + ) )(n, f); [SupportedApiProfile( @@ -447436,8 +449391,11 @@ void IGL.DepthRangeArrayNV( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangeArraydvNV", "opengl") + (delegate* unmanaged)( + _slots[510] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[510] = nativeContext.LoadFunction("glDepthRangeArraydvNV", "opengl") + ) )(first, count, v); [SupportedApiProfile("gl", ["GL_ARB_viewport_array"])] @@ -447481,8 +449439,11 @@ void IGL.DepthRangeArrayNV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangeArrayfvNV", "opengl") + (delegate* unmanaged)( + _slots[511] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[511] = nativeContext.LoadFunction("glDepthRangeArrayfvNV", "opengl") + ) )(first, count, v); [SupportedApiProfile("gles2", ["GL_NV_viewport_array"])] @@ -447524,8 +449485,11 @@ void IGL.DepthRangeArrayOES( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangeArrayfvOES", "opengl") + (delegate* unmanaged)( + _slots[512] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[512] = nativeContext.LoadFunction("glDepthRangeArrayfvOES", "opengl") + ) )(first, count, v); [SupportedApiProfile("gles2", ["GL_OES_viewport_array"])] @@ -447567,8 +449531,11 @@ void IGL.DepthRangeArray( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangeArrayv", "opengl") + (delegate* unmanaged)( + _slots[513] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[513] = nativeContext.LoadFunction("glDepthRangeArrayv", "opengl") + ) )(first, count, v); [SupportedApiProfile( @@ -447699,8 +449666,11 @@ void IGL.DepthRangeNV( [NativeTypeName("GLdouble")] double zFar ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangedNV", "opengl") + (delegate* unmanaged)( + _slots[514] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[514] = nativeContext.LoadFunction("glDepthRangedNV", "opengl") + ) )(zNear, zFar); [SupportedApiProfile("gl", ["GL_NV_depth_buffer_float"])] @@ -447715,8 +449685,11 @@ public static void DepthRangeNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DepthRange([NativeTypeName("GLfloat")] float n, [NativeTypeName("GLfloat")] float f) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangef", "opengl") + (delegate* unmanaged)( + _slots[515] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[515] = nativeContext.LoadFunction("glDepthRangef", "opengl") + ) )(n, f); [SupportedApiProfile( @@ -447764,8 +449737,11 @@ void IGL.DepthRangeOES( [NativeTypeName("GLclampf")] float f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangefOES", "opengl") + (delegate* unmanaged)( + _slots[516] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[516] = nativeContext.LoadFunction("glDepthRangefOES", "opengl") + ) )(n, f); [SupportedApiProfile("gl", ["GL_OES_single_precision"])] @@ -447784,8 +449760,11 @@ void IGL.DepthRangeIndexed( [NativeTypeName("GLdouble")] double f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangeIndexed", "opengl") + (delegate* unmanaged)( + _slots[517] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[517] = nativeContext.LoadFunction("glDepthRangeIndexed", "opengl") + ) )(index, n, f); [SupportedApiProfile( @@ -447829,8 +449808,11 @@ void IGL.DepthRangeIndexedNV( [NativeTypeName("GLdouble")] double f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangeIndexeddNV", "opengl") + (delegate* unmanaged)( + _slots[518] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[518] = nativeContext.LoadFunction("glDepthRangeIndexeddNV", "opengl") + ) )(index, n, f); [SupportedApiProfile("gl", ["GL_ARB_viewport_array"])] @@ -447850,8 +449832,11 @@ void IGL.DepthRangeIndexedNV( [NativeTypeName("GLfloat")] float f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangeIndexedfNV", "opengl") + (delegate* unmanaged)( + _slots[519] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[519] = nativeContext.LoadFunction("glDepthRangeIndexedfNV", "opengl") + ) )(index, n, f); [SupportedApiProfile("gles2", ["GL_NV_viewport_array"])] @@ -447870,8 +449855,11 @@ void IGL.DepthRangeIndexedOES( [NativeTypeName("GLfloat")] float f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangeIndexedfOES", "opengl") + (delegate* unmanaged)( + _slots[520] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[520] = nativeContext.LoadFunction("glDepthRangeIndexedfOES", "opengl") + ) )(index, n, f); [SupportedApiProfile("gles2", ["GL_OES_viewport_array"])] @@ -447886,8 +449874,11 @@ public static void DepthRangeIndexedOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DepthRangex([NativeTypeName("GLfixed")] int n, [NativeTypeName("GLfixed")] int f) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangex", "opengl") + (delegate* unmanaged)( + _slots[521] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[521] = nativeContext.LoadFunction("glDepthRangex", "opengl") + ) )(n, f); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -447901,8 +449892,11 @@ public static void DepthRangex( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DepthRangexOES([NativeTypeName("GLfixed")] int n, [NativeTypeName("GLfixed")] int f) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDepthRangexOES", "opengl") + (delegate* unmanaged)( + _slots[522] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[522] = nativeContext.LoadFunction("glDepthRangexOES", "opengl") + ) )(n, f); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -447920,8 +449914,11 @@ void IGL.DetachObjectARB( [NativeTypeName("GLhandleARB")] uint attachedObj ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDetachObjectARB", "opengl") + (delegate* unmanaged)( + _slots[523] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[523] = nativeContext.LoadFunction("glDetachObjectARB", "opengl") + ) )(containerObj, attachedObj); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -447938,8 +449935,11 @@ void IGL.DetachShader( [NativeTypeName("GLuint")] uint shader ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDetachShader", "opengl") + (delegate* unmanaged)( + _slots[524] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[524] = nativeContext.LoadFunction("glDetachShader", "opengl") + ) )(program, shader); [SupportedApiProfile( @@ -447999,8 +449999,11 @@ void IGL.DetailTexFuncSGIS( [NativeTypeName("const GLfloat *")] float* points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDetailTexFuncSGIS", "opengl") + (delegate* unmanaged)( + _slots[525] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[525] = nativeContext.LoadFunction("glDetailTexFuncSGIS", "opengl") + ) )(target, n, points); [SupportedApiProfile("gl", ["GL_SGIS_detail_texture"])] @@ -448037,7 +450040,13 @@ public static void DetailTexFuncSGIS( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Disable([NativeTypeName("GLenum")] uint cap) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDisable", "opengl"))(cap); + ( + (delegate* unmanaged)( + _slots[526] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[526] = nativeContext.LoadFunction("glDisable", "opengl") + ) + )(cap); [SupportedApiProfile( "gl", @@ -448168,8 +450177,11 @@ public static void Disable([NativeTypeName("GLenum")] Constant ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableClientState", "opengl") + (delegate* unmanaged)( + _slots[527] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[527] = nativeContext.LoadFunction("glDisableClientState", "opengl") + ) )(array); [SupportedApiProfile( @@ -448245,8 +450257,11 @@ void IGL.DisableClientStateEXT( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableClientStateiEXT", "opengl") + (delegate* unmanaged)( + _slots[528] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[528] = nativeContext.LoadFunction("glDisableClientStateiEXT", "opengl") + ) )(array, index); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -448280,8 +450295,14 @@ void IGL.DisableClientStateIndexedEXT( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableClientStateIndexedEXT", "opengl") + (delegate* unmanaged)( + _slots[529] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[529] = nativeContext.LoadFunction( + "glDisableClientStateIndexedEXT", + "opengl" + ) + ) )(array, index); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -448312,8 +450333,14 @@ public static void DisableClientStateIndexedEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DisableDriverControlQCOM([NativeTypeName("GLuint")] uint driverControl) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableDriverControlQCOM", "opengl") + (delegate* unmanaged)( + _slots[530] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[530] = nativeContext.LoadFunction( + "glDisableDriverControlQCOM", + "opengl" + ) + ) )(driverControl); [SupportedApiProfile("gles2", ["GL_QCOM_driver_control"])] @@ -448328,10 +450355,13 @@ void IGL.Disable( [NativeTypeName("GLenum")] uint target, [NativeTypeName("GLuint")] uint index ) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDisablei", "opengl"))( - target, - index - ); + ( + (delegate* unmanaged)( + _slots[531] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[531] = nativeContext.LoadFunction("glDisablei", "opengl") + ) + )(target, index); [SupportedApiProfile( "gl", @@ -448428,8 +450458,11 @@ void IGL.DisableEXT( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableiEXT", "opengl") + (delegate* unmanaged)( + _slots[532] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[532] = nativeContext.LoadFunction("glDisableiEXT", "opengl") + ) )(target, index); [SupportedApiProfile("gles2", ["GL_EXT_draw_buffers_indexed"])] @@ -448461,8 +450494,11 @@ void IGL.DisableIndexedEXT( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableIndexedEXT", "opengl") + (delegate* unmanaged)( + _slots[533] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[533] = nativeContext.LoadFunction("glDisableIndexedEXT", "opengl") + ) )(target, index); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_draw_buffers2"])] @@ -448496,8 +450532,11 @@ void IGL.DisableNV( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableiNV", "opengl") + (delegate* unmanaged)( + _slots[534] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[534] = nativeContext.LoadFunction("glDisableiNV", "opengl") + ) )(target, index); [SupportedApiProfile("gles2", ["GL_NV_viewport_array"])] @@ -448529,8 +450568,11 @@ void IGL.DisableOES( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableiOES", "opengl") + (delegate* unmanaged)( + _slots[535] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[535] = nativeContext.LoadFunction("glDisableiOES", "opengl") + ) )(target, index); [SupportedApiProfile("gles2", ["GL_OES_draw_buffers_indexed", "GL_OES_viewport_array"])] @@ -448559,8 +450601,14 @@ public static void DisableOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DisableVariantClientStateEXT([NativeTypeName("GLuint")] uint id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableVariantClientStateEXT", "opengl") + (delegate* unmanaged)( + _slots[536] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[536] = nativeContext.LoadFunction( + "glDisableVariantClientStateEXT", + "opengl" + ) + ) )(id); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -448575,8 +450623,14 @@ void IGL.DisableVertexArrayAttrib( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableVertexArrayAttrib", "opengl") + (delegate* unmanaged)( + _slots[537] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[537] = nativeContext.LoadFunction( + "glDisableVertexArrayAttrib", + "opengl" + ) + ) )(vaobj, index); [SupportedApiProfile( @@ -448602,8 +450656,14 @@ void IGL.DisableVertexArrayAttribEXT( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableVertexArrayAttribEXT", "opengl") + (delegate* unmanaged)( + _slots[538] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[538] = nativeContext.LoadFunction( + "glDisableVertexArrayAttribEXT", + "opengl" + ) + ) )(vaobj, index); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -448621,8 +450681,11 @@ void IGL.DisableVertexArrayEXT( [NativeTypeName("GLenum")] uint array ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableVertexArrayEXT", "opengl") + (delegate* unmanaged)( + _slots[539] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[539] = nativeContext.LoadFunction("glDisableVertexArrayEXT", "opengl") + ) )(vaobj, array); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -448656,8 +450719,14 @@ void IGL.DisableVertexAttribApple( [NativeTypeName("GLenum")] uint pname ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableVertexAttribAPPLE", "opengl") + (delegate* unmanaged)( + _slots[540] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[540] = nativeContext.LoadFunction( + "glDisableVertexAttribAPPLE", + "opengl" + ) + ) )(index, pname); [SupportedApiProfile("gl", ["GL_APPLE_vertex_program_evaluators"])] @@ -448671,8 +450740,14 @@ public static void DisableVertexAttribApple( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DisableVertexAttribArray([NativeTypeName("GLuint")] uint index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableVertexAttribArray", "opengl") + (delegate* unmanaged)( + _slots[541] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[541] = nativeContext.LoadFunction( + "glDisableVertexAttribArray", + "opengl" + ) + ) )(index); [SupportedApiProfile( @@ -448726,8 +450801,14 @@ public static void DisableVertexAttribArray([NativeTypeName("GLuint")] uint inde [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DisableVertexAttribArrayARB([NativeTypeName("GLuint")] uint index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDisableVertexAttribArrayARB", "opengl") + (delegate* unmanaged)( + _slots[542] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[542] = nativeContext.LoadFunction( + "glDisableVertexAttribArrayARB", + "opengl" + ) + ) )(index); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -448743,8 +450824,11 @@ void IGL.DiscardFramebufferEXT( [NativeTypeName("const GLenum *")] uint* attachments ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDiscardFramebufferEXT", "opengl") + (delegate* unmanaged)( + _slots[543] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[543] = nativeContext.LoadFunction("glDiscardFramebufferEXT", "opengl") + ) )(target, numAttachments, attachments); [SupportedApiProfile("gles2", ["GL_EXT_discard_framebuffer"])] @@ -448897,8 +450981,11 @@ void IGL.DispatchCompute( [NativeTypeName("GLuint")] uint num_groups_z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDispatchCompute", "opengl") + (delegate* unmanaged)( + _slots[544] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[544] = nativeContext.LoadFunction("glDispatchCompute", "opengl") + ) )(num_groups_x, num_groups_y, num_groups_z); [SupportedApiProfile( @@ -448941,8 +451028,14 @@ void IGL.DispatchComputeGroupSizeARB( [NativeTypeName("GLuint")] uint group_size_z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDispatchComputeGroupSizeARB", "opengl") + (delegate* unmanaged)( + _slots[545] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[545] = nativeContext.LoadFunction( + "glDispatchComputeGroupSizeARB", + "opengl" + ) + ) )(num_groups_x, num_groups_y, num_groups_z, group_size_x, group_size_y, group_size_z); [SupportedApiProfile("gl", ["GL_ARB_compute_variable_group_size"])] @@ -448969,8 +451062,14 @@ public static void DispatchComputeGroupSizeARB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DispatchComputeIndirect([NativeTypeName("GLintptr")] nint indirect) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDispatchComputeIndirect", "opengl") + (delegate* unmanaged)( + _slots[546] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[546] = nativeContext.LoadFunction( + "glDispatchComputeIndirect", + "opengl" + ) + ) )(indirect); [SupportedApiProfile( @@ -449007,8 +451106,11 @@ void IGL.DrawArrays( [NativeTypeName("GLsizei")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawArrays", "opengl") + (delegate* unmanaged)( + _slots[547] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[547] = nativeContext.LoadFunction("glDrawArrays", "opengl") + ) )(mode, first, count); [SupportedApiProfile( @@ -449150,8 +451252,11 @@ void IGL.DrawArraysEXT( [NativeTypeName("GLsizei")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawArraysEXT", "opengl") + (delegate* unmanaged)( + _slots[548] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[548] = nativeContext.LoadFunction("glDrawArraysEXT", "opengl") + ) )(mode, first, count); [SupportedApiProfile("gl", ["GL_EXT_vertex_array"])] @@ -449186,8 +451291,11 @@ void IGL.DrawArraysIndirect( [NativeTypeName("const void *")] void* indirect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawArraysIndirect", "opengl") + (delegate* unmanaged)( + _slots[549] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[549] = nativeContext.LoadFunction("glDrawArraysIndirect", "opengl") + ) )(mode, indirect); [SupportedApiProfile( @@ -449281,8 +451389,11 @@ void IGL.DrawArraysInstanced( [NativeTypeName("GLsizei")] uint instancecount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawArraysInstanced", "opengl") + (delegate* unmanaged)( + _slots[550] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[550] = nativeContext.LoadFunction("glDrawArraysInstanced", "opengl") + ) )(mode, first, count, instancecount); [SupportedApiProfile( @@ -449384,8 +451495,14 @@ void IGL.DrawArraysInstancedAngle( [NativeTypeName("GLsizei")] uint primcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawArraysInstancedANGLE", "opengl") + (delegate* unmanaged)( + _slots[551] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[551] = nativeContext.LoadFunction( + "glDrawArraysInstancedANGLE", + "opengl" + ) + ) )(mode, first, count, primcount); [SupportedApiProfile("gles2", ["GL_ANGLE_instanced_arrays"])] @@ -449425,8 +451542,11 @@ void IGL.DrawArraysInstancedARB( [NativeTypeName("GLsizei")] uint primcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawArraysInstancedARB", "opengl") + (delegate* unmanaged)( + _slots[552] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[552] = nativeContext.LoadFunction("glDrawArraysInstancedARB", "opengl") + ) )(mode, first, count, primcount); [SupportedApiProfile("gl", ["GL_ARB_draw_instanced"])] @@ -449469,8 +451589,14 @@ void IGL.DrawArraysInstancedBaseInstance( [NativeTypeName("GLuint")] uint baseinstance ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawArraysInstancedBaseInstance", "opengl") + (delegate* unmanaged)( + _slots[553] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[553] = nativeContext.LoadFunction( + "glDrawArraysInstancedBaseInstance", + "opengl" + ) + ) )(mode, first, count, instancecount, baseinstance); [SupportedApiProfile( @@ -449569,8 +451695,14 @@ void IGL.DrawArraysInstancedBaseInstanceEXT( [NativeTypeName("GLuint")] uint baseinstance ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawArraysInstancedBaseInstanceEXT", "opengl") + (delegate* unmanaged)( + _slots[554] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[554] = nativeContext.LoadFunction( + "glDrawArraysInstancedBaseInstanceEXT", + "opengl" + ) + ) )(mode, first, count, instancecount, baseinstance); [SupportedApiProfile("gles2", ["GL_EXT_base_instance"])] @@ -449634,8 +451766,11 @@ void IGL.DrawArraysInstancedEXT( [NativeTypeName("GLsizei")] uint primcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawArraysInstancedEXT", "opengl") + (delegate* unmanaged)( + _slots[555] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[555] = nativeContext.LoadFunction("glDrawArraysInstancedEXT", "opengl") + ) )(mode, start, count, primcount); [SupportedApiProfile("gl", ["GL_EXT_draw_instanced"])] @@ -449679,8 +451814,11 @@ void IGL.DrawArraysInstancedNV( [NativeTypeName("GLsizei")] uint primcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawArraysInstancedNV", "opengl") + (delegate* unmanaged)( + _slots[556] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[556] = nativeContext.LoadFunction("glDrawArraysInstancedNV", "opengl") + ) )(mode, first, count, primcount); [SupportedApiProfile("gles2", ["GL_NV_draw_instanced"])] @@ -449714,9 +451852,13 @@ public static void DrawArraysInstancedNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DrawBuffer([NativeTypeName("GLenum")] uint buf) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDrawBuffer", "opengl"))( - buf - ); + ( + (delegate* unmanaged)( + _slots[557] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[557] = nativeContext.LoadFunction("glDrawBuffer", "opengl") + ) + )(buf); [SupportedApiProfile( "gl", @@ -449936,8 +452078,11 @@ void IGL.DrawBuffers( [NativeTypeName("const GLenum *")] uint* bufs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawBuffers", "opengl") + (delegate* unmanaged)( + _slots[558] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[558] = nativeContext.LoadFunction("glDrawBuffers", "opengl") + ) )(n, bufs); [SupportedApiProfile( @@ -450165,8 +452310,11 @@ void IGL.DrawBuffersARB( [NativeTypeName("const GLenum *")] uint* bufs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawBuffersARB", "opengl") + (delegate* unmanaged)( + _slots[559] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[559] = nativeContext.LoadFunction("glDrawBuffersARB", "opengl") + ) )(n, bufs); [SupportedApiProfile("gl", ["GL_ARB_draw_buffers"])] @@ -450279,8 +452427,11 @@ void IGL.DrawBuffersATI( [NativeTypeName("const GLenum *")] uint* bufs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawBuffersATI", "opengl") + (delegate* unmanaged)( + _slots[560] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[560] = nativeContext.LoadFunction("glDrawBuffersATI", "opengl") + ) )(n, bufs); [SupportedApiProfile("gl", ["GL_ATI_draw_buffers"])] @@ -450393,8 +452544,11 @@ void IGL.DrawBuffersEXT( [NativeTypeName("const GLenum *")] uint* bufs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawBuffersEXT", "opengl") + (delegate* unmanaged)( + _slots[561] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[561] = nativeContext.LoadFunction("glDrawBuffersEXT", "opengl") + ) )(n, bufs); [SupportedApiProfile("gles2", ["GL_EXT_draw_buffers"])] @@ -450444,8 +452598,11 @@ void IGL.DrawBuffersIndexedEXT( [NativeTypeName("const GLint *")] int* indices ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawBuffersIndexedEXT", "opengl") + (delegate* unmanaged)( + _slots[562] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[562] = nativeContext.LoadFunction("glDrawBuffersIndexedEXT", "opengl") + ) )(n, location, indices); [SupportedApiProfile("gles2", ["GL_EXT_multiview_draw_buffers"])] @@ -450487,8 +452644,11 @@ void IGL.DrawBuffersNV( [NativeTypeName("const GLenum *")] uint* bufs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawBuffersNV", "opengl") + (delegate* unmanaged)( + _slots[563] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[563] = nativeContext.LoadFunction("glDrawBuffersNV", "opengl") + ) )(n, bufs); [SupportedApiProfile("gles2", ["GL_NV_draw_buffers"])] @@ -450539,8 +452699,11 @@ void IGL.DrawCommandsAddressNV( [NativeTypeName("GLuint")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawCommandsAddressNV", "opengl") + (delegate* unmanaged)( + _slots[564] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[564] = nativeContext.LoadFunction("glDrawCommandsAddressNV", "opengl") + ) )(primitiveMode, indirects, sizes, count); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -450590,8 +452753,11 @@ void IGL.DrawCommandsNV( [NativeTypeName("GLuint")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawCommandsNV", "opengl") + (delegate* unmanaged)( + _slots[565] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[565] = nativeContext.LoadFunction("glDrawCommandsNV", "opengl") + ) )(primitiveMode, buffer, indirects, sizes, count); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -450644,8 +452810,14 @@ void IGL.DrawCommandsStatesAddressNV( [NativeTypeName("GLuint")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawCommandsStatesAddressNV", "opengl") + (delegate* unmanaged)( + _slots[566] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[566] = nativeContext.LoadFunction( + "glDrawCommandsStatesAddressNV", + "opengl" + ) + ) )(indirects, sizes, states, fbos, count); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -450707,8 +452879,11 @@ void IGL.DrawCommandsStatesNV( [NativeTypeName("GLuint")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawCommandsStatesNV", "opengl") + (delegate* unmanaged)( + _slots[567] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[567] = nativeContext.LoadFunction("glDrawCommandsStatesNV", "opengl") + ) )(buffer, indirects, sizes, states, fbos, count); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -450771,8 +452946,11 @@ void IGL.DrawElementArrayApple( [NativeTypeName("GLsizei")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementArrayAPPLE", "opengl") + (delegate* unmanaged)( + _slots[568] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[568] = nativeContext.LoadFunction("glDrawElementArrayAPPLE", "opengl") + ) )(mode, first, count); [SupportedApiProfile("gl", ["GL_APPLE_element_array"])] @@ -450807,8 +452985,11 @@ void IGL.DrawElementArrayATI( [NativeTypeName("GLsizei")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementArrayATI", "opengl") + (delegate* unmanaged)( + _slots[569] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[569] = nativeContext.LoadFunction("glDrawElementArrayATI", "opengl") + ) )(mode, count); [SupportedApiProfile("gl", ["GL_ATI_element_array"])] @@ -450842,8 +453023,11 @@ void IGL.DrawElements( [NativeTypeName("const void *")] void* indices ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElements", "opengl") + (delegate* unmanaged)( + _slots[570] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[570] = nativeContext.LoadFunction("glDrawElements", "opengl") + ) )(mode, count, type, indices); [SupportedApiProfile( @@ -450996,8 +453180,11 @@ void IGL.DrawElementsBaseVertex( [NativeTypeName("GLint")] int basevertex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsBaseVertex", "opengl") + (delegate* unmanaged)( + _slots[571] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[571] = nativeContext.LoadFunction("glDrawElementsBaseVertex", "opengl") + ) )(mode, count, type, indices, basevertex); [SupportedApiProfile( @@ -451115,8 +453302,14 @@ void IGL.DrawElementsBaseVertexEXT( [NativeTypeName("GLint")] int basevertex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsBaseVertexEXT", "opengl") + (delegate* unmanaged)( + _slots[572] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[572] = nativeContext.LoadFunction( + "glDrawElementsBaseVertexEXT", + "opengl" + ) + ) )(mode, count, type, indices, basevertex); [SupportedApiProfile("gles2", ["GL_EXT_draw_elements_base_vertex"])] @@ -451172,8 +453365,14 @@ void IGL.DrawElementsBaseVertexOES( [NativeTypeName("GLint")] int basevertex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsBaseVertexOES", "opengl") + (delegate* unmanaged)( + _slots[573] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[573] = nativeContext.LoadFunction( + "glDrawElementsBaseVertexOES", + "opengl" + ) + ) )(mode, count, type, indices, basevertex); [SupportedApiProfile("gles2", ["GL_OES_draw_elements_base_vertex"])] @@ -451227,8 +453426,11 @@ void IGL.DrawElementsIndirect( [NativeTypeName("const void *")] void* indirect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsIndirect", "opengl") + (delegate* unmanaged)( + _slots[574] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[574] = nativeContext.LoadFunction("glDrawElementsIndirect", "opengl") + ) )(mode, type, indirect); [SupportedApiProfile( @@ -451326,8 +453528,11 @@ void IGL.DrawElementsInstanced( [NativeTypeName("GLsizei")] uint instancecount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsInstanced", "opengl") + (delegate* unmanaged)( + _slots[575] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[575] = nativeContext.LoadFunction("glDrawElementsInstanced", "opengl") + ) )(mode, count, type, indices, instancecount); [SupportedApiProfile( @@ -451445,8 +453650,14 @@ void IGL.DrawElementsInstancedAngle( [NativeTypeName("GLsizei")] uint primcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsInstancedANGLE", "opengl") + (delegate* unmanaged)( + _slots[576] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[576] = nativeContext.LoadFunction( + "glDrawElementsInstancedANGLE", + "opengl" + ) + ) )(mode, count, type, indices, primcount); [SupportedApiProfile("gles2", ["GL_ANGLE_instanced_arrays"])] @@ -451502,8 +453713,14 @@ void IGL.DrawElementsInstancedARB( [NativeTypeName("GLsizei")] uint primcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsInstancedARB", "opengl") + (delegate* unmanaged)( + _slots[577] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[577] = nativeContext.LoadFunction( + "glDrawElementsInstancedARB", + "opengl" + ) + ) )(mode, count, type, indices, primcount); [SupportedApiProfile("gl", ["GL_ARB_draw_instanced"])] @@ -451562,8 +453779,14 @@ void IGL.DrawElementsInstancedBaseInstance( [NativeTypeName("GLuint")] uint baseinstance ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsInstancedBaseInstance", "opengl") + (delegate* unmanaged)( + _slots[578] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[578] = nativeContext.LoadFunction( + "glDrawElementsInstancedBaseInstance", + "opengl" + ) + ) )(mode, count, type, indices, instancecount, baseinstance); [SupportedApiProfile( @@ -451686,8 +453909,14 @@ void IGL.DrawElementsInstancedBaseInstanceEXT( [NativeTypeName("GLuint")] uint baseinstance ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsInstancedBaseInstanceEXT", "opengl") + (delegate* unmanaged)( + _slots[579] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[579] = nativeContext.LoadFunction( + "glDrawElementsInstancedBaseInstanceEXT", + "opengl" + ) + ) )(mode, count, type, indices, instancecount, baseinstance); [SupportedApiProfile("gles2", ["GL_EXT_base_instance"])] @@ -451764,8 +453993,14 @@ void IGL.DrawElementsInstancedBaseVertex( [NativeTypeName("GLint")] int basevertex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsInstancedBaseVertex", "opengl") + (delegate* unmanaged)( + _slots[580] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[580] = nativeContext.LoadFunction( + "glDrawElementsInstancedBaseVertex", + "opengl" + ) + ) )(mode, count, type, indices, instancecount, basevertex); [SupportedApiProfile( @@ -451905,11 +454140,14 @@ void IGL.DrawElementsInstancedBaseVertexBaseInstance( [NativeTypeName("GLuint")] uint baseinstance ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction( - "glDrawElementsInstancedBaseVertexBaseInstance", - "opengl" - ) + (delegate* unmanaged)( + _slots[581] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[581] = nativeContext.LoadFunction( + "glDrawElementsInstancedBaseVertexBaseInstance", + "opengl" + ) + ) )(mode, count, type, indices, instancecount, basevertex, baseinstance); [SupportedApiProfile( @@ -452039,11 +454277,14 @@ void IGL.DrawElementsInstancedBaseVertexBaseInstanceEXT( [NativeTypeName("GLuint")] uint baseinstance ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction( - "glDrawElementsInstancedBaseVertexBaseInstanceEXT", - "opengl" - ) + (delegate* unmanaged)( + _slots[582] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[582] = nativeContext.LoadFunction( + "glDrawElementsInstancedBaseVertexBaseInstanceEXT", + "opengl" + ) + ) )(mode, count, type, indices, instancecount, basevertex, baseinstance); [SupportedApiProfile("gles2", ["GL_EXT_base_instance"])] @@ -452126,8 +454367,14 @@ void IGL.DrawElementsInstancedBaseVertexEXT( [NativeTypeName("GLint")] int basevertex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsInstancedBaseVertexEXT", "opengl") + (delegate* unmanaged)( + _slots[583] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[583] = nativeContext.LoadFunction( + "glDrawElementsInstancedBaseVertexEXT", + "opengl" + ) + ) )(mode, count, type, indices, instancecount, basevertex); [SupportedApiProfile("gles2", ["GL_EXT_draw_elements_base_vertex"])] @@ -452204,8 +454451,14 @@ void IGL.DrawElementsInstancedBaseVertexOES( [NativeTypeName("GLint")] int basevertex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsInstancedBaseVertexOES", "opengl") + (delegate* unmanaged)( + _slots[584] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[584] = nativeContext.LoadFunction( + "glDrawElementsInstancedBaseVertexOES", + "opengl" + ) + ) )(mode, count, type, indices, instancecount, basevertex); [SupportedApiProfile("gles2", ["GL_OES_draw_elements_base_vertex"])] @@ -452281,8 +454534,14 @@ void IGL.DrawElementsInstancedEXT( [NativeTypeName("GLsizei")] uint primcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsInstancedEXT", "opengl") + (delegate* unmanaged)( + _slots[585] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[585] = nativeContext.LoadFunction( + "glDrawElementsInstancedEXT", + "opengl" + ) + ) )(mode, count, type, indices, primcount); [SupportedApiProfile("gl", ["GL_EXT_draw_instanced"])] @@ -452342,8 +454601,14 @@ void IGL.DrawElementsInstancedNV( [NativeTypeName("GLsizei")] uint primcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawElementsInstancedNV", "opengl") + (delegate* unmanaged)( + _slots[586] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[586] = nativeContext.LoadFunction( + "glDrawElementsInstancedNV", + "opengl" + ) + ) )(mode, count, type, indices, primcount); [SupportedApiProfile("gles2", ["GL_NV_draw_instanced"])] @@ -452398,8 +454663,11 @@ void IGL.DrawMeshArraysSUN( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawMeshArraysSUN", "opengl") + (delegate* unmanaged)( + _slots[587] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[587] = nativeContext.LoadFunction("glDrawMeshArraysSUN", "opengl") + ) )(mode, first, count, width); [SupportedApiProfile("gl", ["GL_SUN_mesh_array"])] @@ -452434,8 +454702,14 @@ public static void DrawMeshArraysSUN( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DrawMeshTasksIndirectNV([NativeTypeName("GLintptr")] nint indirect) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawMeshTasksIndirectNV", "opengl") + (delegate* unmanaged)( + _slots[588] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[588] = nativeContext.LoadFunction( + "glDrawMeshTasksIndirectNV", + "opengl" + ) + ) )(indirect); [SupportedApiProfile("gl", ["GL_NV_mesh_shader"])] @@ -452452,8 +454726,11 @@ void IGL.DrawMeshTaskNV( [NativeTypeName("GLuint")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawMeshTasksNV", "opengl") + (delegate* unmanaged)( + _slots[589] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[589] = nativeContext.LoadFunction("glDrawMeshTasksNV", "opengl") + ) )(first, count); [SupportedApiProfile("gl", ["GL_NV_mesh_shader"])] @@ -452475,8 +454752,11 @@ void IGL.DrawPixels( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawPixels", "opengl") + (delegate* unmanaged)( + _slots[590] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[590] = nativeContext.LoadFunction("glDrawPixels", "opengl") + ) )(width, height, format, type, pixels); [SupportedApiProfile( @@ -452574,8 +454854,14 @@ void IGL.DrawRangeElementArrayApple( [NativeTypeName("GLsizei")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawRangeElementArrayAPPLE", "opengl") + (delegate* unmanaged)( + _slots[591] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[591] = nativeContext.LoadFunction( + "glDrawRangeElementArrayAPPLE", + "opengl" + ) + ) )(mode, start, end, first, count); [SupportedApiProfile("gl", ["GL_APPLE_element_array"])] @@ -452618,8 +454904,14 @@ void IGL.DrawRangeElementArrayATI( [NativeTypeName("GLsizei")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawRangeElementArrayATI", "opengl") + (delegate* unmanaged)( + _slots[592] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[592] = nativeContext.LoadFunction( + "glDrawRangeElementArrayATI", + "opengl" + ) + ) )(mode, start, end, count); [SupportedApiProfile("gl", ["GL_ATI_element_array"])] @@ -452661,8 +454953,11 @@ void IGL.DrawRangeElements( [NativeTypeName("const void *")] void* indices ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawRangeElements", "opengl") + (delegate* unmanaged)( + _slots[593] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[593] = nativeContext.LoadFunction("glDrawRangeElements", "opengl") + ) )(mode, start, end, count, type, indices); [SupportedApiProfile( @@ -452807,8 +455102,14 @@ void IGL.DrawRangeElementsBaseVertex( [NativeTypeName("GLint")] int basevertex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawRangeElementsBaseVertex", "opengl") + (delegate* unmanaged)( + _slots[594] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[594] = nativeContext.LoadFunction( + "glDrawRangeElementsBaseVertex", + "opengl" + ) + ) )(mode, start, end, count, type, indices, basevertex); [SupportedApiProfile( @@ -452936,8 +455237,14 @@ void IGL.DrawRangeElementsBaseVertexEXT( [NativeTypeName("GLint")] int basevertex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawRangeElementsBaseVertexEXT", "opengl") + (delegate* unmanaged)( + _slots[595] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[595] = nativeContext.LoadFunction( + "glDrawRangeElementsBaseVertexEXT", + "opengl" + ) + ) )(mode, start, end, count, type, indices, basevertex); [SupportedApiProfile("gles2", ["GL_EXT_draw_elements_base_vertex"])] @@ -453021,8 +455328,14 @@ void IGL.DrawRangeElementsBaseVertexOES( [NativeTypeName("GLint")] int basevertex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawRangeElementsBaseVertexOES", "opengl") + (delegate* unmanaged)( + _slots[596] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[596] = nativeContext.LoadFunction( + "glDrawRangeElementsBaseVertexOES", + "opengl" + ) + ) )(mode, start, end, count, type, indices, basevertex); [SupportedApiProfile("gles2", ["GL_OES_draw_elements_base_vertex"])] @@ -453105,8 +455418,11 @@ void IGL.DrawRangeElementsEXT( [NativeTypeName("const void *")] void* indices ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawRangeElementsEXT", "opengl") + (delegate* unmanaged)( + _slots[597] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[597] = nativeContext.LoadFunction("glDrawRangeElementsEXT", "opengl") + ) )(mode, start, end, count, type, indices); [SupportedApiProfile("gl", ["GL_EXT_draw_range_elements"])] @@ -453166,8 +455482,11 @@ void IGL.DrawTexOES( [NativeTypeName("GLfloat")] float height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawTexfOES", "opengl") + (delegate* unmanaged)( + _slots[598] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[598] = nativeContext.LoadFunction("glDrawTexfOES", "opengl") + ) )(x, y, z, width, height); [SupportedApiProfile("gles1", ["GL_OES_draw_texture"])] @@ -453183,9 +455502,13 @@ public static void DrawTexOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DrawTexOES([NativeTypeName("const GLfloat *")] float* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDrawTexfvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[599] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[599] = nativeContext.LoadFunction("glDrawTexfvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gles1", ["GL_OES_draw_texture"])] [NativeFunction("opengl", EntryPoint = "glDrawTexfvOES")] @@ -453218,8 +455541,11 @@ void IGL.DrawTexOES( [NativeTypeName("GLint")] int height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawTexiOES", "opengl") + (delegate* unmanaged)( + _slots[600] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[600] = nativeContext.LoadFunction("glDrawTexiOES", "opengl") + ) )(x, y, z, width, height); [SupportedApiProfile("gles1", ["GL_OES_draw_texture"])] @@ -453235,9 +455561,13 @@ public static void DrawTexOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DrawTexOES([NativeTypeName("const GLint *")] int* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDrawTexivOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[601] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[601] = nativeContext.LoadFunction("glDrawTexivOES", "opengl") + ) + )(coords); [SupportedApiProfile("gles1", ["GL_OES_draw_texture"])] [NativeFunction("opengl", EntryPoint = "glDrawTexivOES")] @@ -453270,8 +455600,11 @@ void IGL.DrawTexOES( [NativeTypeName("GLshort")] short height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawTexsOES", "opengl") + (delegate* unmanaged)( + _slots[602] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[602] = nativeContext.LoadFunction("glDrawTexsOES", "opengl") + ) )(x, y, z, width, height); [SupportedApiProfile("gles1", ["GL_OES_draw_texture"])] @@ -453287,9 +455620,13 @@ public static void DrawTexOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DrawTexOES([NativeTypeName("const GLshort *")] short* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDrawTexsvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[603] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[603] = nativeContext.LoadFunction("glDrawTexsvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gles1", ["GL_OES_draw_texture"])] [NativeFunction("opengl", EntryPoint = "glDrawTexsvOES")] @@ -453340,8 +455677,11 @@ void IGL.DrawTextureNV( float, float, float, - void>) - nativeContext.LoadFunction("glDrawTextureNV", "opengl") + void>)( + _slots[604] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[604] = nativeContext.LoadFunction("glDrawTextureNV", "opengl") + ) )(texture, sampler, x0, y0, x1, y1, z, s0, t0, s1, t1); [SupportedApiProfile("gl", ["GL_NV_draw_texture"])] @@ -453370,8 +455710,11 @@ void IGL.DrawTexxOES( [NativeTypeName("GLfixed")] int height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawTexxOES", "opengl") + (delegate* unmanaged)( + _slots[605] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[605] = nativeContext.LoadFunction("glDrawTexxOES", "opengl") + ) )(x, y, z, width, height); [SupportedApiProfile("gles1", ["GL_OES_draw_texture"])] @@ -453387,9 +455730,13 @@ public static void DrawTexxOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.DrawTexxOES([NativeTypeName("const GLfixed *")] int* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glDrawTexxvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[606] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[606] = nativeContext.LoadFunction("glDrawTexxvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gles1", ["GL_OES_draw_texture"])] [NativeFunction("opengl", EntryPoint = "glDrawTexxvOES")] @@ -453419,8 +455766,11 @@ void IGL.DrawTransformFeedback( [NativeTypeName("GLuint")] uint id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawTransformFeedback", "opengl") + (delegate* unmanaged)( + _slots[607] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[607] = nativeContext.LoadFunction("glDrawTransformFeedback", "opengl") + ) )(mode, id); [SupportedApiProfile( @@ -453506,8 +455856,14 @@ void IGL.DrawTransformFeedbackEXT( [NativeTypeName("GLuint")] uint id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawTransformFeedbackEXT", "opengl") + (delegate* unmanaged)( + _slots[608] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[608] = nativeContext.LoadFunction( + "glDrawTransformFeedbackEXT", + "opengl" + ) + ) )(mode, id); [SupportedApiProfile("gles2", ["GL_EXT_draw_transform_feedback"])] @@ -453540,8 +455896,14 @@ void IGL.DrawTransformFeedbackInstanced( [NativeTypeName("GLsizei")] uint instancecount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawTransformFeedbackInstanced", "opengl") + (delegate* unmanaged)( + _slots[609] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[609] = nativeContext.LoadFunction( + "glDrawTransformFeedbackInstanced", + "opengl" + ) + ) )(mode, id, instancecount); [SupportedApiProfile( @@ -453623,8 +455985,14 @@ void IGL.DrawTransformFeedbackInstancedEXT( [NativeTypeName("GLsizei")] uint instancecount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawTransformFeedbackInstancedEXT", "opengl") + (delegate* unmanaged)( + _slots[610] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[610] = nativeContext.LoadFunction( + "glDrawTransformFeedbackInstancedEXT", + "opengl" + ) + ) )(mode, id, instancecount); [SupportedApiProfile("gles2", ["GL_EXT_draw_transform_feedback"])] @@ -453659,8 +456027,14 @@ void IGL.DrawTransformFeedbackNV( [NativeTypeName("GLuint")] uint id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawTransformFeedbackNV", "opengl") + (delegate* unmanaged)( + _slots[611] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[611] = nativeContext.LoadFunction( + "glDrawTransformFeedbackNV", + "opengl" + ) + ) )(mode, id); [SupportedApiProfile("gl", ["GL_NV_transform_feedback2"])] @@ -453693,8 +456067,14 @@ void IGL.DrawTransformFeedbackStream( [NativeTypeName("GLuint")] uint stream ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawTransformFeedbackStream", "opengl") + (delegate* unmanaged)( + _slots[612] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[612] = nativeContext.LoadFunction( + "glDrawTransformFeedbackStream", + "opengl" + ) + ) )(mode, id, stream); [SupportedApiProfile( @@ -453785,8 +456165,14 @@ void IGL.DrawTransformFeedbackStreamInstanced( [NativeTypeName("GLsizei")] uint instancecount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glDrawTransformFeedbackStreamInstanced", "opengl") + (delegate* unmanaged)( + _slots[613] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[613] = nativeContext.LoadFunction( + "glDrawTransformFeedbackStreamInstanced", + "opengl" + ) + ) )(mode, id, stream, instancecount); [SupportedApiProfile( @@ -453891,8 +456277,11 @@ void IGL.DrawVkImageNV( float, float, float, - void>) - nativeContext.LoadFunction("glDrawVkImageNV", "opengl") + void>)( + _slots[614] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[614] = nativeContext.LoadFunction("glDrawVkImageNV", "opengl") + ) )(vkImage, sampler, x0, y0, x1, y1, z, s0, t0, s1, t1); [SupportedApiProfile("gl", ["GL_NV_draw_vulkan_image"])] @@ -453916,7 +456305,13 @@ public static void DrawVkImageNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EdgeFlag([NativeTypeName("GLboolean")] uint flag) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEdgeFlag", "opengl"))(flag); + ( + (delegate* unmanaged)( + _slots[615] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[615] = nativeContext.LoadFunction("glEdgeFlag", "opengl") + ) + )(flag); [SupportedApiProfile( "gl", @@ -453986,8 +456381,11 @@ public static void EdgeFlag([NativeTypeName("GLboolean")] MaybeBool flag) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EdgeFlagFormatNV([NativeTypeName("GLsizei")] uint stride) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEdgeFlagFormatNV", "opengl") + (delegate* unmanaged)( + _slots[616] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[616] = nativeContext.LoadFunction("glEdgeFlagFormatNV", "opengl") + ) )(stride); [SupportedApiProfile("gl", ["GL_NV_vertex_buffer_unified_memory"])] @@ -454003,8 +456401,11 @@ void IGL.EdgeFlagPointer( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEdgeFlagPointer", "opengl") + (delegate* unmanaged)( + _slots[617] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[617] = nativeContext.LoadFunction("glEdgeFlagPointer", "opengl") + ) )(stride, pointer); [SupportedApiProfile( @@ -454089,8 +456490,11 @@ void IGL.EdgeFlagPointerEXT( [NativeTypeName("const GLboolean *")] uint* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEdgeFlagPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[618] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[618] = nativeContext.LoadFunction("glEdgeFlagPointerEXT", "opengl") + ) )(stride, count, pointer); [SupportedApiProfile("gl", ["GL_EXT_vertex_array"])] @@ -454147,8 +456551,11 @@ void IGL.EdgeFlagPointerListIBM( [NativeTypeName("GLint")] int ptrstride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEdgeFlagPointerListIBM", "opengl") + (delegate* unmanaged)( + _slots[619] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[619] = nativeContext.LoadFunction("glEdgeFlagPointerListIBM", "opengl") + ) )(stride, pointer, ptrstride); [SupportedApiProfile("gl", ["GL_IBM_vertex_array_lists"])] @@ -454200,9 +456607,13 @@ public static Ptr EdgeFlagPointerListIBM([NativeTypeName("GLint")] int ptr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EdgeFlagv([NativeTypeName("const GLboolean *")] uint* flag) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEdgeFlagv", "opengl"))( - flag - ); + ( + (delegate* unmanaged)( + _slots[620] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[620] = nativeContext.LoadFunction("glEdgeFlagv", "opengl") + ) + )(flag); [SupportedApiProfile( "gl", @@ -454315,8 +456726,14 @@ void IGL.EGLImageTargetRenderbufferStorageOES( [NativeTypeName("GLeglImageOES")] void* image ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEGLImageTargetRenderbufferStorageOES", "opengl") + (delegate* unmanaged)( + _slots[621] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[621] = nativeContext.LoadFunction( + "glEGLImageTargetRenderbufferStorageOES", + "opengl" + ) + ) )(target, image); [SupportedApiProfile("gles2", ["GL_OES_EGL_image"])] @@ -454357,8 +456774,14 @@ void IGL.EGLImageTargetTexStorageEXT( [NativeTypeName("const GLint *")] int* attrib_list ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEGLImageTargetTexStorageEXT", "opengl") + (delegate* unmanaged)( + _slots[622] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[622] = nativeContext.LoadFunction( + "glEGLImageTargetTexStorageEXT", + "opengl" + ) + ) )(target, image, attrib_list); [SupportedApiProfile("gl", ["GL_EXT_EGL_image_storage"])] @@ -454404,8 +456827,14 @@ void IGL.EGLImageTargetTexture2DOES( [NativeTypeName("GLeglImageOES")] void* image ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEGLImageTargetTexture2DOES", "opengl") + (delegate* unmanaged)( + _slots[623] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[623] = nativeContext.LoadFunction( + "glEGLImageTargetTexture2DOES", + "opengl" + ) + ) )(target, image); [SupportedApiProfile("gles2", ["GL_OES_EGL_image"])] @@ -454446,8 +456875,14 @@ void IGL.EGLImageTargetTextureStorageEXT( [NativeTypeName("const GLint *")] int* attrib_list ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEGLImageTargetTextureStorageEXT", "opengl") + (delegate* unmanaged)( + _slots[624] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[624] = nativeContext.LoadFunction( + "glEGLImageTargetTextureStorageEXT", + "opengl" + ) + ) )(texture, image, attrib_list); [SupportedApiProfile("gl", ["GL_EXT_EGL_image_storage"])] @@ -454493,8 +456928,11 @@ void IGL.ElementPointerApple( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glElementPointerAPPLE", "opengl") + (delegate* unmanaged)( + _slots[625] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[625] = nativeContext.LoadFunction("glElementPointerAPPLE", "opengl") + ) )(type, pointer); [SupportedApiProfile("gl", ["GL_APPLE_element_array"])] @@ -454532,8 +456970,11 @@ void IGL.ElementPointerATI( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glElementPointerATI", "opengl") + (delegate* unmanaged)( + _slots[626] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[626] = nativeContext.LoadFunction("glElementPointerATI", "opengl") + ) )(type, pointer); [SupportedApiProfile("gl", ["GL_ATI_element_array"])] @@ -454567,7 +457008,13 @@ public static void ElementPointerATI( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Enable([NativeTypeName("GLenum")] uint cap) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEnable", "opengl"))(cap); + ( + (delegate* unmanaged)( + _slots[627] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[627] = nativeContext.LoadFunction("glEnable", "opengl") + ) + )(cap); [SupportedApiProfile( "gl", @@ -454698,8 +457145,11 @@ public static void Enable([NativeTypeName("GLenum")] Constant ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableClientState", "opengl") + (delegate* unmanaged)( + _slots[628] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[628] = nativeContext.LoadFunction("glEnableClientState", "opengl") + ) )(array); [SupportedApiProfile( @@ -454775,8 +457225,11 @@ void IGL.EnableClientStateEXT( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableClientStateiEXT", "opengl") + (delegate* unmanaged)( + _slots[629] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[629] = nativeContext.LoadFunction("glEnableClientStateiEXT", "opengl") + ) )(array, index); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -454810,8 +457263,14 @@ void IGL.EnableClientStateIndexedEXT( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableClientStateIndexedEXT", "opengl") + (delegate* unmanaged)( + _slots[630] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[630] = nativeContext.LoadFunction( + "glEnableClientStateIndexedEXT", + "opengl" + ) + ) )(array, index); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -454842,8 +457301,14 @@ public static void EnableClientStateIndexedEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EnableDriverControlQCOM([NativeTypeName("GLuint")] uint driverControl) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableDriverControlQCOM", "opengl") + (delegate* unmanaged)( + _slots[631] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[631] = nativeContext.LoadFunction( + "glEnableDriverControlQCOM", + "opengl" + ) + ) )(driverControl); [SupportedApiProfile("gles2", ["GL_QCOM_driver_control"])] @@ -454858,10 +457323,13 @@ void IGL.Enable( [NativeTypeName("GLenum")] uint target, [NativeTypeName("GLuint")] uint index ) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEnablei", "opengl"))( - target, - index - ); + ( + (delegate* unmanaged)( + _slots[632] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[632] = nativeContext.LoadFunction("glEnablei", "opengl") + ) + )(target, index); [SupportedApiProfile( "gl", @@ -454958,8 +457426,11 @@ void IGL.EnableEXT( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableiEXT", "opengl") + (delegate* unmanaged)( + _slots[633] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[633] = nativeContext.LoadFunction("glEnableiEXT", "opengl") + ) )(target, index); [SupportedApiProfile("gles2", ["GL_EXT_draw_buffers_indexed"])] @@ -454991,8 +457462,11 @@ void IGL.EnableIndexedEXT( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableIndexedEXT", "opengl") + (delegate* unmanaged)( + _slots[634] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[634] = nativeContext.LoadFunction("glEnableIndexedEXT", "opengl") + ) )(target, index); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_draw_buffers2"])] @@ -455026,8 +457500,11 @@ void IGL.EnableNV( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableiNV", "opengl") + (delegate* unmanaged)( + _slots[635] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[635] = nativeContext.LoadFunction("glEnableiNV", "opengl") + ) )(target, index); [SupportedApiProfile("gles2", ["GL_NV_viewport_array"])] @@ -455059,8 +457536,11 @@ void IGL.EnableOES( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableiOES", "opengl") + (delegate* unmanaged)( + _slots[636] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[636] = nativeContext.LoadFunction("glEnableiOES", "opengl") + ) )(target, index); [SupportedApiProfile("gles2", ["GL_OES_draw_buffers_indexed", "GL_OES_viewport_array"])] @@ -455089,8 +457569,14 @@ public static void EnableOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EnableVariantClientStateEXT([NativeTypeName("GLuint")] uint id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableVariantClientStateEXT", "opengl") + (delegate* unmanaged)( + _slots[637] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[637] = nativeContext.LoadFunction( + "glEnableVariantClientStateEXT", + "opengl" + ) + ) )(id); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -455105,8 +457591,14 @@ void IGL.EnableVertexArrayAttrib( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableVertexArrayAttrib", "opengl") + (delegate* unmanaged)( + _slots[638] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[638] = nativeContext.LoadFunction( + "glEnableVertexArrayAttrib", + "opengl" + ) + ) )(vaobj, index); [SupportedApiProfile( @@ -455132,8 +457624,14 @@ void IGL.EnableVertexArrayAttribEXT( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableVertexArrayAttribEXT", "opengl") + (delegate* unmanaged)( + _slots[639] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[639] = nativeContext.LoadFunction( + "glEnableVertexArrayAttribEXT", + "opengl" + ) + ) )(vaobj, index); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -455151,8 +457649,11 @@ void IGL.EnableVertexArrayEXT( [NativeTypeName("GLenum")] uint array ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableVertexArrayEXT", "opengl") + (delegate* unmanaged)( + _slots[640] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[640] = nativeContext.LoadFunction("glEnableVertexArrayEXT", "opengl") + ) )(vaobj, array); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -455186,8 +457687,14 @@ void IGL.EnableVertexAttribApple( [NativeTypeName("GLenum")] uint pname ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableVertexAttribAPPLE", "opengl") + (delegate* unmanaged)( + _slots[641] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[641] = nativeContext.LoadFunction( + "glEnableVertexAttribAPPLE", + "opengl" + ) + ) )(index, pname); [SupportedApiProfile("gl", ["GL_APPLE_vertex_program_evaluators"])] @@ -455201,8 +457708,14 @@ public static void EnableVertexAttribApple( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EnableVertexAttribArray([NativeTypeName("GLuint")] uint index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableVertexAttribArray", "opengl") + (delegate* unmanaged)( + _slots[642] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[642] = nativeContext.LoadFunction( + "glEnableVertexAttribArray", + "opengl" + ) + ) )(index); [SupportedApiProfile( @@ -455256,8 +457769,14 @@ public static void EnableVertexAttribArray([NativeTypeName("GLuint")] uint index [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EnableVertexAttribArrayARB([NativeTypeName("GLuint")] uint index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEnableVertexAttribArrayARB", "opengl") + (delegate* unmanaged)( + _slots[643] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[643] = nativeContext.LoadFunction( + "glEnableVertexAttribArrayARB", + "opengl" + ) + ) )(index); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -455267,7 +457786,14 @@ public static void EnableVertexAttribArrayARB([NativeTypeName("GLuint")] uint in ThisThread.EnableVertexAttribArrayARB(index); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void IGL.End() => ((delegate* unmanaged)nativeContext.LoadFunction("glEnd", "opengl"))(); + void IGL.End() => + ( + (delegate* unmanaged)( + _slots[644] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[644] = nativeContext.LoadFunction("glEnd", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -455301,8 +457827,11 @@ public static void EnableVertexAttribArrayARB([NativeTypeName("GLuint")] uint in [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndConditionalRender() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEndConditionalRender", "opengl") + (delegate* unmanaged)( + _slots[645] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[645] = nativeContext.LoadFunction("glEndConditionalRender", "opengl") + ) )(); [SupportedApiProfile( @@ -455346,8 +457875,11 @@ void IGL.EndConditionalRender() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndConditionalRenderNV() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEndConditionalRenderNV", "opengl") + (delegate* unmanaged)( + _slots[646] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[646] = nativeContext.LoadFunction("glEndConditionalRenderNV", "opengl") + ) )(); [SupportedApiProfile("gl", ["GL_NV_conditional_render"])] @@ -455360,8 +457892,14 @@ void IGL.EndConditionalRenderNV() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndConditionalRenderNVX() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEndConditionalRenderNVX", "opengl") + (delegate* unmanaged)( + _slots[647] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[647] = nativeContext.LoadFunction( + "glEndConditionalRenderNVX", + "opengl" + ) + ) )(); [SupportedApiProfile("gl", ["GL_NVX_conditional_render"])] @@ -455372,8 +457910,11 @@ void IGL.EndConditionalRenderNVX() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndFragmentShaderATI() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEndFragmentShaderATI", "opengl") + (delegate* unmanaged)( + _slots[648] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[648] = nativeContext.LoadFunction("glEndFragmentShaderATI", "opengl") + ) )(); [SupportedApiProfile("gl", ["GL_ATI_fragment_shader"])] @@ -455383,7 +457924,13 @@ void IGL.EndFragmentShaderATI() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndList() => - ((delegate* unmanaged)nativeContext.LoadFunction("glEndList", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[649] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[649] = nativeContext.LoadFunction("glEndList", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -455417,7 +457964,11 @@ void IGL.EndList() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndOcclusionQueryNV() => ( - (delegate* unmanaged)nativeContext.LoadFunction("glEndOcclusionQueryNV", "opengl") + (delegate* unmanaged)( + _slots[650] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[650] = nativeContext.LoadFunction("glEndOcclusionQueryNV", "opengl") + ) )(); [SupportedApiProfile("gl", ["GL_NV_occlusion_query"])] @@ -455428,8 +457979,11 @@ void IGL.EndOcclusionQueryNV() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndPerfMonitorAMD([NativeTypeName("GLuint")] uint monitor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEndPerfMonitorAMD", "opengl") + (delegate* unmanaged)( + _slots[651] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[651] = nativeContext.LoadFunction("glEndPerfMonitorAMD", "opengl") + ) )(monitor); [SupportedApiProfile("gl", ["GL_AMD_performance_monitor"])] @@ -455443,8 +457997,11 @@ public static void EndPerfMonitorAMD([NativeTypeName("GLuint")] uint monitor) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndPerfQueryIntel([NativeTypeName("GLuint")] uint queryHandle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEndPerfQueryINTEL", "opengl") + (delegate* unmanaged)( + _slots[652] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[652] = nativeContext.LoadFunction("glEndPerfQueryINTEL", "opengl") + ) )(queryHandle); [SupportedApiProfile("gl", ["GL_INTEL_performance_query"])] @@ -455457,9 +458014,13 @@ public static void EndPerfQueryIntel([NativeTypeName("GLuint")] uint queryHandle [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndQuery([NativeTypeName("GLenum")] uint target) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEndQuery", "opengl"))( - target - ); + ( + (delegate* unmanaged)( + _slots[653] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[653] = nativeContext.LoadFunction("glEndQuery", "opengl") + ) + )(target); [SupportedApiProfile( "gl", @@ -455559,9 +458120,13 @@ public static void EndQuery( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndQueryARB([NativeTypeName("GLenum")] uint target) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEndQueryARB", "opengl"))( - target - ); + ( + (delegate* unmanaged)( + _slots[654] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[654] = nativeContext.LoadFunction("glEndQueryARB", "opengl") + ) + )(target); [SupportedApiProfile("gl", ["GL_ARB_occlusion_query"])] [NativeFunction("opengl", EntryPoint = "glEndQueryARB")] @@ -455583,9 +458148,13 @@ public static void EndQueryARB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndQueryEXT([NativeTypeName("GLenum")] uint target) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEndQueryEXT", "opengl"))( - target - ); + ( + (delegate* unmanaged)( + _slots[655] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[655] = nativeContext.LoadFunction("glEndQueryEXT", "opengl") + ) + )(target); [SupportedApiProfile( "gles2", @@ -455617,8 +458186,11 @@ void IGL.EndQueryIndexed( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEndQueryIndexed", "opengl") + (delegate* unmanaged)( + _slots[656] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[656] = nativeContext.LoadFunction("glEndQueryIndexed", "opengl") + ) )(target, index); [SupportedApiProfile( @@ -455700,9 +458272,13 @@ public static void EndQueryIndexed( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndTilingQCOM([NativeTypeName("GLbitfield")] uint preserveMask) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEndTilingQCOM", "opengl"))( - preserveMask - ); + ( + (delegate* unmanaged)( + _slots[657] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[657] = nativeContext.LoadFunction("glEndTilingQCOM", "opengl") + ) + )(preserveMask); [SupportedApiProfile("gles2", ["GL_QCOM_tiled_rendering"])] [SupportedApiProfile("gles1", ["GL_QCOM_tiled_rendering"])] @@ -455728,8 +458304,11 @@ public static void EndTilingQCOM( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndTransformFeedback() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEndTransformFeedback", "opengl") + (delegate* unmanaged)( + _slots[658] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[658] = nativeContext.LoadFunction("glEndTransformFeedback", "opengl") + ) )(); [SupportedApiProfile( @@ -455773,8 +458352,14 @@ void IGL.EndTransformFeedback() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndTransformFeedbackEXT() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEndTransformFeedbackEXT", "opengl") + (delegate* unmanaged)( + _slots[659] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[659] = nativeContext.LoadFunction( + "glEndTransformFeedbackEXT", + "opengl" + ) + ) )(); [SupportedApiProfile("gl", ["GL_EXT_transform_feedback"])] @@ -455785,8 +458370,11 @@ void IGL.EndTransformFeedbackEXT() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndTransformFeedbackNV() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEndTransformFeedbackNV", "opengl") + (delegate* unmanaged)( + _slots[660] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[660] = nativeContext.LoadFunction("glEndTransformFeedbackNV", "opengl") + ) )(); [SupportedApiProfile("gl", ["GL_NV_transform_feedback"])] @@ -455796,7 +458384,13 @@ void IGL.EndTransformFeedbackNV() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndVertexShaderEXT() => - ((delegate* unmanaged)nativeContext.LoadFunction("glEndVertexShaderEXT", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[661] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[661] = nativeContext.LoadFunction("glEndVertexShaderEXT", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] [NativeFunction("opengl", EntryPoint = "glEndVertexShaderEXT")] @@ -455806,8 +458400,11 @@ void IGL.EndVertexShaderEXT() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EndVideoCaptureNV([NativeTypeName("GLuint")] uint video_capture_slot) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEndVideoCaptureNV", "opengl") + (delegate* unmanaged)( + _slots[662] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[662] = nativeContext.LoadFunction("glEndVideoCaptureNV", "opengl") + ) )(video_capture_slot); [SupportedApiProfile("gl", ["GL_NV_video_capture"])] @@ -455818,9 +458415,13 @@ public static void EndVideoCaptureNV([NativeTypeName("GLuint")] uint video_captu [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalCoord1D([NativeTypeName("GLdouble")] double u) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEvalCoord1d", "opengl"))( - u - ); + ( + (delegate* unmanaged)( + _slots[663] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[663] = nativeContext.LoadFunction("glEvalCoord1d", "opengl") + ) + )(u); [SupportedApiProfile( "gl", @@ -455855,8 +458456,11 @@ public static void EvalCoord1D([NativeTypeName("GLdouble")] double u) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalCoord1Dv([NativeTypeName("const GLdouble *")] double* u) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEvalCoord1dv", "opengl") + (delegate* unmanaged)( + _slots[664] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[664] = nativeContext.LoadFunction("glEvalCoord1dv", "opengl") + ) )(u); [SupportedApiProfile( @@ -455966,9 +458570,13 @@ public static void EvalCoord1Dv([NativeTypeName("const GLdouble *")] double u) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalCoord1F([NativeTypeName("GLfloat")] float u) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEvalCoord1f", "opengl"))( - u - ); + ( + (delegate* unmanaged)( + _slots[665] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[665] = nativeContext.LoadFunction("glEvalCoord1f", "opengl") + ) + )(u); [SupportedApiProfile( "gl", @@ -456002,9 +458610,13 @@ public static void EvalCoord1F([NativeTypeName("GLfloat")] float u) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalCoord1Fv([NativeTypeName("const GLfloat *")] float* u) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEvalCoord1fv", "opengl"))( - u - ); + ( + (delegate* unmanaged)( + _slots[666] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[666] = nativeContext.LoadFunction("glEvalCoord1fv", "opengl") + ) + )(u); [SupportedApiProfile( "gl", @@ -456113,9 +458725,13 @@ public static void EvalCoord1Fv([NativeTypeName("const GLfloat *")] float u) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalCoord1XOES([NativeTypeName("GLfixed")] int u) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEvalCoord1xOES", "opengl"))( - u - ); + ( + (delegate* unmanaged)( + _slots[667] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[667] = nativeContext.LoadFunction("glEvalCoord1xOES", "opengl") + ) + )(u); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glEvalCoord1xOES")] @@ -456137,8 +458753,11 @@ public static void EvalCoord1XvO([NativeTypeName("const GLfixed *")] int coords) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalCoord1XOES([NativeTypeName("const GLfixed *")] int* coords) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEvalCoord1xvOES", "opengl") + (delegate* unmanaged)( + _slots[668] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[668] = nativeContext.LoadFunction("glEvalCoord1xvOES", "opengl") + ) )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -456169,8 +458788,11 @@ void IGL.EvalCoord2( [NativeTypeName("GLdouble")] double v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEvalCoord2d", "opengl") + (delegate* unmanaged)( + _slots[669] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[669] = nativeContext.LoadFunction("glEvalCoord2d", "opengl") + ) )(u, v); [SupportedApiProfile( @@ -456208,8 +458830,11 @@ public static void EvalCoord2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalCoord2([NativeTypeName("const GLdouble *")] double* u) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEvalCoord2dv", "opengl") + (delegate* unmanaged)( + _slots[670] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[670] = nativeContext.LoadFunction("glEvalCoord2dv", "opengl") + ) )(u); [SupportedApiProfile( @@ -456285,8 +458910,11 @@ public static void EvalCoord2([NativeTypeName("const GLdouble *")] Ref u [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalCoord2([NativeTypeName("GLfloat")] float u, [NativeTypeName("GLfloat")] float v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEvalCoord2f", "opengl") + (delegate* unmanaged)( + _slots[671] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[671] = nativeContext.LoadFunction("glEvalCoord2f", "opengl") + ) )(u, v); [SupportedApiProfile( @@ -456323,9 +458951,13 @@ public static void EvalCoord2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalCoord2([NativeTypeName("const GLfloat *")] float* u) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEvalCoord2fv", "opengl"))( - u - ); + ( + (delegate* unmanaged)( + _slots[672] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[672] = nativeContext.LoadFunction("glEvalCoord2fv", "opengl") + ) + )(u); [SupportedApiProfile( "gl", @@ -456400,8 +459032,11 @@ public static void EvalCoord2([NativeTypeName("const GLfloat *")] Ref u) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalCoord2XOES([NativeTypeName("GLfixed")] int u, [NativeTypeName("GLfixed")] int v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEvalCoord2xOES", "opengl") + (delegate* unmanaged)( + _slots[673] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[673] = nativeContext.LoadFunction("glEvalCoord2xOES", "opengl") + ) )(u, v); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -456415,8 +459050,11 @@ public static void EvalCoord2XOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalCoord2XOES([NativeTypeName("const GLfixed *")] int* coords) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEvalCoord2xvOES", "opengl") + (delegate* unmanaged)( + _slots[674] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[674] = nativeContext.LoadFunction("glEvalCoord2xvOES", "opengl") + ) )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -456447,8 +459085,11 @@ void IGL.EvalMapNV( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEvalMapsNV", "opengl") + (delegate* unmanaged)( + _slots[675] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[675] = nativeContext.LoadFunction("glEvalMapsNV", "opengl") + ) )(target, mode); [SupportedApiProfile("gl", ["GL_NV_evaluators"])] @@ -456481,8 +459122,11 @@ void IGL.EvalMesh1( [NativeTypeName("GLint")] int i2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEvalMesh1", "opengl") + (delegate* unmanaged)( + _slots[676] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[676] = nativeContext.LoadFunction("glEvalMesh1", "opengl") + ) )(mode, i1, i2); [SupportedApiProfile( @@ -456568,8 +459212,11 @@ void IGL.EvalMesh2( [NativeTypeName("GLint")] int j2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEvalMesh2", "opengl") + (delegate* unmanaged)( + _slots[677] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[677] = nativeContext.LoadFunction("glEvalMesh2", "opengl") + ) )(mode, i1, i2, j1, j2); [SupportedApiProfile( @@ -456654,7 +459301,13 @@ public static void EvalMesh2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalPoint1([NativeTypeName("GLint")] int i) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEvalPoint1", "opengl"))(i); + ( + (delegate* unmanaged)( + _slots[678] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[678] = nativeContext.LoadFunction("glEvalPoint1", "opengl") + ) + )(i); [SupportedApiProfile( "gl", @@ -456687,10 +459340,13 @@ void IGL.EvalPoint1([NativeTypeName("GLint")] int i) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvalPoint2([NativeTypeName("GLint")] int i, [NativeTypeName("GLint")] int j) => - ((delegate* unmanaged)nativeContext.LoadFunction("glEvalPoint2", "opengl"))( - i, - j - ); + ( + (delegate* unmanaged)( + _slots[679] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[679] = nativeContext.LoadFunction("glEvalPoint2", "opengl") + ) + )(i, j); [SupportedApiProfile( "gl", @@ -456727,8 +459383,11 @@ public static void EvalPoint2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.EvaluateDepthValuesARB() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glEvaluateDepthValuesARB", "opengl") + (delegate* unmanaged)( + _slots[680] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[680] = nativeContext.LoadFunction("glEvaluateDepthValuesARB", "opengl") + ) )(); [SupportedApiProfile("gl", ["GL_ARB_sample_locations"])] @@ -456744,8 +459403,11 @@ void IGL.ExecuteProgramNV( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExecuteProgramNV", "opengl") + (delegate* unmanaged)( + _slots[681] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[681] = nativeContext.LoadFunction("glExecuteProgramNV", "opengl") + ) )(target, id, @params); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -456783,8 +459445,14 @@ public static void ExecuteProgramNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ExtGetBufferPointerQCOM([NativeTypeName("GLenum")] uint target, void** @params) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtGetBufferPointervQCOM", "opengl") + (delegate* unmanaged)( + _slots[682] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[682] = nativeContext.LoadFunction( + "glExtGetBufferPointervQCOM", + "opengl" + ) + ) )(target, @params); [SupportedApiProfile("gles2", ["GL_QCOM_extended_get"])] @@ -456822,8 +459490,11 @@ void IGL.ExtGetBuffersQCOM( [NativeTypeName("GLint *")] int* numBuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtGetBuffersQCOM", "opengl") + (delegate* unmanaged)( + _slots[683] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[683] = nativeContext.LoadFunction("glExtGetBuffersQCOM", "opengl") + ) )(buffers, maxBuffers, numBuffers); [SupportedApiProfile("gles2", ["GL_QCOM_extended_get"])] @@ -456887,8 +459558,11 @@ void IGL.ExtGetFramebuffersQCOM( [NativeTypeName("GLint *")] int* numFramebuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtGetFramebuffersQCOM", "opengl") + (delegate* unmanaged)( + _slots[684] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[684] = nativeContext.LoadFunction("glExtGetFramebuffersQCOM", "opengl") + ) )(framebuffers, maxFramebuffers, numFramebuffers); [SupportedApiProfile("gles2", ["GL_QCOM_extended_get"])] @@ -456958,8 +459632,14 @@ void IGL.ExtGetProgramBinarySourceQCOM( [NativeTypeName("GLint *")] int* length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtGetProgramBinarySourceQCOM", "opengl") + (delegate* unmanaged)( + _slots[685] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[685] = nativeContext.LoadFunction( + "glExtGetProgramBinarySourceQCOM", + "opengl" + ) + ) )(program, shadertype, source, length); [SupportedApiProfile("gles2", ["GL_QCOM_extended_get2"])] @@ -457012,8 +459692,11 @@ void IGL.ExtGetProgramQCOM( [NativeTypeName("GLint *")] int* numPrograms ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtGetProgramsQCOM", "opengl") + (delegate* unmanaged)( + _slots[686] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[686] = nativeContext.LoadFunction("glExtGetProgramsQCOM", "opengl") + ) )(programs, maxPrograms, numPrograms); [SupportedApiProfile("gles2", ["GL_QCOM_extended_get2"])] @@ -457077,8 +459760,14 @@ void IGL.ExtGetRenderbuffersQCOM( [NativeTypeName("GLint *")] int* numRenderbuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtGetRenderbuffersQCOM", "opengl") + (delegate* unmanaged)( + _slots[687] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[687] = nativeContext.LoadFunction( + "glExtGetRenderbuffersQCOM", + "opengl" + ) + ) )(renderbuffers, maxRenderbuffers, numRenderbuffers); [SupportedApiProfile("gles2", ["GL_QCOM_extended_get"])] @@ -457147,8 +459836,11 @@ void IGL.ExtGetShadersQCOM( [NativeTypeName("GLint *")] int* numShaders ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtGetShadersQCOM", "opengl") + (delegate* unmanaged)( + _slots[688] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[688] = nativeContext.LoadFunction("glExtGetShadersQCOM", "opengl") + ) )(shaders, maxShaders, numShaders); [SupportedApiProfile("gles2", ["GL_QCOM_extended_get2"])] @@ -457214,8 +459906,14 @@ void IGL.ExtGetTexLevelParameterQCOM( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtGetTexLevelParameterivQCOM", "opengl") + (delegate* unmanaged)( + _slots[689] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[689] = nativeContext.LoadFunction( + "glExtGetTexLevelParameterivQCOM", + "opengl" + ) + ) )(texture, face, level, pname, @params); [SupportedApiProfile("gles2", ["GL_QCOM_extended_get"])] @@ -457285,8 +459983,11 @@ void IGL.ExtGetTexSubImageQCOM( uint, uint, void*, - void>) - nativeContext.LoadFunction("glExtGetTexSubImageQCOM", "opengl") + void>)( + _slots[690] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[690] = nativeContext.LoadFunction("glExtGetTexSubImageQCOM", "opengl") + ) )(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, texels); [SupportedApiProfile("gles2", ["GL_QCOM_extended_get"])] @@ -457392,8 +460093,11 @@ void IGL.ExtGetTexturesQCOM( [NativeTypeName("GLint *")] int* numTextures ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtGetTexturesQCOM", "opengl") + (delegate* unmanaged)( + _slots[691] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[691] = nativeContext.LoadFunction("glExtGetTexturesQCOM", "opengl") + ) )(textures, maxTextures, numTextures); [SupportedApiProfile("gles2", ["GL_QCOM_extended_get"])] @@ -457447,8 +460151,11 @@ public static MaybeBool ExtIsProgramBinaryQCOM([NativeTypeName("GLuint")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.ExtIsProgramBinaryQCOMRaw([NativeTypeName("GLuint")] uint program) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtIsProgramBinaryQCOM", "opengl") + (delegate* unmanaged)( + _slots[692] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[692] = nativeContext.LoadFunction("glExtIsProgramBinaryQCOM", "opengl") + ) )(program); [return: NativeTypeName("GLboolean")] @@ -457466,8 +460173,11 @@ void IGL.ExtractComponentEXT( [NativeTypeName("GLuint")] uint num ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtractComponentEXT", "opengl") + (delegate* unmanaged)( + _slots[693] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[693] = nativeContext.LoadFunction("glExtractComponentEXT", "opengl") + ) )(res, src, num); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -457487,8 +460197,11 @@ void IGL.ExtrapolateTex2DQCOM( [NativeTypeName("GLfloat")] float scaleFactor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtrapolateTex2DQCOM", "opengl") + (delegate* unmanaged)( + _slots[694] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[694] = nativeContext.LoadFunction("glExtrapolateTex2DQCOM", "opengl") + ) )(src1, src2, output, scaleFactor); [SupportedApiProfile("gles2", ["GL_QCOM_frame_extrapolation"])] @@ -457508,8 +460221,14 @@ void IGL.ExtTexObjectStateOverrideQCOM( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glExtTexObjectStateOverrideiQCOM", "opengl") + (delegate* unmanaged)( + _slots[695] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[695] = nativeContext.LoadFunction( + "glExtTexObjectStateOverrideiQCOM", + "opengl" + ) + ) )(target, pname, param2); [SupportedApiProfile("gles2", ["GL_QCOM_extended_get"])] @@ -457529,8 +460248,11 @@ void IGL.FeedbackBuffer( [NativeTypeName("GLfloat *")] float* buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFeedbackBuffer", "opengl") + (delegate* unmanaged)( + _slots[696] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[696] = nativeContext.LoadFunction("glFeedbackBuffer", "opengl") + ) )(size, type, buffer); [SupportedApiProfile( @@ -457675,8 +460397,11 @@ void IGL.FeedbackBufferxOES( [NativeTypeName("const GLfixed *")] int* buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFeedbackBufferxOES", "opengl") + (delegate* unmanaged)( + _slots[697] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[697] = nativeContext.LoadFunction("glFeedbackBufferxOES", "opengl") + ) )(n, type, buffer); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -457717,8 +460442,11 @@ public static void FeedbackBufferxOES( [NativeTypeName("GLbitfield")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFenceSync", "opengl") + (delegate* unmanaged)( + _slots[698] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[698] = nativeContext.LoadFunction("glFenceSync", "opengl") + ) )(condition, flags); [return: NativeTypeName("GLsync")] @@ -457814,8 +460542,11 @@ public static Ptr FenceSync( [NativeTypeName("GLbitfield")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFenceSyncAPPLE", "opengl") + (delegate* unmanaged)( + _slots[699] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[699] = nativeContext.LoadFunction("glFenceSyncAPPLE", "opengl") + ) )(condition, flags); [return: NativeTypeName("GLsync")] @@ -457853,8 +460584,11 @@ void IGL.FinalCombinerInputNV( [NativeTypeName("GLenum")] uint componentUsage ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFinalCombinerInputNV", "opengl") + (delegate* unmanaged)( + _slots[700] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[700] = nativeContext.LoadFunction("glFinalCombinerInputNV", "opengl") + ) )(variable, input, mapping, componentUsage); [SupportedApiProfile("gl", ["GL_NV_register_combiners"])] @@ -457894,7 +460628,13 @@ public static void FinalCombinerInputNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Finish() => - ((delegate* unmanaged)nativeContext.LoadFunction("glFinish", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[701] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[701] = nativeContext.LoadFunction("glFinish", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -457959,8 +460699,11 @@ void IGL.Finish() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int IGL.FinishAsyncSGIX([NativeTypeName("GLuint *")] uint* markerp) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFinishAsyncSGIX", "opengl") + (delegate* unmanaged)( + _slots[702] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[702] = nativeContext.LoadFunction("glFinishAsyncSGIX", "opengl") + ) )(markerp); [return: NativeTypeName("GLint")] @@ -457990,8 +460733,11 @@ public static int FinishAsyncSGIX([NativeTypeName("GLuint *")] Ref markerp [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FinishFenceApple([NativeTypeName("GLuint")] uint fence) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFinishFenceAPPLE", "opengl") + (delegate* unmanaged)( + _slots[703] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[703] = nativeContext.LoadFunction("glFinishFenceAPPLE", "opengl") + ) )(fence); [SupportedApiProfile("gl", ["GL_APPLE_fence"])] @@ -458002,9 +460748,13 @@ public static void FinishFenceApple([NativeTypeName("GLuint")] uint fence) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FinishFenceNV([NativeTypeName("GLuint")] uint fence) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFinishFenceNV", "opengl"))( - fence - ); + ( + (delegate* unmanaged)( + _slots[704] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[704] = nativeContext.LoadFunction("glFinishFenceNV", "opengl") + ) + )(fence); [SupportedApiProfile("gl", ["GL_NV_fence"])] [SupportedApiProfile("gles2", ["GL_NV_fence"])] @@ -458020,8 +460770,11 @@ void IGL.FinishObjectApple( [NativeTypeName("GLint")] int name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFinishObjectAPPLE", "opengl") + (delegate* unmanaged)( + _slots[705] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[705] = nativeContext.LoadFunction("glFinishObjectAPPLE", "opengl") + ) )(@object, name); [SupportedApiProfile("gl", ["GL_APPLE_fence"])] @@ -458034,7 +460787,13 @@ public static void FinishObjectApple( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FinishTextureSUNX() => - ((delegate* unmanaged)nativeContext.LoadFunction("glFinishTextureSUNX", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[706] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[706] = nativeContext.LoadFunction("glFinishTextureSUNX", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_SUNX_constant_data"])] [NativeFunction("opengl", EntryPoint = "glFinishTextureSUNX")] @@ -458043,7 +460802,13 @@ void IGL.FinishTextureSUNX() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Flush() => - ((delegate* unmanaged)nativeContext.LoadFunction("glFlush", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[707] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[707] = nativeContext.LoadFunction("glFlush", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -458112,8 +460877,11 @@ void IGL.FlushMappedBufferRange( [NativeTypeName("GLsizeiptr")] nuint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFlushMappedBufferRange", "opengl") + (delegate* unmanaged)( + _slots[708] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[708] = nativeContext.LoadFunction("glFlushMappedBufferRange", "opengl") + ) )(target, offset, length); [SupportedApiProfile( @@ -458219,8 +460987,14 @@ void IGL.FlushMappedBufferRangeApple( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFlushMappedBufferRangeAPPLE", "opengl") + (delegate* unmanaged)( + _slots[709] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[709] = nativeContext.LoadFunction( + "glFlushMappedBufferRangeAPPLE", + "opengl" + ) + ) )(target, offset, size); [SupportedApiProfile("gl", ["GL_APPLE_flush_buffer_range"])] @@ -458256,8 +461030,14 @@ void IGL.FlushMappedBufferRangeEXT( [NativeTypeName("GLsizeiptr")] nuint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFlushMappedBufferRangeEXT", "opengl") + (delegate* unmanaged)( + _slots[710] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[710] = nativeContext.LoadFunction( + "glFlushMappedBufferRangeEXT", + "opengl" + ) + ) )(target, offset, length); [SupportedApiProfile("gles2", ["GL_EXT_map_buffer_range"])] @@ -458295,8 +461075,14 @@ void IGL.FlushMappedNamedBufferRange( [NativeTypeName("GLsizeiptr")] nuint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFlushMappedNamedBufferRange", "opengl") + (delegate* unmanaged)( + _slots[711] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[711] = nativeContext.LoadFunction( + "glFlushMappedNamedBufferRange", + "opengl" + ) + ) )(buffer, offset, length); [SupportedApiProfile( @@ -458324,8 +461110,14 @@ void IGL.FlushMappedNamedBufferRangeEXT( [NativeTypeName("GLsizeiptr")] nuint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFlushMappedNamedBufferRangeEXT", "opengl") + (delegate* unmanaged)( + _slots[712] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[712] = nativeContext.LoadFunction( + "glFlushMappedNamedBufferRangeEXT", + "opengl" + ) + ) )(buffer, offset, length); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -458341,8 +461133,11 @@ public static void FlushMappedNamedBufferRangeEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FlushPixelDataRangeNV([NativeTypeName("GLenum")] uint target) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFlushPixelDataRangeNV", "opengl") + (delegate* unmanaged)( + _slots[713] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[713] = nativeContext.LoadFunction("glFlushPixelDataRangeNV", "opengl") + ) )(target); [SupportedApiProfile("gl", ["GL_NV_pixel_data_range"])] @@ -458366,7 +461161,13 @@ public static void FlushPixelDataRangeNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FlushRasterSGIX() => - ((delegate* unmanaged)nativeContext.LoadFunction("glFlushRasterSGIX", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[714] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[714] = nativeContext.LoadFunction("glFlushRasterSGIX", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_SGIX_flush_raster"])] [NativeFunction("opengl", EntryPoint = "glFlushRasterSGIX")] @@ -458376,8 +461177,11 @@ void IGL.FlushRasterSGIX() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FlushStaticDataIBM([NativeTypeName("GLenum")] uint target) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFlushStaticDataIBM", "opengl") + (delegate* unmanaged)( + _slots[715] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[715] = nativeContext.LoadFunction("glFlushStaticDataIBM", "opengl") + ) )(target); [SupportedApiProfile("gl", ["GL_IBM_static_data"])] @@ -458389,8 +461193,14 @@ public static void FlushStaticDataIBM([NativeTypeName("GLenum")] uint target) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FlushVertexArrayRangeApple([NativeTypeName("GLsizei")] uint length, void* pointer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFlushVertexArrayRangeAPPLE", "opengl") + (delegate* unmanaged)( + _slots[716] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[716] = nativeContext.LoadFunction( + "glFlushVertexArrayRangeAPPLE", + "opengl" + ) + ) )(length, pointer); [SupportedApiProfile("gl", ["GL_APPLE_vertex_array_range"])] @@ -458422,8 +461232,14 @@ Ref pointer [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FlushVertexArrayRangeNV() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFlushVertexArrayRangeNV", "opengl") + (delegate* unmanaged)( + _slots[717] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[717] = nativeContext.LoadFunction( + "glFlushVertexArrayRangeNV", + "opengl" + ) + ) )(); [SupportedApiProfile("gl", ["GL_NV_vertex_array_range"])] @@ -458433,9 +461249,13 @@ void IGL.FlushVertexArrayRangeNV() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FogCoordd([NativeTypeName("GLdouble")] double coord) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogCoordd", "opengl"))( - coord - ); + ( + (delegate* unmanaged)( + _slots[718] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[718] = nativeContext.LoadFunction("glFogCoordd", "opengl") + ) + )(coord); [SupportedApiProfile( "gl", @@ -458465,9 +461285,13 @@ public static void FogCoordd([NativeTypeName("GLdouble")] double coord) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FogCoorddEXT([NativeTypeName("GLdouble")] double coord) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogCoorddEXT", "opengl"))( - coord - ); + ( + (delegate* unmanaged)( + _slots[719] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[719] = nativeContext.LoadFunction("glFogCoorddEXT", "opengl") + ) + )(coord); [SupportedApiProfile("gl", ["GL_EXT_fog_coord"])] [NativeFunction("opengl", EntryPoint = "glFogCoorddEXT")] @@ -458477,9 +461301,13 @@ public static void FogCoorddEXT([NativeTypeName("GLdouble")] double coord) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FogCoorddv([NativeTypeName("const GLdouble *")] double* coord) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogCoorddv", "opengl"))( - coord - ); + ( + (delegate* unmanaged)( + _slots[720] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[720] = nativeContext.LoadFunction("glFogCoorddv", "opengl") + ) + )(coord); [SupportedApiProfile( "gl", @@ -458577,8 +461405,11 @@ public static void FogCoorddv([NativeTypeName("const GLdouble *")] double coord) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FogCoorddvEXT([NativeTypeName("const GLdouble *")] double* coord) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFogCoorddvEXT", "opengl") + (delegate* unmanaged)( + _slots[721] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[721] = nativeContext.LoadFunction("glFogCoorddvEXT", "opengl") + ) )(coord); [SupportedApiProfile("gl", ["GL_EXT_fog_coord"])] @@ -458616,9 +461447,13 @@ public static void FogCoorddvEXT([NativeTypeName("const GLdouble *")] double coo [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FogCoordf([NativeTypeName("GLfloat")] float coord) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogCoordf", "opengl"))( - coord - ); + ( + (delegate* unmanaged)( + _slots[722] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[722] = nativeContext.LoadFunction("glFogCoordf", "opengl") + ) + )(coord); [SupportedApiProfile( "gl", @@ -458648,9 +461483,13 @@ public static void FogCoordf([NativeTypeName("GLfloat")] float coord) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FogCoordfEXT([NativeTypeName("GLfloat")] float coord) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogCoordfEXT", "opengl"))( - coord - ); + ( + (delegate* unmanaged)( + _slots[723] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[723] = nativeContext.LoadFunction("glFogCoordfEXT", "opengl") + ) + )(coord); [SupportedApiProfile("gl", ["GL_EXT_fog_coord"])] [NativeFunction("opengl", EntryPoint = "glFogCoordfEXT")] @@ -458664,8 +461503,11 @@ void IGL.FogCoordFormatNV( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFogCoordFormatNV", "opengl") + (delegate* unmanaged)( + _slots[724] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[724] = nativeContext.LoadFunction("glFogCoordFormatNV", "opengl") + ) )(type, stride); [SupportedApiProfile("gl", ["GL_NV_vertex_buffer_unified_memory"])] @@ -458679,9 +461521,13 @@ public static void FogCoordFormatNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FogCoordfv([NativeTypeName("const GLfloat *")] float* coord) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogCoordfv", "opengl"))( - coord - ); + ( + (delegate* unmanaged)( + _slots[725] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[725] = nativeContext.LoadFunction("glFogCoordfv", "opengl") + ) + )(coord); [SupportedApiProfile( "gl", @@ -458779,8 +461625,11 @@ public static void FogCoordfv([NativeTypeName("const GLfloat *")] float coord) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FogCoordfvEXT([NativeTypeName("const GLfloat *")] float* coord) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFogCoordfvEXT", "opengl") + (delegate* unmanaged)( + _slots[726] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[726] = nativeContext.LoadFunction("glFogCoordfvEXT", "opengl") + ) )(coord); [SupportedApiProfile("gl", ["GL_EXT_fog_coord"])] @@ -458818,9 +461667,13 @@ public static void FogCoordfvEXT([NativeTypeName("const GLfloat *")] float coord [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FogCoordNV([NativeTypeName("GLhalfNV")] ushort fog) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogCoordhNV", "opengl"))( - fog - ); + ( + (delegate* unmanaged)( + _slots[727] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[727] = nativeContext.LoadFunction("glFogCoordhNV", "opengl") + ) + )(fog); [SupportedApiProfile("gl", ["GL_NV_half_float"])] [NativeFunction("opengl", EntryPoint = "glFogCoordhNV")] @@ -458831,8 +461684,11 @@ public static void FogCoordNV([NativeTypeName("GLhalfNV")] ushort fog) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FogCoordhvNV([NativeTypeName("const GLhalfNV *")] ushort* fog) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFogCoordhvNV", "opengl") + (delegate* unmanaged)( + _slots[728] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[728] = nativeContext.LoadFunction("glFogCoordhvNV", "opengl") + ) )(fog); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -458875,8 +461731,11 @@ void IGL.FogCoordPointer( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFogCoordPointer", "opengl") + (delegate* unmanaged)( + _slots[729] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[729] = nativeContext.LoadFunction("glFogCoordPointer", "opengl") + ) )(type, stride, pointer); [SupportedApiProfile( @@ -458958,8 +461817,11 @@ void IGL.FogCoordPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFogCoordPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[730] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[730] = nativeContext.LoadFunction("glFogCoordPointerEXT", "opengl") + ) )(type, stride, pointer); [SupportedApiProfile("gl", ["GL_EXT_fog_coord"])] @@ -459002,8 +461864,11 @@ void IGL.FogCoordPointerListIBM( [NativeTypeName("GLint")] int ptrstride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFogCoordPointerListIBM", "opengl") + (delegate* unmanaged)( + _slots[731] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[731] = nativeContext.LoadFunction("glFogCoordPointerListIBM", "opengl") + ) )(type, stride, pointer, ptrstride); [SupportedApiProfile("gl", ["GL_IBM_vertex_array_lists"])] @@ -459043,10 +461908,13 @@ public static void FogCoordPointerListIBM( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Fog([NativeTypeName("GLenum")] uint pname, [NativeTypeName("GLfloat")] float param1) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogf", "opengl"))( - pname, - param1 - ); + ( + (delegate* unmanaged)( + _slots[732] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[732] = nativeContext.LoadFunction("glFogf", "opengl") + ) + )(pname, param1); [SupportedApiProfile( "gl", @@ -459127,8 +461995,11 @@ void IGL.FogFuncSGIS( [NativeTypeName("const GLfloat *")] float* points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFogFuncSGIS", "opengl") + (delegate* unmanaged)( + _slots[733] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[733] = nativeContext.LoadFunction("glFogFuncSGIS", "opengl") + ) )(n, points); [SupportedApiProfile("gl", ["GL_SGIS_fog_function"])] @@ -459165,10 +462036,13 @@ void IGL.Fog( [NativeTypeName("GLenum")] uint pname, [NativeTypeName("const GLfloat *")] float* @params ) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogfv", "opengl"))( - pname, - @params - ); + ( + (delegate* unmanaged)( + _slots[734] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[734] = nativeContext.LoadFunction("glFogfv", "opengl") + ) + )(pname, @params); [SupportedApiProfile( "gl", @@ -459251,10 +462125,13 @@ public static void Fog( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Fog([NativeTypeName("GLenum")] uint pname, [NativeTypeName("GLint")] int param1) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogi", "opengl"))( - pname, - param1 - ); + ( + (delegate* unmanaged)( + _slots[735] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[735] = nativeContext.LoadFunction("glFogi", "opengl") + ) + )(pname, param1); [SupportedApiProfile( "gl", @@ -459332,10 +462209,13 @@ void IGL.Fog( [NativeTypeName("GLenum")] uint pname, [NativeTypeName("const GLint *")] int* @params ) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogiv", "opengl"))( - pname, - @params - ); + ( + (delegate* unmanaged)( + _slots[736] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[736] = nativeContext.LoadFunction("glFogiv", "opengl") + ) + )(pname, @params); [SupportedApiProfile( "gl", @@ -459416,10 +462296,13 @@ public static void Fog( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Fogx([NativeTypeName("GLenum")] uint pname, [NativeTypeName("GLfixed")] int param1) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogx", "opengl"))( - pname, - param1 - ); + ( + (delegate* unmanaged)( + _slots[737] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[737] = nativeContext.LoadFunction("glFogx", "opengl") + ) + )(pname, param1); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] [NativeFunction("opengl", EntryPoint = "glFogx")] @@ -459449,10 +462332,13 @@ void IGL.FogxOES( [NativeTypeName("GLenum")] uint pname, [NativeTypeName("GLfixed")] int param1 ) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogxOES", "opengl"))( - pname, - param1 - ); + ( + (delegate* unmanaged)( + _slots[738] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[738] = nativeContext.LoadFunction("glFogxOES", "opengl") + ) + )(pname, param1); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [SupportedApiProfile("gles1", ["GL_OES_fixed_point"])] @@ -459484,10 +462370,13 @@ void IGL.Fogx( [NativeTypeName("GLenum")] uint pname, [NativeTypeName("const GLfixed *")] int* param1 ) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogxv", "opengl"))( - pname, - param1 - ); + ( + (delegate* unmanaged)( + _slots[739] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[739] = nativeContext.LoadFunction("glFogxv", "opengl") + ) + )(pname, param1); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] [NativeFunction("opengl", EntryPoint = "glFogxv")] @@ -459523,10 +462412,13 @@ void IGL.FogxOES( [NativeTypeName("GLenum")] uint pname, [NativeTypeName("const GLfixed *")] int* param1 ) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFogxvOES", "opengl"))( - pname, - param1 - ); + ( + (delegate* unmanaged)( + _slots[740] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[740] = nativeContext.LoadFunction("glFogxvOES", "opengl") + ) + )(pname, param1); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [SupportedApiProfile("gles1", ["GL_OES_fixed_point"])] @@ -459565,8 +462457,14 @@ void IGL.FragmentColorMaterialSGIX( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentColorMaterialSGIX", "opengl") + (delegate* unmanaged)( + _slots[741] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[741] = nativeContext.LoadFunction( + "glFragmentColorMaterialSGIX", + "opengl" + ) + ) )(face, mode); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -459595,8 +462493,14 @@ public static void FragmentColorMaterialSGIX( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FragmentCoverageColorNV([NativeTypeName("GLuint")] uint color) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentCoverageColorNV", "opengl") + (delegate* unmanaged)( + _slots[742] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[742] = nativeContext.LoadFunction( + "glFragmentCoverageColorNV", + "opengl" + ) + ) )(color); [SupportedApiProfile("gl", ["GL_NV_fragment_coverage_to_color"])] @@ -459614,8 +462518,11 @@ void IGL.FragmentLightSGIX( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentLightfSGIX", "opengl") + (delegate* unmanaged)( + _slots[743] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[743] = nativeContext.LoadFunction("glFragmentLightfSGIX", "opengl") + ) )(light, pname, param2); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -459651,8 +462558,11 @@ void IGL.FragmentLightSGIX( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentLightfvSGIX", "opengl") + (delegate* unmanaged)( + _slots[744] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[744] = nativeContext.LoadFunction("glFragmentLightfvSGIX", "opengl") + ) )(light, pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -459694,8 +462604,11 @@ void IGL.FragmentLightSGIX( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentLightiSGIX", "opengl") + (delegate* unmanaged)( + _slots[745] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[745] = nativeContext.LoadFunction("glFragmentLightiSGIX", "opengl") + ) )(light, pname, param2); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -459731,8 +462644,11 @@ void IGL.FragmentLightSGIX( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentLightivSGIX", "opengl") + (delegate* unmanaged)( + _slots[746] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[746] = nativeContext.LoadFunction("glFragmentLightivSGIX", "opengl") + ) )(light, pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -459773,8 +462689,14 @@ void IGL.FragmentLightModelSGIX( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentLightModelfSGIX", "opengl") + (delegate* unmanaged)( + _slots[747] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[747] = nativeContext.LoadFunction( + "glFragmentLightModelfSGIX", + "opengl" + ) + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -459806,8 +462728,14 @@ void IGL.FragmentLightModelSGIX( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentLightModelfvSGIX", "opengl") + (delegate* unmanaged)( + _slots[748] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[748] = nativeContext.LoadFunction( + "glFragmentLightModelfvSGIX", + "opengl" + ) + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -459845,8 +462773,14 @@ void IGL.FragmentLightModelSGIX( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentLightModeliSGIX", "opengl") + (delegate* unmanaged)( + _slots[749] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[749] = nativeContext.LoadFunction( + "glFragmentLightModeliSGIX", + "opengl" + ) + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -459878,8 +462812,14 @@ void IGL.FragmentLightModelSGIX( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentLightModelivSGIX", "opengl") + (delegate* unmanaged)( + _slots[750] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[750] = nativeContext.LoadFunction( + "glFragmentLightModelivSGIX", + "opengl" + ) + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -459918,8 +462858,11 @@ void IGL.FragmentMaterialSGIX( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentMaterialfSGIX", "opengl") + (delegate* unmanaged)( + _slots[751] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[751] = nativeContext.LoadFunction("glFragmentMaterialfSGIX", "opengl") + ) )(face, pname, param2); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -459955,8 +462898,11 @@ void IGL.FragmentMaterialSGIX( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentMaterialfvSGIX", "opengl") + (delegate* unmanaged)( + _slots[752] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[752] = nativeContext.LoadFunction("glFragmentMaterialfvSGIX", "opengl") + ) )(face, pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -459998,8 +462944,11 @@ void IGL.FragmentMaterialSGIX( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentMaterialiSGIX", "opengl") + (delegate* unmanaged)( + _slots[753] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[753] = nativeContext.LoadFunction("glFragmentMaterialiSGIX", "opengl") + ) )(face, pname, param2); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -460035,8 +462984,11 @@ void IGL.FragmentMaterialSGIX( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFragmentMaterialivSGIX", "opengl") + (delegate* unmanaged)( + _slots[754] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[754] = nativeContext.LoadFunction("glFragmentMaterialivSGIX", "opengl") + ) )(face, pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -460077,8 +463029,14 @@ void IGL.FramebufferDrawBufferEXT( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferDrawBufferEXT", "opengl") + (delegate* unmanaged)( + _slots[755] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[755] = nativeContext.LoadFunction( + "glFramebufferDrawBufferEXT", + "opengl" + ) + ) )(framebuffer, mode); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -460113,8 +463071,14 @@ void IGL.FramebufferDrawBuffersEXT( [NativeTypeName("const GLenum *")] uint* bufs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferDrawBuffersEXT", "opengl") + (delegate* unmanaged)( + _slots[756] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[756] = nativeContext.LoadFunction( + "glFramebufferDrawBuffersEXT", + "opengl" + ) + ) )(framebuffer, n, bufs); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -460250,8 +463214,14 @@ public static void FramebufferDrawBuffersEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FramebufferFetchBarrierEXT() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferFetchBarrierEXT", "opengl") + (delegate* unmanaged)( + _slots[757] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[757] = nativeContext.LoadFunction( + "glFramebufferFetchBarrierEXT", + "opengl" + ) + ) )(); [SupportedApiProfile("gl", ["GL_EXT_shader_framebuffer_fetch_non_coherent"])] @@ -460264,8 +463234,14 @@ void IGL.FramebufferFetchBarrierEXT() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FramebufferFetchBarrierQCOM() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferFetchBarrierQCOM", "opengl") + (delegate* unmanaged)( + _slots[758] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[758] = nativeContext.LoadFunction( + "glFramebufferFetchBarrierQCOM", + "opengl" + ) + ) )(); [SupportedApiProfile("gles2", ["GL_QCOM_shader_framebuffer_fetch_noncoherent"])] @@ -460282,8 +463258,14 @@ void IGL.FramebufferFoveationConfigQCOM( [NativeTypeName("GLuint *")] uint* providedFeatures ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferFoveationConfigQCOM", "opengl") + (delegate* unmanaged)( + _slots[759] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[759] = nativeContext.LoadFunction( + "glFramebufferFoveationConfigQCOM", + "opengl" + ) + ) )(framebuffer, numLayers, focalPointsPerLayer, requestedFeatures, providedFeatures); [SupportedApiProfile("gles2", ["GL_QCOM_framebuffer_foveated"])] @@ -460392,8 +463374,14 @@ void IGL.FramebufferFoveationParametersQCOM( [NativeTypeName("GLfloat")] float foveaArea ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferFoveationParametersQCOM", "opengl") + (delegate* unmanaged)( + _slots[760] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[760] = nativeContext.LoadFunction( + "glFramebufferFoveationParametersQCOM", + "opengl" + ) + ) )(framebuffer, layer, focalPoint, focalX, focalY, gainX, gainY, foveaArea); [SupportedApiProfile("gles2", ["GL_QCOM_framebuffer_foveated"])] @@ -460427,8 +463415,11 @@ void IGL.FramebufferParameter( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferParameteri", "opengl") + (delegate* unmanaged)( + _slots[761] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[761] = nativeContext.LoadFunction("glFramebufferParameteri", "opengl") + ) )(target, pname, param2); [SupportedApiProfile( @@ -460506,8 +463497,14 @@ void IGL.FramebufferParameterMESA( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferParameteriMESA", "opengl") + (delegate* unmanaged)( + _slots[762] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[762] = nativeContext.LoadFunction( + "glFramebufferParameteriMESA", + "opengl" + ) + ) )(target, pname, param2); [SupportedApiProfile("gl", ["GL_MESA_framebuffer_flip_y"])] @@ -460546,8 +463543,14 @@ void IGL.FramebufferPixelLocalStorageSizeEXT( [NativeTypeName("GLsizei")] uint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferPixelLocalStorageSizeEXT", "opengl") + (delegate* unmanaged)( + _slots[763] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[763] = nativeContext.LoadFunction( + "glFramebufferPixelLocalStorageSizeEXT", + "opengl" + ) + ) )(target, size); [SupportedApiProfile("gles2", ["GL_EXT_shader_pixel_local_storage2"])] @@ -460564,8 +463567,14 @@ void IGL.FramebufferReadBufferEXT( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferReadBufferEXT", "opengl") + (delegate* unmanaged)( + _slots[764] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[764] = nativeContext.LoadFunction( + "glFramebufferReadBufferEXT", + "opengl" + ) + ) )(framebuffer, mode); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -460601,8 +463610,14 @@ void IGL.FramebufferRenderbuffer( [NativeTypeName("GLuint")] uint renderbuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferRenderbuffer", "opengl") + (delegate* unmanaged)( + _slots[765] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[765] = nativeContext.LoadFunction( + "glFramebufferRenderbuffer", + "opengl" + ) + ) )(target, attachment, renderbuffertarget, renderbuffer); [SupportedApiProfile( @@ -460728,8 +463743,14 @@ void IGL.FramebufferRenderbufferEXT( [NativeTypeName("GLuint")] uint renderbuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferRenderbufferEXT", "opengl") + (delegate* unmanaged)( + _slots[766] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[766] = nativeContext.LoadFunction( + "glFramebufferRenderbufferEXT", + "opengl" + ) + ) )(target, attachment, renderbuffertarget, renderbuffer); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -460777,8 +463798,14 @@ void IGL.FramebufferRenderbufferOES( [NativeTypeName("GLuint")] uint renderbuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferRenderbufferOES", "opengl") + (delegate* unmanaged)( + _slots[767] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[767] = nativeContext.LoadFunction( + "glFramebufferRenderbufferOES", + "opengl" + ) + ) )(target, attachment, renderbuffertarget, renderbuffer); [SupportedApiProfile("gles1", ["GL_OES_framebuffer_object"])] @@ -460826,8 +463853,14 @@ void IGL.FramebufferSampleLocationsARB( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferSampleLocationsfvARB", "opengl") + (delegate* unmanaged)( + _slots[768] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[768] = nativeContext.LoadFunction( + "glFramebufferSampleLocationsfvARB", + "opengl" + ) + ) )(target, start, count, v); [SupportedApiProfile("gl", ["GL_ARB_sample_locations"])] @@ -460875,8 +463908,14 @@ void IGL.FramebufferSampleLocationsNV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferSampleLocationsfvNV", "opengl") + (delegate* unmanaged)( + _slots[769] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[769] = nativeContext.LoadFunction( + "glFramebufferSampleLocationsfvNV", + "opengl" + ) + ) )(target, start, count, v); [SupportedApiProfile("gl", ["GL_NV_sample_locations"])] @@ -460926,8 +463965,14 @@ void IGL.FramebufferSamplePositionsAMD( [NativeTypeName("const GLfloat *")] float* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferSamplePositionsfvAMD", "opengl") + (delegate* unmanaged)( + _slots[770] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[770] = nativeContext.LoadFunction( + "glFramebufferSamplePositionsfvAMD", + "opengl" + ) + ) )(target, numsamples, pixelindex, values); [SupportedApiProfile("gl", ["GL_AMD_framebuffer_sample_positions"])] @@ -460981,8 +464026,14 @@ void IGL.FramebufferShadingRateEXT( [NativeTypeName("GLsizei")] uint texelHeight ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferShadingRateEXT", "opengl") + (delegate* unmanaged)( + _slots[771] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[771] = nativeContext.LoadFunction( + "glFramebufferShadingRateEXT", + "opengl" + ) + ) )(target, attachment, texture, baseLayer, numLayers, texelWidth, texelHeight); [SupportedApiProfile("gles2", ["GL_EXT_fragment_shading_rate"])] @@ -461058,8 +464109,11 @@ void IGL.FramebufferTexture( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTexture", "opengl") + (delegate* unmanaged)( + _slots[772] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[772] = nativeContext.LoadFunction("glFramebufferTexture", "opengl") + ) )(target, attachment, texture, level); [SupportedApiProfile( @@ -461158,8 +464212,11 @@ void IGL.FramebufferTexture1D( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTexture1D", "opengl") + (delegate* unmanaged)( + _slots[773] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[773] = nativeContext.LoadFunction("glFramebufferTexture1D", "opengl") + ) )(target, attachment, textarget, texture, level); [SupportedApiProfile( @@ -461280,8 +464337,14 @@ void IGL.FramebufferTexture1DEXT( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTexture1DEXT", "opengl") + (delegate* unmanaged)( + _slots[774] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[774] = nativeContext.LoadFunction( + "glFramebufferTexture1DEXT", + "opengl" + ) + ) )(target, attachment, textarget, texture, level); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -461332,8 +464395,11 @@ void IGL.FramebufferTexture2D( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTexture2D", "opengl") + (delegate* unmanaged)( + _slots[775] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[775] = nativeContext.LoadFunction("glFramebufferTexture2D", "opengl") + ) )(target, attachment, textarget, texture, level); [SupportedApiProfile( @@ -461466,8 +464532,14 @@ void IGL.FramebufferTexture2DDownsampleIMG( [NativeTypeName("GLint")] int yscale ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTexture2DDownsampleIMG", "opengl") + (delegate* unmanaged)( + _slots[776] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[776] = nativeContext.LoadFunction( + "glFramebufferTexture2DDownsampleIMG", + "opengl" + ) + ) )(target, attachment, textarget, texture, level, xscale, yscale); [SupportedApiProfile("gles2", ["GL_IMG_framebuffer_downsample"])] @@ -461544,8 +464616,14 @@ void IGL.FramebufferTexture2DEXT( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTexture2DEXT", "opengl") + (delegate* unmanaged)( + _slots[777] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[777] = nativeContext.LoadFunction( + "glFramebufferTexture2DEXT", + "opengl" + ) + ) )(target, attachment, textarget, texture, level); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -461597,8 +464675,14 @@ void IGL.FramebufferTexture2DMultisampleEXT( [NativeTypeName("GLsizei")] uint samples ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTexture2DMultisampleEXT", "opengl") + (delegate* unmanaged)( + _slots[778] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[778] = nativeContext.LoadFunction( + "glFramebufferTexture2DMultisampleEXT", + "opengl" + ) + ) )(target, attachment, textarget, texture, level, samples); [SupportedApiProfile("gles2", ["GL_EXT_multisampled_render_to_texture"])] @@ -461672,8 +464756,14 @@ void IGL.FramebufferTexture2DMultisampleIMG( [NativeTypeName("GLsizei")] uint samples ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTexture2DMultisampleIMG", "opengl") + (delegate* unmanaged)( + _slots[779] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[779] = nativeContext.LoadFunction( + "glFramebufferTexture2DMultisampleIMG", + "opengl" + ) + ) )(target, attachment, textarget, texture, level, samples); [SupportedApiProfile("gles2", ["GL_IMG_multisampled_render_to_texture"])] @@ -461746,8 +464836,14 @@ void IGL.FramebufferTexture2DOES( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTexture2DOES", "opengl") + (delegate* unmanaged)( + _slots[780] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[780] = nativeContext.LoadFunction( + "glFramebufferTexture2DOES", + "opengl" + ) + ) )(target, attachment, textarget, texture, level); [SupportedApiProfile("gles1", ["GL_OES_framebuffer_object"])] @@ -461799,8 +464895,11 @@ void IGL.FramebufferTexture3D( [NativeTypeName("GLint")] int zoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTexture3D", "opengl") + (delegate* unmanaged)( + _slots[781] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[781] = nativeContext.LoadFunction("glFramebufferTexture3D", "opengl") + ) )(target, attachment, textarget, texture, level, zoffset); [SupportedApiProfile( @@ -461926,8 +465025,14 @@ void IGL.FramebufferTexture3DEXT( [NativeTypeName("GLint")] int zoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTexture3DEXT", "opengl") + (delegate* unmanaged)( + _slots[782] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[782] = nativeContext.LoadFunction( + "glFramebufferTexture3DEXT", + "opengl" + ) + ) )(target, attachment, textarget, texture, level, zoffset); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -461983,8 +465088,14 @@ void IGL.FramebufferTexture3DOES( [NativeTypeName("GLint")] int zoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTexture3DOES", "opengl") + (delegate* unmanaged)( + _slots[783] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[783] = nativeContext.LoadFunction( + "glFramebufferTexture3DOES", + "opengl" + ) + ) )(target, attachment, textarget, texture, level, zoffset); [SupportedApiProfile("gles2", ["GL_OES_texture_3D"])] @@ -462038,8 +465149,11 @@ void IGL.FramebufferTextureARB( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTextureARB", "opengl") + (delegate* unmanaged)( + _slots[784] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[784] = nativeContext.LoadFunction("glFramebufferTextureARB", "opengl") + ) )(target, attachment, texture, level); [SupportedApiProfile("gl", ["GL_ARB_geometry_shader4"])] @@ -462081,8 +465195,11 @@ void IGL.FramebufferTextureEXT( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTextureEXT", "opengl") + (delegate* unmanaged)( + _slots[785] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[785] = nativeContext.LoadFunction("glFramebufferTextureEXT", "opengl") + ) )(target, attachment, texture, level); [SupportedApiProfile("gl", ["GL_NV_geometry_program4"])] @@ -462125,8 +465242,14 @@ void IGL.FramebufferTextureFaceARB( [NativeTypeName("GLenum")] uint face ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTextureFaceARB", "opengl") + (delegate* unmanaged)( + _slots[786] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[786] = nativeContext.LoadFunction( + "glFramebufferTextureFaceARB", + "opengl" + ) + ) )(target, attachment, texture, level, face); [SupportedApiProfile("gl", ["GL_ARB_geometry_shader4"])] @@ -462179,8 +465302,14 @@ void IGL.FramebufferTextureFaceEXT( [NativeTypeName("GLenum")] uint face ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTextureFaceEXT", "opengl") + (delegate* unmanaged)( + _slots[787] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[787] = nativeContext.LoadFunction( + "glFramebufferTextureFaceEXT", + "opengl" + ) + ) )(target, attachment, texture, level, face); [SupportedApiProfile("gl", ["GL_NV_geometry_program4"])] @@ -462231,8 +465360,14 @@ void IGL.FramebufferTextureLayer( [NativeTypeName("GLint")] int layer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTextureLayer", "opengl") + (delegate* unmanaged)( + _slots[788] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[788] = nativeContext.LoadFunction( + "glFramebufferTextureLayer", + "opengl" + ) + ) )(target, attachment, texture, level, layer); [SupportedApiProfile( @@ -462346,8 +465481,14 @@ void IGL.FramebufferTextureLayerARB( [NativeTypeName("GLint")] int layer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTextureLayerARB", "opengl") + (delegate* unmanaged)( + _slots[789] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[789] = nativeContext.LoadFunction( + "glFramebufferTextureLayerARB", + "opengl" + ) + ) )(target, attachment, texture, level, layer); [SupportedApiProfile("gl", ["GL_ARB_geometry_shader4"])] @@ -462402,8 +465543,14 @@ void IGL.FramebufferTextureLayerDownsampleIMG( [NativeTypeName("GLint")] int yscale ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTextureLayerDownsampleIMG", "opengl") + (delegate* unmanaged)( + _slots[790] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[790] = nativeContext.LoadFunction( + "glFramebufferTextureLayerDownsampleIMG", + "opengl" + ) + ) )(target, attachment, texture, level, layer, xscale, yscale); [SupportedApiProfile("gles2", ["GL_IMG_framebuffer_downsample"])] @@ -462480,8 +465627,14 @@ void IGL.FramebufferTextureLayerEXT( [NativeTypeName("GLint")] int layer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTextureLayerEXT", "opengl") + (delegate* unmanaged)( + _slots[791] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[791] = nativeContext.LoadFunction( + "glFramebufferTextureLayerEXT", + "opengl" + ) + ) )(target, attachment, texture, level, layer); [SupportedApiProfile("gl", ["GL_EXT_texture_array", "GL_NV_geometry_program4"])] @@ -462534,8 +465687,14 @@ void IGL.FramebufferTextureMultisampleMultiviewOVR( [NativeTypeName("GLsizei")] uint numViews ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTextureMultisampleMultiviewOVR", "opengl") + (delegate* unmanaged)( + _slots[792] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[792] = nativeContext.LoadFunction( + "glFramebufferTextureMultisampleMultiviewOVR", + "opengl" + ) + ) )(target, attachment, texture, level, samples, baseViewIndex, numViews); [SupportedApiProfile("gles2", ["GL_OVR_multiview_multisampled_render_to_texture"])] @@ -462613,8 +465772,14 @@ void IGL.FramebufferTextureMultiviewOVR( [NativeTypeName("GLsizei")] uint numViews ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTextureMultiviewOVR", "opengl") + (delegate* unmanaged)( + _slots[793] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[793] = nativeContext.LoadFunction( + "glFramebufferTextureMultiviewOVR", + "opengl" + ) + ) )(target, attachment, texture, level, baseViewIndex, numViews); [SupportedApiProfile("gl", ["GL_OVR_multiview"])] @@ -462688,8 +465853,11 @@ void IGL.FramebufferTextureOES( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFramebufferTextureOES", "opengl") + (delegate* unmanaged)( + _slots[794] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[794] = nativeContext.LoadFunction("glFramebufferTextureOES", "opengl") + ) )(target, attachment, texture, level); [SupportedApiProfile("gles2", ["GL_OES_geometry_shader"])] @@ -462724,8 +465892,11 @@ public static void FramebufferTextureOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FrameTerminatorGremedy() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFrameTerminatorGREMEDY", "opengl") + (delegate* unmanaged)( + _slots[795] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[795] = nativeContext.LoadFunction("glFrameTerminatorGREMEDY", "opengl") + ) )(); [SupportedApiProfile("gl", ["GL_GREMEDY_frame_terminator"])] @@ -462735,9 +465906,13 @@ void IGL.FrameTerminatorGremedy() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FrameZoomSGIX([NativeTypeName("GLint")] int factor) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFrameZoomSGIX", "opengl"))( - factor - ); + ( + (delegate* unmanaged)( + _slots[796] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[796] = nativeContext.LoadFunction("glFrameZoomSGIX", "opengl") + ) + )(factor); [SupportedApiProfile("gl", ["GL_SGIX_framezoom"])] [NativeFunction("opengl", EntryPoint = "glFrameZoomSGIX")] @@ -462748,8 +465923,11 @@ public static void FrameZoomSGIX([NativeTypeName("GLint")] int factor) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FreeObjectBufferATI([NativeTypeName("GLuint")] uint buffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFreeObjectBufferATI", "opengl") + (delegate* unmanaged)( + _slots[797] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[797] = nativeContext.LoadFunction("glFreeObjectBufferATI", "opengl") + ) )(buffer); [SupportedApiProfile("gl", ["GL_ATI_vertex_array_object"])] @@ -462760,9 +465938,13 @@ public static void FreeObjectBufferATI([NativeTypeName("GLuint")] uint buffer) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.FrontFace([NativeTypeName("GLenum")] uint mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glFrontFace", "opengl"))( - mode - ); + ( + (delegate* unmanaged)( + _slots[798] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[798] = nativeContext.LoadFunction("glFrontFace", "opengl") + ) + )(mode); [SupportedApiProfile( "gl", @@ -462903,8 +466085,11 @@ void IGL.Frustum( [NativeTypeName("GLdouble")] double zFar ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFrustum", "opengl") + (delegate* unmanaged)( + _slots[799] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[799] = nativeContext.LoadFunction("glFrustum", "opengl") + ) )(left, right, bottom, top, zNear, zFar); [SupportedApiProfile( @@ -462953,8 +466138,11 @@ void IGL.Frustum( [NativeTypeName("GLfloat")] float f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFrustumf", "opengl") + (delegate* unmanaged)( + _slots[800] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[800] = nativeContext.LoadFunction("glFrustumf", "opengl") + ) )(l, r, b, t, n, f); [SupportedApiProfile("gles1", MaxVersion = "2.0")] @@ -462979,8 +466167,11 @@ void IGL.FrustumOES( [NativeTypeName("GLfloat")] float f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFrustumfOES", "opengl") + (delegate* unmanaged)( + _slots[801] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[801] = nativeContext.LoadFunction("glFrustumfOES", "opengl") + ) )(l, r, b, t, n, f); [SupportedApiProfile("gl", ["GL_OES_single_precision"])] @@ -463006,8 +466197,11 @@ void IGL.Frustumx( [NativeTypeName("GLfixed")] int f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFrustumx", "opengl") + (delegate* unmanaged)( + _slots[802] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[802] = nativeContext.LoadFunction("glFrustumx", "opengl") + ) )(l, r, b, t, n, f); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -463032,8 +466226,11 @@ void IGL.FrustumxOES( [NativeTypeName("GLfixed")] int f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glFrustumxOES", "opengl") + (delegate* unmanaged)( + _slots[803] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[803] = nativeContext.LoadFunction("glFrustumxOES", "opengl") + ) )(l, r, b, t, n, f); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -463052,8 +466249,11 @@ public static void FrustumxOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.GenAsyncMarkersSGIX([NativeTypeName("GLsizei")] uint range) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenAsyncMarkersSGIX", "opengl") + (delegate* unmanaged)( + _slots[804] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[804] = nativeContext.LoadFunction("glGenAsyncMarkersSGIX", "opengl") + ) )(range); [return: NativeTypeName("GLuint")] @@ -463128,8 +466328,11 @@ void IGL.GenBuffers( [NativeTypeName("GLuint *")] uint* buffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenBuffers", "opengl") + (delegate* unmanaged)( + _slots[805] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[805] = nativeContext.LoadFunction("glGenBuffers", "opengl") + ) )(n, buffers); [SupportedApiProfile( @@ -463257,8 +466460,11 @@ void IGL.GenBuffersARB( [NativeTypeName("GLuint *")] uint* buffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenBuffersARB", "opengl") + (delegate* unmanaged)( + _slots[806] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[806] = nativeContext.LoadFunction("glGenBuffersARB", "opengl") + ) )(n, buffers); [SupportedApiProfile("gl", ["GL_ARB_vertex_buffer_object"])] @@ -463306,9 +466512,13 @@ uint IGL.GenBuffersARB() [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GenerateMipmap([NativeTypeName("GLenum")] uint target) => - ((delegate* unmanaged)nativeContext.LoadFunction("glGenerateMipmap", "opengl"))( - target - ); + ( + (delegate* unmanaged)( + _slots[807] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[807] = nativeContext.LoadFunction("glGenerateMipmap", "opengl") + ) + )(target); [SupportedApiProfile( "gl", @@ -463412,8 +466622,11 @@ public static void GenerateMipmap( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GenerateMipmapEXT([NativeTypeName("GLenum")] uint target) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenerateMipmapEXT", "opengl") + (delegate* unmanaged)( + _slots[808] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[808] = nativeContext.LoadFunction("glGenerateMipmapEXT", "opengl") + ) )(target); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -463438,8 +466651,11 @@ public static void GenerateMipmapEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GenerateMipmapOES([NativeTypeName("GLenum")] uint target) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenerateMipmapOES", "opengl") + (delegate* unmanaged)( + _slots[809] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[809] = nativeContext.LoadFunction("glGenerateMipmapOES", "opengl") + ) )(target); [SupportedApiProfile("gles1", ["GL_OES_framebuffer_object"])] @@ -463467,8 +466683,14 @@ void IGL.GenerateMultiTexMipmapEXT( [NativeTypeName("GLenum")] uint target ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenerateMultiTexMipmapEXT", "opengl") + (delegate* unmanaged)( + _slots[810] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[810] = nativeContext.LoadFunction( + "glGenerateMultiTexMipmapEXT", + "opengl" + ) + ) )(texunit, target); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -463499,8 +466721,11 @@ public static void GenerateMultiTexMipmapEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GenerateTextureMipmap([NativeTypeName("GLuint")] uint texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenerateTextureMipmap", "opengl") + (delegate* unmanaged)( + _slots[811] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[811] = nativeContext.LoadFunction("glGenerateTextureMipmap", "opengl") + ) )(texture); [SupportedApiProfile( @@ -463524,8 +466749,14 @@ void IGL.GenerateTextureMipmapEXT( [NativeTypeName("GLenum")] uint target ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenerateTextureMipmapEXT", "opengl") + (delegate* unmanaged)( + _slots[812] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[812] = nativeContext.LoadFunction( + "glGenerateTextureMipmapEXT", + "opengl" + ) + ) )(texture, target); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -463559,8 +466790,11 @@ void IGL.GenFencesApple( [NativeTypeName("GLuint *")] uint* fences ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenFencesAPPLE", "opengl") + (delegate* unmanaged)( + _slots[813] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[813] = nativeContext.LoadFunction("glGenFencesAPPLE", "opengl") + ) )(n, fences); [SupportedApiProfile("gl", ["GL_APPLE_fence"])] @@ -463612,8 +466846,11 @@ void IGL.GenFencesNV( [NativeTypeName("GLuint *")] uint* fences ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenFencesNV", "opengl") + (delegate* unmanaged)( + _slots[814] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[814] = nativeContext.LoadFunction("glGenFencesNV", "opengl") + ) )(n, fences); [SupportedApiProfile("gl", ["GL_NV_fence"])] @@ -463668,8 +466905,11 @@ uint IGL.GenFencesNV() [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.GenFragmentShadersATI([NativeTypeName("GLuint")] uint range) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenFragmentShadersATI", "opengl") + (delegate* unmanaged)( + _slots[815] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[815] = nativeContext.LoadFunction("glGenFragmentShadersATI", "opengl") + ) )(range); [return: NativeTypeName("GLuint")] @@ -463739,8 +466979,11 @@ void IGL.GenFramebuffers( [NativeTypeName("GLuint *")] uint* framebuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenFramebuffers", "opengl") + (delegate* unmanaged)( + _slots[816] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[816] = nativeContext.LoadFunction("glGenFramebuffers", "opengl") + ) )(n, framebuffers); [SupportedApiProfile( @@ -463858,8 +467101,11 @@ void IGL.GenFramebuffersEXT( [NativeTypeName("GLuint *")] uint* framebuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenFramebuffersEXT", "opengl") + (delegate* unmanaged)( + _slots[817] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[817] = nativeContext.LoadFunction("glGenFramebuffersEXT", "opengl") + ) )(n, framebuffers); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -463925,8 +467171,11 @@ void IGL.GenFramebuffersOES( [NativeTypeName("GLuint *")] uint* framebuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenFramebuffersOES", "opengl") + (delegate* unmanaged)( + _slots[818] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[818] = nativeContext.LoadFunction("glGenFramebuffersOES", "opengl") + ) )(n, framebuffers); [SupportedApiProfile("gles1", ["GL_OES_framebuffer_object"])] @@ -463960,9 +467209,13 @@ public static void GenFramebuffersOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.GenLists([NativeTypeName("GLsizei")] uint range) => - ((delegate* unmanaged)nativeContext.LoadFunction("glGenLists", "opengl"))( - range - ); + ( + (delegate* unmanaged)( + _slots[819] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[819] = nativeContext.LoadFunction("glGenLists", "opengl") + ) + )(range); [return: NativeTypeName("GLuint")] [SupportedApiProfile( @@ -464002,8 +467255,11 @@ void IGL.GenNamesAMD( [NativeTypeName("GLuint *")] uint* names ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenNamesAMD", "opengl") + (delegate* unmanaged)( + _slots[820] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[820] = nativeContext.LoadFunction("glGenNamesAMD", "opengl") + ) )(identifier, num, names); [SupportedApiProfile("gl", ["GL_AMD_name_gen_delete"])] @@ -464059,8 +467315,11 @@ void IGL.GenOcclusionQueriesNV( [NativeTypeName("GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenOcclusionQueriesNV", "opengl") + (delegate* unmanaged)( + _slots[821] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[821] = nativeContext.LoadFunction("glGenOcclusionQueriesNV", "opengl") + ) )(n, ids); [SupportedApiProfile("gl", ["GL_NV_occlusion_query"])] @@ -464108,9 +467367,13 @@ uint IGL.GenOcclusionQueriesNV() [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.GenPathNV([NativeTypeName("GLsizei")] uint range) => - ((delegate* unmanaged)nativeContext.LoadFunction("glGenPathsNV", "opengl"))( - range - ); + ( + (delegate* unmanaged)( + _slots[822] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[822] = nativeContext.LoadFunction("glGenPathsNV", "opengl") + ) + )(range); [return: NativeTypeName("GLuint")] [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -464127,8 +467390,11 @@ void IGL.GenPerfMonitorsAMD( [NativeTypeName("GLuint *")] uint* monitors ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenPerfMonitorsAMD", "opengl") + (delegate* unmanaged)( + _slots[823] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[823] = nativeContext.LoadFunction("glGenPerfMonitorsAMD", "opengl") + ) )(n, monitors); [SupportedApiProfile("gl", ["GL_AMD_performance_monitor"])] @@ -464225,8 +467491,11 @@ void IGL.GenProgramPipelines( [NativeTypeName("GLuint *")] uint* pipelines ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenProgramPipelines", "opengl") + (delegate* unmanaged)( + _slots[824] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[824] = nativeContext.LoadFunction("glGenProgramPipelines", "opengl") + ) )(n, pipelines); [SupportedApiProfile( @@ -464314,8 +467583,11 @@ void IGL.GenProgramPipelinesEXT( [NativeTypeName("GLuint *")] uint* pipelines ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenProgramPipelinesEXT", "opengl") + (delegate* unmanaged)( + _slots[825] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[825] = nativeContext.LoadFunction("glGenProgramPipelinesEXT", "opengl") + ) )(n, pipelines); [SupportedApiProfile("gles2", ["GL_EXT_separate_shader_objects"])] @@ -464367,8 +467639,11 @@ void IGL.GenProgramARB( [NativeTypeName("GLuint *")] uint* programs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenProgramsARB", "opengl") + (delegate* unmanaged)( + _slots[826] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[826] = nativeContext.LoadFunction("glGenProgramsARB", "opengl") + ) )(n, programs); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -464420,8 +467695,11 @@ void IGL.GenProgramNV( [NativeTypeName("GLuint *")] uint* programs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenProgramsNV", "opengl") + (delegate* unmanaged)( + _slots[827] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[827] = nativeContext.LoadFunction("glGenProgramsNV", "opengl") + ) )(n, programs); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -464473,8 +467751,11 @@ void IGL.GenQueries( [NativeTypeName("GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenQueries", "opengl") + (delegate* unmanaged)( + _slots[828] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[828] = nativeContext.LoadFunction("glGenQueries", "opengl") + ) )(n, ids); [SupportedApiProfile( @@ -464590,8 +467871,11 @@ void IGL.GenQueriesARB( [NativeTypeName("GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenQueriesARB", "opengl") + (delegate* unmanaged)( + _slots[829] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[829] = nativeContext.LoadFunction("glGenQueriesARB", "opengl") + ) )(n, ids); [SupportedApiProfile("gl", ["GL_ARB_occlusion_query"])] @@ -464643,8 +467927,11 @@ void IGL.GenQueriesEXT( [NativeTypeName("GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenQueriesEXT", "opengl") + (delegate* unmanaged)( + _slots[830] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[830] = nativeContext.LoadFunction("glGenQueriesEXT", "opengl") + ) )(n, ids); [SupportedApiProfile( @@ -464758,8 +468045,11 @@ void IGL.GenQueryResourceTagNV( [NativeTypeName("GLint *")] int* tagIds ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenQueryResourceTagNV", "opengl") + (delegate* unmanaged)( + _slots[831] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[831] = nativeContext.LoadFunction("glGenQueryResourceTagNV", "opengl") + ) )(n, tagIds); [SupportedApiProfile("gl", ["GL_NV_query_resource_tag"])] @@ -464865,8 +468155,11 @@ void IGL.GenRenderbuffers( [NativeTypeName("GLuint *")] uint* renderbuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenRenderbuffers", "opengl") + (delegate* unmanaged)( + _slots[832] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[832] = nativeContext.LoadFunction("glGenRenderbuffers", "opengl") + ) )(n, renderbuffers); [SupportedApiProfile( @@ -464984,8 +468277,11 @@ void IGL.GenRenderbuffersEXT( [NativeTypeName("GLuint *")] uint* renderbuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenRenderbuffersEXT", "opengl") + (delegate* unmanaged)( + _slots[833] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[833] = nativeContext.LoadFunction("glGenRenderbuffersEXT", "opengl") + ) )(n, renderbuffers); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -465051,8 +468347,11 @@ void IGL.GenRenderbuffersOES( [NativeTypeName("GLuint *")] uint* renderbuffers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenRenderbuffersOES", "opengl") + (delegate* unmanaged)( + _slots[834] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[834] = nativeContext.LoadFunction("glGenRenderbuffersOES", "opengl") + ) )(n, renderbuffers); [SupportedApiProfile("gles1", ["GL_OES_framebuffer_object"])] @@ -465138,8 +468437,11 @@ void IGL.GenSamplers( [NativeTypeName("GLuint *")] uint* samplers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenSamplers", "opengl") + (delegate* unmanaged)( + _slots[835] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[835] = nativeContext.LoadFunction("glGenSamplers", "opengl") + ) )(count, samplers); [SupportedApiProfile( @@ -465245,8 +468547,11 @@ void IGL.GenSemaphoresEXT( [NativeTypeName("GLuint *")] uint* semaphores ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenSemaphoresEXT", "opengl") + (delegate* unmanaged)( + _slots[836] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[836] = nativeContext.LoadFunction("glGenSemaphoresEXT", "opengl") + ) )(n, semaphores); [SupportedApiProfile("gl", ["GL_EXT_semaphore"])] @@ -465303,8 +468608,11 @@ uint IGL.GenSymbolEXT( [NativeTypeName("GLuint")] uint components ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenSymbolsEXT", "opengl") + (delegate* unmanaged)( + _slots[837] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[837] = nativeContext.LoadFunction("glGenSymbolsEXT", "opengl") + ) )(datatype, storagetype, range, components); [return: NativeTypeName("GLuint")] @@ -465411,8 +468719,11 @@ void IGL.GenTextures( [NativeTypeName("GLuint *")] uint* textures ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenTextures", "opengl") + (delegate* unmanaged)( + _slots[838] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[838] = nativeContext.LoadFunction("glGenTextures", "opengl") + ) )(n, textures); [SupportedApiProfile( @@ -465556,8 +468867,11 @@ void IGL.GenTexturesEXT( [NativeTypeName("GLuint *")] uint* textures ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenTexturesEXT", "opengl") + (delegate* unmanaged)( + _slots[839] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[839] = nativeContext.LoadFunction("glGenTexturesEXT", "opengl") + ) )(n, textures); [SupportedApiProfile("gl", ["GL_EXT_texture_object"])] @@ -465650,8 +468964,11 @@ void IGL.GenTransformFeedbacks( [NativeTypeName("GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenTransformFeedbacks", "opengl") + (delegate* unmanaged)( + _slots[840] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[840] = nativeContext.LoadFunction("glGenTransformFeedbacks", "opengl") + ) )(n, ids); [SupportedApiProfile( @@ -465743,8 +469060,14 @@ void IGL.GenTransformFeedbacksNV( [NativeTypeName("GLuint *")] uint* ids ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenTransformFeedbacksNV", "opengl") + (delegate* unmanaged)( + _slots[841] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[841] = nativeContext.LoadFunction( + "glGenTransformFeedbacksNV", + "opengl" + ) + ) )(n, ids); [SupportedApiProfile("gl", ["GL_NV_transform_feedback2"])] @@ -465845,8 +469168,11 @@ void IGL.GenVertexArrays( [NativeTypeName("GLuint *")] uint* arrays ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenVertexArrays", "opengl") + (delegate* unmanaged)( + _slots[842] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[842] = nativeContext.LoadFunction("glGenVertexArrays", "opengl") + ) )(n, arrays); [SupportedApiProfile( @@ -465954,8 +469280,11 @@ void IGL.GenVertexArraysApple( [NativeTypeName("GLuint *")] uint* arrays ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenVertexArraysAPPLE", "opengl") + (delegate* unmanaged)( + _slots[843] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[843] = nativeContext.LoadFunction("glGenVertexArraysAPPLE", "opengl") + ) )(n, arrays); [SupportedApiProfile("gl", ["GL_APPLE_vertex_array_object"])] @@ -466022,8 +469351,11 @@ void IGL.GenVertexArraysOES( [NativeTypeName("GLuint *")] uint* arrays ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenVertexArraysOES", "opengl") + (delegate* unmanaged)( + _slots[844] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[844] = nativeContext.LoadFunction("glGenVertexArraysOES", "opengl") + ) )(n, arrays); [SupportedApiProfile("gles2", ["GL_OES_vertex_array_object"])] @@ -466060,8 +469392,11 @@ public static void GenVertexArraysOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.GenVertexShadersEXT([NativeTypeName("GLuint")] uint range) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGenVertexShadersEXT", "opengl") + (delegate* unmanaged)( + _slots[845] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[845] = nativeContext.LoadFunction("glGenVertexShadersEXT", "opengl") + ) )(range); [return: NativeTypeName("GLuint")] @@ -466079,8 +469414,14 @@ void IGL.GetActiveAtomicCounterBuffer( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveAtomicCounterBufferiv", "opengl") + (delegate* unmanaged)( + _slots[846] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[846] = nativeContext.LoadFunction( + "glGetActiveAtomicCounterBufferiv", + "opengl" + ) + ) )(program, bufferIndex, pname, @params); [SupportedApiProfile( @@ -466180,8 +469521,11 @@ void IGL.GetActiveAttrib( [NativeTypeName("GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveAttrib", "opengl") + (delegate* unmanaged)( + _slots[847] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[847] = nativeContext.LoadFunction("glGetActiveAttrib", "opengl") + ) )(program, index, bufSize, length, size, type, name); [SupportedApiProfile( @@ -466745,8 +470089,11 @@ void IGL.GetActiveAttribARB( [NativeTypeName("GLcharARB *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveAttribARB", "opengl") + (delegate* unmanaged)( + _slots[848] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[848] = nativeContext.LoadFunction("glGetActiveAttribARB", "opengl") + ) )(programObj, index, maxLength, length, size, type, name); [SupportedApiProfile("gl", ["GL_ARB_vertex_shader"])] @@ -467015,8 +470362,14 @@ void IGL.GetActiveSubroutineName( [NativeTypeName("GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveSubroutineName", "opengl") + (delegate* unmanaged)( + _slots[849] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[849] = nativeContext.LoadFunction( + "glGetActiveSubroutineName", + "opengl" + ) + ) )(program, shadertype, index, bufSize, length, name); [SupportedApiProfile( @@ -467192,8 +470545,14 @@ void IGL.GetActiveSubroutineUniform( [NativeTypeName("GLint *")] int* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveSubroutineUniformiv", "opengl") + (delegate* unmanaged)( + _slots[850] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[850] = nativeContext.LoadFunction( + "glGetActiveSubroutineUniformiv", + "opengl" + ) + ) )(program, shadertype, index, pname, values); [SupportedApiProfile( @@ -467304,8 +470663,14 @@ void IGL.GetActiveSubroutineUniformName( [NativeTypeName("GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveSubroutineUniformName", "opengl") + (delegate* unmanaged)( + _slots[851] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[851] = nativeContext.LoadFunction( + "glGetActiveSubroutineUniformName", + "opengl" + ) + ) )(program, shadertype, index, bufSize, length, name); [SupportedApiProfile( @@ -467499,8 +470864,11 @@ void IGL.GetActiveUniform( [NativeTypeName("GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveUniform", "opengl") + (delegate* unmanaged)( + _slots[852] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[852] = nativeContext.LoadFunction("glGetActiveUniform", "opengl") + ) )(program, index, bufSize, length, size, type, name); [SupportedApiProfile( @@ -468064,8 +471432,11 @@ void IGL.GetActiveUniformARB( [NativeTypeName("GLcharARB *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveUniformARB", "opengl") + (delegate* unmanaged)( + _slots[853] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[853] = nativeContext.LoadFunction("glGetActiveUniformARB", "opengl") + ) )(programObj, index, maxLength, length, size, type, name); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -468332,8 +471703,14 @@ void IGL.GetActiveUniformBlock( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveUniformBlockiv", "opengl") + (delegate* unmanaged)( + _slots[854] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[854] = nativeContext.LoadFunction( + "glGetActiveUniformBlockiv", + "opengl" + ) + ) )(program, uniformBlockIndex, pname, @params); [SupportedApiProfile( @@ -468504,8 +471881,14 @@ void IGL.GetActiveUniformBlockName( [NativeTypeName("GLchar *")] sbyte* uniformBlockName ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveUniformBlockName", "opengl") + (delegate* unmanaged)( + _slots[855] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[855] = nativeContext.LoadFunction( + "glGetActiveUniformBlockName", + "opengl" + ) + ) )(program, uniformBlockIndex, bufSize, length, uniformBlockName); [SupportedApiProfile( @@ -468706,8 +472089,11 @@ void IGL.GetActiveUniformName( [NativeTypeName("GLchar *")] sbyte* uniformName ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveUniformName", "opengl") + (delegate* unmanaged)( + _slots[856] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[856] = nativeContext.LoadFunction("glGetActiveUniformName", "opengl") + ) )(program, uniformIndex, bufSize, length, uniformName); [SupportedApiProfile( @@ -468894,8 +472280,11 @@ void IGL.GetActiveUniforms( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveUniformsiv", "opengl") + (delegate* unmanaged)( + _slots[857] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[857] = nativeContext.LoadFunction("glGetActiveUniformsiv", "opengl") + ) )(program, uniformCount, uniformIndices, pname, @params); [SupportedApiProfile( @@ -469020,8 +472409,11 @@ void IGL.GetActiveVaryingNV( [NativeTypeName("GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetActiveVaryingNV", "opengl") + (delegate* unmanaged)( + _slots[858] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[858] = nativeContext.LoadFunction("glGetActiveVaryingNV", "opengl") + ) )(program, index, bufSize, length, size, type, name); [SupportedApiProfile("gl", ["GL_NV_transform_feedback"])] @@ -469125,8 +472517,11 @@ void IGL.GetArrayObjectfvATI( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetArrayObjectfvATI", "opengl") + (delegate* unmanaged)( + _slots[859] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[859] = nativeContext.LoadFunction("glGetArrayObjectfvATI", "opengl") + ) )(array, pname, @params); [SupportedApiProfile("gl", ["GL_ATI_vertex_array_object"])] @@ -469188,8 +472583,11 @@ void IGL.GetArrayObjectivATI( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetArrayObjectivATI", "opengl") + (delegate* unmanaged)( + _slots[860] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[860] = nativeContext.LoadFunction("glGetArrayObjectivATI", "opengl") + ) )(array, pname, @params); [SupportedApiProfile("gl", ["GL_ATI_vertex_array_object"])] @@ -469252,8 +472650,11 @@ void IGL.GetAttachedObjectsARB( [NativeTypeName("GLhandleARB *")] uint* obj ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetAttachedObjectsARB", "opengl") + (delegate* unmanaged)( + _slots[861] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[861] = nativeContext.LoadFunction("glGetAttachedObjectsARB", "opengl") + ) )(containerObj, maxCount, count, obj); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -469388,8 +472789,11 @@ void IGL.GetAttachedShaders( [NativeTypeName("GLuint *")] uint* shaders ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetAttachedShaders", "opengl") + (delegate* unmanaged)( + _slots[862] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[862] = nativeContext.LoadFunction("glGetAttachedShaders", "opengl") + ) )(program, maxCount, count, shaders); [SupportedApiProfile( @@ -469518,8 +472922,11 @@ int IGL.GetAttribLocation( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetAttribLocation", "opengl") + (delegate* unmanaged)( + _slots[863] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[863] = nativeContext.LoadFunction("glGetAttribLocation", "opengl") + ) )(program, name); [return: NativeTypeName("GLint")] @@ -469643,8 +473050,11 @@ int IGL.GetAttribLocationARB( [NativeTypeName("const GLcharARB *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetAttribLocationARB", "opengl") + (delegate* unmanaged)( + _slots[864] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[864] = nativeContext.LoadFunction("glGetAttribLocationARB", "opengl") + ) )(programObj, name); [return: NativeTypeName("GLint")] @@ -469685,8 +473095,11 @@ void IGL.GetBoolean( [NativeTypeName("GLboolean *")] uint* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetBooleani_v", "opengl") + (delegate* unmanaged)( + _slots[865] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[865] = nativeContext.LoadFunction("glGetBooleani_v", "opengl") + ) )(target, index, data); [SupportedApiProfile( @@ -469794,8 +473207,11 @@ void IGL.GetBooleanIndexedEXT( [NativeTypeName("GLboolean *")] uint* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetBooleanIndexedvEXT", "opengl") + (delegate* unmanaged)( + _slots[866] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[866] = nativeContext.LoadFunction("glGetBooleanIndexedvEXT", "opengl") + ) )(target, index, data); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_draw_buffers2"])] @@ -469838,8 +473254,11 @@ void IGL.GetBoolean( [NativeTypeName("GLboolean *")] uint* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetBooleanv", "opengl") + (delegate* unmanaged)( + _slots[867] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[867] = nativeContext.LoadFunction("glGetBooleanv", "opengl") + ) )(pname, data); [SupportedApiProfile( @@ -469988,8 +473407,11 @@ void IGL.GetBufferParameter( [NativeTypeName("GLint64 *")] long* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetBufferParameteri64v", "opengl") + (delegate* unmanaged)( + _slots[868] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[868] = nativeContext.LoadFunction("glGetBufferParameteri64v", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -470089,8 +473511,11 @@ void IGL.GetBufferParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetBufferParameteriv", "opengl") + (delegate* unmanaged)( + _slots[869] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[869] = nativeContext.LoadFunction("glGetBufferParameteriv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -470222,8 +473647,14 @@ void IGL.GetBufferParameterARB( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetBufferParameterivARB", "opengl") + (delegate* unmanaged)( + _slots[870] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[870] = nativeContext.LoadFunction( + "glGetBufferParameterivARB", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_vertex_buffer_object"])] @@ -470265,8 +473696,14 @@ void IGL.GetBufferParameterNV( [NativeTypeName("GLuint64EXT *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetBufferParameterui64vNV", "opengl") + (delegate* unmanaged)( + _slots[871] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[871] = nativeContext.LoadFunction( + "glGetBufferParameterui64vNV", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_NV_shader_buffer_load"])] @@ -470329,8 +473766,11 @@ void IGL.GetBufferPointer( void** @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetBufferPointerv", "opengl") + (delegate* unmanaged)( + _slots[872] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[872] = nativeContext.LoadFunction("glGetBufferPointerv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -470450,8 +473890,11 @@ void IGL.GetBufferPointerARB( void** @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetBufferPointervARB", "opengl") + (delegate* unmanaged)( + _slots[873] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[873] = nativeContext.LoadFunction("glGetBufferPointervARB", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_vertex_buffer_object"])] @@ -470493,8 +473936,11 @@ void IGL.GetBufferPointerOES( void** @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetBufferPointervOES", "opengl") + (delegate* unmanaged)( + _slots[874] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[874] = nativeContext.LoadFunction("glGetBufferPointervOES", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gles2", ["GL_OES_mapbuffer"])] @@ -470539,8 +473985,11 @@ void IGL.GetBufferSubData( void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetBufferSubData", "opengl") + (delegate* unmanaged)( + _slots[875] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[875] = nativeContext.LoadFunction("glGetBufferSubData", "opengl") + ) )(target, offset, size, data); [SupportedApiProfile( @@ -470664,8 +474113,11 @@ void IGL.GetBufferSubDataARB( void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetBufferSubDataARB", "opengl") + (delegate* unmanaged)( + _slots[876] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[876] = nativeContext.LoadFunction("glGetBufferSubDataARB", "opengl") + ) )(target, offset, size, data); [SupportedApiProfile("gl", ["GL_ARB_vertex_buffer_object"])] @@ -470709,8 +474161,11 @@ void IGL.GetClipPlane( [NativeTypeName("GLdouble *")] double* equation ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetClipPlane", "opengl") + (delegate* unmanaged)( + _slots[877] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[877] = nativeContext.LoadFunction("glGetClipPlane", "opengl") + ) )(plane, equation); [SupportedApiProfile( @@ -470796,8 +474251,11 @@ void IGL.GetClipPlane( [NativeTypeName("GLfloat *")] float* equation ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetClipPlanef", "opengl") + (delegate* unmanaged)( + _slots[878] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[878] = nativeContext.LoadFunction("glGetClipPlanef", "opengl") + ) )(plane, equation); [SupportedApiProfile("gles1", MaxVersion = "2.0")] @@ -470835,8 +474293,11 @@ void IGL.GetClipPlaneOES( [NativeTypeName("GLfloat *")] float* equation ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetClipPlanefOES", "opengl") + (delegate* unmanaged)( + _slots[879] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[879] = nativeContext.LoadFunction("glGetClipPlanefOES", "opengl") + ) )(plane, equation); [SupportedApiProfile("gl", ["GL_OES_single_precision"])] @@ -470876,8 +474337,11 @@ void IGL.GetClipPlanex( [NativeTypeName("GLfixed *")] int* equation ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetClipPlanex", "opengl") + (delegate* unmanaged)( + _slots[880] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[880] = nativeContext.LoadFunction("glGetClipPlanex", "opengl") + ) )(plane, equation); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -470915,8 +474379,11 @@ void IGL.GetClipPlanexOES( [NativeTypeName("GLfixed *")] int* equation ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetClipPlanexOES", "opengl") + (delegate* unmanaged)( + _slots[881] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[881] = nativeContext.LoadFunction("glGetClipPlanexOES", "opengl") + ) )(plane, equation); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -470958,8 +474425,11 @@ void IGL.GetColorTable( void* table ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetColorTable", "opengl") + (delegate* unmanaged)( + _slots[882] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[882] = nativeContext.LoadFunction("glGetColorTable", "opengl") + ) )(target, format, type, table); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -471005,8 +474475,11 @@ void IGL.GetColorTableEXT( void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetColorTableEXT", "opengl") + (delegate* unmanaged)( + _slots[883] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[883] = nativeContext.LoadFunction("glGetColorTableEXT", "opengl") + ) )(target, format, type, data); [SupportedApiProfile("gl", ["GL_EXT_paletted_texture"])] @@ -471051,8 +474524,14 @@ void IGL.GetColorTableParameter( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetColorTableParameterfv", "opengl") + (delegate* unmanaged)( + _slots[884] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[884] = nativeContext.LoadFunction( + "glGetColorTableParameterfv", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -471094,8 +474573,14 @@ void IGL.GetColorTableParameterEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetColorTableParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[885] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[885] = nativeContext.LoadFunction( + "glGetColorTableParameterfvEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_paletted_texture"])] @@ -471137,8 +474622,14 @@ void IGL.GetColorTableParameterSGI( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetColorTableParameterfvSGI", "opengl") + (delegate* unmanaged)( + _slots[886] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[886] = nativeContext.LoadFunction( + "glGetColorTableParameterfvSGI", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_SGI_color_table"])] @@ -471180,8 +474671,14 @@ void IGL.GetColorTableParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetColorTableParameteriv", "opengl") + (delegate* unmanaged)( + _slots[887] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[887] = nativeContext.LoadFunction( + "glGetColorTableParameteriv", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -471223,8 +474720,14 @@ void IGL.GetColorTableParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetColorTableParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[888] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[888] = nativeContext.LoadFunction( + "glGetColorTableParameterivEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_paletted_texture"])] @@ -471266,8 +474769,14 @@ void IGL.GetColorTableParameterSGI( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetColorTableParameterivSGI", "opengl") + (delegate* unmanaged)( + _slots[889] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[889] = nativeContext.LoadFunction( + "glGetColorTableParameterivSGI", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_SGI_color_table"])] @@ -471310,8 +474819,11 @@ void IGL.GetColorTableSGI( void* table ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetColorTableSGI", "opengl") + (delegate* unmanaged)( + _slots[890] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[890] = nativeContext.LoadFunction("glGetColorTableSGI", "opengl") + ) )(target, format, type, table); [SupportedApiProfile("gl", ["GL_SGI_color_table"])] @@ -471358,8 +474870,14 @@ void IGL.GetCombinerInputParameterNV( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCombinerInputParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[891] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[891] = nativeContext.LoadFunction( + "glGetCombinerInputParameterfvNV", + "opengl" + ) + ) )(stage, portion, variable, pname, @params); [SupportedApiProfile("gl", ["GL_NV_register_combiners"])] @@ -471415,8 +474933,14 @@ void IGL.GetCombinerInputParameterNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCombinerInputParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[892] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[892] = nativeContext.LoadFunction( + "glGetCombinerInputParameterivNV", + "opengl" + ) + ) )(stage, portion, variable, pname, @params); [SupportedApiProfile("gl", ["GL_NV_register_combiners"])] @@ -471471,8 +474995,14 @@ void IGL.GetCombinerOutputParameterNV( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCombinerOutputParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[893] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[893] = nativeContext.LoadFunction( + "glGetCombinerOutputParameterfvNV", + "opengl" + ) + ) )(stage, portion, pname, @params); [SupportedApiProfile("gl", ["GL_NV_register_combiners"])] @@ -471523,8 +475053,14 @@ void IGL.GetCombinerOutputParameterNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCombinerOutputParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[894] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[894] = nativeContext.LoadFunction( + "glGetCombinerOutputParameterivNV", + "opengl" + ) + ) )(stage, portion, pname, @params); [SupportedApiProfile("gl", ["GL_NV_register_combiners"])] @@ -471574,8 +475110,14 @@ void IGL.GetCombinerStageParameterNV( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCombinerStageParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[895] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[895] = nativeContext.LoadFunction( + "glGetCombinerStageParameterfvNV", + "opengl" + ) + ) )(stage, pname, @params); [SupportedApiProfile("gl", ["GL_NV_register_combiners2"])] @@ -471616,8 +475158,11 @@ uint IGL.GetCommandHeaderNV( [NativeTypeName("GLuint")] uint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCommandHeaderNV", "opengl") + (delegate* unmanaged)( + _slots[896] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[896] = nativeContext.LoadFunction("glGetCommandHeaderNV", "opengl") + ) )(tokenID, size); [return: NativeTypeName("GLuint")] @@ -471655,8 +475200,14 @@ void IGL.GetCompressedMultiTexImageEXT( void* img ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCompressedMultiTexImageEXT", "opengl") + (delegate* unmanaged)( + _slots[897] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[897] = nativeContext.LoadFunction( + "glGetCompressedMultiTexImageEXT", + "opengl" + ) + ) )(texunit, target, lod, img); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -471703,8 +475254,11 @@ void IGL.GetCompressedTexImage( void* img ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCompressedTexImage", "opengl") + (delegate* unmanaged)( + _slots[898] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[898] = nativeContext.LoadFunction("glGetCompressedTexImage", "opengl") + ) )(target, level, img); [SupportedApiProfile( @@ -471832,8 +475386,14 @@ void IGL.GetCompressedTexImageARB( void* img ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCompressedTexImageARB", "opengl") + (delegate* unmanaged)( + _slots[899] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[899] = nativeContext.LoadFunction( + "glGetCompressedTexImageARB", + "opengl" + ) + ) )(target, level, img); [SupportedApiProfile("gl", ["GL_ARB_texture_compression"])] @@ -471876,8 +475436,14 @@ void IGL.GetCompressedTextureImage( void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCompressedTextureImage", "opengl") + (delegate* unmanaged)( + _slots[900] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[900] = nativeContext.LoadFunction( + "glGetCompressedTextureImage", + "opengl" + ) + ) )(texture, level, bufSize, pixels); [SupportedApiProfile( @@ -471941,8 +475507,14 @@ void IGL.GetCompressedTextureImageEXT( void* img ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCompressedTextureImageEXT", "opengl") + (delegate* unmanaged)( + _slots[901] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[901] = nativeContext.LoadFunction( + "glGetCompressedTextureImageEXT", + "opengl" + ) + ) )(texture, target, lod, img); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -471996,8 +475568,14 @@ void IGL.GetCompressedTextureSubImage( void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCompressedTextureSubImage", "opengl") + (delegate* unmanaged)( + _slots[902] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[902] = nativeContext.LoadFunction( + "glGetCompressedTextureSubImage", + "opengl" + ) + ) )(texture, level, xoffset, yoffset, zoffset, width, height, depth, bufSize, pixels); [SupportedApiProfile( @@ -472114,8 +475692,11 @@ void IGL.GetConvolutionFilter( void* image ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetConvolutionFilter", "opengl") + (delegate* unmanaged)( + _slots[903] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[903] = nativeContext.LoadFunction("glGetConvolutionFilter", "opengl") + ) )(target, format, type, image); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -472161,8 +475742,14 @@ void IGL.GetConvolutionFilterEXT( void* image ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetConvolutionFilterEXT", "opengl") + (delegate* unmanaged)( + _slots[904] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[904] = nativeContext.LoadFunction( + "glGetConvolutionFilterEXT", + "opengl" + ) + ) )(target, format, type, image); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -472212,8 +475799,14 @@ void IGL.GetConvolutionParameter( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetConvolutionParameterfv", "opengl") + (delegate* unmanaged)( + _slots[905] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[905] = nativeContext.LoadFunction( + "glGetConvolutionParameterfv", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -472255,8 +475848,14 @@ void IGL.GetConvolutionParameterEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetConvolutionParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[906] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[906] = nativeContext.LoadFunction( + "glGetConvolutionParameterfvEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -472298,8 +475897,14 @@ void IGL.GetConvolutionParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetConvolutionParameteriv", "opengl") + (delegate* unmanaged)( + _slots[907] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[907] = nativeContext.LoadFunction( + "glGetConvolutionParameteriv", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -472341,8 +475946,14 @@ void IGL.GetConvolutionParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetConvolutionParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[908] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[908] = nativeContext.LoadFunction( + "glGetConvolutionParameterivEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -472399,8 +476010,14 @@ void IGL.GetConvolutionParameterxOES( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetConvolutionParameterxvOES", "opengl") + (delegate* unmanaged)( + _slots[909] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[909] = nativeContext.LoadFunction( + "glGetConvolutionParameterxvOES", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -472441,8 +476058,14 @@ void IGL.GetCoverageModulationTableNV( [NativeTypeName("GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetCoverageModulationTableNV", "opengl") + (delegate* unmanaged)( + _slots[910] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[910] = nativeContext.LoadFunction( + "glGetCoverageModulationTableNV", + "opengl" + ) + ) )(bufSize, v); [SupportedApiProfile("gl", ["GL_NV_framebuffer_mixed_samples"])] @@ -472506,8 +476129,11 @@ uint IGL.GetDebugMessageLog( [NativeTypeName("GLchar *")] sbyte* messageLog ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetDebugMessageLog", "opengl") + (delegate* unmanaged)( + _slots[911] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[911] = nativeContext.LoadFunction("glGetDebugMessageLog", "opengl") + ) )(count, bufSize, sources, types, ids, severities, lengths, messageLog); [return: NativeTypeName("GLuint")] @@ -472759,8 +476385,11 @@ uint IGL.GetDebugMessageLogAMD( [NativeTypeName("GLchar *")] sbyte* message ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetDebugMessageLogAMD", "opengl") + (delegate* unmanaged)( + _slots[912] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[912] = nativeContext.LoadFunction("glGetDebugMessageLogAMD", "opengl") + ) )(count, bufSize, categories, severities, ids, lengths, message); [return: NativeTypeName("GLuint")] @@ -472960,8 +476589,11 @@ uint IGL.GetDebugMessageLogARB( [NativeTypeName("GLchar *")] sbyte* messageLog ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetDebugMessageLogARB", "opengl") + (delegate* unmanaged)( + _slots[913] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[913] = nativeContext.LoadFunction("glGetDebugMessageLogARB", "opengl") + ) )(count, bufSize, sources, types, ids, severities, lengths, messageLog); [return: NativeTypeName("GLuint")] @@ -473182,8 +476814,11 @@ uint IGL.GetDebugMessageLogKHR( [NativeTypeName("GLchar *")] sbyte* messageLog ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetDebugMessageLogKHR", "opengl") + (delegate* unmanaged)( + _slots[914] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[914] = nativeContext.LoadFunction("glGetDebugMessageLogKHR", "opengl") + ) )(count, bufSize, sources, types, ids, severities, lengths, messageLog); [return: NativeTypeName("GLuint")] @@ -473394,8 +477029,11 @@ void IGL.GetDetailTexFuncSGIS( [NativeTypeName("GLfloat *")] float* points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetDetailTexFuncSGIS", "opengl") + (delegate* unmanaged)( + _slots[915] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[915] = nativeContext.LoadFunction("glGetDetailTexFuncSGIS", "opengl") + ) )(target, points); [SupportedApiProfile("gl", ["GL_SGIS_detail_texture"])] @@ -473434,8 +477072,11 @@ void IGL.GetDouble( [NativeTypeName("GLdouble *")] double* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetDoublei_v", "opengl") + (delegate* unmanaged)( + _slots[916] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[916] = nativeContext.LoadFunction("glGetDoublei_v", "opengl") + ) )(target, index, data); [SupportedApiProfile( @@ -473527,8 +477168,11 @@ void IGL.GetDoubleEXT( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetDoublei_vEXT", "opengl") + (delegate* unmanaged)( + _slots[917] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[917] = nativeContext.LoadFunction("glGetDoublei_vEXT", "opengl") + ) )(pname, index, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -473572,8 +477216,11 @@ void IGL.GetDoubleIndexedEXT( [NativeTypeName("GLdouble *")] double* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetDoubleIndexedvEXT", "opengl") + (delegate* unmanaged)( + _slots[918] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[918] = nativeContext.LoadFunction("glGetDoubleIndexedvEXT", "opengl") + ) )(target, index, data); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -473616,8 +477263,11 @@ void IGL.GetDouble( [NativeTypeName("GLdouble *")] double* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetDoublev", "opengl") + (delegate* unmanaged)( + _slots[919] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[919] = nativeContext.LoadFunction("glGetDoublev", "opengl") + ) )(pname, data); [SupportedApiProfile( @@ -473754,8 +477404,11 @@ void IGL.GetDriverControlQCOM( [NativeTypeName("GLuint *")] uint* driverControls ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetDriverControlsQCOM", "opengl") + (delegate* unmanaged)( + _slots[920] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[920] = nativeContext.LoadFunction("glGetDriverControlsQCOM", "opengl") + ) )(num, size, driverControls); [SupportedApiProfile("gles2", ["GL_QCOM_driver_control"])] @@ -473820,8 +477473,14 @@ void IGL.GetDriverControlStringQCOM( [NativeTypeName("GLchar *")] sbyte* driverControlString ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetDriverControlStringQCOM", "opengl") + (delegate* unmanaged)( + _slots[921] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[921] = nativeContext.LoadFunction( + "glGetDriverControlStringQCOM", + "opengl" + ) + ) )(driverControl, bufSize, length, driverControlString); [SupportedApiProfile("gles2", ["GL_QCOM_driver_control"])] @@ -473964,7 +477623,13 @@ Constant IGL.GetError() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.GetErrorRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("glGetError", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[922] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[922] = nativeContext.LoadFunction("glGetError", "opengl") + ) + )(); [return: NativeTypeName("GLenum")] [SupportedApiProfile( @@ -474034,8 +477699,11 @@ void IGL.GetFenceNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFenceivNV", "opengl") + (delegate* unmanaged)( + _slots[923] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[923] = nativeContext.LoadFunction("glGetFenceivNV", "opengl") + ) )(fence, pname, @params); [SupportedApiProfile("gl", ["GL_NV_fence"])] @@ -474081,8 +477749,14 @@ void IGL.GetFinalCombinerInputParameterNV( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFinalCombinerInputParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[924] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[924] = nativeContext.LoadFunction( + "glGetFinalCombinerInputParameterfvNV", + "opengl" + ) + ) )(variable, pname, @params); [SupportedApiProfile("gl", ["GL_NV_register_combiners"])] @@ -474124,8 +477798,14 @@ void IGL.GetFinalCombinerInputParameterNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFinalCombinerInputParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[925] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[925] = nativeContext.LoadFunction( + "glGetFinalCombinerInputParameterivNV", + "opengl" + ) + ) )(variable, pname, @params); [SupportedApiProfile("gl", ["GL_NV_register_combiners"])] @@ -474163,8 +477843,14 @@ public static void GetFinalCombinerInputParameterNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GetFirstPerfQueryIdIntel([NativeTypeName("GLuint *")] uint* queryId) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFirstPerfQueryIdINTEL", "opengl") + (delegate* unmanaged)( + _slots[926] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[926] = nativeContext.LoadFunction( + "glGetFirstPerfQueryIdINTEL", + "opengl" + ) + ) )(queryId); [SupportedApiProfile("gl", ["GL_INTEL_performance_query"])] @@ -474199,8 +477885,11 @@ void IGL.GetFixed( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFixedv", "opengl") + (delegate* unmanaged)( + _slots[927] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[927] = nativeContext.LoadFunction("glGetFixedv", "opengl") + ) )(pname, @params); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -474238,8 +477927,11 @@ void IGL.GetFixedOES( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFixedvOES", "opengl") + (delegate* unmanaged)( + _slots[928] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[928] = nativeContext.LoadFunction("glGetFixedvOES", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -474280,8 +477972,11 @@ void IGL.GetFloat( [NativeTypeName("GLfloat *")] float* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFloati_v", "opengl") + (delegate* unmanaged)( + _slots[929] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[929] = nativeContext.LoadFunction("glGetFloati_v", "opengl") + ) )(target, index, data); [SupportedApiProfile( @@ -474373,8 +478068,11 @@ void IGL.GetFloatEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFloati_vEXT", "opengl") + (delegate* unmanaged)( + _slots[930] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[930] = nativeContext.LoadFunction("glGetFloati_vEXT", "opengl") + ) )(pname, index, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -474418,8 +478116,11 @@ void IGL.GetFloatNV( [NativeTypeName("GLfloat *")] float* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFloati_vNV", "opengl") + (delegate* unmanaged)( + _slots[931] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[931] = nativeContext.LoadFunction("glGetFloati_vNV", "opengl") + ) )(target, index, data); [SupportedApiProfile("gles2", ["GL_NV_viewport_array"])] @@ -474461,8 +478162,11 @@ void IGL.GetFloatOES( [NativeTypeName("GLfloat *")] float* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFloati_vOES", "opengl") + (delegate* unmanaged)( + _slots[932] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[932] = nativeContext.LoadFunction("glGetFloati_vOES", "opengl") + ) )(target, index, data); [SupportedApiProfile("gles2", ["GL_OES_viewport_array"])] @@ -474504,8 +478208,11 @@ void IGL.GetFloatIndexedEXT( [NativeTypeName("GLfloat *")] float* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFloatIndexedvEXT", "opengl") + (delegate* unmanaged)( + _slots[933] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[933] = nativeContext.LoadFunction("glGetFloatIndexedvEXT", "opengl") + ) )(target, index, data); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -474548,8 +478255,11 @@ void IGL.GetFloat( [NativeTypeName("GLfloat *")] float* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFloatv", "opengl") + (delegate* unmanaged)( + _slots[934] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[934] = nativeContext.LoadFunction("glGetFloatv", "opengl") + ) )(pname, data); [SupportedApiProfile( @@ -474694,8 +478404,11 @@ public static void GetFloat( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GetFogFuncSGIS([NativeTypeName("GLfloat *")] float* points) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFogFuncSGIS", "opengl") + (delegate* unmanaged)( + _slots[935] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[935] = nativeContext.LoadFunction("glGetFogFuncSGIS", "opengl") + ) )(points); [SupportedApiProfile("gl", ["GL_SGIS_fog_function"])] @@ -474726,8 +478439,11 @@ int IGL.GetFragDataIndex( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFragDataIndex", "opengl") + (delegate* unmanaged)( + _slots[936] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[936] = nativeContext.LoadFunction("glGetFragDataIndex", "opengl") + ) )(program, name); [return: NativeTypeName("GLint")] @@ -474825,8 +478541,11 @@ int IGL.GetFragDataIndexEXT( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFragDataIndexEXT", "opengl") + (delegate* unmanaged)( + _slots[937] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[937] = nativeContext.LoadFunction("glGetFragDataIndexEXT", "opengl") + ) )(program, name); [return: NativeTypeName("GLint")] @@ -474866,8 +478585,11 @@ int IGL.GetFragDataLocation( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFragDataLocation", "opengl") + (delegate* unmanaged)( + _slots[938] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[938] = nativeContext.LoadFunction("glGetFragDataLocation", "opengl") + ) )(program, name); [return: NativeTypeName("GLint")] @@ -474973,8 +478695,11 @@ int IGL.GetFragDataLocationEXT( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFragDataLocationEXT", "opengl") + (delegate* unmanaged)( + _slots[939] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[939] = nativeContext.LoadFunction("glGetFragDataLocationEXT", "opengl") + ) )(program, name); [return: NativeTypeName("GLint")] @@ -475015,8 +478740,11 @@ void IGL.GetFragmentLightSGIX( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFragmentLightfvSGIX", "opengl") + (delegate* unmanaged)( + _slots[940] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[940] = nativeContext.LoadFunction("glGetFragmentLightfvSGIX", "opengl") + ) )(light, pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -475058,8 +478786,11 @@ void IGL.GetFragmentLightSGIX( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFragmentLightivSGIX", "opengl") + (delegate* unmanaged)( + _slots[941] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[941] = nativeContext.LoadFunction("glGetFragmentLightivSGIX", "opengl") + ) )(light, pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -475101,8 +478832,14 @@ void IGL.GetFragmentMaterialSGIX( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFragmentMaterialfvSGIX", "opengl") + (delegate* unmanaged)( + _slots[942] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[942] = nativeContext.LoadFunction( + "glGetFragmentMaterialfvSGIX", + "opengl" + ) + ) )(face, pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -475144,8 +478881,14 @@ void IGL.GetFragmentMaterialSGIX( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFragmentMaterialivSGIX", "opengl") + (delegate* unmanaged)( + _slots[943] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[943] = nativeContext.LoadFunction( + "glGetFragmentMaterialivSGIX", + "opengl" + ) + ) )(face, pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -475188,8 +478931,14 @@ void IGL.GetFragmentShadingRatesEXT( [NativeTypeName("GLenum *")] uint* shadingRates ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFragmentShadingRatesEXT", "opengl") + (delegate* unmanaged)( + _slots[944] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[944] = nativeContext.LoadFunction( + "glGetFragmentShadingRatesEXT", + "opengl" + ) + ) )(samples, maxCount, count, shadingRates); [SupportedApiProfile("gles2", ["GL_EXT_fragment_shading_rate"])] @@ -475326,8 +479075,14 @@ void IGL.GetFramebufferAttachmentParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFramebufferAttachmentParameteriv", "opengl") + (delegate* unmanaged)( + _slots[945] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[945] = nativeContext.LoadFunction( + "glGetFramebufferAttachmentParameteriv", + "opengl" + ) + ) )(target, attachment, pname, @params); [SupportedApiProfile( @@ -475458,8 +479213,14 @@ void IGL.GetFramebufferAttachmentParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFramebufferAttachmentParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[946] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[946] = nativeContext.LoadFunction( + "glGetFramebufferAttachmentParameterivEXT", + "opengl" + ) + ) )(target, attachment, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -475510,8 +479271,14 @@ void IGL.GetFramebufferAttachmentParameterOES( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFramebufferAttachmentParameterivOES", "opengl") + (delegate* unmanaged)( + _slots[947] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[947] = nativeContext.LoadFunction( + "glGetFramebufferAttachmentParameterivOES", + "opengl" + ) + ) )(target, attachment, pname, @params); [SupportedApiProfile("gles1", ["GL_OES_framebuffer_object"])] @@ -475564,8 +479331,14 @@ void IGL.GetFramebufferParameterAMD( [NativeTypeName("GLfloat *")] float* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFramebufferParameterfvAMD", "opengl") + (delegate* unmanaged)( + _slots[948] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[948] = nativeContext.LoadFunction( + "glGetFramebufferParameterfvAMD", + "opengl" + ) + ) )(target, pname, numsamples, pixelindex, size, values); [SupportedApiProfile("gl", ["GL_AMD_framebuffer_sample_positions"])] @@ -475623,8 +479396,14 @@ void IGL.GetFramebufferParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFramebufferParameteriv", "opengl") + (delegate* unmanaged)( + _slots[949] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[949] = nativeContext.LoadFunction( + "glGetFramebufferParameteriv", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile( @@ -475708,8 +479487,14 @@ void IGL.GetFramebufferParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFramebufferParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[950] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[950] = nativeContext.LoadFunction( + "glGetFramebufferParameterivEXT", + "opengl" + ) + ) )(framebuffer, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -475753,8 +479538,14 @@ void IGL.GetFramebufferParameterMESA( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFramebufferParameterivMESA", "opengl") + (delegate* unmanaged)( + _slots[951] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[951] = nativeContext.LoadFunction( + "glGetFramebufferParameterivMESA", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_MESA_framebuffer_flip_y"])] @@ -475796,8 +479587,14 @@ public static void GetFramebufferParameterMESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.GetFramebufferPixelLocalStorageSizeEXT([NativeTypeName("GLuint")] uint target) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetFramebufferPixelLocalStorageSizeEXT", "opengl") + (delegate* unmanaged)( + _slots[952] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[952] = nativeContext.LoadFunction( + "glGetFramebufferPixelLocalStorageSizeEXT", + "opengl" + ) + ) )(target); [return: NativeTypeName("GLsizei")] @@ -475860,8 +479657,14 @@ public static Constant GetGraphicsResetStatus [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.GetGraphicsResetStatusARBRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetGraphicsResetStatusARB", "opengl") + (delegate* unmanaged)( + _slots[954] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[954] = nativeContext.LoadFunction( + "glGetGraphicsResetStatusARB", + "opengl" + ) + ) )(); [return: NativeTypeName("GLenum")] @@ -475888,8 +479691,14 @@ public static Constant GetGraphicsResetStatus [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.GetGraphicsResetStatusEXTRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetGraphicsResetStatusEXT", "opengl") + (delegate* unmanaged)( + _slots[955] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[955] = nativeContext.LoadFunction( + "glGetGraphicsResetStatusEXT", + "opengl" + ) + ) )(); [return: NativeTypeName("GLenum")] @@ -475915,8 +479724,14 @@ public static Constant GetGraphicsResetStatus [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.GetGraphicsResetStatusKHRRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetGraphicsResetStatusKHR", "opengl") + (delegate* unmanaged)( + _slots[956] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[956] = nativeContext.LoadFunction( + "glGetGraphicsResetStatusKHR", + "opengl" + ) + ) )(); [return: NativeTypeName("GLenum")] @@ -475928,8 +479743,11 @@ uint IGL.GetGraphicsResetStatusKHRRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.GetGraphicsResetStatusRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetGraphicsResetStatus", "opengl") + (delegate* unmanaged)( + _slots[953] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[953] = nativeContext.LoadFunction("glGetGraphicsResetStatus", "opengl") + ) )(); [return: NativeTypeName("GLenum")] @@ -475949,9 +479767,13 @@ uint IGL.GetGraphicsResetStatusRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.GetHandleARB([NativeTypeName("GLenum")] uint pname) => - ((delegate* unmanaged)nativeContext.LoadFunction("glGetHandleARB", "opengl"))( - pname - ); + ( + (delegate* unmanaged)( + _slots[957] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[957] = nativeContext.LoadFunction("glGetHandleARB", "opengl") + ) + )(pname); [return: NativeTypeName("GLhandleARB")] [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -475982,8 +479804,11 @@ void IGL.GetHistogram( void* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetHistogram", "opengl") + (delegate* unmanaged)( + _slots[958] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[958] = nativeContext.LoadFunction("glGetHistogram", "opengl") + ) )(target, reset, format, type, values); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -476039,8 +479864,11 @@ void IGL.GetHistogramEXT( void* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetHistogramEXT", "opengl") + (delegate* unmanaged)( + _slots[959] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[959] = nativeContext.LoadFunction("glGetHistogramEXT", "opengl") + ) )(target, reset, format, type, values); [SupportedApiProfile("gl", ["GL_EXT_histogram"])] @@ -476094,8 +479922,14 @@ void IGL.GetHistogramParameter( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetHistogramParameterfv", "opengl") + (delegate* unmanaged)( + _slots[960] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[960] = nativeContext.LoadFunction( + "glGetHistogramParameterfv", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -476137,8 +479971,14 @@ void IGL.GetHistogramParameterEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetHistogramParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[961] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[961] = nativeContext.LoadFunction( + "glGetHistogramParameterfvEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_histogram"])] @@ -476180,8 +480020,14 @@ void IGL.GetHistogramParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetHistogramParameteriv", "opengl") + (delegate* unmanaged)( + _slots[962] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[962] = nativeContext.LoadFunction( + "glGetHistogramParameteriv", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -476223,8 +480069,14 @@ void IGL.GetHistogramParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetHistogramParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[963] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[963] = nativeContext.LoadFunction( + "glGetHistogramParameterivEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_histogram"])] @@ -476266,8 +480118,14 @@ void IGL.GetHistogramParameterxOES( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetHistogramParameterxvOES", "opengl") + (delegate* unmanaged)( + _slots[964] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[964] = nativeContext.LoadFunction( + "glGetHistogramParameterxvOES", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -476311,8 +480169,11 @@ ulong IGL.GetImageHandleARB( [NativeTypeName("GLenum")] uint format ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetImageHandleARB", "opengl") + (delegate* unmanaged)( + _slots[965] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[965] = nativeContext.LoadFunction("glGetImageHandleARB", "opengl") + ) )(texture, level, layered, layer, format); [return: NativeTypeName("GLuint64")] @@ -476360,8 +480221,11 @@ ulong IGL.GetImageHandleNV( [NativeTypeName("GLenum")] uint format ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetImageHandleNV", "opengl") + (delegate* unmanaged)( + _slots[966] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[966] = nativeContext.LoadFunction("glGetImageHandleNV", "opengl") + ) )(texture, level, layered, layer, format); [return: NativeTypeName("GLuint64")] @@ -476409,8 +480273,14 @@ void IGL.GetImageTransformParameterHP( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetImageTransformParameterfvHP", "opengl") + (delegate* unmanaged)( + _slots[967] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[967] = nativeContext.LoadFunction( + "glGetImageTransformParameterfvHP", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_HP_image_transform"])] @@ -476452,8 +480322,14 @@ void IGL.GetImageTransformParameterHP( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetImageTransformParameterivHP", "opengl") + (delegate* unmanaged)( + _slots[968] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[968] = nativeContext.LoadFunction( + "glGetImageTransformParameterivHP", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_HP_image_transform"])] @@ -476496,8 +480372,11 @@ void IGL.GetInfoLogARB( [NativeTypeName("GLcharARB *")] sbyte* infoLog ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetInfoLogARB", "opengl") + (delegate* unmanaged)( + _slots[969] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[969] = nativeContext.LoadFunction("glGetInfoLogARB", "opengl") + ) )(obj, maxLength, length, infoLog); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -476561,7 +480440,13 @@ public static sbyte GetInfoLogARB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int IGL.GetInstrumentsSGIX() => - ((delegate* unmanaged)nativeContext.LoadFunction("glGetInstrumentsSGIX", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[970] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[970] = nativeContext.LoadFunction("glGetInstrumentsSGIX", "opengl") + ) + )(); [return: NativeTypeName("GLint")] [SupportedApiProfile("gl", ["GL_SGIX_instruments"])] @@ -476576,8 +480461,11 @@ void IGL.GetInteger64( [NativeTypeName("GLint64 *")] long* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetInteger64i_v", "opengl") + (delegate* unmanaged)( + _slots[971] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[971] = nativeContext.LoadFunction("glGetInteger64i_v", "opengl") + ) )(target, index, data); [SupportedApiProfile( @@ -476676,8 +480564,11 @@ void IGL.GetInteger64( [NativeTypeName("GLint64 *")] long* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetInteger64v", "opengl") + (delegate* unmanaged)( + _slots[972] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[972] = nativeContext.LoadFunction("glGetInteger64v", "opengl") + ) )(pname, data); [SupportedApiProfile( @@ -476777,8 +480668,11 @@ void IGL.GetInteger64Apple( [NativeTypeName("GLint64 *")] long* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetInteger64vAPPLE", "opengl") + (delegate* unmanaged)( + _slots[973] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[973] = nativeContext.LoadFunction("glGetInteger64vAPPLE", "opengl") + ) )(pname, @params); [SupportedApiProfile("gles2", ["GL_APPLE_sync"])] @@ -476818,8 +480712,11 @@ void IGL.GetInteger64EXT( [NativeTypeName("GLint64 *")] long* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetInteger64vEXT", "opengl") + (delegate* unmanaged)( + _slots[974] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[974] = nativeContext.LoadFunction("glGetInteger64vEXT", "opengl") + ) )(pname, data); [SupportedApiProfile("gles2", ["GL_EXT_disjoint_timer_query"])] @@ -476858,8 +480755,11 @@ void IGL.GetInteger( [NativeTypeName("GLint *")] int* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetIntegeri_v", "opengl") + (delegate* unmanaged)( + _slots[975] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[975] = nativeContext.LoadFunction("glGetIntegeri_v", "opengl") + ) )(target, index, data); [SupportedApiProfile( @@ -476971,8 +480871,11 @@ void IGL.GetIntegerEXT( [NativeTypeName("GLint *")] int* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetIntegeri_vEXT", "opengl") + (delegate* unmanaged)( + _slots[976] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[976] = nativeContext.LoadFunction("glGetIntegeri_vEXT", "opengl") + ) )(target, index, data); [SupportedApiProfile("gles2", ["GL_EXT_multiview_draw_buffers"])] @@ -477014,8 +480917,11 @@ void IGL.GetIntegerIndexedEXT( [NativeTypeName("GLint *")] int* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetIntegerIndexedvEXT", "opengl") + (delegate* unmanaged)( + _slots[977] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[977] = nativeContext.LoadFunction("glGetIntegerIndexedvEXT", "opengl") + ) )(target, index, data); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_draw_buffers2"])] @@ -477059,8 +480965,11 @@ void IGL.GetIntegerui64NV( [NativeTypeName("GLuint64EXT *")] ulong* result ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetIntegerui64i_vNV", "opengl") + (delegate* unmanaged)( + _slots[978] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[978] = nativeContext.LoadFunction("glGetIntegerui64i_vNV", "opengl") + ) )(value, index, result); [SupportedApiProfile("gl", ["GL_NV_vertex_buffer_unified_memory"])] @@ -477119,8 +481028,11 @@ void IGL.GetIntegerNV( [NativeTypeName("GLuint64EXT *")] ulong* result ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetIntegerui64vNV", "opengl") + (delegate* unmanaged)( + _slots[979] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[979] = nativeContext.LoadFunction("glGetIntegerui64vNV", "opengl") + ) )(value, result); [SupportedApiProfile("gl", ["GL_NV_shader_buffer_load"])] @@ -477175,8 +481087,11 @@ void IGL.GetInteger( [NativeTypeName("GLint *")] int* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetIntegerv", "opengl") + (delegate* unmanaged)( + _slots[980] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[980] = nativeContext.LoadFunction("glGetIntegerv", "opengl") + ) )(pname, data); [SupportedApiProfile( @@ -477327,8 +481242,11 @@ void IGL.GetInternalformati64V( [NativeTypeName("GLint64 *")] long* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetInternalformati64v", "opengl") + (delegate* unmanaged)( + _slots[981] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[981] = nativeContext.LoadFunction("glGetInternalformati64v", "opengl") + ) )(target, internalformat, pname, count, @params); [SupportedApiProfile( @@ -477475,8 +481393,11 @@ void IGL.GetInternalformat( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetInternalformativ", "opengl") + (delegate* unmanaged)( + _slots[982] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[982] = nativeContext.LoadFunction("glGetInternalformativ", "opengl") + ) )(target, internalformat, pname, count, @params); [SupportedApiProfile( @@ -477630,8 +481551,14 @@ void IGL.GetInternalformatSampleNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetInternalformatSampleivNV", "opengl") + (delegate* unmanaged)( + _slots[983] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[983] = nativeContext.LoadFunction( + "glGetInternalformatSampleivNV", + "opengl" + ) + ) )(target, internalformat, samples, pname, count, @params); [SupportedApiProfile("gl", ["GL_NV_internalformat_sample_query"])] @@ -477742,8 +481669,14 @@ void IGL.GetInvariantBooleanEXT( [NativeTypeName("GLboolean *")] uint* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetInvariantBooleanvEXT", "opengl") + (delegate* unmanaged)( + _slots[984] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[984] = nativeContext.LoadFunction( + "glGetInvariantBooleanvEXT", + "opengl" + ) + ) )(id, value, data); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -477803,8 +481736,11 @@ void IGL.GetInvariantFloatEXT( [NativeTypeName("GLfloat *")] float* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetInvariantFloatvEXT", "opengl") + (delegate* unmanaged)( + _slots[985] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[985] = nativeContext.LoadFunction("glGetInvariantFloatvEXT", "opengl") + ) )(id, value, data); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -477864,8 +481800,14 @@ void IGL.GetInvariantIntegerEXT( [NativeTypeName("GLint *")] int* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetInvariantIntegervEXT", "opengl") + (delegate* unmanaged)( + _slots[986] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[986] = nativeContext.LoadFunction( + "glGetInvariantIntegervEXT", + "opengl" + ) + ) )(id, value, data); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -477925,8 +481867,11 @@ void IGL.GetLight( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetLightfv", "opengl") + (delegate* unmanaged)( + _slots[987] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[987] = nativeContext.LoadFunction("glGetLightfv", "opengl") + ) )(light, pname, @params); [SupportedApiProfile( @@ -478018,8 +481963,11 @@ void IGL.GetLight( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetLightiv", "opengl") + (delegate* unmanaged)( + _slots[988] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[988] = nativeContext.LoadFunction("glGetLightiv", "opengl") + ) )(light, pname, @params); [SupportedApiProfile( @@ -478109,8 +482057,11 @@ void IGL.GetLightxOES( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetLightxOES", "opengl") + (delegate* unmanaged)( + _slots[989] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[989] = nativeContext.LoadFunction("glGetLightxOES", "opengl") + ) )(light, pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -478152,8 +482103,11 @@ void IGL.GetLightx( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetLightxv", "opengl") + (delegate* unmanaged)( + _slots[990] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[990] = nativeContext.LoadFunction("glGetLightxv", "opengl") + ) )(light, pname, @params); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -478195,8 +482149,11 @@ void IGL.GetLightxvOES( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetLightxvOES", "opengl") + (delegate* unmanaged)( + _slots[991] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[991] = nativeContext.LoadFunction("glGetLightxvOES", "opengl") + ) )(light, pname, @params); [SupportedApiProfile("gles1", ["GL_OES_fixed_point"])] @@ -478238,8 +482195,11 @@ void IGL.GetListParameterSGIX( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetListParameterfvSGIX", "opengl") + (delegate* unmanaged)( + _slots[992] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[992] = nativeContext.LoadFunction("glGetListParameterfvSGIX", "opengl") + ) )(list, pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_list_priority"])] @@ -478281,8 +482241,11 @@ void IGL.GetListParameterSGIX( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetListParameterivSGIX", "opengl") + (delegate* unmanaged)( + _slots[993] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[993] = nativeContext.LoadFunction("glGetListParameterivSGIX", "opengl") + ) )(list, pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_list_priority"])] @@ -478324,8 +482287,14 @@ void IGL.GetLocalConstantBooleanEXT( [NativeTypeName("GLboolean *")] uint* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetLocalConstantBooleanvEXT", "opengl") + (delegate* unmanaged)( + _slots[994] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[994] = nativeContext.LoadFunction( + "glGetLocalConstantBooleanvEXT", + "opengl" + ) + ) )(id, value, data); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -478385,8 +482354,14 @@ void IGL.GetLocalConstantFloatEXT( [NativeTypeName("GLfloat *")] float* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetLocalConstantFloatvEXT", "opengl") + (delegate* unmanaged)( + _slots[995] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[995] = nativeContext.LoadFunction( + "glGetLocalConstantFloatvEXT", + "opengl" + ) + ) )(id, value, data); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -478446,8 +482421,14 @@ void IGL.GetLocalConstantIntegerEXT( [NativeTypeName("GLint *")] int* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetLocalConstantIntegervEXT", "opengl") + (delegate* unmanaged)( + _slots[996] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[996] = nativeContext.LoadFunction( + "glGetLocalConstantIntegervEXT", + "opengl" + ) + ) )(id, value, data); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -478508,8 +482489,14 @@ void IGL.GetMapAttribParameterNV( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMapAttribParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[997] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[997] = nativeContext.LoadFunction( + "glGetMapAttribParameterfvNV", + "opengl" + ) + ) )(target, index, pname, @params); [SupportedApiProfile("gl", ["GL_NV_evaluators"])] @@ -478555,8 +482542,14 @@ void IGL.GetMapAttribParameterNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMapAttribParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[998] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[998] = nativeContext.LoadFunction( + "glGetMapAttribParameterivNV", + "opengl" + ) + ) )(target, index, pname, @params); [SupportedApiProfile("gl", ["GL_NV_evaluators"])] @@ -478605,8 +482598,11 @@ void IGL.GetMapControlPointsNV( void* points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMapControlPointsNV", "opengl") + (delegate* unmanaged)( + _slots[999] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[999] = nativeContext.LoadFunction("glGetMapControlPointsNV", "opengl") + ) )(target, index, type, ustride, vstride, packed, points); [SupportedApiProfile("gl", ["GL_NV_evaluators"])] @@ -478668,8 +482664,11 @@ void IGL.GetMap( [NativeTypeName("GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMapdv", "opengl") + (delegate* unmanaged)( + _slots[1000] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1000] = nativeContext.LoadFunction("glGetMapdv", "opengl") + ) )(target, query, v); [SupportedApiProfile( @@ -478759,8 +482758,11 @@ void IGL.GetMap( [NativeTypeName("GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMapfv", "opengl") + (delegate* unmanaged)( + _slots[1001] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1001] = nativeContext.LoadFunction("glGetMapfv", "opengl") + ) )(target, query, v); [SupportedApiProfile( @@ -478850,8 +482852,11 @@ void IGL.GetMap( [NativeTypeName("GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMapiv", "opengl") + (delegate* unmanaged)( + _slots[1002] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1002] = nativeContext.LoadFunction("glGetMapiv", "opengl") + ) )(target, query, v); [SupportedApiProfile( @@ -478941,8 +482946,11 @@ void IGL.GetMapParameterNV( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMapParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[1003] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1003] = nativeContext.LoadFunction("glGetMapParameterfvNV", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_NV_evaluators"])] @@ -478984,8 +482992,11 @@ void IGL.GetMapParameterNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMapParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[1004] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1004] = nativeContext.LoadFunction("glGetMapParameterivNV", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_NV_evaluators"])] @@ -479027,8 +483038,11 @@ void IGL.GetMapxOES( [NativeTypeName("GLfixed *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMapxvOES", "opengl") + (delegate* unmanaged)( + _slots[1005] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1005] = nativeContext.LoadFunction("glGetMapxvOES", "opengl") + ) )(target, query, v); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -479070,8 +483084,11 @@ void IGL.GetMaterial( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMaterialfv", "opengl") + (delegate* unmanaged)( + _slots[1006] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1006] = nativeContext.LoadFunction("glGetMaterialfv", "opengl") + ) )(face, pname, @params); [SupportedApiProfile( @@ -479163,8 +483180,11 @@ void IGL.GetMaterial( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMaterialiv", "opengl") + (delegate* unmanaged)( + _slots[1007] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1007] = nativeContext.LoadFunction("glGetMaterialiv", "opengl") + ) )(face, pname, @params); [SupportedApiProfile( @@ -479254,8 +483274,11 @@ void IGL.GetMaterialxOES( [NativeTypeName("GLfixed")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMaterialxOES", "opengl") + (delegate* unmanaged)( + _slots[1008] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1008] = nativeContext.LoadFunction("glGetMaterialxOES", "opengl") + ) )(face, pname, param2); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -479291,8 +483314,11 @@ void IGL.GetMaterialx( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMaterialxv", "opengl") + (delegate* unmanaged)( + _slots[1009] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1009] = nativeContext.LoadFunction("glGetMaterialxv", "opengl") + ) )(face, pname, @params); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -479334,8 +483360,11 @@ void IGL.GetMaterialxOES( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMaterialxvOES", "opengl") + (delegate* unmanaged)( + _slots[1010] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1010] = nativeContext.LoadFunction("glGetMaterialxvOES", "opengl") + ) )(face, pname, @params); [SupportedApiProfile("gles1", ["GL_OES_fixed_point"])] @@ -479379,8 +483408,14 @@ void IGL.GetMemoryObjectDetachedResourcesNV( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMemoryObjectDetachedResourcesuivNV", "opengl") + (delegate* unmanaged)( + _slots[1011] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1011] = nativeContext.LoadFunction( + "glGetMemoryObjectDetachedResourcesuivNV", + "opengl" + ) + ) )(memory, pname, first, count, @params); [SupportedApiProfile("gl", ["GL_NV_memory_attachment"])] @@ -479438,8 +483473,14 @@ void IGL.GetMemoryObjectParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMemoryObjectParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1012] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1012] = nativeContext.LoadFunction( + "glGetMemoryObjectParameterivEXT", + "opengl" + ) + ) )(memoryObject, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -479485,8 +483526,11 @@ void IGL.GetMinmax( void* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMinmax", "opengl") + (delegate* unmanaged)( + _slots[1013] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1013] = nativeContext.LoadFunction("glGetMinmax", "opengl") + ) )(target, reset, format, type, values); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -479542,8 +483586,11 @@ void IGL.GetMinmaxEXT( void* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMinmaxEXT", "opengl") + (delegate* unmanaged)( + _slots[1014] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1014] = nativeContext.LoadFunction("glGetMinmaxEXT", "opengl") + ) )(target, reset, format, type, values); [SupportedApiProfile("gl", ["GL_EXT_histogram"])] @@ -479597,8 +483644,11 @@ void IGL.GetMinmaxParameter( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMinmaxParameterfv", "opengl") + (delegate* unmanaged)( + _slots[1015] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1015] = nativeContext.LoadFunction("glGetMinmaxParameterfv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -479640,8 +483690,14 @@ void IGL.GetMinmaxParameterEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMinmaxParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1016] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1016] = nativeContext.LoadFunction( + "glGetMinmaxParameterfvEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_histogram"])] @@ -479683,8 +483739,11 @@ void IGL.GetMinmaxParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMinmaxParameteriv", "opengl") + (delegate* unmanaged)( + _slots[1017] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1017] = nativeContext.LoadFunction("glGetMinmaxParameteriv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -479726,8 +483785,14 @@ void IGL.GetMinmaxParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMinmaxParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1018] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1018] = nativeContext.LoadFunction( + "glGetMinmaxParameterivEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_histogram"])] @@ -479769,8 +483834,11 @@ void IGL.GetMultisample( [NativeTypeName("GLfloat *")] float* val ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultisamplefv", "opengl") + (delegate* unmanaged)( + _slots[1019] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1019] = nativeContext.LoadFunction("glGetMultisamplefv", "opengl") + ) )(pname, index, val); [SupportedApiProfile( @@ -479874,8 +483942,11 @@ void IGL.GetMultisampleNV( [NativeTypeName("GLfloat *")] float* val ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultisamplefvNV", "opengl") + (delegate* unmanaged)( + _slots[1020] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1020] = nativeContext.LoadFunction("glGetMultisamplefvNV", "opengl") + ) )(pname, index, val); [SupportedApiProfile("gl", ["GL_NV_explicit_multisample"])] @@ -479918,8 +483989,11 @@ void IGL.GetMultiTexEnvEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultiTexEnvfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1021] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1021] = nativeContext.LoadFunction("glGetMultiTexEnvfvEXT", "opengl") + ) )(texunit, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -479967,8 +484041,11 @@ void IGL.GetMultiTexEnvEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultiTexEnvivEXT", "opengl") + (delegate* unmanaged)( + _slots[1022] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1022] = nativeContext.LoadFunction("glGetMultiTexEnvivEXT", "opengl") + ) )(texunit, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480016,8 +484093,11 @@ void IGL.GetMultiTexGenEXT( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultiTexGendvEXT", "opengl") + (delegate* unmanaged)( + _slots[1023] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1023] = nativeContext.LoadFunction("glGetMultiTexGendvEXT", "opengl") + ) )(texunit, coord, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480065,8 +484145,11 @@ void IGL.GetMultiTexGenEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultiTexGenfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1024] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1024] = nativeContext.LoadFunction("glGetMultiTexGenfvEXT", "opengl") + ) )(texunit, coord, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480114,8 +484197,11 @@ void IGL.GetMultiTexGenEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultiTexGenivEXT", "opengl") + (delegate* unmanaged)( + _slots[1025] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1025] = nativeContext.LoadFunction("glGetMultiTexGenivEXT", "opengl") + ) )(texunit, coord, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480165,8 +484251,11 @@ void IGL.GetMultiTexImageEXT( void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultiTexImageEXT", "opengl") + (delegate* unmanaged)( + _slots[1026] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1026] = nativeContext.LoadFunction("glGetMultiTexImageEXT", "opengl") + ) )(texunit, target, level, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480228,8 +484317,14 @@ void IGL.GetMultiTexLevelParameterEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultiTexLevelParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1027] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1027] = nativeContext.LoadFunction( + "glGetMultiTexLevelParameterfvEXT", + "opengl" + ) + ) )(texunit, target, level, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480287,8 +484382,14 @@ void IGL.GetMultiTexLevelParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultiTexLevelParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1028] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1028] = nativeContext.LoadFunction( + "glGetMultiTexLevelParameterivEXT", + "opengl" + ) + ) )(texunit, target, level, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480345,8 +484446,14 @@ void IGL.GetMultiTexParameterEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultiTexParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1029] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1029] = nativeContext.LoadFunction( + "glGetMultiTexParameterfvEXT", + "opengl" + ) + ) )(texunit, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480399,8 +484506,14 @@ void IGL.GetMultiTexParameterIEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultiTexParameterIivEXT", "opengl") + (delegate* unmanaged)( + _slots[1030] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1030] = nativeContext.LoadFunction( + "glGetMultiTexParameterIivEXT", + "opengl" + ) + ) )(texunit, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480453,8 +484566,14 @@ void IGL.GetMultiTexParameterIEXT( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultiTexParameterIuivEXT", "opengl") + (delegate* unmanaged)( + _slots[1031] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1031] = nativeContext.LoadFunction( + "glGetMultiTexParameterIuivEXT", + "opengl" + ) + ) )(texunit, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480507,8 +484626,14 @@ void IGL.GetMultiTexParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetMultiTexParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1032] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1032] = nativeContext.LoadFunction( + "glGetMultiTexParameterivEXT", + "opengl" + ) + ) )(texunit, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480560,8 +484685,14 @@ void IGL.GetNamedBufferParameter( [NativeTypeName("GLint64 *")] long* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedBufferParameteri64v", "opengl") + (delegate* unmanaged)( + _slots[1033] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1033] = nativeContext.LoadFunction( + "glGetNamedBufferParameteri64v", + "opengl" + ) + ) )(buffer, pname, @params); [SupportedApiProfile( @@ -480621,8 +484752,14 @@ void IGL.GetNamedBufferParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedBufferParameteriv", "opengl") + (delegate* unmanaged)( + _slots[1034] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1034] = nativeContext.LoadFunction( + "glGetNamedBufferParameteriv", + "opengl" + ) + ) )(buffer, pname, @params); [SupportedApiProfile( @@ -480682,8 +484819,14 @@ void IGL.GetNamedBufferParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedBufferParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1035] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1035] = nativeContext.LoadFunction( + "glGetNamedBufferParameterivEXT", + "opengl" + ) + ) )(buffer, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480727,8 +484870,14 @@ void IGL.GetNamedBufferParameterNV( [NativeTypeName("GLuint64EXT *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedBufferParameterui64vNV", "opengl") + (delegate* unmanaged)( + _slots[1036] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1036] = nativeContext.LoadFunction( + "glGetNamedBufferParameterui64vNV", + "opengl" + ) + ) )(buffer, pname, @params); [SupportedApiProfile("gl", ["GL_NV_shader_buffer_load"])] @@ -480772,8 +484921,14 @@ void IGL.GetNamedBufferPointer( void** @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedBufferPointerv", "opengl") + (delegate* unmanaged)( + _slots[1037] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1037] = nativeContext.LoadFunction( + "glGetNamedBufferPointerv", + "opengl" + ) + ) )(buffer, pname, @params); [SupportedApiProfile( @@ -480833,8 +484988,14 @@ void IGL.GetNamedBufferPointerEXT( void** @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedBufferPointervEXT", "opengl") + (delegate* unmanaged)( + _slots[1038] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1038] = nativeContext.LoadFunction( + "glGetNamedBufferPointervEXT", + "opengl" + ) + ) )(buffer, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480879,8 +485040,11 @@ void IGL.GetNamedBufferSubData( void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedBufferSubData", "opengl") + (delegate* unmanaged)( + _slots[1039] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1039] = nativeContext.LoadFunction("glGetNamedBufferSubData", "opengl") + ) )(buffer, offset, size, data); [SupportedApiProfile( @@ -480944,8 +485108,14 @@ void IGL.GetNamedBufferSubDataEXT( void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedBufferSubDataEXT", "opengl") + (delegate* unmanaged)( + _slots[1040] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1040] = nativeContext.LoadFunction( + "glGetNamedBufferSubDataEXT", + "opengl" + ) + ) )(buffer, offset, size, data); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -480993,8 +485163,14 @@ void IGL.GetNamedFramebufferAttachmentParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedFramebufferAttachmentParameteriv", "opengl") + (delegate* unmanaged)( + _slots[1041] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1041] = nativeContext.LoadFunction( + "glGetNamedFramebufferAttachmentParameteriv", + "opengl" + ) + ) )(framebuffer, attachment, pname, @params); [SupportedApiProfile( @@ -481063,11 +485239,14 @@ void IGL.GetNamedFramebufferAttachmentParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction( - "glGetNamedFramebufferAttachmentParameterivEXT", - "opengl" - ) + (delegate* unmanaged)( + _slots[1042] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1042] = nativeContext.LoadFunction( + "glGetNamedFramebufferAttachmentParameterivEXT", + "opengl" + ) + ) )(framebuffer, attachment, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -481134,8 +485313,14 @@ void IGL.GetNamedFramebufferParameterAMD( [NativeTypeName("GLfloat *")] float* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedFramebufferParameterfvAMD", "opengl") + (delegate* unmanaged)( + _slots[1043] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1043] = nativeContext.LoadFunction( + "glGetNamedFramebufferParameterfvAMD", + "opengl" + ) + ) )(framebuffer, pname, numsamples, pixelindex, size, values); [SupportedApiProfile("gl", ["GL_AMD_framebuffer_sample_positions"])] @@ -481209,8 +485394,14 @@ void IGL.GetNamedFramebufferParameter( [NativeTypeName("GLint *")] int* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedFramebufferParameteriv", "opengl") + (delegate* unmanaged)( + _slots[1044] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1044] = nativeContext.LoadFunction( + "glGetNamedFramebufferParameteriv", + "opengl" + ) + ) )(framebuffer, pname, param2); [SupportedApiProfile( @@ -481270,8 +485461,14 @@ void IGL.GetNamedFramebufferParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedFramebufferParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1045] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1045] = nativeContext.LoadFunction( + "glGetNamedFramebufferParameterivEXT", + "opengl" + ) + ) )(framebuffer, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -481316,8 +485513,11 @@ void IGL.GetNamedProgramEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedProgramivEXT", "opengl") + (delegate* unmanaged)( + _slots[1046] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1046] = nativeContext.LoadFunction("glGetNamedProgramivEXT", "opengl") + ) )(program, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -481388,8 +485588,14 @@ void IGL.GetNamedProgramLocalParameterEXT( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedProgramLocalParameterdvEXT", "opengl") + (delegate* unmanaged)( + _slots[1047] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1047] = nativeContext.LoadFunction( + "glGetNamedProgramLocalParameterdvEXT", + "opengl" + ) + ) )(program, target, index, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -481442,8 +485648,14 @@ void IGL.GetNamedProgramLocalParameterEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedProgramLocalParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1048] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1048] = nativeContext.LoadFunction( + "glGetNamedProgramLocalParameterfvEXT", + "opengl" + ) + ) )(program, target, index, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -481496,8 +485708,14 @@ void IGL.GetNamedProgramLocalParameterIEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedProgramLocalParameterIivEXT", "opengl") + (delegate* unmanaged)( + _slots[1049] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1049] = nativeContext.LoadFunction( + "glGetNamedProgramLocalParameterIivEXT", + "opengl" + ) + ) )(program, target, index, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -481550,8 +485768,14 @@ void IGL.GetNamedProgramLocalParameterIEXT( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedProgramLocalParameterIuivEXT", "opengl") + (delegate* unmanaged)( + _slots[1050] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1050] = nativeContext.LoadFunction( + "glGetNamedProgramLocalParameterIuivEXT", + "opengl" + ) + ) )(program, target, index, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -481604,8 +485828,14 @@ void IGL.GetNamedProgramStringEXT( void* @string ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedProgramStringEXT", "opengl") + (delegate* unmanaged)( + _slots[1051] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1051] = nativeContext.LoadFunction( + "glGetNamedProgramStringEXT", + "opengl" + ) + ) )(program, target, pname, @string); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -481652,8 +485882,14 @@ void IGL.GetNamedRenderbufferParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedRenderbufferParameteriv", "opengl") + (delegate* unmanaged)( + _slots[1052] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1052] = nativeContext.LoadFunction( + "glGetNamedRenderbufferParameteriv", + "opengl" + ) + ) )(renderbuffer, pname, @params); [SupportedApiProfile( @@ -481713,8 +485949,14 @@ void IGL.GetNamedRenderbufferParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedRenderbufferParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1053] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1053] = nativeContext.LoadFunction( + "glGetNamedRenderbufferParameterivEXT", + "opengl" + ) + ) )(renderbuffer, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -481760,8 +486002,11 @@ void IGL.GetNamedStringARB( [NativeTypeName("GLchar *")] sbyte* @string ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedStringARB", "opengl") + (delegate* unmanaged)( + _slots[1054] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1054] = nativeContext.LoadFunction("glGetNamedStringARB", "opengl") + ) )(namelen, name, bufSize, stringlen, @string); [SupportedApiProfile("gl", ["GL_ARB_shading_language_include"])] @@ -481820,8 +486065,11 @@ void IGL.GetNamedStringARB( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNamedStringivARB", "opengl") + (delegate* unmanaged)( + _slots[1055] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1055] = nativeContext.LoadFunction("glGetNamedStringivARB", "opengl") + ) )(namelen, name, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_shading_language_include"])] @@ -481871,8 +486119,11 @@ void IGL.GetnColorTable( void* table ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnColorTable", "opengl") + (delegate* unmanaged)( + _slots[1056] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1056] = nativeContext.LoadFunction("glGetnColorTable", "opengl") + ) )(target, format, type, bufSize, table); [SupportedApiProfile("gl")] @@ -481928,8 +486179,11 @@ void IGL.GetnColorTableARB( void* table ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnColorTableARB", "opengl") + (delegate* unmanaged)( + _slots[1057] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1057] = nativeContext.LoadFunction("glGetnColorTableARB", "opengl") + ) )(target, format, type, bufSize, table); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -481984,8 +486238,14 @@ void IGL.GetnCompressedTexImage( void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnCompressedTexImage", "opengl") + (delegate* unmanaged)( + _slots[1058] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1058] = nativeContext.LoadFunction( + "glGetnCompressedTexImage", + "opengl" + ) + ) )(target, lod, bufSize, pixels); [SupportedApiProfile("gl", ["GL_VERSION_4_5", "GL_VERSION_4_6"], MinVersion = "4.5")] @@ -482033,8 +486293,14 @@ void IGL.GetnCompressedTexImageARB( void* img ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnCompressedTexImageARB", "opengl") + (delegate* unmanaged)( + _slots[1059] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1059] = nativeContext.LoadFunction( + "glGetnCompressedTexImageARB", + "opengl" + ) + ) )(target, lod, bufSize, img); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -482083,8 +486349,11 @@ void IGL.GetnConvolutionFilter( void* image ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnConvolutionFilter", "opengl") + (delegate* unmanaged)( + _slots[1060] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1060] = nativeContext.LoadFunction("glGetnConvolutionFilter", "opengl") + ) )(target, format, type, bufSize, image); [SupportedApiProfile("gl")] @@ -482140,8 +486409,14 @@ void IGL.GetnConvolutionFilterARB( void* image ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnConvolutionFilterARB", "opengl") + (delegate* unmanaged)( + _slots[1061] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1061] = nativeContext.LoadFunction( + "glGetnConvolutionFilterARB", + "opengl" + ) + ) )(target, format, type, bufSize, image); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -482194,8 +486469,14 @@ void IGL.GetNextPerfQueryIdIntel( [NativeTypeName("GLuint *")] uint* nextQueryId ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetNextPerfQueryIdINTEL", "opengl") + (delegate* unmanaged)( + _slots[1062] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1062] = nativeContext.LoadFunction( + "glGetNextPerfQueryIdINTEL", + "opengl" + ) + ) )(queryId, nextQueryId); [SupportedApiProfile("gl", ["GL_INTEL_performance_query"])] @@ -482257,8 +486538,11 @@ void IGL.GetnHistogram( void* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnHistogram", "opengl") + (delegate* unmanaged)( + _slots[1063] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1063] = nativeContext.LoadFunction("glGetnHistogram", "opengl") + ) )(target, reset, format, type, bufSize, values); [SupportedApiProfile("gl")] @@ -482319,8 +486603,11 @@ void IGL.GetnHistogramARB( void* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnHistogramARB", "opengl") + (delegate* unmanaged)( + _slots[1064] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1064] = nativeContext.LoadFunction("glGetnHistogramARB", "opengl") + ) )(target, reset, format, type, bufSize, values); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -482379,8 +486666,11 @@ void IGL.GetnMap( [NativeTypeName("GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnMapdv", "opengl") + (delegate* unmanaged)( + _slots[1065] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1065] = nativeContext.LoadFunction("glGetnMapdv", "opengl") + ) )(target, query, bufSize, v); [SupportedApiProfile("gl")] @@ -482446,8 +486736,11 @@ void IGL.GetnMapARB( [NativeTypeName("GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnMapdvARB", "opengl") + (delegate* unmanaged)( + _slots[1066] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1066] = nativeContext.LoadFunction("glGetnMapdvARB", "opengl") + ) )(target, query, bufSize, v); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -482493,8 +486786,11 @@ void IGL.GetnMap( [NativeTypeName("GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnMapfv", "opengl") + (delegate* unmanaged)( + _slots[1067] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1067] = nativeContext.LoadFunction("glGetnMapfv", "opengl") + ) )(target, query, bufSize, v); [SupportedApiProfile("gl")] @@ -482540,8 +486836,11 @@ void IGL.GetnMapfvARB( [NativeTypeName("GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnMapfvARB", "opengl") + (delegate* unmanaged)( + _slots[1068] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1068] = nativeContext.LoadFunction("glGetnMapfvARB", "opengl") + ) )(target, query, bufSize, v); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -482607,8 +486906,11 @@ void IGL.GetnMap( [NativeTypeName("GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnMapiv", "opengl") + (delegate* unmanaged)( + _slots[1069] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1069] = nativeContext.LoadFunction("glGetnMapiv", "opengl") + ) )(target, query, bufSize, v); [SupportedApiProfile("gl")] @@ -482654,8 +486956,11 @@ void IGL.GetnMapivARB( [NativeTypeName("GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnMapivARB", "opengl") + (delegate* unmanaged)( + _slots[1070] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1070] = nativeContext.LoadFunction("glGetnMapivARB", "opengl") + ) )(target, query, bufSize, v); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -482723,8 +487028,11 @@ void IGL.GetnMinmax( void* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnMinmax", "opengl") + (delegate* unmanaged)( + _slots[1071] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1071] = nativeContext.LoadFunction("glGetnMinmax", "opengl") + ) )(target, reset, format, type, bufSize, values); [SupportedApiProfile("gl")] @@ -482785,8 +487093,11 @@ void IGL.GetnMinmaxARB( void* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnMinmaxARB", "opengl") + (delegate* unmanaged)( + _slots[1072] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1072] = nativeContext.LoadFunction("glGetnMinmaxARB", "opengl") + ) )(target, reset, format, type, bufSize, values); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -482844,8 +487155,11 @@ void IGL.GetnPixelMap( [NativeTypeName("GLfloat *")] float* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnPixelMapfv", "opengl") + (delegate* unmanaged)( + _slots[1073] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1073] = nativeContext.LoadFunction("glGetnPixelMapfv", "opengl") + ) )(map, bufSize, values); [SupportedApiProfile("gl")] @@ -482903,8 +487217,11 @@ void IGL.GetnPixelMapARB( [NativeTypeName("GLfloat *")] float* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnPixelMapfvARB", "opengl") + (delegate* unmanaged)( + _slots[1074] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1074] = nativeContext.LoadFunction("glGetnPixelMapfvARB", "opengl") + ) )(map, bufSize, values); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -482946,8 +487263,11 @@ void IGL.GetnPixelMap( [NativeTypeName("GLuint *")] uint* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnPixelMapuiv", "opengl") + (delegate* unmanaged)( + _slots[1075] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1075] = nativeContext.LoadFunction("glGetnPixelMapuiv", "opengl") + ) )(map, bufSize, values); [SupportedApiProfile("gl")] @@ -482989,8 +487309,11 @@ void IGL.GetnPixelMapuivARB( [NativeTypeName("GLuint *")] uint* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnPixelMapuivARB", "opengl") + (delegate* unmanaged)( + _slots[1076] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1076] = nativeContext.LoadFunction("glGetnPixelMapuivARB", "opengl") + ) )(map, bufSize, values); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -483048,8 +487371,11 @@ void IGL.GetnPixelMap( [NativeTypeName("GLushort *")] ushort* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnPixelMapusv", "opengl") + (delegate* unmanaged)( + _slots[1077] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1077] = nativeContext.LoadFunction("glGetnPixelMapusv", "opengl") + ) )(map, bufSize, values); [SupportedApiProfile("gl")] @@ -483091,8 +487417,11 @@ void IGL.GetnPixelMapusvARB( [NativeTypeName("GLushort *")] ushort* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnPixelMapusvARB", "opengl") + (delegate* unmanaged)( + _slots[1078] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1078] = nativeContext.LoadFunction("glGetnPixelMapusvARB", "opengl") + ) )(map, bufSize, values); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -483149,8 +487478,11 @@ void IGL.GetnPolygonStipple( [NativeTypeName("GLubyte *")] byte* pattern ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnPolygonStipple", "opengl") + (delegate* unmanaged)( + _slots[1079] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1079] = nativeContext.LoadFunction("glGetnPolygonStipple", "opengl") + ) )(bufSize, pattern); [SupportedApiProfile("gl")] @@ -483202,8 +487534,11 @@ void IGL.GetnPolygonStippleARB( [NativeTypeName("GLubyte *")] byte* pattern ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnPolygonStippleARB", "opengl") + (delegate* unmanaged)( + _slots[1080] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1080] = nativeContext.LoadFunction("glGetnPolygonStippleARB", "opengl") + ) )(bufSize, pattern); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -483261,8 +487596,11 @@ void IGL.GetnSeparableFilter( void* span ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnSeparableFilter", "opengl") + (delegate* unmanaged)( + _slots[1081] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1081] = nativeContext.LoadFunction("glGetnSeparableFilter", "opengl") + ) )(target, format, type, rowBufSize, row, columnBufSize, column, span); [SupportedApiProfile("gl")] @@ -483355,8 +487693,14 @@ void IGL.GetnSeparableFilterARB( void* span ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnSeparableFilterARB", "opengl") + (delegate* unmanaged)( + _slots[1082] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1082] = nativeContext.LoadFunction( + "glGetnSeparableFilterARB", + "opengl" + ) + ) )(target, format, type, rowBufSize, row, columnBufSize, column, span); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -483447,8 +487791,11 @@ void IGL.GetnTexImage( void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnTexImage", "opengl") + (delegate* unmanaged)( + _slots[1083] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1083] = nativeContext.LoadFunction("glGetnTexImage", "opengl") + ) )(target, level, format, type, bufSize, pixels); [SupportedApiProfile("gl", ["GL_VERSION_4_5", "GL_VERSION_4_6"], MinVersion = "4.5")] @@ -483511,8 +487858,11 @@ void IGL.GetnTexImageARB( void* img ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnTexImageARB", "opengl") + (delegate* unmanaged)( + _slots[1084] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1084] = nativeContext.LoadFunction("glGetnTexImageARB", "opengl") + ) )(target, level, format, type, bufSize, img); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -483573,8 +487923,11 @@ void IGL.GetnUniform( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformdv", "opengl") + (delegate* unmanaged)( + _slots[1085] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1085] = nativeContext.LoadFunction("glGetnUniformdv", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile("gl", ["GL_VERSION_4_5", "GL_VERSION_4_6"], MinVersion = "4.5")] @@ -483622,8 +487975,11 @@ void IGL.GetnUniformARB( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformdvARB", "opengl") + (delegate* unmanaged)( + _slots[1086] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1086] = nativeContext.LoadFunction("glGetnUniformdvARB", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -483671,8 +488027,11 @@ void IGL.GetnUniform( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformfv", "opengl") + (delegate* unmanaged)( + _slots[1087] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1087] = nativeContext.LoadFunction("glGetnUniformfv", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile( @@ -483736,8 +488095,11 @@ void IGL.GetnUniformARB( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformfvARB", "opengl") + (delegate* unmanaged)( + _slots[1088] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1088] = nativeContext.LoadFunction("glGetnUniformfvARB", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -483785,8 +488147,11 @@ void IGL.GetnUniformEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1089] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1089] = nativeContext.LoadFunction("glGetnUniformfvEXT", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile("gles2", ["GL_EXT_robustness"])] @@ -483834,8 +488199,11 @@ void IGL.GetnUniformKHR( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformfvKHR", "opengl") + (delegate* unmanaged)( + _slots[1090] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1090] = nativeContext.LoadFunction("glGetnUniformfvKHR", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile("gles2", ["GL_KHR_robustness"])] @@ -483881,8 +488249,11 @@ void IGL.GetnUniformARB( [NativeTypeName("GLint64 *")] long* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformi64vARB", "opengl") + (delegate* unmanaged)( + _slots[1091] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1091] = nativeContext.LoadFunction("glGetnUniformi64vARB", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -483930,8 +488301,11 @@ void IGL.GetnUniform( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformiv", "opengl") + (delegate* unmanaged)( + _slots[1092] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1092] = nativeContext.LoadFunction("glGetnUniformiv", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile( @@ -483995,8 +488369,11 @@ void IGL.GetnUniformARB( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformivARB", "opengl") + (delegate* unmanaged)( + _slots[1093] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1093] = nativeContext.LoadFunction("glGetnUniformivARB", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -484044,8 +488421,11 @@ void IGL.GetnUniformEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformivEXT", "opengl") + (delegate* unmanaged)( + _slots[1094] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1094] = nativeContext.LoadFunction("glGetnUniformivEXT", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile("gles2", ["GL_EXT_robustness"])] @@ -484093,8 +488473,11 @@ void IGL.GetnUniformKHR( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformivKHR", "opengl") + (delegate* unmanaged)( + _slots[1095] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1095] = nativeContext.LoadFunction("glGetnUniformivKHR", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile("gles2", ["GL_KHR_robustness"])] @@ -484140,8 +488523,11 @@ void IGL.GetnUniformARB( [NativeTypeName("GLuint64 *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformui64vARB", "opengl") + (delegate* unmanaged)( + _slots[1096] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1096] = nativeContext.LoadFunction("glGetnUniformui64vARB", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -484189,8 +488575,11 @@ void IGL.GetnUniform( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformuiv", "opengl") + (delegate* unmanaged)( + _slots[1097] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1097] = nativeContext.LoadFunction("glGetnUniformuiv", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile( @@ -484254,8 +488643,11 @@ void IGL.GetnUniformARB( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformuivARB", "opengl") + (delegate* unmanaged)( + _slots[1098] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1098] = nativeContext.LoadFunction("glGetnUniformuivARB", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -484303,8 +488695,11 @@ void IGL.GetnUniformKHR( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetnUniformuivKHR", "opengl") + (delegate* unmanaged)( + _slots[1099] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1099] = nativeContext.LoadFunction("glGetnUniformuivKHR", "opengl") + ) )(program, location, bufSize, @params); [SupportedApiProfile("gles2", ["GL_KHR_robustness"])] @@ -484349,8 +488744,11 @@ void IGL.GetObjectBufferfvATI( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetObjectBufferfvATI", "opengl") + (delegate* unmanaged)( + _slots[1100] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1100] = nativeContext.LoadFunction("glGetObjectBufferfvATI", "opengl") + ) )(buffer, pname, @params); [SupportedApiProfile("gl", ["GL_ATI_vertex_array_object"])] @@ -484412,8 +488810,11 @@ void IGL.GetObjectBufferivATI( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetObjectBufferivATI", "opengl") + (delegate* unmanaged)( + _slots[1101] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1101] = nativeContext.LoadFunction("glGetObjectBufferivATI", "opengl") + ) )(buffer, pname, @params); [SupportedApiProfile("gl", ["GL_ATI_vertex_array_object"])] @@ -484477,8 +488878,11 @@ void IGL.GetObjectLabel( [NativeTypeName("GLchar *")] sbyte* label ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetObjectLabel", "opengl") + (delegate* unmanaged)( + _slots[1102] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1102] = nativeContext.LoadFunction("glGetObjectLabel", "opengl") + ) )(identifier, name, bufSize, length, label); [SupportedApiProfile( @@ -484581,8 +488985,11 @@ void IGL.GetObjectLabelEXT( [NativeTypeName("GLchar *")] sbyte* label ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetObjectLabelEXT", "opengl") + (delegate* unmanaged)( + _slots[1103] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1103] = nativeContext.LoadFunction("glGetObjectLabelEXT", "opengl") + ) )(type, @object, bufSize, length, label); [SupportedApiProfile("gl", ["GL_EXT_debug_label"])] @@ -484664,8 +489071,11 @@ void IGL.GetObjectLabelKHR( [NativeTypeName("GLchar *")] sbyte* label ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetObjectLabelKHR", "opengl") + (delegate* unmanaged)( + _slots[1104] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1104] = nativeContext.LoadFunction("glGetObjectLabelKHR", "opengl") + ) )(identifier, name, bufSize, length, label); [SupportedApiProfile("gles2", ["GL_KHR_debug"])] @@ -484739,8 +489149,14 @@ void IGL.GetObjectParameterfvARB( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetObjectParameterfvARB", "opengl") + (delegate* unmanaged)( + _slots[1105] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1105] = nativeContext.LoadFunction( + "glGetObjectParameterfvARB", + "opengl" + ) + ) )(obj, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -484798,8 +489214,14 @@ void IGL.GetObjectParameterApple( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetObjectParameterivAPPLE", "opengl") + (delegate* unmanaged)( + _slots[1106] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1106] = nativeContext.LoadFunction( + "glGetObjectParameterivAPPLE", + "opengl" + ) + ) )(objectType, name, pname, @params); [SupportedApiProfile("gl", ["GL_APPLE_object_purgeable"])] @@ -484864,8 +489286,14 @@ void IGL.GetObjectParameterivARB( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetObjectParameterivARB", "opengl") + (delegate* unmanaged)( + _slots[1107] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1107] = nativeContext.LoadFunction( + "glGetObjectParameterivARB", + "opengl" + ) + ) )(obj, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -484923,8 +489351,11 @@ void IGL.GetObjectPtrLabel( [NativeTypeName("GLchar *")] sbyte* label ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetObjectPtrLabel", "opengl") + (delegate* unmanaged)( + _slots[1108] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1108] = nativeContext.LoadFunction("glGetObjectPtrLabel", "opengl") + ) )(ptr, bufSize, length, label); [SupportedApiProfile( @@ -485023,8 +489454,11 @@ void IGL.GetObjectPtrLabelKHR( [NativeTypeName("GLchar *")] sbyte* label ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetObjectPtrLabelKHR", "opengl") + (delegate* unmanaged)( + _slots[1109] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1109] = nativeContext.LoadFunction("glGetObjectPtrLabelKHR", "opengl") + ) )(ptr, bufSize, length, label); [SupportedApiProfile("gles2", ["GL_KHR_debug"])] @@ -485095,8 +489529,11 @@ void IGL.GetOcclusionQueryNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetOcclusionQueryivNV", "opengl") + (delegate* unmanaged)( + _slots[1110] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1110] = nativeContext.LoadFunction("glGetOcclusionQueryivNV", "opengl") + ) )(id, pname, @params); [SupportedApiProfile("gl", ["GL_NV_occlusion_query"])] @@ -485138,8 +489575,14 @@ void IGL.GetOcclusionQueryNV( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetOcclusionQueryuivNV", "opengl") + (delegate* unmanaged)( + _slots[1111] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1111] = nativeContext.LoadFunction( + "glGetOcclusionQueryuivNV", + "opengl" + ) + ) )(id, pname, @params); [SupportedApiProfile("gl", ["GL_NV_occlusion_query"])] @@ -485181,8 +489624,11 @@ void IGL.GetPathColorGenNV( [NativeTypeName("GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathColorGenfvNV", "opengl") + (delegate* unmanaged)( + _slots[1112] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1112] = nativeContext.LoadFunction("glGetPathColorGenfvNV", "opengl") + ) )(color, pname, value); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -485224,8 +489670,11 @@ void IGL.GetPathColorGenNV( [NativeTypeName("GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathColorGenivNV", "opengl") + (delegate* unmanaged)( + _slots[1113] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1113] = nativeContext.LoadFunction("glGetPathColorGenivNV", "opengl") + ) )(color, pname, value); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -485266,8 +489715,11 @@ void IGL.GetPathCommandsNV( [NativeTypeName("GLubyte *")] byte* commands ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathCommandsNV", "opengl") + (delegate* unmanaged)( + _slots[1114] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1114] = nativeContext.LoadFunction("glGetPathCommandsNV", "opengl") + ) )(path, commands); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -485348,8 +489800,11 @@ void IGL.GetPathCoordsNV( [NativeTypeName("GLfloat *")] float* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathCoordsNV", "opengl") + (delegate* unmanaged)( + _slots[1115] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1115] = nativeContext.LoadFunction("glGetPathCoordsNV", "opengl") + ) )(path, coords); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -485407,8 +489862,11 @@ void IGL.GetPathDashArrayNV( [NativeTypeName("GLfloat *")] float* dashArray ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathDashArrayNV", "opengl") + (delegate* unmanaged)( + _slots[1116] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1116] = nativeContext.LoadFunction("glGetPathDashArrayNV", "opengl") + ) )(path, dashArray); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -485467,8 +489925,11 @@ float IGL.GetPathLengtNV( [NativeTypeName("GLsizei")] uint numSegments ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathLengthNV", "opengl") + (delegate* unmanaged)( + _slots[1117] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1117] = nativeContext.LoadFunction("glGetPathLengthNV", "opengl") + ) )(path, startSegment, numSegments); [return: NativeTypeName("GLfloat")] @@ -485492,8 +489953,11 @@ void IGL.GetPathMetricRangeNV( [NativeTypeName("GLfloat *")] float* metrics ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathMetricRangeNV", "opengl") + (delegate* unmanaged)( + _slots[1118] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1118] = nativeContext.LoadFunction("glGetPathMetricRangeNV", "opengl") + ) )(metricQueryMask, firstPathName, numPaths, stride, metrics); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -485555,8 +490019,11 @@ void IGL.GetPathMetricNV( [NativeTypeName("GLfloat *")] float* metrics ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathMetricsNV", "opengl") + (delegate* unmanaged)( + _slots[1119] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1119] = nativeContext.LoadFunction("glGetPathMetricsNV", "opengl") + ) )(metricQueryMask, numPaths, pathNameType, paths, pathBase, stride, metrics); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -485641,8 +490108,11 @@ void IGL.GetPathParameterNV( [NativeTypeName("GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[1120] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1120] = nativeContext.LoadFunction("glGetPathParameterfvNV", "opengl") + ) )(path, pname, value); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -485688,8 +490158,11 @@ void IGL.GetPathParameterNV( [NativeTypeName("GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[1121] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1121] = nativeContext.LoadFunction("glGetPathParameterivNV", "opengl") + ) )(path, pname, value); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -485741,8 +490214,11 @@ void IGL.GetPathSpacingNV( [NativeTypeName("GLfloat *")] float* returnedSpacing ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathSpacingNV", "opengl") + (delegate* unmanaged)( + _slots[1122] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1122] = nativeContext.LoadFunction("glGetPathSpacingNV", "opengl") + ) )( pathListMode, numPaths, @@ -485849,8 +490325,11 @@ void IGL.GetPathTexGenNV( [NativeTypeName("GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathTexGenfvNV", "opengl") + (delegate* unmanaged)( + _slots[1123] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1123] = nativeContext.LoadFunction("glGetPathTexGenfvNV", "opengl") + ) )(texCoordSet, pname, value); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -485892,8 +490371,11 @@ void IGL.GetPathTexGenNV( [NativeTypeName("GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPathTexGenivNV", "opengl") + (delegate* unmanaged)( + _slots[1124] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1124] = nativeContext.LoadFunction("glGetPathTexGenivNV", "opengl") + ) )(texCoordSet, pname, value); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -485955,8 +490437,14 @@ void IGL.GetPerfCounterInfoIntel( uint*, uint*, ulong*, - void>) - nativeContext.LoadFunction("glGetPerfCounterInfoINTEL", "opengl") + void>)( + _slots[1125] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1125] = nativeContext.LoadFunction( + "glGetPerfCounterInfoINTEL", + "opengl" + ) + ) )( queryId, counterId, @@ -486084,8 +490572,14 @@ void IGL.GetPerfMonitorCounterDataAMD( [NativeTypeName("GLint *")] int* bytesWritten ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPerfMonitorCounterDataAMD", "opengl") + (delegate* unmanaged)( + _slots[1126] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1126] = nativeContext.LoadFunction( + "glGetPerfMonitorCounterDataAMD", + "opengl" + ) + ) )(monitor, pname, dataSize, data, bytesWritten); [SupportedApiProfile("gl", ["GL_AMD_performance_monitor"])] @@ -486180,8 +490674,14 @@ void IGL.GetPerfMonitorCounterInfoAMD( void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPerfMonitorCounterInfoAMD", "opengl") + (delegate* unmanaged)( + _slots[1127] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1127] = nativeContext.LoadFunction( + "glGetPerfMonitorCounterInfoAMD", + "opengl" + ) + ) )(group, counter, pname, data); [SupportedApiProfile("gl", ["GL_AMD_performance_monitor"])] @@ -486232,8 +490732,14 @@ void IGL.GetPerfMonitorCountersAMD( [NativeTypeName("GLuint *")] uint* counters ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPerfMonitorCountersAMD", "opengl") + (delegate* unmanaged)( + _slots[1128] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1128] = nativeContext.LoadFunction( + "glGetPerfMonitorCountersAMD", + "opengl" + ) + ) )(group, numCounters, maxActiveCounters, counterSize, counters); [SupportedApiProfile("gl", ["GL_AMD_performance_monitor"])] @@ -486343,8 +490849,14 @@ void IGL.GetPerfMonitorCounterStringAMD( [NativeTypeName("GLchar *")] sbyte* counterString ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPerfMonitorCounterStringAMD", "opengl") + (delegate* unmanaged)( + _slots[1129] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1129] = nativeContext.LoadFunction( + "glGetPerfMonitorCounterStringAMD", + "opengl" + ) + ) )(group, counter, bufSize, length, counterString); [SupportedApiProfile("gl", ["GL_AMD_performance_monitor"])] @@ -486436,8 +490948,14 @@ void IGL.GetPerfMonitorGroupsAMD( [NativeTypeName("GLuint *")] uint* groups ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPerfMonitorGroupsAMD", "opengl") + (delegate* unmanaged)( + _slots[1130] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1130] = nativeContext.LoadFunction( + "glGetPerfMonitorGroupsAMD", + "opengl" + ) + ) )(numGroups, groupsSize, groups); [SupportedApiProfile("gl", ["GL_AMD_performance_monitor"])] @@ -486505,8 +491023,14 @@ void IGL.GetPerfMonitorGroupStringAMD( [NativeTypeName("GLchar *")] sbyte* groupString ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPerfMonitorGroupStringAMD", "opengl") + (delegate* unmanaged)( + _slots[1131] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1131] = nativeContext.LoadFunction( + "glGetPerfMonitorGroupStringAMD", + "opengl" + ) + ) )(group, bufSize, length, groupString); [SupportedApiProfile("gl", ["GL_AMD_performance_monitor"])] @@ -486588,8 +491112,11 @@ void IGL.GetPerfQueryDataIntel( [NativeTypeName("GLuint *")] uint* bytesWritten ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPerfQueryDataINTEL", "opengl") + (delegate* unmanaged)( + _slots[1132] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1132] = nativeContext.LoadFunction("glGetPerfQueryDataINTEL", "opengl") + ) )(queryHandle, flags, dataSize, data, bytesWritten); [SupportedApiProfile("gl", ["GL_INTEL_performance_query"])] @@ -486647,8 +491174,14 @@ void IGL.GetPerfQueryIdByNameIntel( [NativeTypeName("GLuint *")] uint* queryId ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPerfQueryIdByNameINTEL", "opengl") + (delegate* unmanaged)( + _slots[1133] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1133] = nativeContext.LoadFunction( + "glGetPerfQueryIdByNameINTEL", + "opengl" + ) + ) )(queryName, queryId); [SupportedApiProfile("gl", ["GL_INTEL_performance_query"])] @@ -486696,8 +491229,11 @@ void IGL.GetPerfQueryInfoIntel( [NativeTypeName("GLuint *")] uint* capsMask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPerfQueryInfoINTEL", "opengl") + (delegate* unmanaged)( + _slots[1134] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1134] = nativeContext.LoadFunction("glGetPerfQueryInfoINTEL", "opengl") + ) )(queryId, queryNameLength, queryName, dataSize, noCounters, noInstances, capsMask); [SupportedApiProfile("gl", ["GL_INTEL_performance_query"])] @@ -487018,8 +491554,11 @@ void IGL.GetPixelMap( [NativeTypeName("GLfloat *")] float* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPixelMapfv", "opengl") + (delegate* unmanaged)( + _slots[1135] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1135] = nativeContext.LoadFunction("glGetPixelMapfv", "opengl") + ) )(map, values); [SupportedApiProfile( @@ -487105,8 +491644,11 @@ void IGL.GetPixelMap( [NativeTypeName("GLuint *")] uint* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPixelMapuiv", "opengl") + (delegate* unmanaged)( + _slots[1136] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1136] = nativeContext.LoadFunction("glGetPixelMapuiv", "opengl") + ) )(map, values); [SupportedApiProfile( @@ -487192,8 +491734,11 @@ void IGL.GetPixelMap( [NativeTypeName("GLushort *")] ushort* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPixelMapusv", "opengl") + (delegate* unmanaged)( + _slots[1137] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1137] = nativeContext.LoadFunction("glGetPixelMapusv", "opengl") + ) )(map, values); [SupportedApiProfile( @@ -487280,8 +491825,11 @@ void IGL.GetPixelMapx( [NativeTypeName("GLfixed *")] int* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPixelMapxv", "opengl") + (delegate* unmanaged)( + _slots[1138] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1138] = nativeContext.LoadFunction("glGetPixelMapxv", "opengl") + ) )(map, size, values); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -487338,8 +491886,14 @@ void IGL.GetPixelTexGenParameterSGIS( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPixelTexGenParameterfvSGIS", "opengl") + (delegate* unmanaged)( + _slots[1139] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1139] = nativeContext.LoadFunction( + "glGetPixelTexGenParameterfvSGIS", + "opengl" + ) + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_SGIS_pixel_texture"])] @@ -487377,8 +491931,14 @@ void IGL.GetPixelTexGenParameterSGIS( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPixelTexGenParameterivSGIS", "opengl") + (delegate* unmanaged)( + _slots[1140] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1140] = nativeContext.LoadFunction( + "glGetPixelTexGenParameterivSGIS", + "opengl" + ) + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_SGIS_pixel_texture"])] @@ -487417,8 +491977,14 @@ void IGL.GetPixelTransformParameterfvEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPixelTransformParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1141] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1141] = nativeContext.LoadFunction( + "glGetPixelTransformParameterfvEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_pixel_transform"])] @@ -487475,8 +492041,14 @@ void IGL.GetPixelTransformParameterivEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPixelTransformParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1142] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1142] = nativeContext.LoadFunction( + "glGetPixelTransformParameterivEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_pixel_transform"])] @@ -487533,8 +492105,11 @@ void IGL.GetPointerEXT( void** @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPointeri_vEXT", "opengl") + (delegate* unmanaged)( + _slots[1143] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1143] = nativeContext.LoadFunction("glGetPointeri_vEXT", "opengl") + ) )(pname, index, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -487578,8 +492153,11 @@ void IGL.GetPointerIndexedEXT( void** data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPointerIndexedvEXT", "opengl") + (delegate* unmanaged)( + _slots[1144] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1144] = nativeContext.LoadFunction("glGetPointerIndexedvEXT", "opengl") + ) )(target, index, data); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -487619,8 +492197,11 @@ Ref2D data [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GetPointer([NativeTypeName("GLenum")] uint pname, void** @params) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPointerv", "opengl") + (delegate* unmanaged)( + _slots[1145] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1145] = nativeContext.LoadFunction("glGetPointerv", "opengl") + ) )(pname, @params); [SupportedApiProfile( @@ -487737,8 +492318,11 @@ Ref2D @params [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GetPointerEXT([NativeTypeName("GLenum")] uint pname, void** @params) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPointervEXT", "opengl") + (delegate* unmanaged)( + _slots[1146] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1146] = nativeContext.LoadFunction("glGetPointervEXT", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_EXT_vertex_array"])] @@ -487771,8 +492355,11 @@ Ref2D @params [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GetPointerKHR([NativeTypeName("GLenum")] uint pname, void** @params) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPointervKHR", "opengl") + (delegate* unmanaged)( + _slots[1147] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1147] = nativeContext.LoadFunction("glGetPointervKHR", "opengl") + ) )(pname, @params); [SupportedApiProfile("gles2", ["GL_KHR_debug"])] @@ -487800,8 +492387,11 @@ public static void GetPointerKHR([NativeTypeName("GLenum")] uint pname, Ref2D @p [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GetPolygonStipple([NativeTypeName("GLubyte *")] byte* mask) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetPolygonStipple", "opengl") + (delegate* unmanaged)( + _slots[1148] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1148] = nativeContext.LoadFunction("glGetPolygonStipple", "opengl") + ) )(mask); [SupportedApiProfile( @@ -487883,8 +492473,11 @@ void IGL.GetProgramBinary( void* binary ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramBinary", "opengl") + (delegate* unmanaged)( + _slots[1149] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1149] = nativeContext.LoadFunction("glGetProgramBinary", "opengl") + ) )(program, bufSize, length, binaryFormat, binary); [SupportedApiProfile( @@ -487992,8 +492585,11 @@ void IGL.GetProgramBinaryOES( void* binary ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramBinaryOES", "opengl") + (delegate* unmanaged)( + _slots[1150] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1150] = nativeContext.LoadFunction("glGetProgramBinaryOES", "opengl") + ) )(program, bufSize, length, binaryFormat, binary); [SupportedApiProfile("gles2", ["GL_OES_get_program_binary"])] @@ -488049,8 +492645,14 @@ void IGL.GetProgramEnvParameterARB( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramEnvParameterdvARB", "opengl") + (delegate* unmanaged)( + _slots[1151] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1151] = nativeContext.LoadFunction( + "glGetProgramEnvParameterdvARB", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -488092,8 +492694,14 @@ void IGL.GetProgramEnvParameterARB( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramEnvParameterfvARB", "opengl") + (delegate* unmanaged)( + _slots[1152] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1152] = nativeContext.LoadFunction( + "glGetProgramEnvParameterfvARB", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -488135,8 +492743,14 @@ void IGL.GetProgramEnvParameterINV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramEnvParameterIivNV", "opengl") + (delegate* unmanaged)( + _slots[1153] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1153] = nativeContext.LoadFunction( + "glGetProgramEnvParameterIivNV", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -488178,8 +492792,14 @@ void IGL.GetProgramEnvParameterINV( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramEnvParameterIuivNV", "opengl") + (delegate* unmanaged)( + _slots[1154] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1154] = nativeContext.LoadFunction( + "glGetProgramEnvParameterIuivNV", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -488222,8 +492842,11 @@ void IGL.GetProgramInfoLog( [NativeTypeName("GLchar *")] sbyte* infoLog ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramInfoLog", "opengl") + (delegate* unmanaged)( + _slots[1155] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1155] = nativeContext.LoadFunction("glGetProgramInfoLog", "opengl") + ) )(program, bufSize, length, infoLog); [SupportedApiProfile( @@ -488419,8 +493042,11 @@ void IGL.GetProgramInterface( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramInterfaceiv", "opengl") + (delegate* unmanaged)( + _slots[1156] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1156] = nativeContext.LoadFunction("glGetProgramInterfaceiv", "opengl") + ) )(program, programInterface, pname, @params); [SupportedApiProfile( @@ -488512,8 +493138,11 @@ void IGL.GetProgram( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramiv", "opengl") + (delegate* unmanaged)( + _slots[1157] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1157] = nativeContext.LoadFunction("glGetProgramiv", "opengl") + ) )(program, pname, @params); [SupportedApiProfile( @@ -488639,8 +493268,11 @@ void IGL.GetProgramARB( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramivARB", "opengl") + (delegate* unmanaged)( + _slots[1158] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1158] = nativeContext.LoadFunction("glGetProgramivARB", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -488702,8 +493334,11 @@ void IGL.GetProgramNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramivNV", "opengl") + (delegate* unmanaged)( + _slots[1159] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1159] = nativeContext.LoadFunction("glGetProgramivNV", "opengl") + ) )(id, pname, @params); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -488745,8 +493380,14 @@ void IGL.GetProgramLocalParameterARB( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramLocalParameterdvARB", "opengl") + (delegate* unmanaged)( + _slots[1160] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1160] = nativeContext.LoadFunction( + "glGetProgramLocalParameterdvARB", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -488788,8 +493429,14 @@ void IGL.GetProgramLocalParameterARB( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramLocalParameterfvARB", "opengl") + (delegate* unmanaged)( + _slots[1161] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1161] = nativeContext.LoadFunction( + "glGetProgramLocalParameterfvARB", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -488831,8 +493478,14 @@ void IGL.GetProgramLocalParameterINV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramLocalParameterIivNV", "opengl") + (delegate* unmanaged)( + _slots[1162] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1162] = nativeContext.LoadFunction( + "glGetProgramLocalParameterIivNV", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -488874,8 +493527,14 @@ void IGL.GetProgramLocalParameterINV( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramLocalParameterIuivNV", "opengl") + (delegate* unmanaged)( + _slots[1163] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1163] = nativeContext.LoadFunction( + "glGetProgramLocalParameterIuivNV", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -488918,8 +493577,14 @@ void IGL.GetProgramNamedParameterNV( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramNamedParameterdvNV", "opengl") + (delegate* unmanaged)( + _slots[1164] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1164] = nativeContext.LoadFunction( + "glGetProgramNamedParameterdvNV", + "opengl" + ) + ) )(id, len, name, @params); [SupportedApiProfile("gl", ["GL_NV_fragment_program"])] @@ -488991,8 +493656,14 @@ void IGL.GetProgramNamedParameterNV( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramNamedParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[1165] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1165] = nativeContext.LoadFunction( + "glGetProgramNamedParameterfvNV", + "opengl" + ) + ) )(id, len, name, @params); [SupportedApiProfile("gl", ["GL_NV_fragment_program"])] @@ -489064,8 +493735,14 @@ void IGL.GetProgramParameterNV( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramParameterdvNV", "opengl") + (delegate* unmanaged)( + _slots[1166] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1166] = nativeContext.LoadFunction( + "glGetProgramParameterdvNV", + "opengl" + ) + ) )(target, index, pname, @params); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -489111,8 +493788,14 @@ void IGL.GetProgramParameterNV( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[1167] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1167] = nativeContext.LoadFunction( + "glGetProgramParameterfvNV", + "opengl" + ) + ) )(target, index, pname, @params); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -489158,8 +493841,14 @@ void IGL.GetProgramPipelineInfoLog( [NativeTypeName("GLchar *")] sbyte* infoLog ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramPipelineInfoLog", "opengl") + (delegate* unmanaged)( + _slots[1168] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1168] = nativeContext.LoadFunction( + "glGetProgramPipelineInfoLog", + "opengl" + ) + ) )(pipeline, bufSize, length, infoLog); [SupportedApiProfile( @@ -489304,8 +493993,14 @@ void IGL.GetProgramPipelineInfoLogEXT( [NativeTypeName("GLchar *")] sbyte* infoLog ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramPipelineInfoLogEXT", "opengl") + (delegate* unmanaged)( + _slots[1169] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1169] = nativeContext.LoadFunction( + "glGetProgramPipelineInfoLogEXT", + "opengl" + ) + ) )(pipeline, bufSize, length, infoLog); [SupportedApiProfile("gles2", ["GL_EXT_separate_shader_objects"])] @@ -489379,8 +494074,11 @@ void IGL.GetProgramPipeline( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramPipelineiv", "opengl") + (delegate* unmanaged)( + _slots[1170] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1170] = nativeContext.LoadFunction("glGetProgramPipelineiv", "opengl") + ) )(pipeline, pname, @params); [SupportedApiProfile( @@ -489472,8 +494170,14 @@ void IGL.GetProgramPipelineEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramPipelineivEXT", "opengl") + (delegate* unmanaged)( + _slots[1171] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1171] = nativeContext.LoadFunction( + "glGetProgramPipelineivEXT", + "opengl" + ) + ) )(pipeline, pname, @params); [SupportedApiProfile("gles2", ["GL_EXT_separate_shader_objects"])] @@ -489520,8 +494224,14 @@ void IGL.GetProgramResourceNV( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramResourcefvNV", "opengl") + (delegate* unmanaged)( + _slots[1172] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1172] = nativeContext.LoadFunction( + "glGetProgramResourcefvNV", + "opengl" + ) + ) )(program, programInterface, index, propCount, props, count, length, @params); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -489657,8 +494367,14 @@ uint IGL.GetProgramResourceIndex( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramResourceIndex", "opengl") + (delegate* unmanaged)( + _slots[1173] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1173] = nativeContext.LoadFunction( + "glGetProgramResourceIndex", + "opengl" + ) + ) )(program, programInterface, name); [return: NativeTypeName("GLuint")] @@ -489750,8 +494466,11 @@ void IGL.GetProgramResource( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramResourceiv", "opengl") + (delegate* unmanaged)( + _slots[1174] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1174] = nativeContext.LoadFunction("glGetProgramResourceiv", "opengl") + ) )(program, programInterface, index, propCount, props, count, length, @params); [SupportedApiProfile( @@ -490031,8 +494750,14 @@ int IGL.GetProgramResourceLocation( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramResourceLocation", "opengl") + (delegate* unmanaged)( + _slots[1175] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1175] = nativeContext.LoadFunction( + "glGetProgramResourceLocation", + "opengl" + ) + ) )(program, programInterface, name); [return: NativeTypeName("GLint")] @@ -490119,8 +494844,14 @@ int IGL.GetProgramResourceLocationIndex( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramResourceLocationIndex", "opengl") + (delegate* unmanaged)( + _slots[1176] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1176] = nativeContext.LoadFunction( + "glGetProgramResourceLocationIndex", + "opengl" + ) + ) )(program, programInterface, name); [return: NativeTypeName("GLint")] @@ -490211,8 +494942,14 @@ int IGL.GetProgramResourceLocationIndexEXT( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramResourceLocationIndexEXT", "opengl") + (delegate* unmanaged)( + _slots[1177] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1177] = nativeContext.LoadFunction( + "glGetProgramResourceLocationIndexEXT", + "opengl" + ) + ) )(program, programInterface, name); [return: NativeTypeName("GLint")] @@ -490264,8 +495001,14 @@ void IGL.GetProgramResourceName( [NativeTypeName("GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramResourceName", "opengl") + (delegate* unmanaged)( + _slots[1178] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1178] = nativeContext.LoadFunction( + "glGetProgramResourceName", + "opengl" + ) + ) )(program, programInterface, index, bufSize, length, name); [SupportedApiProfile( @@ -490422,8 +495165,11 @@ void IGL.GetProgramStage( [NativeTypeName("GLint *")] int* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramStageiv", "opengl") + (delegate* unmanaged)( + _slots[1179] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1179] = nativeContext.LoadFunction("glGetProgramStageiv", "opengl") + ) )(program, shadertype, pname, values); [SupportedApiProfile( @@ -490571,8 +495317,11 @@ void IGL.GetProgramStringARB( void* @string ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramStringARB", "opengl") + (delegate* unmanaged)( + _slots[1180] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1180] = nativeContext.LoadFunction("glGetProgramStringARB", "opengl") + ) )(target, pname, @string); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -490614,8 +495363,11 @@ void IGL.GetProgramStringNV( [NativeTypeName("GLubyte *")] byte* program ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramStringNV", "opengl") + (delegate* unmanaged)( + _slots[1181] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1181] = nativeContext.LoadFunction("glGetProgramStringNV", "opengl") + ) )(id, pname, program); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -490675,8 +495427,14 @@ void IGL.GetProgramSubroutineParameterNV( [NativeTypeName("GLuint *")] uint* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetProgramSubroutineParameteruivNV", "opengl") + (delegate* unmanaged)( + _slots[1182] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1182] = nativeContext.LoadFunction( + "glGetProgramSubroutineParameteruivNV", + "opengl" + ) + ) )(target, index, param2); [SupportedApiProfile("gl", ["GL_NV_gpu_program5"])] @@ -490719,8 +495477,14 @@ void IGL.GetQueryBufferObjecti64V( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryBufferObjecti64v", "opengl") + (delegate* unmanaged)( + _slots[1183] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1183] = nativeContext.LoadFunction( + "glGetQueryBufferObjecti64v", + "opengl" + ) + ) )(id, buffer, pname, offset); [SupportedApiProfile( @@ -490778,8 +495542,14 @@ void IGL.GetQueryBufferObject( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryBufferObjectiv", "opengl") + (delegate* unmanaged)( + _slots[1184] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1184] = nativeContext.LoadFunction( + "glGetQueryBufferObjectiv", + "opengl" + ) + ) )(id, buffer, pname, offset); [SupportedApiProfile( @@ -490837,8 +495607,14 @@ void IGL.GetQueryBufferObjectui64V( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryBufferObjectui64v", "opengl") + (delegate* unmanaged)( + _slots[1185] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1185] = nativeContext.LoadFunction( + "glGetQueryBufferObjectui64v", + "opengl" + ) + ) )(id, buffer, pname, offset); [SupportedApiProfile( @@ -490896,8 +495672,14 @@ void IGL.GetQueryBufferObjectuiv( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryBufferObjectuiv", "opengl") + (delegate* unmanaged)( + _slots[1186] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1186] = nativeContext.LoadFunction( + "glGetQueryBufferObjectuiv", + "opengl" + ) + ) )(id, buffer, pname, offset); [SupportedApiProfile( @@ -490955,8 +495737,11 @@ void IGL.GetQueryIndexed( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryIndexediv", "opengl") + (delegate* unmanaged)( + _slots[1187] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1187] = nativeContext.LoadFunction("glGetQueryIndexediv", "opengl") + ) )(target, index, pname, @params); [SupportedApiProfile( @@ -491055,8 +495840,11 @@ void IGL.GetQuery( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryiv", "opengl") + (delegate* unmanaged)( + _slots[1188] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1188] = nativeContext.LoadFunction("glGetQueryiv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -491176,8 +495964,11 @@ void IGL.GetQueryARB( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryivARB", "opengl") + (delegate* unmanaged)( + _slots[1189] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1189] = nativeContext.LoadFunction("glGetQueryivARB", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_occlusion_query"])] @@ -491219,8 +496010,11 @@ void IGL.GetQueryEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryivEXT", "opengl") + (delegate* unmanaged)( + _slots[1190] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1190] = nativeContext.LoadFunction("glGetQueryivEXT", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -491268,8 +496062,11 @@ void IGL.GetQueryObject( [NativeTypeName("GLint64 *")] long* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryObjecti64v", "opengl") + (delegate* unmanaged)( + _slots[1191] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1191] = nativeContext.LoadFunction("glGetQueryObjecti64v", "opengl") + ) )(id, pname, @params); [SupportedApiProfile( @@ -491369,8 +496166,11 @@ void IGL.GetQueryObjectEXT( [NativeTypeName("GLint64 *")] long* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryObjecti64vEXT", "opengl") + (delegate* unmanaged)( + _slots[1192] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1192] = nativeContext.LoadFunction("glGetQueryObjecti64vEXT", "opengl") + ) )(id, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_timer_query"])] @@ -491414,8 +496214,11 @@ void IGL.GetQueryObject( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryObjectiv", "opengl") + (delegate* unmanaged)( + _slots[1193] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1193] = nativeContext.LoadFunction("glGetQueryObjectiv", "opengl") + ) )(id, pname, @params); [SupportedApiProfile( @@ -491535,8 +496338,11 @@ void IGL.GetQueryObjectARB( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryObjectivARB", "opengl") + (delegate* unmanaged)( + _slots[1194] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1194] = nativeContext.LoadFunction("glGetQueryObjectivARB", "opengl") + ) )(id, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_occlusion_query"])] @@ -491578,8 +496384,11 @@ void IGL.GetQueryObjectEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryObjectivEXT", "opengl") + (delegate* unmanaged)( + _slots[1195] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1195] = nativeContext.LoadFunction("glGetQueryObjectivEXT", "opengl") + ) )(id, pname, @params); [SupportedApiProfile("gles2", ["GL_EXT_disjoint_timer_query"])] @@ -491621,8 +496430,11 @@ void IGL.GetQueryObject( [NativeTypeName("GLuint64 *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryObjectui64v", "opengl") + (delegate* unmanaged)( + _slots[1196] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1196] = nativeContext.LoadFunction("glGetQueryObjectui64v", "opengl") + ) )(id, pname, @params); [SupportedApiProfile( @@ -491722,8 +496534,14 @@ void IGL.GetQueryObjectEXT( [NativeTypeName("GLuint64 *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryObjectui64vEXT", "opengl") + (delegate* unmanaged)( + _slots[1197] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1197] = nativeContext.LoadFunction( + "glGetQueryObjectui64vEXT", + "opengl" + ) + ) )(id, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_timer_query"])] @@ -491767,8 +496585,11 @@ void IGL.GetQueryObject( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryObjectuiv", "opengl") + (delegate* unmanaged)( + _slots[1198] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1198] = nativeContext.LoadFunction("glGetQueryObjectuiv", "opengl") + ) )(id, pname, @params); [SupportedApiProfile( @@ -491888,8 +496709,11 @@ void IGL.GetQueryObjectARB( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryObjectuivARB", "opengl") + (delegate* unmanaged)( + _slots[1199] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1199] = nativeContext.LoadFunction("glGetQueryObjectuivARB", "opengl") + ) )(id, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_occlusion_query"])] @@ -491931,8 +496755,11 @@ void IGL.GetQueryObjectEXT( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetQueryObjectuivEXT", "opengl") + (delegate* unmanaged)( + _slots[1200] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1200] = nativeContext.LoadFunction("glGetQueryObjectuivEXT", "opengl") + ) )(id, pname, @params); [SupportedApiProfile( @@ -491980,8 +496807,14 @@ void IGL.GetRenderbufferParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetRenderbufferParameteriv", "opengl") + (delegate* unmanaged)( + _slots[1201] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1201] = nativeContext.LoadFunction( + "glGetRenderbufferParameteriv", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile( @@ -492103,8 +496936,14 @@ void IGL.GetRenderbufferParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetRenderbufferParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1202] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1202] = nativeContext.LoadFunction( + "glGetRenderbufferParameterivEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -492146,8 +496985,14 @@ void IGL.GetRenderbufferParameterOES( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetRenderbufferParameterivOES", "opengl") + (delegate* unmanaged)( + _slots[1203] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1203] = nativeContext.LoadFunction( + "glGetRenderbufferParameterivOES", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gles1", ["GL_OES_framebuffer_object"])] @@ -492189,8 +497034,11 @@ void IGL.GetSamplerParameter( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSamplerParameterfv", "opengl") + (delegate* unmanaged)( + _slots[1204] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1204] = nativeContext.LoadFunction("glGetSamplerParameterfv", "opengl") + ) )(sampler, pname, @params); [SupportedApiProfile( @@ -492300,8 +497148,14 @@ void IGL.GetSamplerParameterI( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSamplerParameterIiv", "opengl") + (delegate* unmanaged)( + _slots[1205] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1205] = nativeContext.LoadFunction( + "glGetSamplerParameterIiv", + "opengl" + ) + ) )(sampler, pname, @params); [SupportedApiProfile( @@ -492401,8 +497255,14 @@ void IGL.GetSamplerParameterIEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSamplerParameterIivEXT", "opengl") + (delegate* unmanaged)( + _slots[1206] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1206] = nativeContext.LoadFunction( + "glGetSamplerParameterIivEXT", + "opengl" + ) + ) )(sampler, pname, @params); [SupportedApiProfile("gles2", ["GL_EXT_texture_border_clamp"])] @@ -492444,8 +497304,14 @@ void IGL.GetSamplerParameterIOES( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSamplerParameterIivOES", "opengl") + (delegate* unmanaged)( + _slots[1207] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1207] = nativeContext.LoadFunction( + "glGetSamplerParameterIivOES", + "opengl" + ) + ) )(sampler, pname, @params); [SupportedApiProfile("gles2", ["GL_OES_texture_border_clamp"])] @@ -492487,8 +497353,14 @@ void IGL.GetSamplerParameterI( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSamplerParameterIuiv", "opengl") + (delegate* unmanaged)( + _slots[1208] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1208] = nativeContext.LoadFunction( + "glGetSamplerParameterIuiv", + "opengl" + ) + ) )(sampler, pname, @params); [SupportedApiProfile( @@ -492588,8 +497460,14 @@ void IGL.GetSamplerParameterIEXT( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSamplerParameterIuivEXT", "opengl") + (delegate* unmanaged)( + _slots[1209] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1209] = nativeContext.LoadFunction( + "glGetSamplerParameterIuivEXT", + "opengl" + ) + ) )(sampler, pname, @params); [SupportedApiProfile("gles2", ["GL_EXT_texture_border_clamp"])] @@ -492631,8 +497509,14 @@ void IGL.GetSamplerParameterIOES( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSamplerParameterIuivOES", "opengl") + (delegate* unmanaged)( + _slots[1210] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1210] = nativeContext.LoadFunction( + "glGetSamplerParameterIuivOES", + "opengl" + ) + ) )(sampler, pname, @params); [SupportedApiProfile("gles2", ["GL_OES_texture_border_clamp"])] @@ -492674,8 +497558,11 @@ void IGL.GetSamplerParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSamplerParameteriv", "opengl") + (delegate* unmanaged)( + _slots[1211] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1211] = nativeContext.LoadFunction("glGetSamplerParameteriv", "opengl") + ) )(sampler, pname, @params); [SupportedApiProfile( @@ -492785,8 +497672,14 @@ void IGL.GetSemaphoreParameterNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSemaphoreParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[1212] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1212] = nativeContext.LoadFunction( + "glGetSemaphoreParameterivNV", + "opengl" + ) + ) )(semaphore, pname, @params); [SupportedApiProfile("gl", ["GL_NV_timeline_semaphore"])] @@ -492830,8 +497723,14 @@ void IGL.GetSemaphoreParameterEXT( [NativeTypeName("GLuint64 *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSemaphoreParameterui64vEXT", "opengl") + (delegate* unmanaged)( + _slots[1213] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1213] = nativeContext.LoadFunction( + "glGetSemaphoreParameterui64vEXT", + "opengl" + ) + ) )(semaphore, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_semaphore"])] @@ -492878,8 +497777,11 @@ void IGL.GetSeparableFilter( void* span ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSeparableFilter", "opengl") + (delegate* unmanaged)( + _slots[1214] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1214] = nativeContext.LoadFunction("glGetSeparableFilter", "opengl") + ) )(target, format, type, row, column, span); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -492942,8 +497844,11 @@ void IGL.GetSeparableFilterEXT( void* span ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSeparableFilterEXT", "opengl") + (delegate* unmanaged)( + _slots[1215] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1215] = nativeContext.LoadFunction("glGetSeparableFilterEXT", "opengl") + ) )(target, format, type, row, column, span); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -493004,8 +497909,11 @@ void IGL.GetShaderInfoLog( [NativeTypeName("GLchar *")] sbyte* infoLog ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetShaderInfoLog", "opengl") + (delegate* unmanaged)( + _slots[1216] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1216] = nativeContext.LoadFunction("glGetShaderInfoLog", "opengl") + ) )(shader, bufSize, length, infoLog); [SupportedApiProfile( @@ -493200,8 +498108,11 @@ void IGL.GetShader( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetShaderiv", "opengl") + (delegate* unmanaged)( + _slots[1217] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1217] = nativeContext.LoadFunction("glGetShaderiv", "opengl") + ) )(shader, pname, @params); [SupportedApiProfile( @@ -493328,8 +498239,14 @@ void IGL.GetShaderPrecisionFormat( [NativeTypeName("GLint *")] int* precision ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetShaderPrecisionFormat", "opengl") + (delegate* unmanaged)( + _slots[1218] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1218] = nativeContext.LoadFunction( + "glGetShaderPrecisionFormat", + "opengl" + ) + ) )(shadertype, precisiontype, range, precision); [SupportedApiProfile( @@ -493501,8 +498418,11 @@ void IGL.GetShaderSource( [NativeTypeName("GLchar *")] sbyte* source ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetShaderSource", "opengl") + (delegate* unmanaged)( + _slots[1219] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1219] = nativeContext.LoadFunction("glGetShaderSource", "opengl") + ) )(shader, bufSize, length, source); [SupportedApiProfile( @@ -493698,8 +498618,11 @@ void IGL.GetShaderSourceARB( [NativeTypeName("GLcharARB *")] sbyte* source ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetShaderSourceARB", "opengl") + (delegate* unmanaged)( + _slots[1220] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1220] = nativeContext.LoadFunction("glGetShaderSourceARB", "opengl") + ) )(obj, maxLength, length, source); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -493768,8 +498691,14 @@ void IGL.GetShadingRateImagePaletteNV( [NativeTypeName("GLenum *")] uint* rate ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetShadingRateImagePaletteNV", "opengl") + (delegate* unmanaged)( + _slots[1221] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1221] = nativeContext.LoadFunction( + "glGetShadingRateImagePaletteNV", + "opengl" + ) + ) )(viewport, entry, rate); [SupportedApiProfile("gl", ["GL_NV_shading_rate_image"])] @@ -493838,8 +498767,14 @@ void IGL.GetShadingRateSampleLocationNV( [NativeTypeName("GLint *")] int* location ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetShadingRateSampleLocationivNV", "opengl") + (delegate* unmanaged)( + _slots[1222] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1222] = nativeContext.LoadFunction( + "glGetShadingRateSampleLocationivNV", + "opengl" + ) + ) )(rate, samples, index, location); [SupportedApiProfile("gl", ["GL_NV_shading_rate_image"])] @@ -493887,8 +498822,11 @@ void IGL.GetSharpenTexFuncSGIS( [NativeTypeName("GLfloat *")] float* points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSharpenTexFuncSGIS", "opengl") + (delegate* unmanaged)( + _slots[1223] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1223] = nativeContext.LoadFunction("glGetSharpenTexFuncSGIS", "opengl") + ) )(target, points); [SupportedApiProfile("gl", ["GL_SGIS_sharpen_texture"])] @@ -493923,8 +498861,11 @@ public static void GetSharpenTexFuncSGIS( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort IGL.GetStageIndexNV([NativeTypeName("GLenum")] uint shadertype) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetStageIndexNV", "opengl") + (delegate* unmanaged)( + _slots[1224] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1224] = nativeContext.LoadFunction("glGetStageIndexNV", "opengl") + ) )(shadertype); [return: NativeTypeName("GLushort")] @@ -493952,9 +498893,13 @@ public static ushort GetStageIndexNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte* IGL.GetString([NativeTypeName("GLenum")] uint name) => - ((delegate* unmanaged)nativeContext.LoadFunction("glGetString", "opengl"))( - name - ); + ( + (delegate* unmanaged)( + _slots[1225] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1225] = nativeContext.LoadFunction("glGetString", "opengl") + ) + )(name); [return: NativeTypeName("const GLubyte *")] [SupportedApiProfile( @@ -494092,8 +499037,11 @@ public static Ptr GetString( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetStringi", "opengl") + (delegate* unmanaged)( + _slots[1226] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1226] = nativeContext.LoadFunction("glGetStringi", "opengl") + ) )(name, index); [return: NativeTypeName("const GLubyte *")] @@ -494194,8 +499142,11 @@ uint IGL.GetSubroutineIndex( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSubroutineIndex", "opengl") + (delegate* unmanaged)( + _slots[1227] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1227] = nativeContext.LoadFunction("glGetSubroutineIndex", "opengl") + ) )(program, shadertype, name); [return: NativeTypeName("GLuint")] @@ -494293,8 +499244,14 @@ int IGL.GetSubroutineUniformLocation( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSubroutineUniformLocation", "opengl") + (delegate* unmanaged)( + _slots[1228] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1228] = nativeContext.LoadFunction( + "glGetSubroutineUniformLocation", + "opengl" + ) + ) )(program, shadertype, name); [return: NativeTypeName("GLint")] @@ -494395,8 +499352,11 @@ void IGL.GetSync( [NativeTypeName("GLint *")] int* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSynciv", "opengl") + (delegate* unmanaged)( + _slots[1229] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1229] = nativeContext.LoadFunction("glGetSynciv", "opengl") + ) )(sync, pname, count, length, values); [SupportedApiProfile( @@ -494567,8 +499527,11 @@ void IGL.GetSyncApple( [NativeTypeName("GLint *")] int* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetSyncivAPPLE", "opengl") + (delegate* unmanaged)( + _slots[1230] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1230] = nativeContext.LoadFunction("glGetSyncivAPPLE", "opengl") + ) )(sync, pname, count, length, values); [SupportedApiProfile("gles2", ["GL_APPLE_sync"])] @@ -494646,8 +499609,14 @@ void IGL.GetTexBumpParameterATI( [NativeTypeName("GLfloat *")] float* param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexBumpParameterfvATI", "opengl") + (delegate* unmanaged)( + _slots[1231] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1231] = nativeContext.LoadFunction( + "glGetTexBumpParameterfvATI", + "opengl" + ) + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_ATI_envmap_bumpmap"])] @@ -494685,8 +499654,14 @@ void IGL.GetTexBumpParameterATI( [NativeTypeName("GLint *")] int* param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexBumpParameterivATI", "opengl") + (delegate* unmanaged)( + _slots[1232] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1232] = nativeContext.LoadFunction( + "glGetTexBumpParameterivATI", + "opengl" + ) + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_ATI_envmap_bumpmap"])] @@ -494725,8 +499700,11 @@ void IGL.GetTexEnv( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexEnvfv", "opengl") + (delegate* unmanaged)( + _slots[1233] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1233] = nativeContext.LoadFunction("glGetTexEnvfv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -494818,8 +499796,11 @@ void IGL.GetTexEnv( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexEnviv", "opengl") + (delegate* unmanaged)( + _slots[1234] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1234] = nativeContext.LoadFunction("glGetTexEnviv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -494911,8 +499892,11 @@ void IGL.GetTexEnvx( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexEnvxv", "opengl") + (delegate* unmanaged)( + _slots[1235] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1235] = nativeContext.LoadFunction("glGetTexEnvxv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -494954,8 +499938,11 @@ void IGL.GetTexEnvxOES( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexEnvxvOES", "opengl") + (delegate* unmanaged)( + _slots[1236] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1236] = nativeContext.LoadFunction("glGetTexEnvxvOES", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -494999,8 +499986,11 @@ void IGL.GetTexFilterFuncSGIS( [NativeTypeName("GLfloat *")] float* weights ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexFilterFuncSGIS", "opengl") + (delegate* unmanaged)( + _slots[1237] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1237] = nativeContext.LoadFunction("glGetTexFilterFuncSGIS", "opengl") + ) )(target, filter, weights); [SupportedApiProfile("gl", ["GL_SGIS_texture_filter4"])] @@ -495042,8 +500032,11 @@ void IGL.GetTexGen( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexGendv", "opengl") + (delegate* unmanaged)( + _slots[1238] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1238] = nativeContext.LoadFunction("glGetTexGendv", "opengl") + ) )(coord, pname, @params); [SupportedApiProfile( @@ -495133,8 +500126,11 @@ void IGL.GetTexGen( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexGenfv", "opengl") + (delegate* unmanaged)( + _slots[1239] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1239] = nativeContext.LoadFunction("glGetTexGenfv", "opengl") + ) )(coord, pname, @params); [SupportedApiProfile( @@ -495224,8 +500220,11 @@ void IGL.GetTexGenOES( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexGenfvOES", "opengl") + (delegate* unmanaged)( + _slots[1240] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1240] = nativeContext.LoadFunction("glGetTexGenfvOES", "opengl") + ) )(coord, pname, @params); [SupportedApiProfile("gles1", ["GL_OES_texture_cube_map"])] @@ -495267,8 +500266,11 @@ void IGL.GetTexGen( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexGeniv", "opengl") + (delegate* unmanaged)( + _slots[1241] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1241] = nativeContext.LoadFunction("glGetTexGeniv", "opengl") + ) )(coord, pname, @params); [SupportedApiProfile( @@ -495358,8 +500360,11 @@ void IGL.GetTexGenOES( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexGenivOES", "opengl") + (delegate* unmanaged)( + _slots[1242] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1242] = nativeContext.LoadFunction("glGetTexGenivOES", "opengl") + ) )(coord, pname, @params); [SupportedApiProfile("gles1", ["GL_OES_texture_cube_map"])] @@ -495401,8 +500406,11 @@ void IGL.GetTexGenxOES( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexGenxvOES", "opengl") + (delegate* unmanaged)( + _slots[1243] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1243] = nativeContext.LoadFunction("glGetTexGenxvOES", "opengl") + ) )(coord, pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -495448,8 +500456,11 @@ void IGL.GetTexImage( void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexImage", "opengl") + (delegate* unmanaged)( + _slots[1244] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1244] = nativeContext.LoadFunction("glGetTexImage", "opengl") + ) )(target, level, format, type, pixels); [SupportedApiProfile( @@ -495596,8 +500607,14 @@ void IGL.GetTexLevelParameter( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexLevelParameterfv", "opengl") + (delegate* unmanaged)( + _slots[1245] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1245] = nativeContext.LoadFunction( + "glGetTexLevelParameterfv", + "opengl" + ) + ) )(target, level, pname, @params); [SupportedApiProfile( @@ -495741,8 +500758,14 @@ void IGL.GetTexLevelParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexLevelParameteriv", "opengl") + (delegate* unmanaged)( + _slots[1246] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1246] = nativeContext.LoadFunction( + "glGetTexLevelParameteriv", + "opengl" + ) + ) )(target, level, pname, @params); [SupportedApiProfile( @@ -495886,8 +500909,14 @@ void IGL.GetTexLevelParameterxOES( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexLevelParameterxvOES", "opengl") + (delegate* unmanaged)( + _slots[1247] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1247] = nativeContext.LoadFunction( + "glGetTexLevelParameterxvOES", + "opengl" + ) + ) )(target, level, pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -495932,8 +500961,11 @@ void IGL.GetTexParameter( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexParameterfv", "opengl") + (delegate* unmanaged)( + _slots[1248] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1248] = nativeContext.LoadFunction("glGetTexParameterfv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -496085,8 +501117,11 @@ void IGL.GetTexParameterI( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexParameterIiv", "opengl") + (delegate* unmanaged)( + _slots[1249] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1249] = nativeContext.LoadFunction("glGetTexParameterIiv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -496194,8 +501229,11 @@ void IGL.GetTexParameterIEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexParameterIivEXT", "opengl") + (delegate* unmanaged)( + _slots[1250] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1250] = nativeContext.LoadFunction("glGetTexParameterIivEXT", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_texture_integer"])] @@ -496239,8 +501277,11 @@ void IGL.GetTexParameterIOES( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexParameterIivOES", "opengl") + (delegate* unmanaged)( + _slots[1251] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1251] = nativeContext.LoadFunction("glGetTexParameterIivOES", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gles2", ["GL_OES_texture_border_clamp"])] @@ -496282,8 +501323,11 @@ void IGL.GetTexParameterI( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexParameterIuiv", "opengl") + (delegate* unmanaged)( + _slots[1252] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1252] = nativeContext.LoadFunction("glGetTexParameterIuiv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -496391,8 +501435,14 @@ void IGL.GetTexParameterIEXT( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexParameterIuivEXT", "opengl") + (delegate* unmanaged)( + _slots[1253] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1253] = nativeContext.LoadFunction( + "glGetTexParameterIuivEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_texture_integer"])] @@ -496436,8 +501486,14 @@ void IGL.GetTexParameterIOES( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexParameterIuivOES", "opengl") + (delegate* unmanaged)( + _slots[1254] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1254] = nativeContext.LoadFunction( + "glGetTexParameterIuivOES", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gles2", ["GL_OES_texture_border_clamp"])] @@ -496479,8 +501535,11 @@ void IGL.GetTexParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexParameteriv", "opengl") + (delegate* unmanaged)( + _slots[1255] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1255] = nativeContext.LoadFunction("glGetTexParameteriv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -496632,8 +501691,14 @@ void IGL.GetTexParameterPointerApple( void** @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexParameterPointervAPPLE", "opengl") + (delegate* unmanaged)( + _slots[1256] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1256] = nativeContext.LoadFunction( + "glGetTexParameterPointervAPPLE", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_APPLE_texture_range"])] @@ -496675,8 +501740,11 @@ void IGL.GetTexParameterx( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexParameterxv", "opengl") + (delegate* unmanaged)( + _slots[1257] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1257] = nativeContext.LoadFunction("glGetTexParameterxv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -496718,8 +501786,11 @@ void IGL.GetTexParameterxOES( [NativeTypeName("GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTexParameterxvOES", "opengl") + (delegate* unmanaged)( + _slots[1258] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1258] = nativeContext.LoadFunction("glGetTexParameterxvOES", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -496759,8 +501830,11 @@ public static void GetTexParameterxOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong IGL.GetTextureHandleARB([NativeTypeName("GLuint")] uint texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureHandleARB", "opengl") + (delegate* unmanaged)( + _slots[1259] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1259] = nativeContext.LoadFunction("glGetTextureHandleARB", "opengl") + ) )(texture); [return: NativeTypeName("GLuint64")] @@ -496774,8 +501848,11 @@ public static ulong GetTextureHandleARB([NativeTypeName("GLuint")] uint texture) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong IGL.GetTextureHandleIMG([NativeTypeName("GLuint")] uint texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureHandleIMG", "opengl") + (delegate* unmanaged)( + _slots[1260] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1260] = nativeContext.LoadFunction("glGetTextureHandleIMG", "opengl") + ) )(texture); [return: NativeTypeName("GLuint64")] @@ -496788,8 +501865,11 @@ public static ulong GetTextureHandleIMG([NativeTypeName("GLuint")] uint texture) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong IGL.GetTextureHandleNV([NativeTypeName("GLuint")] uint texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureHandleNV", "opengl") + (delegate* unmanaged)( + _slots[1261] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1261] = nativeContext.LoadFunction("glGetTextureHandleNV", "opengl") + ) )(texture); [return: NativeTypeName("GLuint64")] @@ -496811,8 +501891,11 @@ void IGL.GetTextureImage( void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureImage", "opengl") + (delegate* unmanaged)( + _slots[1262] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1262] = nativeContext.LoadFunction("glGetTextureImage", "opengl") + ) )(texture, level, format, type, bufSize, pixels); [SupportedApiProfile( @@ -496891,8 +501974,11 @@ void IGL.GetTextureImageEXT( void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureImageEXT", "opengl") + (delegate* unmanaged)( + _slots[1263] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1263] = nativeContext.LoadFunction("glGetTextureImageEXT", "opengl") + ) )(texture, target, level, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -496953,8 +502039,14 @@ void IGL.GetTextureLevelParameter( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureLevelParameterfv", "opengl") + (delegate* unmanaged)( + _slots[1264] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1264] = nativeContext.LoadFunction( + "glGetTextureLevelParameterfv", + "opengl" + ) + ) )(texture, level, pname, @params); [SupportedApiProfile( @@ -497019,8 +502111,14 @@ void IGL.GetTextureLevelParameterEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureLevelParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1265] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1265] = nativeContext.LoadFunction( + "glGetTextureLevelParameterfvEXT", + "opengl" + ) + ) )(texture, target, level, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -497077,8 +502175,14 @@ void IGL.GetTextureLevelParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureLevelParameteriv", "opengl") + (delegate* unmanaged)( + _slots[1266] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1266] = nativeContext.LoadFunction( + "glGetTextureLevelParameteriv", + "opengl" + ) + ) )(texture, level, pname, @params); [SupportedApiProfile( @@ -497143,8 +502247,14 @@ void IGL.GetTextureLevelParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureLevelParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1267] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1267] = nativeContext.LoadFunction( + "glGetTextureLevelParameterivEXT", + "opengl" + ) + ) )(texture, target, level, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -497200,8 +502310,11 @@ void IGL.GetTextureParameter( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureParameterfv", "opengl") + (delegate* unmanaged)( + _slots[1268] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1268] = nativeContext.LoadFunction("glGetTextureParameterfv", "opengl") + ) )(texture, pname, @params); [SupportedApiProfile( @@ -497262,8 +502375,14 @@ void IGL.GetTextureParameterEXT( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1269] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1269] = nativeContext.LoadFunction( + "glGetTextureParameterfvEXT", + "opengl" + ) + ) )(texture, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -497310,8 +502429,14 @@ void IGL.GetTextureParameterI( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureParameterIiv", "opengl") + (delegate* unmanaged)( + _slots[1270] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1270] = nativeContext.LoadFunction( + "glGetTextureParameterIiv", + "opengl" + ) + ) )(texture, pname, @params); [SupportedApiProfile( @@ -497372,8 +502497,14 @@ void IGL.GetTextureParameterIEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureParameterIivEXT", "opengl") + (delegate* unmanaged)( + _slots[1271] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1271] = nativeContext.LoadFunction( + "glGetTextureParameterIivEXT", + "opengl" + ) + ) )(texture, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -497420,8 +502551,14 @@ void IGL.GetTextureParameterI( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureParameterIuiv", "opengl") + (delegate* unmanaged)( + _slots[1272] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1272] = nativeContext.LoadFunction( + "glGetTextureParameterIuiv", + "opengl" + ) + ) )(texture, pname, @params); [SupportedApiProfile( @@ -497482,8 +502619,14 @@ void IGL.GetTextureParameterIEXT( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureParameterIuivEXT", "opengl") + (delegate* unmanaged)( + _slots[1273] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1273] = nativeContext.LoadFunction( + "glGetTextureParameterIuivEXT", + "opengl" + ) + ) )(texture, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -497530,8 +502673,11 @@ void IGL.GetTextureParameter( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureParameteriv", "opengl") + (delegate* unmanaged)( + _slots[1274] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1274] = nativeContext.LoadFunction("glGetTextureParameteriv", "opengl") + ) )(texture, pname, @params); [SupportedApiProfile( @@ -497592,8 +502738,14 @@ void IGL.GetTextureParameterEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1275] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1275] = nativeContext.LoadFunction( + "glGetTextureParameterivEXT", + "opengl" + ) + ) )(texture, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -497639,8 +502791,14 @@ ulong IGL.GetTextureSamplerHandleARB( [NativeTypeName("GLuint")] uint sampler ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureSamplerHandleARB", "opengl") + (delegate* unmanaged)( + _slots[1276] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1276] = nativeContext.LoadFunction( + "glGetTextureSamplerHandleARB", + "opengl" + ) + ) )(texture, sampler); [return: NativeTypeName("GLuint64")] @@ -497659,8 +502817,14 @@ ulong IGL.GetTextureSamplerHandleIMG( [NativeTypeName("GLuint")] uint sampler ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureSamplerHandleIMG", "opengl") + (delegate* unmanaged)( + _slots[1277] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1277] = nativeContext.LoadFunction( + "glGetTextureSamplerHandleIMG", + "opengl" + ) + ) )(texture, sampler); [return: NativeTypeName("GLuint64")] @@ -497678,8 +502842,14 @@ ulong IGL.GetTextureSamplerHandleNV( [NativeTypeName("GLuint")] uint sampler ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTextureSamplerHandleNV", "opengl") + (delegate* unmanaged)( + _slots[1278] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1278] = nativeContext.LoadFunction( + "glGetTextureSamplerHandleNV", + "opengl" + ) + ) )(texture, sampler); [return: NativeTypeName("GLuint64")] @@ -497722,8 +502892,11 @@ void IGL.GetTextureSubImage( uint, uint, void*, - void>) - nativeContext.LoadFunction("glGetTextureSubImage", "opengl") + void>)( + _slots[1279] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1279] = nativeContext.LoadFunction("glGetTextureSubImage", "opengl") + ) )( texture, level, @@ -497865,8 +503038,11 @@ void IGL.GetTrackMatrixNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTrackMatrixivNV", "opengl") + (delegate* unmanaged)( + _slots[1280] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1280] = nativeContext.LoadFunction("glGetTrackMatrixivNV", "opengl") + ) )(target, address, pname, @params); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -497934,8 +503110,14 @@ void IGL.GetTransformFeedback( [NativeTypeName("GLint *")] int* param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTransformFeedbacki_v", "opengl") + (delegate* unmanaged)( + _slots[1281] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1281] = nativeContext.LoadFunction( + "glGetTransformFeedbacki_v", + "opengl" + ) + ) )(xfb, pname, index, param3); [SupportedApiProfile( @@ -497999,8 +503181,14 @@ void IGL.GetTransformFeedbacki64( [NativeTypeName("GLint64 *")] long* param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTransformFeedbacki64_v", "opengl") + (delegate* unmanaged)( + _slots[1282] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1282] = nativeContext.LoadFunction( + "glGetTransformFeedbacki64_v", + "opengl" + ) + ) )(xfb, pname, index, param3); [SupportedApiProfile( @@ -498063,8 +503251,14 @@ void IGL.GetTransformFeedback( [NativeTypeName("GLint *")] int* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTransformFeedbackiv", "opengl") + (delegate* unmanaged)( + _slots[1283] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1283] = nativeContext.LoadFunction( + "glGetTransformFeedbackiv", + "opengl" + ) + ) )(xfb, pname, param2); [SupportedApiProfile( @@ -498128,8 +503322,14 @@ void IGL.GetTransformFeedbackVarying( [NativeTypeName("GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTransformFeedbackVarying", "opengl") + (delegate* unmanaged)( + _slots[1284] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1284] = nativeContext.LoadFunction( + "glGetTransformFeedbackVarying", + "opengl" + ) + ) )(program, index, bufSize, length, size, type, name); [SupportedApiProfile( @@ -498630,8 +503830,14 @@ void IGL.GetTransformFeedbackVaryingEXT( [NativeTypeName("GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTransformFeedbackVaryingEXT", "opengl") + (delegate* unmanaged)( + _slots[1285] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1285] = nativeContext.LoadFunction( + "glGetTransformFeedbackVaryingEXT", + "opengl" + ) + ) )(program, index, bufSize, length, size, type, name); [SupportedApiProfile("gl", ["GL_EXT_transform_feedback"])] @@ -498933,8 +504139,14 @@ void IGL.GetTransformFeedbackVaryingNV( [NativeTypeName("GLint *")] int* location ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTransformFeedbackVaryingNV", "opengl") + (delegate* unmanaged)( + _slots[1286] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1286] = nativeContext.LoadFunction( + "glGetTransformFeedbackVaryingNV", + "opengl" + ) + ) )(program, index, location); [SupportedApiProfile("gl", ["GL_NV_transform_feedback"])] @@ -498997,8 +504209,14 @@ void IGL.GetTranslatedShaderSourceAngle( [NativeTypeName("GLchar *")] sbyte* source ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetTranslatedShaderSourceANGLE", "opengl") + (delegate* unmanaged)( + _slots[1287] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1287] = nativeContext.LoadFunction( + "glGetTranslatedShaderSourceANGLE", + "opengl" + ) + ) )(shader, bufSize, length, source); [SupportedApiProfile("gles2", ["GL_ANGLE_translated_shader_source"])] @@ -499066,8 +504284,11 @@ uint IGL.GetUniformBlockIndex( [NativeTypeName("const GLchar *")] sbyte* uniformBlockName ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformBlockIndex", "opengl") + (delegate* unmanaged)( + _slots[1288] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1288] = nativeContext.LoadFunction("glGetUniformBlockIndex", "opengl") + ) )(program, uniformBlockName); [return: NativeTypeName("GLuint")] @@ -499173,8 +504394,14 @@ int IGL.GetUniformBufferSizeEXT( [NativeTypeName("GLint")] int location ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformBufferSizeEXT", "opengl") + (delegate* unmanaged)( + _slots[1289] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1289] = nativeContext.LoadFunction( + "glGetUniformBufferSizeEXT", + "opengl" + ) + ) )(program, location); [return: NativeTypeName("GLint")] @@ -499193,8 +504420,11 @@ void IGL.GetUniformdv( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformdv", "opengl") + (delegate* unmanaged)( + _slots[1290] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1290] = nativeContext.LoadFunction("glGetUniformdv", "opengl") + ) )(program, location, @params); [SupportedApiProfile( @@ -499332,8 +504562,11 @@ void IGL.GetUniformfv( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformfv", "opengl") + (delegate* unmanaged)( + _slots[1291] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1291] = nativeContext.LoadFunction("glGetUniformfv", "opengl") + ) )(program, location, @params); [SupportedApiProfile( @@ -499516,8 +504749,11 @@ void IGL.GetUniformfvARB( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformfvARB", "opengl") + (delegate* unmanaged)( + _slots[1292] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1292] = nativeContext.LoadFunction("glGetUniformfvARB", "opengl") + ) )(programObj, location, @params); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -499574,8 +504810,11 @@ void IGL.GetUniformi64VARB( [NativeTypeName("GLint64 *")] long* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformi64vARB", "opengl") + (delegate* unmanaged)( + _slots[1293] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1293] = nativeContext.LoadFunction("glGetUniformi64vARB", "opengl") + ) )(program, location, @params); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -499635,8 +504874,11 @@ void IGL.GetUniformNV( [NativeTypeName("GLint64EXT *")] long* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformi64vNV", "opengl") + (delegate* unmanaged)( + _slots[1294] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1294] = nativeContext.LoadFunction("glGetUniformi64vNV", "opengl") + ) )(program, location, @params); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -499700,8 +504942,11 @@ void IGL.GetUniformIndices( [NativeTypeName("GLuint *")] uint* uniformIndices ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformIndices", "opengl") + (delegate* unmanaged)( + _slots[1295] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1295] = nativeContext.LoadFunction("glGetUniformIndices", "opengl") + ) )(program, uniformCount, uniformNames, uniformIndices); [SupportedApiProfile( @@ -499818,8 +505063,11 @@ void IGL.GetUniformiv( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformiv", "opengl") + (delegate* unmanaged)( + _slots[1296] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1296] = nativeContext.LoadFunction("glGetUniformiv", "opengl") + ) )(program, location, @params); [SupportedApiProfile( @@ -500002,8 +505250,11 @@ void IGL.GetUniformivARB( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformivARB", "opengl") + (delegate* unmanaged)( + _slots[1297] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1297] = nativeContext.LoadFunction("glGetUniformivARB", "opengl") + ) )(programObj, location, @params); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -500059,8 +505310,11 @@ int IGL.GetUniformLocation( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformLocation", "opengl") + (delegate* unmanaged)( + _slots[1298] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1298] = nativeContext.LoadFunction("glGetUniformLocation", "opengl") + ) )(program, name); [return: NativeTypeName("GLint")] @@ -500184,8 +505438,11 @@ int IGL.GetUniformLocationARB( [NativeTypeName("const GLcharARB *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformLocationARB", "opengl") + (delegate* unmanaged)( + _slots[1299] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1299] = nativeContext.LoadFunction("glGetUniformLocationARB", "opengl") + ) )(programObj, name); [return: NativeTypeName("GLint")] @@ -500225,8 +505482,11 @@ nint IGL.GetUniformOffsetEXT( [NativeTypeName("GLint")] int location ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[1300] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1300] = nativeContext.LoadFunction("glGetUniformOffsetEXT", "opengl") + ) )(program, location); [return: NativeTypeName("GLintptr")] @@ -500245,8 +505505,14 @@ void IGL.GetUniformSubroutine( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformSubroutineuiv", "opengl") + (delegate* unmanaged)( + _slots[1301] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1301] = nativeContext.LoadFunction( + "glGetUniformSubroutineuiv", + "opengl" + ) + ) )(shadertype, location, @params); [SupportedApiProfile( @@ -500389,8 +505655,11 @@ void IGL.GetUniformui64VARB( [NativeTypeName("GLuint64 *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformui64vARB", "opengl") + (delegate* unmanaged)( + _slots[1302] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1302] = nativeContext.LoadFunction("glGetUniformui64vARB", "opengl") + ) )(program, location, @params); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -500450,8 +505719,11 @@ void IGL.GetUniformui64VNV( [NativeTypeName("GLuint64EXT *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformui64vNV", "opengl") + (delegate* unmanaged)( + _slots[1303] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1303] = nativeContext.LoadFunction("glGetUniformui64vNV", "opengl") + ) )(program, location, @params); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_shader_buffer_load"])] @@ -500511,8 +505783,11 @@ void IGL.GetUniformuiv( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformuiv", "opengl") + (delegate* unmanaged)( + _slots[1304] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1304] = nativeContext.LoadFunction("glGetUniformuiv", "opengl") + ) )(program, location, @params); [SupportedApiProfile( @@ -500668,8 +505943,11 @@ void IGL.GetUniformEXT( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUniformuivEXT", "opengl") + (delegate* unmanaged)( + _slots[1305] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1305] = nativeContext.LoadFunction("glGetUniformuivEXT", "opengl") + ) )(program, location, @params); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4"])] @@ -500726,8 +506004,11 @@ void IGL.GetUnsignedByteEXT( [NativeTypeName("GLubyte *")] byte* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUnsignedBytei_vEXT", "opengl") + (delegate* unmanaged)( + _slots[1306] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1306] = nativeContext.LoadFunction("glGetUnsignedBytei_vEXT", "opengl") + ) )(target, index, data); [SupportedApiProfile("gl", ["GL_EXT_memory_object", "GL_EXT_semaphore"])] @@ -500786,8 +506067,11 @@ void IGL.GetUnsignedByteEXT( [NativeTypeName("GLubyte *")] byte* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetUnsignedBytevEXT", "opengl") + (delegate* unmanaged)( + _slots[1307] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1307] = nativeContext.LoadFunction("glGetUnsignedBytevEXT", "opengl") + ) )(pname, data); [SupportedApiProfile("gl", ["GL_EXT_memory_object", "GL_EXT_semaphore"])] @@ -500828,8 +506112,14 @@ void IGL.GetVariantArrayObjectfvATI( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVariantArrayObjectfvATI", "opengl") + (delegate* unmanaged)( + _slots[1308] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1308] = nativeContext.LoadFunction( + "glGetVariantArrayObjectfvATI", + "opengl" + ) + ) )(id, pname, @params); [SupportedApiProfile("gl", ["GL_ATI_vertex_array_object"])] @@ -500891,8 +506181,14 @@ void IGL.GetVariantArrayObjectivATI( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVariantArrayObjectivATI", "opengl") + (delegate* unmanaged)( + _slots[1309] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1309] = nativeContext.LoadFunction( + "glGetVariantArrayObjectivATI", + "opengl" + ) + ) )(id, pname, @params); [SupportedApiProfile("gl", ["GL_ATI_vertex_array_object"])] @@ -500954,8 +506250,11 @@ void IGL.GetVariantBooleanEXT( [NativeTypeName("GLboolean *")] uint* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVariantBooleanvEXT", "opengl") + (delegate* unmanaged)( + _slots[1310] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1310] = nativeContext.LoadFunction("glGetVariantBooleanvEXT", "opengl") + ) )(id, value, data); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -501015,8 +506314,11 @@ void IGL.GetVariantFloatEXT( [NativeTypeName("GLfloat *")] float* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVariantFloatvEXT", "opengl") + (delegate* unmanaged)( + _slots[1311] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1311] = nativeContext.LoadFunction("glGetVariantFloatvEXT", "opengl") + ) )(id, value, data); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -501076,8 +506378,11 @@ void IGL.GetVariantIntegerEXT( [NativeTypeName("GLint *")] int* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVariantIntegervEXT", "opengl") + (delegate* unmanaged)( + _slots[1312] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1312] = nativeContext.LoadFunction("glGetVariantIntegervEXT", "opengl") + ) )(id, value, data); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -501137,8 +506442,11 @@ void IGL.GetVariantPointerEXT( void** data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVariantPointervEXT", "opengl") + (delegate* unmanaged)( + _slots[1313] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1313] = nativeContext.LoadFunction("glGetVariantPointervEXT", "opengl") + ) )(id, value, data); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -501179,8 +506487,11 @@ int IGL.GetVaryingLocationNV( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVaryingLocationNV", "opengl") + (delegate* unmanaged)( + _slots[1314] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1314] = nativeContext.LoadFunction("glGetVaryingLocationNV", "opengl") + ) )(program, name); [return: NativeTypeName("GLint")] @@ -501222,8 +506533,14 @@ void IGL.GetVertexArrayIndexed64( [NativeTypeName("GLint64 *")] long* param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexArrayIndexed64iv", "opengl") + (delegate* unmanaged)( + _slots[1315] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1315] = nativeContext.LoadFunction( + "glGetVertexArrayIndexed64iv", + "opengl" + ) + ) )(vaobj, index, pname, param3); [SupportedApiProfile( @@ -501287,8 +506604,14 @@ void IGL.GetVertexArrayIndexed( [NativeTypeName("GLint *")] int* param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexArrayIndexediv", "opengl") + (delegate* unmanaged)( + _slots[1316] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1316] = nativeContext.LoadFunction( + "glGetVertexArrayIndexediv", + "opengl" + ) + ) )(vaobj, index, pname, param3); [SupportedApiProfile( @@ -501352,8 +506675,14 @@ void IGL.GetVertexArrayIntegerEXT( [NativeTypeName("GLint *")] int* param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexArrayIntegeri_vEXT", "opengl") + (delegate* unmanaged)( + _slots[1317] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1317] = nativeContext.LoadFunction( + "glGetVertexArrayIntegeri_vEXT", + "opengl" + ) + ) )(vaobj, index, pname, param3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -501400,8 +506729,14 @@ void IGL.GetVertexArrayIntegerEXT( [NativeTypeName("GLint *")] int* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexArrayIntegervEXT", "opengl") + (delegate* unmanaged)( + _slots[1318] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1318] = nativeContext.LoadFunction( + "glGetVertexArrayIntegervEXT", + "opengl" + ) + ) )(vaobj, pname, param2); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -501445,8 +506780,11 @@ void IGL.GetVertexArray( [NativeTypeName("GLint *")] int* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexArrayiv", "opengl") + (delegate* unmanaged)( + _slots[1319] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1319] = nativeContext.LoadFunction("glGetVertexArrayiv", "opengl") + ) )(vaobj, pname, param2); [SupportedApiProfile( @@ -501507,8 +506845,14 @@ void IGL.GetVertexArrayPointerEXT( void** param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexArrayPointeri_vEXT", "opengl") + (delegate* unmanaged)( + _slots[1320] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1320] = nativeContext.LoadFunction( + "glGetVertexArrayPointeri_vEXT", + "opengl" + ) + ) )(vaobj, index, pname, param3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -501555,8 +506899,14 @@ void IGL.GetVertexArrayPointerEXT( void** param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexArrayPointervEXT", "opengl") + (delegate* unmanaged)( + _slots[1321] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1321] = nativeContext.LoadFunction( + "glGetVertexArrayPointervEXT", + "opengl" + ) + ) )(vaobj, pname, param2); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -501600,8 +506950,14 @@ void IGL.GetVertexAttribArrayObjectATI( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribArrayObjectfvATI", "opengl") + (delegate* unmanaged)( + _slots[1322] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1322] = nativeContext.LoadFunction( + "glGetVertexAttribArrayObjectfvATI", + "opengl" + ) + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_ATI_vertex_attrib_array_object"])] @@ -501643,8 +506999,14 @@ void IGL.GetVertexAttribArrayObjectATI( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribArrayObjectivATI", "opengl") + (delegate* unmanaged)( + _slots[1323] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1323] = nativeContext.LoadFunction( + "glGetVertexAttribArrayObjectivATI", + "opengl" + ) + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_ATI_vertex_attrib_array_object"])] @@ -501686,8 +507048,11 @@ void IGL.GetVertexAttrib( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribdv", "opengl") + (delegate* unmanaged)( + _slots[1324] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1324] = nativeContext.LoadFunction("glGetVertexAttribdv", "opengl") + ) )(index, pname, @params); [SupportedApiProfile( @@ -501803,8 +507168,11 @@ void IGL.GetVertexAttribARB( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribdvARB", "opengl") + (delegate* unmanaged)( + _slots[1325] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1325] = nativeContext.LoadFunction("glGetVertexAttribdvARB", "opengl") + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -501846,8 +507214,11 @@ void IGL.GetVertexAttribdvNV( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribdvNV", "opengl") + (delegate* unmanaged)( + _slots[1326] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1326] = nativeContext.LoadFunction("glGetVertexAttribdvNV", "opengl") + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -501909,8 +507280,11 @@ void IGL.GetVertexAttrib( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribfv", "opengl") + (delegate* unmanaged)( + _slots[1327] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1327] = nativeContext.LoadFunction("glGetVertexAttribfv", "opengl") + ) )(index, pname, @params); [SupportedApiProfile( @@ -502036,8 +507410,11 @@ void IGL.GetVertexAttribARB( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribfvARB", "opengl") + (delegate* unmanaged)( + _slots[1328] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1328] = nativeContext.LoadFunction("glGetVertexAttribfvARB", "opengl") + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -502079,8 +507456,11 @@ void IGL.GetVertexAttribfvNV( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribfvNV", "opengl") + (delegate* unmanaged)( + _slots[1329] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1329] = nativeContext.LoadFunction("glGetVertexAttribfvNV", "opengl") + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -502142,8 +507522,11 @@ void IGL.GetVertexAttribI( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribIiv", "opengl") + (delegate* unmanaged)( + _slots[1330] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1330] = nativeContext.LoadFunction("glGetVertexAttribIiv", "opengl") + ) )(index, pname, @params); [SupportedApiProfile( @@ -502304,8 +507687,11 @@ void IGL.GetVertexAttribIEXT( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribIivEXT", "opengl") + (delegate* unmanaged)( + _slots[1331] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1331] = nativeContext.LoadFunction("glGetVertexAttribIivEXT", "opengl") + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -502367,8 +507753,11 @@ void IGL.GetVertexAttribIuiv( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribIuiv", "opengl") + (delegate* unmanaged)( + _slots[1332] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1332] = nativeContext.LoadFunction("glGetVertexAttribIuiv", "opengl") + ) )(index, pname, @params); [SupportedApiProfile( @@ -502529,8 +507918,14 @@ void IGL.GetVertexAttribIuivEXT( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribIuivEXT", "opengl") + (delegate* unmanaged)( + _slots[1333] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1333] = nativeContext.LoadFunction( + "glGetVertexAttribIuivEXT", + "opengl" + ) + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -502592,8 +507987,11 @@ void IGL.GetVertexAttrib( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribiv", "opengl") + (delegate* unmanaged)( + _slots[1334] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1334] = nativeContext.LoadFunction("glGetVertexAttribiv", "opengl") + ) )(index, pname, @params); [SupportedApiProfile( @@ -502719,8 +508117,11 @@ void IGL.GetVertexAttribARB( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribivARB", "opengl") + (delegate* unmanaged)( + _slots[1335] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1335] = nativeContext.LoadFunction("glGetVertexAttribivARB", "opengl") + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -502762,8 +508163,11 @@ void IGL.GetVertexAttribivNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribivNV", "opengl") + (delegate* unmanaged)( + _slots[1336] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1336] = nativeContext.LoadFunction("glGetVertexAttribivNV", "opengl") + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -502825,8 +508229,11 @@ void IGL.GetVertexAttribL( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribLdv", "opengl") + (delegate* unmanaged)( + _slots[1337] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1337] = nativeContext.LoadFunction("glGetVertexAttribLdv", "opengl") + ) )(index, pname, @params); [SupportedApiProfile( @@ -502918,8 +508325,11 @@ void IGL.GetVertexAttribLEXT( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribLdvEXT", "opengl") + (delegate* unmanaged)( + _slots[1338] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1338] = nativeContext.LoadFunction("glGetVertexAttribLdvEXT", "opengl") + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_vertex_attrib_64bit"])] @@ -502961,8 +508371,14 @@ void IGL.GetVertexAttribLNV( [NativeTypeName("GLint64EXT *")] long* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribLi64vNV", "opengl") + (delegate* unmanaged)( + _slots[1339] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1339] = nativeContext.LoadFunction( + "glGetVertexAttribLi64vNV", + "opengl" + ) + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -503006,8 +508422,14 @@ void IGL.GetVertexAttribLARB( [NativeTypeName("GLuint64EXT *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribLui64vARB", "opengl") + (delegate* unmanaged)( + _slots[1340] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1340] = nativeContext.LoadFunction( + "glGetVertexAttribLui64vARB", + "opengl" + ) + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_ARB_bindless_texture"])] @@ -503051,8 +508473,14 @@ void IGL.GetVertexAttribLNV( [NativeTypeName("GLuint64EXT *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribLui64vNV", "opengl") + (delegate* unmanaged)( + _slots[1341] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1341] = nativeContext.LoadFunction( + "glGetVertexAttribLui64vNV", + "opengl" + ) + ) )(index, pname, @params); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -503096,8 +508524,14 @@ void IGL.GetVertexAttribPointer( void** pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribPointerv", "opengl") + (delegate* unmanaged)( + _slots[1342] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1342] = nativeContext.LoadFunction( + "glGetVertexAttribPointerv", + "opengl" + ) + ) )(index, pname, pointer); [SupportedApiProfile( @@ -503223,8 +508657,14 @@ void IGL.GetVertexAttribPointerARB( void** pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribPointervARB", "opengl") + (delegate* unmanaged)( + _slots[1343] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1343] = nativeContext.LoadFunction( + "glGetVertexAttribPointervARB", + "opengl" + ) + ) )(index, pname, pointer); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -503266,8 +508706,14 @@ void IGL.GetVertexAttribPointerNV( void** pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVertexAttribPointervNV", "opengl") + (delegate* unmanaged)( + _slots[1344] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1344] = nativeContext.LoadFunction( + "glGetVertexAttribPointervNV", + "opengl" + ) + ) )(index, pname, pointer); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -503309,8 +508755,11 @@ void IGL.GetVideoCaptureNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVideoCaptureivNV", "opengl") + (delegate* unmanaged)( + _slots[1345] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1345] = nativeContext.LoadFunction("glGetVideoCaptureivNV", "opengl") + ) )(video_capture_slot, pname, @params); [SupportedApiProfile("gl", ["GL_NV_video_capture"])] @@ -503368,8 +508817,14 @@ void IGL.GetVideoCaptureStreamdvNV( [NativeTypeName("GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVideoCaptureStreamdvNV", "opengl") + (delegate* unmanaged)( + _slots[1346] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1346] = nativeContext.LoadFunction( + "glGetVideoCaptureStreamdvNV", + "opengl" + ) + ) )(video_capture_slot, stream, pname, @params); [SupportedApiProfile("gl", ["GL_NV_video_capture"])] @@ -503435,8 +508890,14 @@ void IGL.GetVideoCaptureStreamfvNV( [NativeTypeName("GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVideoCaptureStreamfvNV", "opengl") + (delegate* unmanaged)( + _slots[1347] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1347] = nativeContext.LoadFunction( + "glGetVideoCaptureStreamfvNV", + "opengl" + ) + ) )(video_capture_slot, stream, pname, @params); [SupportedApiProfile("gl", ["GL_NV_video_capture"])] @@ -503502,8 +508963,14 @@ void IGL.GetVideoCaptureStreamivNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVideoCaptureStreamivNV", "opengl") + (delegate* unmanaged)( + _slots[1348] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1348] = nativeContext.LoadFunction( + "glGetVideoCaptureStreamivNV", + "opengl" + ) + ) )(video_capture_slot, stream, pname, @params); [SupportedApiProfile("gl", ["GL_NV_video_capture"])] @@ -503568,8 +509035,11 @@ void IGL.GetVideoi64VNV( [NativeTypeName("GLint64EXT *")] long* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVideoi64vNV", "opengl") + (delegate* unmanaged)( + _slots[1349] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1349] = nativeContext.LoadFunction("glGetVideoi64vNV", "opengl") + ) )(video_slot, pname, @params); [SupportedApiProfile("gl", ["GL_NV_present_video"])] @@ -503626,8 +509096,11 @@ void IGL.GetVideoNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVideoivNV", "opengl") + (delegate* unmanaged)( + _slots[1350] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1350] = nativeContext.LoadFunction("glGetVideoivNV", "opengl") + ) )(video_slot, pname, @params); [SupportedApiProfile("gl", ["GL_NV_present_video"])] @@ -503684,8 +509157,11 @@ void IGL.GetVideoui64VNV( [NativeTypeName("GLuint64EXT *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVideoui64vNV", "opengl") + (delegate* unmanaged)( + _slots[1351] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1351] = nativeContext.LoadFunction("glGetVideoui64vNV", "opengl") + ) )(video_slot, pname, @params); [SupportedApiProfile("gl", ["GL_NV_present_video"])] @@ -503742,8 +509218,11 @@ void IGL.GetVideouivNV( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGetVideouivNV", "opengl") + (delegate* unmanaged)( + _slots[1352] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1352] = nativeContext.LoadFunction("glGetVideouivNV", "opengl") + ) )(video_slot, pname, @params); [SupportedApiProfile("gl", ["GL_NV_present_video"])] @@ -503796,8 +509275,11 @@ public static uint GetVideouivNV([NativeTypeName("GLuint")] uint video_slot) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] delegate* unmanaged IGL.GetVkProcAddrNV([NativeTypeName("const GLchar *")] sbyte* name) => ( - (delegate* unmanaged>) - nativeContext.LoadFunction("glGetVkProcAddrNV", "opengl") + (delegate* unmanaged>)( + _slots[1353] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1353] = nativeContext.LoadFunction("glGetVkProcAddrNV", "opengl") + ) )(name); [return: NativeTypeName("GLVULKANPROCNV")] @@ -503835,8 +509317,11 @@ public static uint GetVideouivNV([NativeTypeName("GLuint")] uint video_slot) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GlobalAlphaFactorSUN([NativeTypeName("GLbyte")] sbyte factor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGlobalAlphaFactorbSUN", "opengl") + (delegate* unmanaged)( + _slots[1354] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1354] = nativeContext.LoadFunction("glGlobalAlphaFactorbSUN", "opengl") + ) )(factor); [SupportedApiProfile("gl", ["GL_SUN_global_alpha"])] @@ -503848,8 +509333,11 @@ public static void GlobalAlphaFactorSUN([NativeTypeName("GLbyte")] sbyte factor) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GlobalAlphaFactorSUN([NativeTypeName("GLdouble")] double factor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGlobalAlphaFactordSUN", "opengl") + (delegate* unmanaged)( + _slots[1355] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1355] = nativeContext.LoadFunction("glGlobalAlphaFactordSUN", "opengl") + ) )(factor); [SupportedApiProfile("gl", ["GL_SUN_global_alpha"])] @@ -503861,8 +509349,11 @@ public static void GlobalAlphaFactorSUN([NativeTypeName("GLdouble")] double fact [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GlobalAlphaFactorSUN([NativeTypeName("GLfloat")] float factor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGlobalAlphaFactorfSUN", "opengl") + (delegate* unmanaged)( + _slots[1356] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1356] = nativeContext.LoadFunction("glGlobalAlphaFactorfSUN", "opengl") + ) )(factor); [SupportedApiProfile("gl", ["GL_SUN_global_alpha"])] @@ -503874,8 +509365,11 @@ public static void GlobalAlphaFactorSUN([NativeTypeName("GLfloat")] float factor [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GlobalAlphaFactorSUN([NativeTypeName("GLint")] int factor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGlobalAlphaFactoriSUN", "opengl") + (delegate* unmanaged)( + _slots[1357] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1357] = nativeContext.LoadFunction("glGlobalAlphaFactoriSUN", "opengl") + ) )(factor); [SupportedApiProfile("gl", ["GL_SUN_global_alpha"])] @@ -503887,8 +509381,11 @@ public static void GlobalAlphaFactorSUN([NativeTypeName("GLint")] int factor) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GlobalAlphaFactorsSUN([NativeTypeName("GLshort")] short factor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGlobalAlphaFactorsSUN", "opengl") + (delegate* unmanaged)( + _slots[1358] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1358] = nativeContext.LoadFunction("glGlobalAlphaFactorsSUN", "opengl") + ) )(factor); [SupportedApiProfile("gl", ["GL_SUN_global_alpha"])] @@ -503900,8 +509397,14 @@ public static void GlobalAlphaFactorsSUN([NativeTypeName("GLshort")] short facto [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GlobalAlphaFactorSUN([NativeTypeName("GLubyte")] byte factor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGlobalAlphaFactorubSUN", "opengl") + (delegate* unmanaged)( + _slots[1359] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1359] = nativeContext.LoadFunction( + "glGlobalAlphaFactorubSUN", + "opengl" + ) + ) )(factor); [SupportedApiProfile("gl", ["GL_SUN_global_alpha"])] @@ -503913,8 +509416,14 @@ public static void GlobalAlphaFactorSUN([NativeTypeName("GLubyte")] byte factor) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GlobalAlphaFactorSUN([NativeTypeName("GLuint")] uint factor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGlobalAlphaFactoruiSUN", "opengl") + (delegate* unmanaged)( + _slots[1360] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1360] = nativeContext.LoadFunction( + "glGlobalAlphaFactoruiSUN", + "opengl" + ) + ) )(factor); [SupportedApiProfile("gl", ["GL_SUN_global_alpha"])] @@ -503926,8 +509435,14 @@ public static void GlobalAlphaFactorSUN([NativeTypeName("GLuint")] uint factor) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.GlobalAlphaFactorSUN([NativeTypeName("GLushort")] ushort factor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glGlobalAlphaFactorusSUN", "opengl") + (delegate* unmanaged)( + _slots[1361] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1361] = nativeContext.LoadFunction( + "glGlobalAlphaFactorusSUN", + "opengl" + ) + ) )(factor); [SupportedApiProfile("gl", ["GL_SUN_global_alpha"])] @@ -503938,10 +509453,13 @@ public static void GlobalAlphaFactorSUN([NativeTypeName("GLushort")] ushort fact [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Hint([NativeTypeName("GLenum")] uint target, [NativeTypeName("GLenum")] uint mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glHint", "opengl"))( - target, - mode - ); + ( + (delegate* unmanaged)( + _slots[1362] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1362] = nativeContext.LoadFunction("glHint", "opengl") + ) + )(target, mode); [SupportedApiProfile( "gl", @@ -504078,10 +509596,13 @@ public static void Hint( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.HintPGI([NativeTypeName("GLenum")] uint target, [NativeTypeName("GLint")] int mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glHintPGI", "opengl"))( - target, - mode - ); + ( + (delegate* unmanaged)( + _slots[1363] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1363] = nativeContext.LoadFunction("glHintPGI", "opengl") + ) + )(target, mode); [SupportedApiProfile("gl", ["GL_PGI_misc_hints"])] [NativeFunction("opengl", EntryPoint = "glHintPGI")] @@ -504114,8 +509635,11 @@ void IGL.Histogram( [NativeTypeName("GLboolean")] uint sink ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glHistogram", "opengl") + (delegate* unmanaged)( + _slots[1364] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1364] = nativeContext.LoadFunction("glHistogram", "opengl") + ) )(target, width, internalformat, sink); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -504155,8 +509679,11 @@ void IGL.HistogramEXT( [NativeTypeName("GLboolean")] uint sink ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glHistogramEXT", "opengl") + (delegate* unmanaged)( + _slots[1365] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1365] = nativeContext.LoadFunction("glHistogramEXT", "opengl") + ) )(target, width, internalformat, sink); [SupportedApiProfile("gl", ["GL_EXT_histogram"])] @@ -504194,8 +509721,11 @@ void IGL.IglooInterfaceSGIX( [NativeTypeName("const void *")] void* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIglooInterfaceSGIX", "opengl") + (delegate* unmanaged)( + _slots[1366] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1366] = nativeContext.LoadFunction("glIglooInterfaceSGIX", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_igloo_interface"])] @@ -504234,8 +509764,14 @@ void IGL.ImageTransformParameterHP( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glImageTransformParameterfHP", "opengl") + (delegate* unmanaged)( + _slots[1367] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1367] = nativeContext.LoadFunction( + "glImageTransformParameterfHP", + "opengl" + ) + ) )(target, pname, param2); [SupportedApiProfile("gl", ["GL_HP_image_transform"])] @@ -504271,8 +509807,14 @@ void IGL.ImageTransformParameterHP( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glImageTransformParameterfvHP", "opengl") + (delegate* unmanaged)( + _slots[1368] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1368] = nativeContext.LoadFunction( + "glImageTransformParameterfvHP", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_HP_image_transform"])] @@ -504314,8 +509856,14 @@ void IGL.ImageTransformParameterHP( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glImageTransformParameteriHP", "opengl") + (delegate* unmanaged)( + _slots[1369] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1369] = nativeContext.LoadFunction( + "glImageTransformParameteriHP", + "opengl" + ) + ) )(target, pname, param2); [SupportedApiProfile("gl", ["GL_HP_image_transform"])] @@ -504351,8 +509899,14 @@ void IGL.ImageTransformParameterHP( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glImageTransformParameterivHP", "opengl") + (delegate* unmanaged)( + _slots[1370] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1370] = nativeContext.LoadFunction( + "glImageTransformParameterivHP", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_HP_image_transform"])] @@ -504395,8 +509949,11 @@ void IGL.ImportMemoryFEXT( [NativeTypeName("GLint")] int fd ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glImportMemoryFdEXT", "opengl") + (delegate* unmanaged)( + _slots[1371] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1371] = nativeContext.LoadFunction("glImportMemoryFdEXT", "opengl") + ) )(memory, size, handleType, fd); [SupportedApiProfile("gl", ["GL_EXT_memory_object_fd"])] @@ -504438,8 +509995,14 @@ void IGL.ImportMemoryWin32HandleEXT( void* handle ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glImportMemoryWin32HandleEXT", "opengl") + (delegate* unmanaged)( + _slots[1372] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1372] = nativeContext.LoadFunction( + "glImportMemoryWin32HandleEXT", + "opengl" + ) + ) )(memory, size, handleType, handle); [SupportedApiProfile("gl", ["GL_EXT_memory_object_win32"])] @@ -504487,8 +510050,14 @@ void IGL.ImportMemoryWin32NameEXT( [NativeTypeName("const void *")] void* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glImportMemoryWin32NameEXT", "opengl") + (delegate* unmanaged)( + _slots[1373] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1373] = nativeContext.LoadFunction( + "glImportMemoryWin32NameEXT", + "opengl" + ) + ) )(memory, size, handleType, name); [SupportedApiProfile("gl", ["GL_EXT_memory_object_win32"])] @@ -504535,8 +510104,11 @@ void IGL.ImportSemaphoreFEXT( [NativeTypeName("GLint")] int fd ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glImportSemaphoreFdEXT", "opengl") + (delegate* unmanaged)( + _slots[1374] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1374] = nativeContext.LoadFunction("glImportSemaphoreFdEXT", "opengl") + ) )(semaphore, handleType, fd); [SupportedApiProfile("gl", ["GL_EXT_semaphore_fd"])] @@ -504574,8 +510146,14 @@ void IGL.ImportSemaphoreWin32HandleEXT( void* handle ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glImportSemaphoreWin32HandleEXT", "opengl") + (delegate* unmanaged)( + _slots[1375] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1375] = nativeContext.LoadFunction( + "glImportSemaphoreWin32HandleEXT", + "opengl" + ) + ) )(semaphore, handleType, handle); [SupportedApiProfile("gl", ["GL_EXT_semaphore_win32"])] @@ -504619,8 +510197,14 @@ void IGL.ImportSemaphoreWin32NameEXT( [NativeTypeName("const void *")] void* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glImportSemaphoreWin32NameEXT", "opengl") + (delegate* unmanaged)( + _slots[1376] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1376] = nativeContext.LoadFunction( + "glImportSemaphoreWin32NameEXT", + "opengl" + ) + ) )(semaphore, handleType, name); [SupportedApiProfile("gl", ["GL_EXT_semaphore_win32"])] @@ -504682,8 +510266,11 @@ public static Ptr ImportSyncEXT( [NativeTypeName("GLbitfield")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glImportSyncEXT", "opengl") + (delegate* unmanaged)( + _slots[1377] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1377] = nativeContext.LoadFunction("glImportSyncEXT", "opengl") + ) )(external_sync_type, external_sync, flags); [return: NativeTypeName("GLsync")] @@ -504698,7 +510285,13 @@ public static Ptr ImportSyncEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Indexd([NativeTypeName("GLdouble")] double c) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexd", "opengl"))(c); + ( + (delegate* unmanaged)( + _slots[1378] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1378] = nativeContext.LoadFunction("glIndexd", "opengl") + ) + )(c); [SupportedApiProfile( "gl", @@ -504731,7 +510324,13 @@ void IGL.Indexd([NativeTypeName("GLdouble")] double c) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Indexdv([NativeTypeName("const GLdouble *")] double* c) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexdv", "opengl"))(c); + ( + (delegate* unmanaged)( + _slots[1379] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1379] = nativeContext.LoadFunction("glIndexdv", "opengl") + ) + )(c); [SupportedApiProfile( "gl", @@ -504840,7 +510439,13 @@ public static void Indexdv([NativeTypeName("const GLdouble *")] double c) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Indexf([NativeTypeName("GLfloat")] float c) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexf", "opengl"))(c); + ( + (delegate* unmanaged)( + _slots[1380] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1380] = nativeContext.LoadFunction("glIndexf", "opengl") + ) + )(c); [SupportedApiProfile( "gl", @@ -504877,8 +510482,11 @@ void IGL.IndexFormatNV( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIndexFormatNV", "opengl") + (delegate* unmanaged)( + _slots[1381] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1381] = nativeContext.LoadFunction("glIndexFormatNV", "opengl") + ) )(type, stride); [SupportedApiProfile("gl", ["GL_NV_vertex_buffer_unified_memory"])] @@ -504896,8 +510504,11 @@ void IGL.IndexFuncEXT( [NativeTypeName("GLclampf")] float @ref ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIndexFuncEXT", "opengl") + (delegate* unmanaged)( + _slots[1382] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1382] = nativeContext.LoadFunction("glIndexFuncEXT", "opengl") + ) )(func, @ref); [SupportedApiProfile("gl", ["GL_EXT_index_func"])] @@ -504925,7 +510536,13 @@ public static void IndexFuncEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Indexfv([NativeTypeName("const GLfloat *")] float* c) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexfv", "opengl"))(c); + ( + (delegate* unmanaged)( + _slots[1383] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1383] = nativeContext.LoadFunction("glIndexfv", "opengl") + ) + )(c); [SupportedApiProfile( "gl", @@ -505034,7 +510651,13 @@ public static void Indexfv([NativeTypeName("const GLfloat *")] float c) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Indexi([NativeTypeName("GLint")] int c) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexi", "opengl"))(c); + ( + (delegate* unmanaged)( + _slots[1384] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1384] = nativeContext.LoadFunction("glIndexi", "opengl") + ) + )(c); [SupportedApiProfile( "gl", @@ -505067,7 +510690,13 @@ void IGL.Indexi([NativeTypeName("GLint")] int c) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Indexiv([NativeTypeName("const GLint *")] int* c) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexiv", "opengl"))(c); + ( + (delegate* unmanaged)( + _slots[1385] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1385] = nativeContext.LoadFunction("glIndexiv", "opengl") + ) + )(c); [SupportedApiProfile( "gl", @@ -505173,9 +510802,13 @@ public static void Indexiv([NativeTypeName("const GLint *")] Ref c) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.IndexMask([NativeTypeName("GLuint")] uint mask) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexMask", "opengl"))( - mask - ); + ( + (delegate* unmanaged)( + _slots[1386] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1386] = nativeContext.LoadFunction("glIndexMask", "opengl") + ) + )(mask); [SupportedApiProfile( "gl", @@ -505213,8 +510846,11 @@ void IGL.IndexMaterialEXT( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIndexMaterialEXT", "opengl") + (delegate* unmanaged)( + _slots[1387] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1387] = nativeContext.LoadFunction("glIndexMaterialEXT", "opengl") + ) )(face, mode); [SupportedApiProfile("gl", ["GL_EXT_index_material"])] @@ -505247,8 +510883,11 @@ void IGL.IndexPointer( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIndexPointer", "opengl") + (delegate* unmanaged)( + _slots[1388] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1388] = nativeContext.LoadFunction("glIndexPointer", "opengl") + ) )(type, stride, pointer); [SupportedApiProfile( @@ -505337,8 +510976,11 @@ void IGL.IndexPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIndexPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[1389] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1389] = nativeContext.LoadFunction("glIndexPointerEXT", "opengl") + ) )(type, stride, count, pointer); [SupportedApiProfile("gl", ["GL_EXT_vertex_array"])] @@ -505384,8 +511026,11 @@ void IGL.IndexPointerListIBM( [NativeTypeName("GLint")] int ptrstride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIndexPointerListIBM", "opengl") + (delegate* unmanaged)( + _slots[1390] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1390] = nativeContext.LoadFunction("glIndexPointerListIBM", "opengl") + ) )(type, stride, pointer, ptrstride); [SupportedApiProfile("gl", ["GL_IBM_vertex_array_lists"])] @@ -505425,7 +511070,13 @@ public static void IndexPointerListIBM( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Indexs([NativeTypeName("GLshort")] short c) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexs", "opengl"))(c); + ( + (delegate* unmanaged)( + _slots[1391] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1391] = nativeContext.LoadFunction("glIndexs", "opengl") + ) + )(c); [SupportedApiProfile( "gl", @@ -505458,7 +511109,13 @@ void IGL.Indexs([NativeTypeName("GLshort")] short c) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Indexsv([NativeTypeName("const GLshort *")] short* c) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexsv", "opengl"))(c); + ( + (delegate* unmanaged)( + _slots[1392] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1392] = nativeContext.LoadFunction("glIndexsv", "opengl") + ) + )(c); [SupportedApiProfile( "gl", @@ -505567,7 +511224,13 @@ public static void Indexsv([NativeTypeName("const GLshort *")] short c) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Indexub([NativeTypeName("GLubyte")] byte c) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexub", "opengl"))(c); + ( + (delegate* unmanaged)( + _slots[1393] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1393] = nativeContext.LoadFunction("glIndexub", "opengl") + ) + )(c); [SupportedApiProfile( "gl", @@ -505599,7 +511262,13 @@ void IGL.Indexub([NativeTypeName("GLubyte")] byte c) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Indexubv([NativeTypeName("const GLubyte *")] byte* c) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexubv", "opengl"))(c); + ( + (delegate* unmanaged)( + _slots[1394] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1394] = nativeContext.LoadFunction("glIndexubv", "opengl") + ) + )(c); [SupportedApiProfile( "gl", @@ -505705,9 +511374,13 @@ public static void Indexubv([NativeTypeName("const GLubyte *")] byte c) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.IndexxOES([NativeTypeName("GLfixed")] int component) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexxOES", "opengl"))( - component - ); + ( + (delegate* unmanaged)( + _slots[1395] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1395] = nativeContext.LoadFunction("glIndexxOES", "opengl") + ) + )(component); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glIndexxOES")] @@ -505728,9 +511401,13 @@ public static void IndexxvO([NativeTypeName("const GLfixed *")] int component) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.IndexxOES([NativeTypeName("const GLfixed *")] int* component) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIndexxvOES", "opengl"))( - component - ); + ( + (delegate* unmanaged)( + _slots[1396] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1396] = nativeContext.LoadFunction("glIndexxvOES", "opengl") + ) + )(component); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glIndexxvOES")] @@ -505756,7 +511433,13 @@ public static void IndexxOES([NativeTypeName("const GLfixed *")] Ref compon [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.InitNames() => - ((delegate* unmanaged)nativeContext.LoadFunction("glInitNames", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[1397] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1397] = nativeContext.LoadFunction("glInitNames", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -505794,8 +511477,11 @@ void IGL.InsertComponentEXT( [NativeTypeName("GLuint")] uint num ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInsertComponentEXT", "opengl") + (delegate* unmanaged)( + _slots[1398] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1398] = nativeContext.LoadFunction("glInsertComponentEXT", "opengl") + ) )(res, src, num); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -505813,8 +511499,11 @@ void IGL.InsertEventMarkerEXT( [NativeTypeName("const GLchar *")] sbyte* marker ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInsertEventMarkerEXT", "opengl") + (delegate* unmanaged)( + _slots[1399] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1399] = nativeContext.LoadFunction("glInsertEventMarkerEXT", "opengl") + ) )(length, marker); [SupportedApiProfile("gl", ["GL_EXT_debug_marker"])] @@ -505858,8 +511547,11 @@ void IGL.InstrumentsBufferSGIX( [NativeTypeName("GLint *")] int* buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInstrumentsBufferSGIX", "opengl") + (delegate* unmanaged)( + _slots[1400] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1400] = nativeContext.LoadFunction("glInstrumentsBufferSGIX", "opengl") + ) )(size, buffer); [SupportedApiProfile("gl", ["GL_SGIX_instruments"])] @@ -505912,8 +511604,11 @@ void IGL.InterleavedArrays( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInterleavedArrays", "opengl") + (delegate* unmanaged)( + _slots[1401] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1401] = nativeContext.LoadFunction("glInterleavedArrays", "opengl") + ) )(format, stride, pointer); [SupportedApiProfile( @@ -506002,8 +511697,11 @@ void IGL.InterpolatePathNV( [NativeTypeName("GLfloat")] float weight ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInterpolatePathsNV", "opengl") + (delegate* unmanaged)( + _slots[1402] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1402] = nativeContext.LoadFunction("glInterpolatePathsNV", "opengl") + ) )(resultPath, pathA, pathB, weight); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -506021,8 +511719,11 @@ public static void InterpolatePathNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.InvalidateBufferData([NativeTypeName("GLuint")] uint buffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInvalidateBufferData", "opengl") + (delegate* unmanaged)( + _slots[1403] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1403] = nativeContext.LoadFunction("glInvalidateBufferData", "opengl") + ) )(buffer); [SupportedApiProfile( @@ -506059,8 +511760,14 @@ void IGL.InvalidateBufferSubData( [NativeTypeName("GLsizeiptr")] nuint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInvalidateBufferSubData", "opengl") + (delegate* unmanaged)( + _slots[1404] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1404] = nativeContext.LoadFunction( + "glInvalidateBufferSubData", + "opengl" + ) + ) )(buffer, offset, length); [SupportedApiProfile( @@ -506100,8 +511807,11 @@ void IGL.InvalidateFramebuffer( [NativeTypeName("const GLenum *")] uint* attachments ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInvalidateFramebuffer", "opengl") + (delegate* unmanaged)( + _slots[1405] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1405] = nativeContext.LoadFunction("glInvalidateFramebuffer", "opengl") + ) )(target, numAttachments, attachments); [SupportedApiProfile( @@ -506394,8 +512104,14 @@ void IGL.InvalidateNamedFramebufferData( [NativeTypeName("const GLenum *")] uint* attachments ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInvalidateNamedFramebufferData", "opengl") + (delegate* unmanaged)( + _slots[1406] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1406] = nativeContext.LoadFunction( + "glInvalidateNamedFramebufferData", + "opengl" + ) + ) )(framebuffer, numAttachments, attachments); [SupportedApiProfile( @@ -506612,8 +512328,14 @@ void IGL.InvalidateNamedFramebufferSubData( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInvalidateNamedFramebufferSubData", "opengl") + (delegate* unmanaged)( + _slots[1407] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1407] = nativeContext.LoadFunction( + "glInvalidateNamedFramebufferSubData", + "opengl" + ) + ) )(framebuffer, numAttachments, attachments, x, y, width, height); [SupportedApiProfile( @@ -506976,8 +512698,14 @@ void IGL.InvalidateSubFramebuffer( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInvalidateSubFramebuffer", "opengl") + (delegate* unmanaged)( + _slots[1408] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1408] = nativeContext.LoadFunction( + "glInvalidateSubFramebuffer", + "opengl" + ) + ) )(target, numAttachments, attachments, x, y, width, height); [SupportedApiProfile( @@ -507395,8 +513123,11 @@ void IGL.InvalidateTexImage( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInvalidateTexImage", "opengl") + (delegate* unmanaged)( + _slots[1409] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1409] = nativeContext.LoadFunction("glInvalidateTexImage", "opengl") + ) )(texture, level); [SupportedApiProfile( @@ -507440,8 +513171,11 @@ void IGL.InvalidateTexSubImage( [NativeTypeName("GLsizei")] uint depth ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glInvalidateTexSubImage", "opengl") + (delegate* unmanaged)( + _slots[1410] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1410] = nativeContext.LoadFunction("glInvalidateTexSubImage", "opengl") + ) )(texture, level, xoffset, yoffset, zoffset, width, height, depth); [SupportedApiProfile( @@ -507504,8 +513238,11 @@ public static MaybeBool IsAsyncMarkerSGIX([NativeTypeName("GLuint")] uint [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsAsyncMarkerSGIXRaw([NativeTypeName("GLuint")] uint marker) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsAsyncMarkerSGIX", "opengl") + (delegate* unmanaged)( + _slots[1411] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1411] = nativeContext.LoadFunction("glIsAsyncMarkerSGIX", "opengl") + ) )(marker); [return: NativeTypeName("GLboolean")] @@ -507586,9 +513323,13 @@ public static MaybeBool IsBufferARB([NativeTypeName("GLuint")] uint buffer [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsBufferARBRaw([NativeTypeName("GLuint")] uint buffer) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsBufferARB", "opengl"))( - buffer - ); + ( + (delegate* unmanaged)( + _slots[1413] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1413] = nativeContext.LoadFunction("glIsBufferARB", "opengl") + ) + )(buffer); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_ARB_vertex_buffer_object"])] @@ -507599,9 +513340,13 @@ public static uint IsBufferARBRaw([NativeTypeName("GLuint")] uint buffer) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsBufferRaw([NativeTypeName("GLuint")] uint buffer) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsBuffer", "opengl"))( - buffer - ); + ( + (delegate* unmanaged)( + _slots[1412] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1412] = nativeContext.LoadFunction("glIsBuffer", "opengl") + ) + )(buffer); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -507671,8 +513416,11 @@ public static MaybeBool IsBufferResidentNV([NativeTypeName("GLenum")] uint [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsBufferResidentNVRaw([NativeTypeName("GLenum")] uint target) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsBufferResidentNV", "opengl") + (delegate* unmanaged)( + _slots[1414] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1414] = nativeContext.LoadFunction("glIsBufferResidentNV", "opengl") + ) )(target); [return: NativeTypeName("GLboolean")] @@ -507699,8 +513447,11 @@ public static MaybeBool IsCommandListNV([NativeTypeName("GLuint")] uint li [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsCommandListNVRaw([NativeTypeName("GLuint")] uint list) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsCommandListNV", "opengl") + (delegate* unmanaged)( + _slots[1415] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1415] = nativeContext.LoadFunction("glIsCommandListNV", "opengl") + ) )(list); [return: NativeTypeName("GLboolean")] @@ -507713,7 +513464,13 @@ public static uint IsCommandListNVRaw([NativeTypeName("GLuint")] uint list) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsEnabled([NativeTypeName("GLenum")] uint cap) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsEnabled", "opengl"))(cap); + ( + (delegate* unmanaged)( + _slots[1416] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1416] = nativeContext.LoadFunction("glIsEnabled", "opengl") + ) + )(cap); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -507851,8 +513608,11 @@ uint IGL.IsEnabled( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsEnabledi", "opengl") + (delegate* unmanaged)( + _slots[1417] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1417] = nativeContext.LoadFunction("glIsEnabledi", "opengl") + ) )(target, index); [return: NativeTypeName("GLboolean")] @@ -507952,8 +513712,11 @@ uint IGL.IsEnabledEXT( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsEnablediEXT", "opengl") + (delegate* unmanaged)( + _slots[1418] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1418] = nativeContext.LoadFunction("glIsEnablediEXT", "opengl") + ) )(target, index); [return: NativeTypeName("GLboolean")] @@ -507987,8 +513750,11 @@ uint IGL.IsEnabledIndexedEXT( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsEnabledIndexedEXT", "opengl") + (delegate* unmanaged)( + _slots[1419] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1419] = nativeContext.LoadFunction("glIsEnabledIndexedEXT", "opengl") + ) )(target, index); [return: NativeTypeName("GLboolean")] @@ -508024,8 +513790,11 @@ uint IGL.IsEnabledNV( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsEnablediNV", "opengl") + (delegate* unmanaged)( + _slots[1420] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1420] = nativeContext.LoadFunction("glIsEnablediNV", "opengl") + ) )(target, index); [return: NativeTypeName("GLboolean")] @@ -508059,8 +513828,11 @@ uint IGL.IsEnabledOES( [NativeTypeName("GLuint")] uint index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsEnablediOES", "opengl") + (delegate* unmanaged)( + _slots[1421] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1421] = nativeContext.LoadFunction("glIsEnablediOES", "opengl") + ) )(target, index); [return: NativeTypeName("GLboolean")] @@ -508102,9 +513874,13 @@ public static MaybeBool IsFenceApple([NativeTypeName("GLuint")] uint fence [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsFenceAppleRaw([NativeTypeName("GLuint")] uint fence) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsFenceAPPLE", "opengl"))( - fence - ); + ( + (delegate* unmanaged)( + _slots[1422] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1422] = nativeContext.LoadFunction("glIsFenceAPPLE", "opengl") + ) + )(fence); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_APPLE_fence"])] @@ -508129,9 +513905,13 @@ public static MaybeBool IsFenceNV([NativeTypeName("GLuint")] uint fence) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsFenceNVRaw([NativeTypeName("GLuint")] uint fence) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsFenceNV", "opengl"))( - fence - ); + ( + (delegate* unmanaged)( + _slots[1423] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1423] = nativeContext.LoadFunction("glIsFenceNV", "opengl") + ) + )(fence); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_NV_fence"])] @@ -508209,8 +513989,11 @@ public static MaybeBool IsFramebufferEXT([NativeTypeName("GLuint")] uint f [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsFramebufferEXTRaw([NativeTypeName("GLuint")] uint framebuffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsFramebufferEXT", "opengl") + (delegate* unmanaged)( + _slots[1425] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1425] = nativeContext.LoadFunction("glIsFramebufferEXT", "opengl") + ) )(framebuffer); [return: NativeTypeName("GLboolean")] @@ -508235,8 +514018,11 @@ public static MaybeBool IsFramebufferOES([NativeTypeName("GLuint")] uint f [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsFramebufferOESRaw([NativeTypeName("GLuint")] uint framebuffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsFramebufferOES", "opengl") + (delegate* unmanaged)( + _slots[1426] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1426] = nativeContext.LoadFunction("glIsFramebufferOES", "opengl") + ) )(framebuffer); [return: NativeTypeName("GLboolean")] @@ -508248,9 +514034,13 @@ public static uint IsFramebufferOESRaw([NativeTypeName("GLuint")] uint framebuff [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsFramebufferRaw([NativeTypeName("GLuint")] uint framebuffer) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsFramebuffer", "opengl"))( - framebuffer - ); + ( + (delegate* unmanaged)( + _slots[1424] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1424] = nativeContext.LoadFunction("glIsFramebuffer", "opengl") + ) + )(framebuffer); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -508316,8 +514106,14 @@ public static MaybeBool IsImageHandleResidentARB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsImageHandleResidentARBRaw([NativeTypeName("GLuint64")] ulong handle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsImageHandleResidentARB", "opengl") + (delegate* unmanaged)( + _slots[1427] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1427] = nativeContext.LoadFunction( + "glIsImageHandleResidentARB", + "opengl" + ) + ) )(handle); [return: NativeTypeName("GLboolean")] @@ -508346,8 +514142,14 @@ public static MaybeBool IsImageHandleResidentNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsImageHandleResidentNVRaw([NativeTypeName("GLuint64")] ulong handle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsImageHandleResidentNV", "opengl") + (delegate* unmanaged)( + _slots[1428] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1428] = nativeContext.LoadFunction( + "glIsImageHandleResidentNV", + "opengl" + ) + ) )(handle); [return: NativeTypeName("GLboolean")] @@ -508397,7 +514199,13 @@ public static MaybeBool IsList([NativeTypeName("GLuint")] uint list) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsListRaw([NativeTypeName("GLuint")] uint list) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsList", "opengl"))(list); + ( + (delegate* unmanaged)( + _slots[1429] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1429] = nativeContext.LoadFunction("glIsList", "opengl") + ) + )(list); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -508446,8 +514254,11 @@ public static MaybeBool IsMemoryObjectEXT([NativeTypeName("GLuint")] uint [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsMemoryObjectEXTRaw([NativeTypeName("GLuint")] uint memoryObject) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsMemoryObjectEXT", "opengl") + (delegate* unmanaged)( + _slots[1430] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1430] = nativeContext.LoadFunction("glIsMemoryObjectEXT", "opengl") + ) )(memoryObject); [return: NativeTypeName("GLboolean")] @@ -508480,8 +514291,11 @@ uint IGL.IsNameAMDRaw( [NativeTypeName("GLuint")] uint name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsNameAMD", "opengl") + (delegate* unmanaged)( + _slots[1431] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1431] = nativeContext.LoadFunction("glIsNameAMD", "opengl") + ) )(identifier, name); [return: NativeTypeName("GLboolean")] @@ -508509,8 +514323,14 @@ public static MaybeBool IsNamedBufferResidentNV([NativeTypeName("GLuint")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsNamedBufferResidentNVRaw([NativeTypeName("GLuint")] uint buffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsNamedBufferResidentNV", "opengl") + (delegate* unmanaged)( + _slots[1432] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1432] = nativeContext.LoadFunction( + "glIsNamedBufferResidentNV", + "opengl" + ) + ) )(buffer); [return: NativeTypeName("GLboolean")] @@ -508527,8 +514347,11 @@ uint IGL.IsNamedStringARB( [NativeTypeName("const GLchar *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsNamedStringARB", "opengl") + (delegate* unmanaged)( + _slots[1433] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1433] = nativeContext.LoadFunction("glIsNamedStringARB", "opengl") + ) )(namelen, name); [return: NativeTypeName("GLboolean")] @@ -508579,8 +514402,11 @@ public static MaybeBool IsObjectBufferATI([NativeTypeName("GLuint")] uint [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsObjectBufferATIRaw([NativeTypeName("GLuint")] uint buffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsObjectBufferATI", "opengl") + (delegate* unmanaged)( + _slots[1434] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1434] = nativeContext.LoadFunction("glIsObjectBufferATI", "opengl") + ) )(buffer); [return: NativeTypeName("GLboolean")] @@ -508605,8 +514431,11 @@ public static MaybeBool IsOcclusionQueryNV([NativeTypeName("GLuint")] uint [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsOcclusionQueryNVRaw([NativeTypeName("GLuint")] uint id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsOcclusionQueryNV", "opengl") + (delegate* unmanaged)( + _slots[1435] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1435] = nativeContext.LoadFunction("glIsOcclusionQueryNV", "opengl") + ) )(id); [return: NativeTypeName("GLboolean")] @@ -508632,7 +514461,13 @@ public static MaybeBool IsPathNV([NativeTypeName("GLuint")] uint path) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsPathNVRaw([NativeTypeName("GLuint")] uint path) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsPathNV", "opengl"))(path); + ( + (delegate* unmanaged)( + _slots[1436] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1436] = nativeContext.LoadFunction("glIsPathNV", "opengl") + ) + )(path); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -508673,8 +514508,11 @@ uint IGL.IsPointInFillPathNVRaw( [NativeTypeName("GLfloat")] float y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsPointInFillPathNV", "opengl") + (delegate* unmanaged)( + _slots[1437] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1437] = nativeContext.LoadFunction("glIsPointInFillPathNV", "opengl") + ) )(path, mask, x, y); [return: NativeTypeName("GLboolean")] @@ -508717,8 +514555,11 @@ uint IGL.IsPointInStrokePathNVRaw( [NativeTypeName("GLfloat")] float y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsPointInStrokePathNV", "opengl") + (delegate* unmanaged)( + _slots[1438] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1438] = nativeContext.LoadFunction("glIsPointInStrokePathNV", "opengl") + ) )(path, x, y); [return: NativeTypeName("GLboolean")] @@ -508801,9 +514642,13 @@ public static MaybeBool IsProgramARB([NativeTypeName("GLuint")] uint progr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsProgramARBRaw([NativeTypeName("GLuint")] uint program) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsProgramARB", "opengl"))( - program - ); + ( + (delegate* unmanaged)( + _slots[1440] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1440] = nativeContext.LoadFunction("glIsProgramARB", "opengl") + ) + )(program); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -508826,9 +514671,13 @@ public static MaybeBool IsProgramNV([NativeTypeName("GLuint")] uint id) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsProgramNVRaw([NativeTypeName("GLuint")] uint id) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsProgramNV", "opengl"))( - id - ); + ( + (delegate* unmanaged)( + _slots[1441] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1441] = nativeContext.LoadFunction("glIsProgramNV", "opengl") + ) + )(id); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -508889,8 +514738,11 @@ public static MaybeBool IsProgramPipelineEXT([NativeTypeName("GLuint")] ui [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsProgramPipelineEXTRaw([NativeTypeName("GLuint")] uint pipeline) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsProgramPipelineEXT", "opengl") + (delegate* unmanaged)( + _slots[1443] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1443] = nativeContext.LoadFunction("glIsProgramPipelineEXT", "opengl") + ) )(pipeline); [return: NativeTypeName("GLboolean")] @@ -508903,8 +514755,11 @@ public static uint IsProgramPipelineEXTRaw([NativeTypeName("GLuint")] uint pipel [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsProgramPipelineRaw([NativeTypeName("GLuint")] uint pipeline) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsProgramPipeline", "opengl") + (delegate* unmanaged)( + _slots[1442] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1442] = nativeContext.LoadFunction("glIsProgramPipeline", "opengl") + ) )(pipeline); [return: NativeTypeName("GLboolean")] @@ -508941,9 +514796,13 @@ public static uint IsProgramPipelineRaw([NativeTypeName("GLuint")] uint pipeline [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsProgramRaw([NativeTypeName("GLuint")] uint program) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsProgram", "opengl"))( - program - ); + ( + (delegate* unmanaged)( + _slots[1439] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1439] = nativeContext.LoadFunction("glIsProgram", "opengl") + ) + )(program); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -509059,7 +514918,13 @@ public static MaybeBool IsQueryARB([NativeTypeName("GLuint")] uint id) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsQueryARBRaw([NativeTypeName("GLuint")] uint id) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsQueryARB", "opengl"))(id); + ( + (delegate* unmanaged)( + _slots[1445] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1445] = nativeContext.LoadFunction("glIsQueryARB", "opengl") + ) + )(id); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_ARB_occlusion_query"])] @@ -509085,7 +514950,13 @@ public static MaybeBool IsQueryEXT([NativeTypeName("GLuint")] uint id) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsQueryEXTRaw([NativeTypeName("GLuint")] uint id) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsQueryEXT", "opengl"))(id); + ( + (delegate* unmanaged)( + _slots[1446] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1446] = nativeContext.LoadFunction("glIsQueryEXT", "opengl") + ) + )(id); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -509099,7 +514970,13 @@ public static uint IsQueryEXTRaw([NativeTypeName("GLuint")] uint id) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsQueryRaw([NativeTypeName("GLuint")] uint id) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsQuery", "opengl"))(id); + ( + (delegate* unmanaged)( + _slots[1444] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1444] = nativeContext.LoadFunction("glIsQuery", "opengl") + ) + )(id); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -509213,8 +515090,11 @@ public static MaybeBool IsRenderbufferEXT([NativeTypeName("GLuint")] uint [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsRenderbufferEXTRaw([NativeTypeName("GLuint")] uint renderbuffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsRenderbufferEXT", "opengl") + (delegate* unmanaged)( + _slots[1448] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1448] = nativeContext.LoadFunction("glIsRenderbufferEXT", "opengl") + ) )(renderbuffer); [return: NativeTypeName("GLboolean")] @@ -509239,8 +515119,11 @@ public static MaybeBool IsRenderbufferOES([NativeTypeName("GLuint")] uint [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsRenderbufferOESRaw([NativeTypeName("GLuint")] uint renderbuffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsRenderbufferOES", "opengl") + (delegate* unmanaged)( + _slots[1449] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1449] = nativeContext.LoadFunction("glIsRenderbufferOES", "opengl") + ) )(renderbuffer); [return: NativeTypeName("GLboolean")] @@ -509252,9 +515135,13 @@ public static uint IsRenderbufferOESRaw([NativeTypeName("GLuint")] uint renderbu [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsRenderbufferRaw([NativeTypeName("GLuint")] uint renderbuffer) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsRenderbuffer", "opengl"))( - renderbuffer - ); + ( + (delegate* unmanaged)( + _slots[1447] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1447] = nativeContext.LoadFunction("glIsRenderbuffer", "opengl") + ) + )(renderbuffer); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -509351,9 +515238,13 @@ public static MaybeBool IsSampler([NativeTypeName("GLuint")] uint sampler) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsSamplerRaw([NativeTypeName("GLuint")] uint sampler) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsSampler", "opengl"))( - sampler - ); + ( + (delegate* unmanaged)( + _slots[1450] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1450] = nativeContext.LoadFunction("glIsSampler", "opengl") + ) + )(sampler); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -509411,9 +515302,13 @@ public static MaybeBool IsSemaphoreEXT([NativeTypeName("GLuint")] uint sem [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsSemaphoreEXTRaw([NativeTypeName("GLuint")] uint semaphore) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsSemaphoreEXT", "opengl"))( - semaphore - ); + ( + (delegate* unmanaged)( + _slots[1451] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1451] = nativeContext.LoadFunction("glIsSemaphoreEXT", "opengl") + ) + )(semaphore); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_EXT_semaphore"])] @@ -509479,9 +515374,13 @@ public static MaybeBool IsShader([NativeTypeName("GLuint")] uint shader) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsShaderRaw([NativeTypeName("GLuint")] uint shader) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsShader", "opengl"))( - shader - ); + ( + (delegate* unmanaged)( + _slots[1452] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1452] = nativeContext.LoadFunction("glIsShader", "opengl") + ) + )(shader); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -509547,9 +515446,13 @@ public static MaybeBool IsStateNV([NativeTypeName("GLuint")] uint state) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsStateNVRaw([NativeTypeName("GLuint")] uint state) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsStateNV", "opengl"))( - state - ); + ( + (delegate* unmanaged)( + _slots[1453] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1453] = nativeContext.LoadFunction("glIsStateNV", "opengl") + ) + )(state); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -509561,7 +515464,13 @@ public static uint IsStateNVRaw([NativeTypeName("GLuint")] uint state) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsSync([NativeTypeName("GLsync")] Sync* sync) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsSync", "opengl"))(sync); + ( + (delegate* unmanaged)( + _slots[1454] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1454] = nativeContext.LoadFunction("glIsSync", "opengl") + ) + )(sync); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -509650,9 +515559,13 @@ public static MaybeBool IsSync([NativeTypeName("GLsync")] Ref sync) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsSyncApple([NativeTypeName("GLsync")] Sync* sync) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsSyncAPPLE", "opengl"))( - sync - ); + ( + (delegate* unmanaged)( + _slots[1455] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1455] = nativeContext.LoadFunction("glIsSyncAPPLE", "opengl") + ) + )(sync); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gles2", ["GL_APPLE_sync"])] @@ -509759,9 +515672,13 @@ public static MaybeBool IsTextureEXT([NativeTypeName("GLuint")] uint textu [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsTextureEXTRaw([NativeTypeName("GLuint")] uint texture) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsTextureEXT", "opengl"))( - texture - ); + ( + (delegate* unmanaged)( + _slots[1457] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1457] = nativeContext.LoadFunction("glIsTextureEXT", "opengl") + ) + )(texture); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_EXT_texture_object"])] @@ -509787,8 +515704,14 @@ public static MaybeBool IsTextureHandleResidentARB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsTextureHandleResidentARBRaw([NativeTypeName("GLuint64")] ulong handle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsTextureHandleResidentARB", "opengl") + (delegate* unmanaged)( + _slots[1458] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1458] = nativeContext.LoadFunction( + "glIsTextureHandleResidentARB", + "opengl" + ) + ) )(handle); [return: NativeTypeName("GLboolean")] @@ -509817,8 +515740,14 @@ public static MaybeBool IsTextureHandleResidentNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsTextureHandleResidentNVRaw([NativeTypeName("GLuint64")] ulong handle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsTextureHandleResidentNV", "opengl") + (delegate* unmanaged)( + _slots[1459] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1459] = nativeContext.LoadFunction( + "glIsTextureHandleResidentNV", + "opengl" + ) + ) )(handle); [return: NativeTypeName("GLboolean")] @@ -509832,9 +515761,13 @@ public static uint IsTextureHandleResidentNVRaw([NativeTypeName("GLuint64")] ulo [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsTextureRaw([NativeTypeName("GLuint")] uint texture) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsTexture", "opengl"))( - texture - ); + ( + (delegate* unmanaged)( + _slots[1456] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1456] = nativeContext.LoadFunction("glIsTexture", "opengl") + ) + )(texture); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -509950,8 +515883,11 @@ public static MaybeBool IsTransformFeedbackNV([NativeTypeName("GLuint")] u [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsTransformFeedbackNVRaw([NativeTypeName("GLuint")] uint id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsTransformFeedbackNV", "opengl") + (delegate* unmanaged)( + _slots[1461] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1461] = nativeContext.LoadFunction("glIsTransformFeedbackNV", "opengl") + ) )(id); [return: NativeTypeName("GLboolean")] @@ -509964,8 +515900,11 @@ public static uint IsTransformFeedbackNVRaw([NativeTypeName("GLuint")] uint id) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsTransformFeedbackRaw([NativeTypeName("GLuint")] uint id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsTransformFeedback", "opengl") + (delegate* unmanaged)( + _slots[1460] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1460] = nativeContext.LoadFunction("glIsTransformFeedback", "opengl") + ) )(id); [return: NativeTypeName("GLboolean")] @@ -510008,8 +515947,11 @@ uint IGL.IsVariantEnabledEXT( [NativeTypeName("GLenum")] uint cap ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsVariantEnabledEXT", "opengl") + (delegate* unmanaged)( + _slots[1462] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1462] = nativeContext.LoadFunction("glIsVariantEnabledEXT", "opengl") + ) )(id, cap); [return: NativeTypeName("GLboolean")] @@ -510099,8 +516041,11 @@ public static MaybeBool IsVertexArrayApple([NativeTypeName("GLuint")] uint [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsVertexArrayAppleRaw([NativeTypeName("GLuint")] uint array) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsVertexArrayAPPLE", "opengl") + (delegate* unmanaged)( + _slots[1464] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1464] = nativeContext.LoadFunction("glIsVertexArrayAPPLE", "opengl") + ) )(array); [return: NativeTypeName("GLboolean")] @@ -510126,8 +516071,11 @@ public static MaybeBool IsVertexArrayOES([NativeTypeName("GLuint")] uint a [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsVertexArrayOESRaw([NativeTypeName("GLuint")] uint array) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsVertexArrayOES", "opengl") + (delegate* unmanaged)( + _slots[1465] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1465] = nativeContext.LoadFunction("glIsVertexArrayOES", "opengl") + ) )(array); [return: NativeTypeName("GLboolean")] @@ -510140,9 +516088,13 @@ public static uint IsVertexArrayOESRaw([NativeTypeName("GLuint")] uint array) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.IsVertexArrayRaw([NativeTypeName("GLuint")] uint array) => - ((delegate* unmanaged)nativeContext.LoadFunction("glIsVertexArray", "opengl"))( - array - ); + ( + (delegate* unmanaged)( + _slots[1463] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1463] = nativeContext.LoadFunction("glIsVertexArray", "opengl") + ) + )(array); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -510208,8 +516160,14 @@ uint IGL.IsVertexAttribEnabledAppleRaw( [NativeTypeName("GLenum")] uint pname ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glIsVertexAttribEnabledAPPLE", "opengl") + (delegate* unmanaged)( + _slots[1466] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1466] = nativeContext.LoadFunction( + "glIsVertexAttribEnabledAPPLE", + "opengl" + ) + ) )(index, pname); [return: NativeTypeName("GLboolean")] @@ -510229,8 +516187,11 @@ void IGL.LabelObjectEXT( [NativeTypeName("const GLchar *")] sbyte* label ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLabelObjectEXT", "opengl") + (delegate* unmanaged)( + _slots[1467] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1467] = nativeContext.LoadFunction("glLabelObjectEXT", "opengl") + ) )(type, @object, length, label); [SupportedApiProfile("gl", ["GL_EXT_debug_label"])] @@ -510311,8 +516272,14 @@ void IGL.LGPUCopyImageSubDataNVX( uint, uint, uint, - void>) - nativeContext.LoadFunction("glLGPUCopyImageSubDataNVX", "opengl") + void>)( + _slots[1468] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1468] = nativeContext.LoadFunction( + "glLGPUCopyImageSubDataNVX", + "opengl" + ) + ) )( sourceGpu, destinationGpuMask, @@ -510377,7 +516344,13 @@ public static void LGPUCopyImageSubDataNVX( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LGPUInterlockNVX() => - ((delegate* unmanaged)nativeContext.LoadFunction("glLGPUInterlockNVX", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[1469] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1469] = nativeContext.LoadFunction("glLGPUInterlockNVX", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_NVX_linked_gpu_multicast"])] [NativeFunction("opengl", EntryPoint = "glLGPUInterlockNVX")] @@ -510393,8 +516366,14 @@ void IGL.LGPUNamedBufferSubDataNVX( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLGPUNamedBufferSubDataNVX", "opengl") + (delegate* unmanaged)( + _slots[1470] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1470] = nativeContext.LoadFunction( + "glLGPUNamedBufferSubDataNVX", + "opengl" + ) + ) )(gpuMask, buffer, offset, size, data); [SupportedApiProfile("gl", ["GL_NVX_linked_gpu_multicast"])] @@ -510441,8 +516420,11 @@ void IGL.LightEnvSGIX( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightEnviSGIX", "opengl") + (delegate* unmanaged)( + _slots[1471] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1471] = nativeContext.LoadFunction("glLightEnviSGIX", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_SGIX_fragment_lighting"])] @@ -510475,8 +516457,11 @@ void IGL.Light( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightf", "opengl") + (delegate* unmanaged)( + _slots[1472] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1472] = nativeContext.LoadFunction("glLightf", "opengl") + ) )(light, pname, param2); [SupportedApiProfile( @@ -510562,8 +516547,11 @@ void IGL.Light( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightfv", "opengl") + (delegate* unmanaged)( + _slots[1473] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1473] = nativeContext.LoadFunction("glLightfv", "opengl") + ) )(light, pname, @params); [SupportedApiProfile( @@ -510655,8 +516643,11 @@ void IGL.Light( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLighti", "opengl") + (delegate* unmanaged)( + _slots[1474] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1474] = nativeContext.LoadFunction("glLighti", "opengl") + ) )(light, pname, param2); [SupportedApiProfile( @@ -510740,8 +516731,11 @@ void IGL.Light( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightiv", "opengl") + (delegate* unmanaged)( + _slots[1475] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1475] = nativeContext.LoadFunction("glLightiv", "opengl") + ) )(light, pname, @params); [SupportedApiProfile( @@ -510830,8 +516824,11 @@ void IGL.LightModel( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightModelf", "opengl") + (delegate* unmanaged)( + _slots[1476] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1476] = nativeContext.LoadFunction("glLightModelf", "opengl") + ) )(pname, param1); [SupportedApiProfile( @@ -510913,8 +516910,11 @@ void IGL.LightModel( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightModelfv", "opengl") + (delegate* unmanaged)( + _slots[1477] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1477] = nativeContext.LoadFunction("glLightModelfv", "opengl") + ) )(pname, @params); [SupportedApiProfile( @@ -511002,8 +517002,11 @@ void IGL.LightModel( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightModeli", "opengl") + (delegate* unmanaged)( + _slots[1478] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1478] = nativeContext.LoadFunction("glLightModeli", "opengl") + ) )(pname, param1); [SupportedApiProfile( @@ -511083,8 +517086,11 @@ void IGL.LightModel( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightModeliv", "opengl") + (delegate* unmanaged)( + _slots[1479] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1479] = nativeContext.LoadFunction("glLightModeliv", "opengl") + ) )(pname, @params); [SupportedApiProfile( @@ -511170,8 +517176,11 @@ void IGL.LightModelx( [NativeTypeName("GLfixed")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightModelx", "opengl") + (delegate* unmanaged)( + _slots[1480] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1480] = nativeContext.LoadFunction("glLightModelx", "opengl") + ) )(pname, param1); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -511203,8 +517212,11 @@ void IGL.LightModelxOES( [NativeTypeName("GLfixed")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightModelxOES", "opengl") + (delegate* unmanaged)( + _slots[1481] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1481] = nativeContext.LoadFunction("glLightModelxOES", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -511238,8 +517250,11 @@ void IGL.LightModelx( [NativeTypeName("const GLfixed *")] int* param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightModelxv", "opengl") + (delegate* unmanaged)( + _slots[1482] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1482] = nativeContext.LoadFunction("glLightModelxv", "opengl") + ) )(pname, param1); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -511277,8 +517292,11 @@ void IGL.LightModelxOES( [NativeTypeName("const GLfixed *")] int* param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightModelxvOES", "opengl") + (delegate* unmanaged)( + _slots[1483] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1483] = nativeContext.LoadFunction("glLightModelxvOES", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -511319,8 +517337,11 @@ void IGL.Lightx( [NativeTypeName("GLfixed")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightx", "opengl") + (delegate* unmanaged)( + _slots[1484] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1484] = nativeContext.LoadFunction("glLightx", "opengl") + ) )(light, pname, param2); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -511356,8 +517377,11 @@ void IGL.LightxOES( [NativeTypeName("GLfixed")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightxOES", "opengl") + (delegate* unmanaged)( + _slots[1485] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1485] = nativeContext.LoadFunction("glLightxOES", "opengl") + ) )(light, pname, param2); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -511395,8 +517419,11 @@ void IGL.Lightx( [NativeTypeName("const GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightxv", "opengl") + (delegate* unmanaged)( + _slots[1486] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1486] = nativeContext.LoadFunction("glLightxv", "opengl") + ) )(light, pname, @params); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -511438,8 +517465,11 @@ void IGL.LightxOES( [NativeTypeName("const GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLightxvOES", "opengl") + (delegate* unmanaged)( + _slots[1487] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1487] = nativeContext.LoadFunction("glLightxvOES", "opengl") + ) )(light, pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -511482,8 +517512,11 @@ void IGL.LineStipple( [NativeTypeName("GLushort")] ushort pattern ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLineStipple", "opengl") + (delegate* unmanaged)( + _slots[1488] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1488] = nativeContext.LoadFunction("glLineStipple", "opengl") + ) )(factor, pattern); [SupportedApiProfile( @@ -511520,9 +517553,13 @@ public static void LineStipple( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LineWidth([NativeTypeName("GLfloat")] float width) => - ((delegate* unmanaged)nativeContext.LoadFunction("glLineWidth", "opengl"))( - width - ); + ( + (delegate* unmanaged)( + _slots[1489] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1489] = nativeContext.LoadFunction("glLineWidth", "opengl") + ) + )(width); [SupportedApiProfile( "gl", @@ -511587,9 +517624,13 @@ public static void LineWidth([NativeTypeName("GLfloat")] float width) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LineWidthx([NativeTypeName("GLfixed")] int width) => - ((delegate* unmanaged)nativeContext.LoadFunction("glLineWidthx", "opengl"))( - width - ); + ( + (delegate* unmanaged)( + _slots[1490] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1490] = nativeContext.LoadFunction("glLineWidthx", "opengl") + ) + )(width); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] [NativeFunction("opengl", EntryPoint = "glLineWidthx")] @@ -511599,9 +517640,13 @@ public static void LineWidthx([NativeTypeName("GLfixed")] int width) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LineWidthxOES([NativeTypeName("GLfixed")] int width) => - ((delegate* unmanaged)nativeContext.LoadFunction("glLineWidthxOES", "opengl"))( - width - ); + ( + (delegate* unmanaged)( + _slots[1491] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1491] = nativeContext.LoadFunction("glLineWidthxOES", "opengl") + ) + )(width); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [SupportedApiProfile("gles1", ["GL_OES_fixed_point"])] @@ -511612,9 +517657,13 @@ public static void LineWidthxOES([NativeTypeName("GLfixed")] int width) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LinkProgram([NativeTypeName("GLuint")] uint program) => - ((delegate* unmanaged)nativeContext.LoadFunction("glLinkProgram", "opengl"))( - program - ); + ( + (delegate* unmanaged)( + _slots[1492] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1492] = nativeContext.LoadFunction("glLinkProgram", "opengl") + ) + )(program); [SupportedApiProfile( "gl", @@ -511666,9 +517715,13 @@ public static void LinkProgram([NativeTypeName("GLuint")] uint program) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LinkProgramARB([NativeTypeName("GLhandleARB")] uint programObj) => - ((delegate* unmanaged)nativeContext.LoadFunction("glLinkProgramARB", "opengl"))( - programObj - ); + ( + (delegate* unmanaged)( + _slots[1493] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1493] = nativeContext.LoadFunction("glLinkProgramARB", "opengl") + ) + )(programObj); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] [NativeFunction("opengl", EntryPoint = "glLinkProgramARB")] @@ -511678,9 +517731,13 @@ public static void LinkProgramARB([NativeTypeName("GLhandleARB")] uint programOb [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ListBase([NativeTypeName("GLuint")] uint @base) => - ((delegate* unmanaged)nativeContext.LoadFunction("glListBase", "opengl"))( - @base - ); + ( + (delegate* unmanaged)( + _slots[1494] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1494] = nativeContext.LoadFunction("glListBase", "opengl") + ) + )(@base); [SupportedApiProfile( "gl", @@ -511723,8 +517780,14 @@ void IGL.ListDrawCommandsStatesClientNV( [NativeTypeName("GLuint")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glListDrawCommandsStatesClientNV", "opengl") + (delegate* unmanaged)( + _slots[1495] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1495] = nativeContext.LoadFunction( + "glListDrawCommandsStatesClientNV", + "opengl" + ) + ) )(list, segment, indirects, sizes, states, fbos, count); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -511809,8 +517872,11 @@ void IGL.ListParameterSGIX( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glListParameterfSGIX", "opengl") + (delegate* unmanaged)( + _slots[1496] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1496] = nativeContext.LoadFunction("glListParameterfSGIX", "opengl") + ) )(list, pname, param2); [SupportedApiProfile("gl", ["GL_SGIX_list_priority"])] @@ -511846,8 +517912,11 @@ void IGL.ListParameterSGIX( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glListParameterfvSGIX", "opengl") + (delegate* unmanaged)( + _slots[1497] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1497] = nativeContext.LoadFunction("glListParameterfvSGIX", "opengl") + ) )(list, pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_list_priority"])] @@ -511889,8 +517958,11 @@ void IGL.ListParameterSGIX( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glListParameteriSGIX", "opengl") + (delegate* unmanaged)( + _slots[1498] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1498] = nativeContext.LoadFunction("glListParameteriSGIX", "opengl") + ) )(list, pname, param2); [SupportedApiProfile("gl", ["GL_SGIX_list_priority"])] @@ -511926,8 +517998,11 @@ void IGL.ListParameterSGIX( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glListParameterivSGIX", "opengl") + (delegate* unmanaged)( + _slots[1499] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1499] = nativeContext.LoadFunction("glListParameterivSGIX", "opengl") + ) )(list, pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_list_priority"])] @@ -511964,7 +518039,13 @@ public static void ListParameterSGIX( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LoadIdentity() => - ((delegate* unmanaged)nativeContext.LoadFunction("glLoadIdentity", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[1500] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1500] = nativeContext.LoadFunction("glLoadIdentity", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -511999,8 +518080,14 @@ void IGL.LoadIdentity() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LoadIdentityDeformationMapSGIX([NativeTypeName("GLbitfield")] uint mask) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLoadIdentityDeformationMapSGIX", "opengl") + (delegate* unmanaged)( + _slots[1501] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1501] = nativeContext.LoadFunction( + "glLoadIdentityDeformationMapSGIX", + "opengl" + ) + ) )(mask); [SupportedApiProfile("gl", ["GL_SGIX_polynomial_ffd"])] @@ -512024,9 +518111,13 @@ public static void LoadIdentityDeformationMapSGIX( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LoadMatrix([NativeTypeName("const GLdouble *")] double* m) => - ((delegate* unmanaged)nativeContext.LoadFunction("glLoadMatrixd", "opengl"))( - m - ); + ( + (delegate* unmanaged)( + _slots[1502] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1502] = nativeContext.LoadFunction("glLoadMatrixd", "opengl") + ) + )(m); [SupportedApiProfile( "gl", @@ -512100,9 +518191,13 @@ public static void LoadMatrix([NativeTypeName("const GLdouble *")] Ref m [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LoadMatrix([NativeTypeName("const GLfloat *")] float* m) => - ((delegate* unmanaged)nativeContext.LoadFunction("glLoadMatrixf", "opengl"))( - m - ); + ( + (delegate* unmanaged)( + _slots[1503] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1503] = nativeContext.LoadFunction("glLoadMatrixf", "opengl") + ) + )(m); [SupportedApiProfile( "gl", @@ -512178,7 +518273,13 @@ public static void LoadMatrix([NativeTypeName("const GLfloat *")] Ref m) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LoadMatrixx([NativeTypeName("const GLfixed *")] int* m) => - ((delegate* unmanaged)nativeContext.LoadFunction("glLoadMatrixx", "opengl"))(m); + ( + (delegate* unmanaged)( + _slots[1504] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1504] = nativeContext.LoadFunction("glLoadMatrixx", "opengl") + ) + )(m); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] [NativeFunction("opengl", EntryPoint = "glLoadMatrixx")] @@ -512204,9 +518305,13 @@ public static void LoadMatrixx([NativeTypeName("const GLfixed *")] Ref m) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LoadMatrixxOES([NativeTypeName("const GLfixed *")] int* m) => - ((delegate* unmanaged)nativeContext.LoadFunction("glLoadMatrixxOES", "opengl"))( - m - ); + ( + (delegate* unmanaged)( + _slots[1505] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1505] = nativeContext.LoadFunction("glLoadMatrixxOES", "opengl") + ) + )(m); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [SupportedApiProfile("gles1", ["GL_OES_fixed_point"])] @@ -512234,7 +518339,13 @@ public static void LoadMatrixxOES([NativeTypeName("const GLfixed *")] Ref m [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LoadName([NativeTypeName("GLuint")] uint name) => - ((delegate* unmanaged)nativeContext.LoadFunction("glLoadName", "opengl"))(name); + ( + (delegate* unmanaged)( + _slots[1506] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1506] = nativeContext.LoadFunction("glLoadName", "opengl") + ) + )(name); [SupportedApiProfile( "gl", @@ -512268,8 +518379,14 @@ void IGL.LoadName([NativeTypeName("GLuint")] uint name) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LoadPaletteFromModelViewMatrixOES() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLoadPaletteFromModelViewMatrixOES", "opengl") + (delegate* unmanaged)( + _slots[1507] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1507] = nativeContext.LoadFunction( + "glLoadPaletteFromModelViewMatrixOES", + "opengl" + ) + ) )(); [SupportedApiProfile("gles1", ["GL_OES_matrix_palette"])] @@ -512286,8 +518403,11 @@ void IGL.LoadProgramNV( [NativeTypeName("const GLubyte *")] byte* program ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLoadProgramNV", "opengl") + (delegate* unmanaged)( + _slots[1508] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1508] = nativeContext.LoadFunction("glLoadProgramNV", "opengl") + ) )(target, id, len, program); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -512345,8 +518465,11 @@ public static void LoadProgramNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LoadTransposeMatrix([NativeTypeName("const GLdouble *")] double* m) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLoadTransposeMatrixd", "opengl") + (delegate* unmanaged)( + _slots[1509] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1509] = nativeContext.LoadFunction("glLoadTransposeMatrixd", "opengl") + ) )(m); [SupportedApiProfile( @@ -512416,8 +518539,14 @@ public static void LoadTransposeMatrix([NativeTypeName("const GLdouble *")] Ref< [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LoadTransposeMatrixARB([NativeTypeName("const GLdouble *")] double* m) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLoadTransposeMatrixdARB", "opengl") + (delegate* unmanaged)( + _slots[1510] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1510] = nativeContext.LoadFunction( + "glLoadTransposeMatrixdARB", + "opengl" + ) + ) )(m); [SupportedApiProfile("gl", ["GL_ARB_transpose_matrix"])] @@ -512445,8 +518574,11 @@ public static void LoadTransposeMatrixARB([NativeTypeName("const GLdouble *")] R [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LoadTransposeMatrix([NativeTypeName("const GLfloat *")] float* m) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLoadTransposeMatrixf", "opengl") + (delegate* unmanaged)( + _slots[1511] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1511] = nativeContext.LoadFunction("glLoadTransposeMatrixf", "opengl") + ) )(m); [SupportedApiProfile( @@ -512516,8 +518648,14 @@ public static void LoadTransposeMatrix([NativeTypeName("const GLfloat *")] Ref ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLoadTransposeMatrixfARB", "opengl") + (delegate* unmanaged)( + _slots[1512] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1512] = nativeContext.LoadFunction( + "glLoadTransposeMatrixfARB", + "opengl" + ) + ) )(m); [SupportedApiProfile("gl", ["GL_ARB_transpose_matrix"])] @@ -512545,8 +518683,14 @@ public static void LoadTransposeMatrixARB([NativeTypeName("const GLfloat *")] Re [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LoadTransposeMatrixxOES([NativeTypeName("const GLfixed *")] int* m) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLoadTransposeMatrixxOES", "opengl") + (delegate* unmanaged)( + _slots[1513] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1513] = nativeContext.LoadFunction( + "glLoadTransposeMatrixxOES", + "opengl" + ) + ) )(m); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -512577,8 +518721,11 @@ void IGL.LockArraysEXT( [NativeTypeName("GLsizei")] uint count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glLockArraysEXT", "opengl") + (delegate* unmanaged)( + _slots[1514] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1514] = nativeContext.LoadFunction("glLockArraysEXT", "opengl") + ) )(first, count); [SupportedApiProfile("gl", ["GL_EXT_compiled_vertex_array"])] @@ -512591,9 +518738,13 @@ public static void LockArraysEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.LogicOp([NativeTypeName("GLenum")] uint opcode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glLogicOp", "opengl"))( - opcode - ); + ( + (delegate* unmanaged)( + _slots[1515] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1515] = nativeContext.LoadFunction("glLogicOp", "opengl") + ) + )(opcode); [SupportedApiProfile( "gl", @@ -512715,8 +518866,14 @@ public static void LogicOp([NativeTypeName("GLenum")] Constant ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMakeBufferNonResidentNV", "opengl") + (delegate* unmanaged)( + _slots[1516] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1516] = nativeContext.LoadFunction( + "glMakeBufferNonResidentNV", + "opengl" + ) + ) )(target); [SupportedApiProfile("gl", ["GL_NV_shader_buffer_load"])] @@ -512732,8 +518889,11 @@ void IGL.MakeBufferResidentNV( [NativeTypeName("GLenum")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMakeBufferResidentNV", "opengl") + (delegate* unmanaged)( + _slots[1517] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1517] = nativeContext.LoadFunction("glMakeBufferResidentNV", "opengl") + ) )(target, access); [SupportedApiProfile("gl", ["GL_NV_shader_buffer_load"])] @@ -512748,8 +518908,14 @@ public static void MakeBufferResidentNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MakeImageHandleNonResidentARB([NativeTypeName("GLuint64")] ulong handle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMakeImageHandleNonResidentARB", "opengl") + (delegate* unmanaged)( + _slots[1518] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1518] = nativeContext.LoadFunction( + "glMakeImageHandleNonResidentARB", + "opengl" + ) + ) )(handle); [SupportedApiProfile("gl", ["GL_ARB_bindless_texture"])] @@ -512762,8 +518928,14 @@ public static void MakeImageHandleNonResidentARB([NativeTypeName("GLuint64")] ul [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MakeImageHandleNonResidentNV([NativeTypeName("GLuint64")] ulong handle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMakeImageHandleNonResidentNV", "opengl") + (delegate* unmanaged)( + _slots[1519] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1519] = nativeContext.LoadFunction( + "glMakeImageHandleNonResidentNV", + "opengl" + ) + ) )(handle); [SupportedApiProfile("gl", ["GL_NV_bindless_texture"])] @@ -512780,8 +518952,14 @@ void IGL.MakeImageHandleResidentARB( [NativeTypeName("GLenum")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMakeImageHandleResidentARB", "opengl") + (delegate* unmanaged)( + _slots[1520] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1520] = nativeContext.LoadFunction( + "glMakeImageHandleResidentARB", + "opengl" + ) + ) )(handle, access); [SupportedApiProfile("gl", ["GL_ARB_bindless_texture"])] @@ -512799,8 +518977,14 @@ void IGL.MakeImageHandleResidentNV( [NativeTypeName("GLenum")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMakeImageHandleResidentNV", "opengl") + (delegate* unmanaged)( + _slots[1521] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1521] = nativeContext.LoadFunction( + "glMakeImageHandleResidentNV", + "opengl" + ) + ) )(handle, access); [SupportedApiProfile("gl", ["GL_NV_bindless_texture"])] @@ -512816,8 +519000,14 @@ public static void MakeImageHandleResidentNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MakeNamedBufferNonResidentNV([NativeTypeName("GLuint")] uint buffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMakeNamedBufferNonResidentNV", "opengl") + (delegate* unmanaged)( + _slots[1522] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1522] = nativeContext.LoadFunction( + "glMakeNamedBufferNonResidentNV", + "opengl" + ) + ) )(buffer); [SupportedApiProfile("gl", ["GL_NV_shader_buffer_load"])] @@ -512833,8 +519023,14 @@ void IGL.MakeNamedBufferResidentNV( [NativeTypeName("GLenum")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMakeNamedBufferResidentNV", "opengl") + (delegate* unmanaged)( + _slots[1523] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1523] = nativeContext.LoadFunction( + "glMakeNamedBufferResidentNV", + "opengl" + ) + ) )(buffer, access); [SupportedApiProfile("gl", ["GL_NV_shader_buffer_load"])] @@ -512849,8 +519045,14 @@ public static void MakeNamedBufferResidentNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MakeTextureHandleNonResidentARB([NativeTypeName("GLuint64")] ulong handle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMakeTextureHandleNonResidentARB", "opengl") + (delegate* unmanaged)( + _slots[1524] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1524] = nativeContext.LoadFunction( + "glMakeTextureHandleNonResidentARB", + "opengl" + ) + ) )(handle); [SupportedApiProfile("gl", ["GL_ARB_bindless_texture"])] @@ -512863,8 +519065,14 @@ public static void MakeTextureHandleNonResidentARB([NativeTypeName("GLuint64")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MakeTextureHandleNonResidentNV([NativeTypeName("GLuint64")] ulong handle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMakeTextureHandleNonResidentNV", "opengl") + (delegate* unmanaged)( + _slots[1525] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1525] = nativeContext.LoadFunction( + "glMakeTextureHandleNonResidentNV", + "opengl" + ) + ) )(handle); [SupportedApiProfile("gl", ["GL_NV_bindless_texture"])] @@ -512878,8 +519086,14 @@ public static void MakeTextureHandleNonResidentNV([NativeTypeName("GLuint64")] u [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MakeTextureHandleResidentARB([NativeTypeName("GLuint64")] ulong handle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMakeTextureHandleResidentARB", "opengl") + (delegate* unmanaged)( + _slots[1526] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1526] = nativeContext.LoadFunction( + "glMakeTextureHandleResidentARB", + "opengl" + ) + ) )(handle); [SupportedApiProfile("gl", ["GL_ARB_bindless_texture"])] @@ -512892,8 +519106,14 @@ public static void MakeTextureHandleResidentARB([NativeTypeName("GLuint64")] ulo [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MakeTextureHandleResidentNV([NativeTypeName("GLuint64")] ulong handle) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMakeTextureHandleResidentNV", "opengl") + (delegate* unmanaged)( + _slots[1527] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1527] = nativeContext.LoadFunction( + "glMakeTextureHandleResidentNV", + "opengl" + ) + ) )(handle); [SupportedApiProfile("gl", ["GL_NV_bindless_texture"])] @@ -512914,8 +519134,11 @@ void IGL.Map1( [NativeTypeName("const GLdouble *")] double* points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMap1d", "opengl") + (delegate* unmanaged)( + _slots[1528] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1528] = nativeContext.LoadFunction("glMap1d", "opengl") + ) )(target, u1, u2, stride, order, points); [SupportedApiProfile( @@ -513017,8 +519240,11 @@ void IGL.Map1( [NativeTypeName("const GLfloat *")] float* points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMap1f", "opengl") + (delegate* unmanaged)( + _slots[1529] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1529] = nativeContext.LoadFunction("glMap1f", "opengl") + ) )(target, u1, u2, stride, order, points); [SupportedApiProfile( @@ -513120,8 +519346,11 @@ void IGL.Map1XOES( [NativeTypeName("GLfixed")] int points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMap1xOES", "opengl") + (delegate* unmanaged)( + _slots[1530] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1530] = nativeContext.LoadFunction("glMap1xOES", "opengl") + ) )(target, u1, u2, stride, order, points); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -513184,8 +519413,11 @@ void IGL.Map2( int, int, double*, - void>) - nativeContext.LoadFunction("glMap2d", "opengl") + void>)( + _slots[1531] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1531] = nativeContext.LoadFunction("glMap2d", "opengl") + ) )(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); [SupportedApiProfile( @@ -513325,8 +519557,11 @@ void IGL.Map2( int, int, float*, - void>) - nativeContext.LoadFunction("glMap2f", "opengl") + void>)( + _slots[1532] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1532] = nativeContext.LoadFunction("glMap2f", "opengl") + ) )(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); [SupportedApiProfile( @@ -513455,8 +519690,11 @@ void IGL.Map2XOES( [NativeTypeName("GLfixed")] int points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMap2xOES", "opengl") + (delegate* unmanaged)( + _slots[1533] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1533] = nativeContext.LoadFunction("glMap2xOES", "opengl") + ) )(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -513524,8 +519762,11 @@ public static void Map2XOES( [NativeTypeName("GLenum")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapBuffer", "opengl") + (delegate* unmanaged)( + _slots[1534] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1534] = nativeContext.LoadFunction("glMapBuffer", "opengl") + ) )(target, access); [SupportedApiProfile( @@ -513635,8 +519876,11 @@ public static Ptr MapBuffer( [NativeTypeName("GLenum")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapBufferARB", "opengl") + (delegate* unmanaged)( + _slots[1535] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1535] = nativeContext.LoadFunction("glMapBufferARB", "opengl") + ) )(target, access); [SupportedApiProfile("gl", ["GL_ARB_vertex_buffer_object"])] @@ -513668,8 +519912,11 @@ public static Ptr MapBufferARB( [NativeTypeName("GLenum")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapBufferOES", "opengl") + (delegate* unmanaged)( + _slots[1536] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1536] = nativeContext.LoadFunction("glMapBufferOES", "opengl") + ) )(target, access); [SupportedApiProfile("gles2", ["GL_OES_mapbuffer"])] @@ -513705,8 +519952,11 @@ public static Ptr MapBufferOES( [NativeTypeName("GLbitfield")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapBufferRange", "opengl") + (delegate* unmanaged)( + _slots[1537] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1537] = nativeContext.LoadFunction("glMapBufferRange", "opengl") + ) )(target, offset, length, access); [SupportedApiProfile( @@ -513816,8 +520066,11 @@ public static Ptr MapBufferRange( [NativeTypeName("GLbitfield")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapBufferRangeEXT", "opengl") + (delegate* unmanaged)( + _slots[1538] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1538] = nativeContext.LoadFunction("glMapBufferRangeEXT", "opengl") + ) )(target, offset, length, access); [SupportedApiProfile("gles2", ["GL_EXT_map_buffer_range"])] @@ -513864,8 +520117,11 @@ void IGL.MapControlPointsNV( [NativeTypeName("const void *")] void* points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapControlPointsNV", "opengl") + (delegate* unmanaged)( + _slots[1539] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1539] = nativeContext.LoadFunction("glMapControlPointsNV", "opengl") + ) )(target, index, type, ustride, vstride, uorder, vorder, packed, points); [SupportedApiProfile("gl", ["GL_NV_evaluators"])] @@ -513957,8 +520213,11 @@ void IGL.MapGrid1( [NativeTypeName("GLdouble")] double u2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapGrid1d", "opengl") + (delegate* unmanaged)( + _slots[1540] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1540] = nativeContext.LoadFunction("glMapGrid1d", "opengl") + ) )(un, u1, u2); [SupportedApiProfile( @@ -514001,8 +520260,11 @@ void IGL.MapGrid1( [NativeTypeName("GLfloat")] float u2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapGrid1f", "opengl") + (delegate* unmanaged)( + _slots[1541] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1541] = nativeContext.LoadFunction("glMapGrid1f", "opengl") + ) )(un, u1, u2); [SupportedApiProfile( @@ -514045,8 +520307,11 @@ void IGL.MapGrid1XOES( [NativeTypeName("GLfixed")] int u2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapGrid1xOES", "opengl") + (delegate* unmanaged)( + _slots[1542] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1542] = nativeContext.LoadFunction("glMapGrid1xOES", "opengl") + ) )(n, u1, u2); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -514068,8 +520333,11 @@ void IGL.MapGrid2( [NativeTypeName("GLdouble")] double v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapGrid2d", "opengl") + (delegate* unmanaged)( + _slots[1543] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1543] = nativeContext.LoadFunction("glMapGrid2d", "opengl") + ) )(un, u1, u2, vn, v1, v2); [SupportedApiProfile( @@ -514118,8 +520386,11 @@ void IGL.MapGrid2( [NativeTypeName("GLfloat")] float v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapGrid2f", "opengl") + (delegate* unmanaged)( + _slots[1544] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1544] = nativeContext.LoadFunction("glMapGrid2f", "opengl") + ) )(un, u1, u2, vn, v1, v2); [SupportedApiProfile( @@ -514167,8 +520438,11 @@ void IGL.MapGrid2XOES( [NativeTypeName("GLfixed")] int v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapGrid2xOES", "opengl") + (delegate* unmanaged)( + _slots[1545] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1545] = nativeContext.LoadFunction("glMapGrid2xOES", "opengl") + ) )(n, u1, u2, v1, v2); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -514188,8 +520462,11 @@ public static void MapGrid2XOES( [NativeTypeName("GLenum")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapNamedBuffer", "opengl") + (delegate* unmanaged)( + _slots[1546] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1546] = nativeContext.LoadFunction("glMapNamedBuffer", "opengl") + ) )(buffer, access); [SupportedApiProfile( @@ -514239,8 +520516,11 @@ public static Ptr MapNamedBuffer( [NativeTypeName("GLenum")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapNamedBufferEXT", "opengl") + (delegate* unmanaged)( + _slots[1547] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1547] = nativeContext.LoadFunction("glMapNamedBufferEXT", "opengl") + ) )(buffer, access); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -514276,8 +520556,11 @@ public static Ptr MapNamedBufferEXT( [NativeTypeName("GLbitfield")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapNamedBufferRange", "opengl") + (delegate* unmanaged)( + _slots[1548] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1548] = nativeContext.LoadFunction("glMapNamedBufferRange", "opengl") + ) )(buffer, offset, length, access); [SupportedApiProfile( @@ -514335,8 +520618,14 @@ public static Ptr MapNamedBufferRange( [NativeTypeName("GLbitfield")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapNamedBufferRangeEXT", "opengl") + (delegate* unmanaged)( + _slots[1549] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1549] = nativeContext.LoadFunction( + "glMapNamedBufferRangeEXT", + "opengl" + ) + ) )(buffer, offset, length, access); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -514384,8 +520673,11 @@ public static Ptr MapObjectBufferATI([NativeTypeName("GLuint")] uint buffer) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* IGL.MapObjectBufferATIRaw([NativeTypeName("GLuint")] uint buffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapObjectBufferATI", "opengl") + (delegate* unmanaged)( + _slots[1550] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1550] = nativeContext.LoadFunction("glMapObjectBufferATI", "opengl") + ) )(buffer); [SupportedApiProfile("gl", ["GL_ATI_map_object_buffer"])] @@ -514401,8 +520693,11 @@ void IGL.MapParameterNV( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[1551] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1551] = nativeContext.LoadFunction("glMapParameterfvNV", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_NV_evaluators"])] @@ -514444,8 +520739,11 @@ void IGL.MapParameterNV( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[1552] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1552] = nativeContext.LoadFunction("glMapParameterivNV", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_NV_evaluators"])] @@ -514489,8 +520787,11 @@ public static void MapParameterNV( [NativeTypeName("GLenum *")] uint* layout ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapTexture2DINTEL", "opengl") + (delegate* unmanaged)( + _slots[1553] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1553] = nativeContext.LoadFunction("glMapTexture2DINTEL", "opengl") + ) )(texture, level, access, stride, layout); [SupportedApiProfile("gl", ["GL_INTEL_map_texture"])] @@ -514544,8 +520845,14 @@ void IGL.MapVertexAttrib1Apple( [NativeTypeName("const GLdouble *")] double* points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapVertexAttrib1dAPPLE", "opengl") + (delegate* unmanaged)( + _slots[1554] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1554] = nativeContext.LoadFunction( + "glMapVertexAttrib1dAPPLE", + "opengl" + ) + ) )(index, size, u1, u2, stride, order, points); [SupportedApiProfile("gl", ["GL_APPLE_vertex_program_evaluators"])] @@ -514626,8 +520933,14 @@ void IGL.MapVertexAttrib1Apple( [NativeTypeName("const GLfloat *")] float* points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMapVertexAttrib1fAPPLE", "opengl") + (delegate* unmanaged)( + _slots[1555] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1555] = nativeContext.LoadFunction( + "glMapVertexAttrib1fAPPLE", + "opengl" + ) + ) )(index, size, u1, u2, stride, order, points); [SupportedApiProfile("gl", ["GL_APPLE_vertex_program_evaluators"])] @@ -514724,8 +521037,14 @@ void IGL.MapVertexAttrib2Apple( int, int, double*, - void>) - nativeContext.LoadFunction("glMapVertexAttrib2dAPPLE", "opengl") + void>)( + _slots[1556] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1556] = nativeContext.LoadFunction( + "glMapVertexAttrib2dAPPLE", + "opengl" + ) + ) )(index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); [SupportedApiProfile("gl", ["GL_APPLE_vertex_program_evaluators"])] @@ -514905,8 +521224,14 @@ void IGL.MapVertexAttrib2Apple( int, int, float*, - void>) - nativeContext.LoadFunction("glMapVertexAttrib2fAPPLE", "opengl") + void>)( + _slots[1557] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1557] = nativeContext.LoadFunction( + "glMapVertexAttrib2fAPPLE", + "opengl" + ) + ) )(index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); [SupportedApiProfile("gl", ["GL_APPLE_vertex_program_evaluators"])] @@ -515066,8 +521391,11 @@ void IGL.Material( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMaterialf", "opengl") + (delegate* unmanaged)( + _slots[1558] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1558] = nativeContext.LoadFunction("glMaterialf", "opengl") + ) )(face, pname, param2); [SupportedApiProfile( @@ -515153,8 +521481,11 @@ void IGL.Material( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMaterialfv", "opengl") + (delegate* unmanaged)( + _slots[1559] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1559] = nativeContext.LoadFunction("glMaterialfv", "opengl") + ) )(face, pname, @params); [SupportedApiProfile( @@ -515246,8 +521577,11 @@ void IGL.Material( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMateriali", "opengl") + (delegate* unmanaged)( + _slots[1560] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1560] = nativeContext.LoadFunction("glMateriali", "opengl") + ) )(face, pname, param2); [SupportedApiProfile( @@ -515331,8 +521665,11 @@ void IGL.Material( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMaterialiv", "opengl") + (delegate* unmanaged)( + _slots[1561] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1561] = nativeContext.LoadFunction("glMaterialiv", "opengl") + ) )(face, pname, @params); [SupportedApiProfile( @@ -515422,8 +521759,11 @@ void IGL.Materialx( [NativeTypeName("GLfixed")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMaterialx", "opengl") + (delegate* unmanaged)( + _slots[1562] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1562] = nativeContext.LoadFunction("glMaterialx", "opengl") + ) )(face, pname, param2); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -515459,8 +521799,11 @@ void IGL.MaterialxOES( [NativeTypeName("GLfixed")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMaterialxOES", "opengl") + (delegate* unmanaged)( + _slots[1563] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1563] = nativeContext.LoadFunction("glMaterialxOES", "opengl") + ) )(face, pname, param2); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -515498,8 +521841,11 @@ void IGL.Materialx( [NativeTypeName("const GLfixed *")] int* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMaterialxv", "opengl") + (delegate* unmanaged)( + _slots[1564] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1564] = nativeContext.LoadFunction("glMaterialxv", "opengl") + ) )(face, pname, param2); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -515541,8 +521887,11 @@ void IGL.MaterialxOES( [NativeTypeName("const GLfixed *")] int* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMaterialxvOES", "opengl") + (delegate* unmanaged)( + _slots[1565] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1565] = nativeContext.LoadFunction("glMaterialxvOES", "opengl") + ) )(face, pname, param2); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -515590,8 +521939,11 @@ void IGL.MatrixFrustumEXT( [NativeTypeName("GLdouble")] double zFar ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixFrustumEXT", "opengl") + (delegate* unmanaged)( + _slots[1566] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1566] = nativeContext.LoadFunction("glMatrixFrustumEXT", "opengl") + ) )(mode, left, right, bottom, top, zNear, zFar); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -515644,8 +521996,11 @@ void IGL.MatrixIndexPointerARB( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixIndexPointerARB", "opengl") + (delegate* unmanaged)( + _slots[1567] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1567] = nativeContext.LoadFunction("glMatrixIndexPointerARB", "opengl") + ) )(size, type, stride, pointer); [SupportedApiProfile("gl", ["GL_ARB_matrix_palette"])] @@ -515691,8 +522046,11 @@ void IGL.MatrixIndexPointerOES( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixIndexPointerOES", "opengl") + (delegate* unmanaged)( + _slots[1568] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1568] = nativeContext.LoadFunction("glMatrixIndexPointerOES", "opengl") + ) )(size, type, stride, pointer); [SupportedApiProfile("gles1", ["GL_OES_matrix_palette"])] @@ -515736,8 +522094,11 @@ void IGL.MatrixIndexARB( [NativeTypeName("const GLubyte *")] byte* indices ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixIndexubvARB", "opengl") + (delegate* unmanaged)( + _slots[1569] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1569] = nativeContext.LoadFunction("glMatrixIndexubvARB", "opengl") + ) )(size, indices); [SupportedApiProfile("gl", ["GL_ARB_matrix_palette"])] @@ -515786,8 +522147,11 @@ void IGL.MatrixIndexARB( [NativeTypeName("const GLuint *")] uint* indices ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixIndexuivARB", "opengl") + (delegate* unmanaged)( + _slots[1570] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1570] = nativeContext.LoadFunction("glMatrixIndexuivARB", "opengl") + ) )(size, indices); [SupportedApiProfile("gl", ["GL_ARB_matrix_palette"])] @@ -515836,8 +522200,11 @@ void IGL.MatrixIndexARB( [NativeTypeName("const GLushort *")] ushort* indices ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixIndexusvARB", "opengl") + (delegate* unmanaged)( + _slots[1571] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1571] = nativeContext.LoadFunction("glMatrixIndexusvARB", "opengl") + ) )(size, indices); [SupportedApiProfile("gl", ["GL_ARB_matrix_palette"])] @@ -515886,8 +522253,11 @@ void IGL.MatrixLoad3X2NV( [NativeTypeName("const GLfloat *")] float* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixLoad3x2fNV", "opengl") + (delegate* unmanaged)( + _slots[1572] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1572] = nativeContext.LoadFunction("glMatrixLoad3x2fNV", "opengl") + ) )(matrixMode, m); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -515929,8 +522299,11 @@ void IGL.MatrixLoad3X3NV( [NativeTypeName("const GLfloat *")] float* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixLoad3x3fNV", "opengl") + (delegate* unmanaged)( + _slots[1573] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1573] = nativeContext.LoadFunction("glMatrixLoad3x3fNV", "opengl") + ) )(matrixMode, m); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -515972,8 +522345,11 @@ void IGL.MatrixLoadEXT( [NativeTypeName("const GLdouble *")] double* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixLoaddEXT", "opengl") + (delegate* unmanaged)( + _slots[1574] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1574] = nativeContext.LoadFunction("glMatrixLoaddEXT", "opengl") + ) )(mode, m); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516015,8 +522391,11 @@ void IGL.MatrixLoadEXT( [NativeTypeName("const GLfloat *")] float* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixLoadfEXT", "opengl") + (delegate* unmanaged)( + _slots[1575] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1575] = nativeContext.LoadFunction("glMatrixLoadfEXT", "opengl") + ) )(mode, m); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516055,8 +522434,11 @@ public static void MatrixLoadEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MatrixLoadIdentityEXT([NativeTypeName("GLenum")] uint mode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixLoadIdentityEXT", "opengl") + (delegate* unmanaged)( + _slots[1576] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1576] = nativeContext.LoadFunction("glMatrixLoadIdentityEXT", "opengl") + ) )(mode); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516088,8 +522470,14 @@ void IGL.MatrixLoadTranspose3X3NV( [NativeTypeName("const GLfloat *")] float* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixLoadTranspose3x3fNV", "opengl") + (delegate* unmanaged)( + _slots[1577] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1577] = nativeContext.LoadFunction( + "glMatrixLoadTranspose3x3fNV", + "opengl" + ) + ) )(matrixMode, m); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -516131,8 +522519,14 @@ void IGL.MatrixLoadTransposeEXT( [NativeTypeName("const GLdouble *")] double* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixLoadTransposedEXT", "opengl") + (delegate* unmanaged)( + _slots[1578] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1578] = nativeContext.LoadFunction( + "glMatrixLoadTransposedEXT", + "opengl" + ) + ) )(mode, m); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516174,8 +522568,14 @@ void IGL.MatrixLoadTransposeEXT( [NativeTypeName("const GLfloat *")] float* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixLoadTransposefEXT", "opengl") + (delegate* unmanaged)( + _slots[1579] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1579] = nativeContext.LoadFunction( + "glMatrixLoadTransposefEXT", + "opengl" + ) + ) )(mode, m); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516213,9 +522613,13 @@ public static void MatrixLoadTransposeEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MatrixMode([NativeTypeName("GLenum")] uint mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glMatrixMode", "opengl"))( - mode - ); + ( + (delegate* unmanaged)( + _slots[1580] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1580] = nativeContext.LoadFunction("glMatrixMode", "opengl") + ) + )(mode); [SupportedApiProfile( "gl", @@ -516291,8 +522695,11 @@ void IGL.MatrixMult3X2NV( [NativeTypeName("const GLfloat *")] float* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixMult3x2fNV", "opengl") + (delegate* unmanaged)( + _slots[1581] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1581] = nativeContext.LoadFunction("glMatrixMult3x2fNV", "opengl") + ) )(matrixMode, m); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -516334,8 +522741,11 @@ void IGL.MatrixMult3X3NV( [NativeTypeName("const GLfloat *")] float* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixMult3x3fNV", "opengl") + (delegate* unmanaged)( + _slots[1582] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1582] = nativeContext.LoadFunction("glMatrixMult3x3fNV", "opengl") + ) )(matrixMode, m); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -516377,8 +522787,11 @@ void IGL.MatrixMultEXT( [NativeTypeName("const GLdouble *")] double* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixMultdEXT", "opengl") + (delegate* unmanaged)( + _slots[1583] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1583] = nativeContext.LoadFunction("glMatrixMultdEXT", "opengl") + ) )(mode, m); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516420,8 +522833,11 @@ void IGL.MatrixMultEXT( [NativeTypeName("const GLfloat *")] float* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixMultfEXT", "opengl") + (delegate* unmanaged)( + _slots[1584] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1584] = nativeContext.LoadFunction("glMatrixMultfEXT", "opengl") + ) )(mode, m); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516463,8 +522879,14 @@ void IGL.MatrixMultTranspose3X3NV( [NativeTypeName("const GLfloat *")] float* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixMultTranspose3x3fNV", "opengl") + (delegate* unmanaged)( + _slots[1585] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1585] = nativeContext.LoadFunction( + "glMatrixMultTranspose3x3fNV", + "opengl" + ) + ) )(matrixMode, m); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -516506,8 +522928,14 @@ void IGL.MatrixMultTransposeEXT( [NativeTypeName("const GLdouble *")] double* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixMultTransposedEXT", "opengl") + (delegate* unmanaged)( + _slots[1586] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1586] = nativeContext.LoadFunction( + "glMatrixMultTransposedEXT", + "opengl" + ) + ) )(mode, m); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516549,8 +522977,14 @@ void IGL.MatrixMultTransposeEXT( [NativeTypeName("const GLfloat *")] float* m ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixMultTransposefEXT", "opengl") + (delegate* unmanaged)( + _slots[1587] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1587] = nativeContext.LoadFunction( + "glMatrixMultTransposefEXT", + "opengl" + ) + ) )(mode, m); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516597,8 +523031,11 @@ void IGL.MatrixOrthoEXT( [NativeTypeName("GLdouble")] double zFar ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixOrthoEXT", "opengl") + (delegate* unmanaged)( + _slots[1588] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1588] = nativeContext.LoadFunction("glMatrixOrthoEXT", "opengl") + ) )(mode, left, right, bottom, top, zNear, zFar); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516645,9 +523082,13 @@ public static void MatrixOrthoEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MatrixPopEXT([NativeTypeName("GLenum")] uint mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glMatrixPopEXT", "opengl"))( - mode - ); + ( + (delegate* unmanaged)( + _slots[1589] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1589] = nativeContext.LoadFunction("glMatrixPopEXT", "opengl") + ) + )(mode); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] [SupportedApiProfile("glcore", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516673,9 +523114,13 @@ public static void MatrixPopEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MatrixPushEXT([NativeTypeName("GLenum")] uint mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glMatrixPushEXT", "opengl"))( - mode - ); + ( + (delegate* unmanaged)( + _slots[1590] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1590] = nativeContext.LoadFunction("glMatrixPushEXT", "opengl") + ) + )(mode); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] [SupportedApiProfile("glcore", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516708,8 +523153,11 @@ void IGL.MatrixRotateEXT( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixRotatedEXT", "opengl") + (delegate* unmanaged)( + _slots[1591] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1591] = nativeContext.LoadFunction("glMatrixRotatedEXT", "opengl") + ) )(mode, angle, x, y, z); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516757,8 +523205,11 @@ void IGL.MatrixRotateEXT( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixRotatefEXT", "opengl") + (delegate* unmanaged)( + _slots[1592] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1592] = nativeContext.LoadFunction("glMatrixRotatefEXT", "opengl") + ) )(mode, angle, x, y, z); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516805,8 +523256,11 @@ void IGL.MatrixScaleEXT( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixScaledEXT", "opengl") + (delegate* unmanaged)( + _slots[1593] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1593] = nativeContext.LoadFunction("glMatrixScaledEXT", "opengl") + ) )(mode, x, y, z); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516850,8 +523304,11 @@ void IGL.MatrixScaleEXT( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixScalefEXT", "opengl") + (delegate* unmanaged)( + _slots[1594] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1594] = nativeContext.LoadFunction("glMatrixScalefEXT", "opengl") + ) )(mode, x, y, z); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516895,8 +523352,11 @@ void IGL.MatrixTranslateEXT( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixTranslatedEXT", "opengl") + (delegate* unmanaged)( + _slots[1595] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1595] = nativeContext.LoadFunction("glMatrixTranslatedEXT", "opengl") + ) )(mode, x, y, z); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516940,8 +523400,11 @@ void IGL.MatrixTranslateEXT( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMatrixTranslatefEXT", "opengl") + (delegate* unmanaged)( + _slots[1596] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1596] = nativeContext.LoadFunction("glMatrixTranslatefEXT", "opengl") + ) )(mode, x, y, z); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_NV_path_rendering"])] @@ -516980,8 +523443,14 @@ public static void MatrixTranslateEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MaxShaderCompilerThreadsARB([NativeTypeName("GLuint")] uint count) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMaxShaderCompilerThreadsARB", "opengl") + (delegate* unmanaged)( + _slots[1597] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1597] = nativeContext.LoadFunction( + "glMaxShaderCompilerThreadsARB", + "opengl" + ) + ) )(count); [SupportedApiProfile("gl", ["GL_ARB_parallel_shader_compile"])] @@ -516994,8 +523463,14 @@ public static void MaxShaderCompilerThreadsARB([NativeTypeName("GLuint")] uint c [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MaxShaderCompilerThreadsKHR([NativeTypeName("GLuint")] uint count) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMaxShaderCompilerThreadsKHR", "opengl") + (delegate* unmanaged)( + _slots[1598] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1598] = nativeContext.LoadFunction( + "glMaxShaderCompilerThreadsKHR", + "opengl" + ) + ) )(count); [SupportedApiProfile("gl", ["GL_KHR_parallel_shader_compile"])] @@ -517008,9 +523483,13 @@ public static void MaxShaderCompilerThreadsKHR([NativeTypeName("GLuint")] uint c [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MemoryBarrier([NativeTypeName("GLbitfield")] uint barriers) => - ((delegate* unmanaged)nativeContext.LoadFunction("glMemoryBarrier", "opengl"))( - barriers - ); + ( + (delegate* unmanaged)( + _slots[1599] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1599] = nativeContext.LoadFunction("glMemoryBarrier", "opengl") + ) + )(barriers); [SupportedApiProfile( "gl", @@ -517080,8 +523559,11 @@ public static void MemoryBarrier( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MemoryBarrierByRegion([NativeTypeName("GLbitfield")] uint barriers) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMemoryBarrierByRegion", "opengl") + (delegate* unmanaged)( + _slots[1600] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1600] = nativeContext.LoadFunction("glMemoryBarrierByRegion", "opengl") + ) )(barriers); [SupportedApiProfile( @@ -517124,8 +523606,11 @@ public static void MemoryBarrierByRegion( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MemoryBarrierEXT([NativeTypeName("GLbitfield")] uint barriers) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMemoryBarrierEXT", "opengl") + (delegate* unmanaged)( + _slots[1601] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1601] = nativeContext.LoadFunction("glMemoryBarrierEXT", "opengl") + ) )(barriers); [SupportedApiProfile("gl", ["GL_EXT_shader_image_load_store"])] @@ -517154,8 +523639,14 @@ void IGL.MemoryObjectParameterEXT( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMemoryObjectParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1602] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1602] = nativeContext.LoadFunction( + "glMemoryObjectParameterivEXT", + "opengl" + ) + ) )(memoryObject, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -517199,8 +523690,11 @@ void IGL.Minmax( [NativeTypeName("GLboolean")] uint sink ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMinmax", "opengl") + (delegate* unmanaged)( + _slots[1603] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1603] = nativeContext.LoadFunction("glMinmax", "opengl") + ) )(target, internalformat, sink); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -517236,8 +523730,11 @@ void IGL.MinmaxEXT( [NativeTypeName("GLboolean")] uint sink ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMinmaxEXT", "opengl") + (delegate* unmanaged)( + _slots[1604] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1604] = nativeContext.LoadFunction("glMinmaxEXT", "opengl") + ) )(target, internalformat, sink); [SupportedApiProfile("gl", ["GL_EXT_histogram"])] @@ -517269,8 +523766,11 @@ public static void MinmaxEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MinSampleShading([NativeTypeName("GLfloat")] float value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMinSampleShading", "opengl") + (delegate* unmanaged)( + _slots[1605] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1605] = nativeContext.LoadFunction("glMinSampleShading", "opengl") + ) )(value); [SupportedApiProfile( @@ -517307,8 +523807,11 @@ public static void MinSampleShading([NativeTypeName("GLfloat")] float value) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MinSampleShadingARB([NativeTypeName("GLfloat")] float value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMinSampleShadingARB", "opengl") + (delegate* unmanaged)( + _slots[1606] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1606] = nativeContext.LoadFunction("glMinSampleShadingARB", "opengl") + ) )(value); [SupportedApiProfile("gl", ["GL_ARB_sample_shading"])] @@ -517321,8 +523824,11 @@ public static void MinSampleShadingARB([NativeTypeName("GLfloat")] float value) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MinSampleShadingOES([NativeTypeName("GLfloat")] float value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMinSampleShadingOES", "opengl") + (delegate* unmanaged)( + _slots[1607] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1607] = nativeContext.LoadFunction("glMinSampleShadingOES", "opengl") + ) )(value); [SupportedApiProfile("gles2", ["GL_OES_sample_shading"])] @@ -517333,7 +523839,13 @@ public static void MinSampleShadingOES([NativeTypeName("GLfloat")] float value) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MulticastBarrierNV() => - ((delegate* unmanaged)nativeContext.LoadFunction("glMulticastBarrierNV", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[1608] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1608] = nativeContext.LoadFunction("glMulticastBarrierNV", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_NV_gpu_multicast"])] [NativeFunction("opengl", EntryPoint = "glMulticastBarrierNV")] @@ -517369,8 +523881,14 @@ void IGL.MulticastBlitFramebufferNV( int, uint, uint, - void>) - nativeContext.LoadFunction("glMulticastBlitFramebufferNV", "opengl") + void>)( + _slots[1609] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1609] = nativeContext.LoadFunction( + "glMulticastBlitFramebufferNV", + "opengl" + ) + ) )(srcGpu, dstGpu, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); [SupportedApiProfile("gl", ["GL_NV_gpu_multicast"])] @@ -517477,8 +523995,14 @@ void IGL.MulticastBufferSubDataNV( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMulticastBufferSubDataNV", "opengl") + (delegate* unmanaged)( + _slots[1610] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1610] = nativeContext.LoadFunction( + "glMulticastBufferSubDataNV", + "opengl" + ) + ) )(gpuMask, buffer, offset, size, data); [SupportedApiProfile("gl", ["GL_NV_gpu_multicast"])] @@ -517530,8 +524054,14 @@ void IGL.MulticastCopyBufferSubDataNV( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMulticastCopyBufferSubDataNV", "opengl") + (delegate* unmanaged)( + _slots[1611] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1611] = nativeContext.LoadFunction( + "glMulticastCopyBufferSubDataNV", + "opengl" + ) + ) )(readGpu, writeGpuMask, readBuffer, writeBuffer, readOffset, writeOffset, size); [SupportedApiProfile("gl", ["GL_NV_gpu_multicast"])] @@ -517595,8 +524125,14 @@ void IGL.MulticastCopyImageSubDataNV( uint, uint, uint, - void>) - nativeContext.LoadFunction("glMulticastCopyImageSubDataNV", "opengl") + void>)( + _slots[1612] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1612] = nativeContext.LoadFunction( + "glMulticastCopyImageSubDataNV", + "opengl" + ) + ) )( srcGpu, dstGpuMask, @@ -517668,8 +524204,14 @@ void IGL.MulticastFramebufferSampleLocationsNV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMulticastFramebufferSampleLocationsfvNV", "opengl") + (delegate* unmanaged)( + _slots[1613] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1613] = nativeContext.LoadFunction( + "glMulticastFramebufferSampleLocationsfvNV", + "opengl" + ) + ) )(gpu, framebuffer, start, count, v); [SupportedApiProfile("gl", ["GL_NV_gpu_multicast"])] @@ -517724,8 +524266,14 @@ void IGL.MulticastGetQueryObjectNV( [NativeTypeName("GLint64 *")] long* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMulticastGetQueryObjecti64vNV", "opengl") + (delegate* unmanaged)( + _slots[1614] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1614] = nativeContext.LoadFunction( + "glMulticastGetQueryObjecti64vNV", + "opengl" + ) + ) )(gpu, id, pname, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_multicast"])] @@ -517771,8 +524319,14 @@ void IGL.MulticastGetQueryObjectNV( [NativeTypeName("GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMulticastGetQueryObjectivNV", "opengl") + (delegate* unmanaged)( + _slots[1615] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1615] = nativeContext.LoadFunction( + "glMulticastGetQueryObjectivNV", + "opengl" + ) + ) )(gpu, id, pname, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_multicast"])] @@ -517818,8 +524372,14 @@ void IGL.MulticastGetQueryObjectNV( [NativeTypeName("GLuint64 *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMulticastGetQueryObjectui64vNV", "opengl") + (delegate* unmanaged)( + _slots[1616] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1616] = nativeContext.LoadFunction( + "glMulticastGetQueryObjectui64vNV", + "opengl" + ) + ) )(gpu, id, pname, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_multicast"])] @@ -517865,8 +524425,14 @@ void IGL.MulticastGetQueryObjectNV( [NativeTypeName("GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMulticastGetQueryObjectuivNV", "opengl") + (delegate* unmanaged)( + _slots[1617] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1617] = nativeContext.LoadFunction( + "glMulticastGetQueryObjectuivNV", + "opengl" + ) + ) )(gpu, id, pname, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_multicast"])] @@ -517912,8 +524478,14 @@ void IGL.MulticastScissorArrayNVX( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMulticastScissorArrayvNVX", "opengl") + (delegate* unmanaged)( + _slots[1618] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1618] = nativeContext.LoadFunction( + "glMulticastScissorArrayvNVX", + "opengl" + ) + ) )(gpu, first, count, v); [SupportedApiProfile("gl", ["GL_NVX_gpu_multicast2"])] @@ -517976,8 +524548,14 @@ void IGL.MulticastViewportArrayNVX( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMulticastViewportArrayvNVX", "opengl") + (delegate* unmanaged)( + _slots[1619] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1619] = nativeContext.LoadFunction( + "glMulticastViewportArrayvNVX", + "opengl" + ) + ) )(gpu, first, count, v); [SupportedApiProfile("gl", ["GL_NVX_gpu_multicast2"])] @@ -518040,8 +524618,14 @@ void IGL.MulticastViewportPositionWScaleNVX( [NativeTypeName("GLfloat")] float ycoeff ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMulticastViewportPositionWScaleNVX", "opengl") + (delegate* unmanaged)( + _slots[1620] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1620] = nativeContext.LoadFunction( + "glMulticastViewportPositionWScaleNVX", + "opengl" + ) + ) )(gpu, index, xcoeff, ycoeff); [SupportedApiProfile("gl", ["GL_NVX_gpu_multicast2"])] @@ -518060,8 +524644,11 @@ void IGL.MulticastWaitSyncNV( [NativeTypeName("GLbitfield")] uint waitGpuMask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMulticastWaitSyncNV", "opengl") + (delegate* unmanaged)( + _slots[1621] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1621] = nativeContext.LoadFunction("glMulticastWaitSyncNV", "opengl") + ) )(signalGpu, waitGpuMask); [SupportedApiProfile("gl", ["GL_NV_gpu_multicast"])] @@ -518080,8 +524667,11 @@ void IGL.MultiDrawArrays( [NativeTypeName("GLsizei")] uint drawcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawArrays", "opengl") + (delegate* unmanaged)( + _slots[1622] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1622] = nativeContext.LoadFunction("glMultiDrawArrays", "opengl") + ) )(mode, first, count, drawcount); [SupportedApiProfile( @@ -518210,8 +524800,11 @@ void IGL.MultiDrawArraysEXT( [NativeTypeName("GLsizei")] uint primcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawArraysEXT", "opengl") + (delegate* unmanaged)( + _slots[1623] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1623] = nativeContext.LoadFunction("glMultiDrawArraysEXT", "opengl") + ) )(mode, first, count, primcount); [SupportedApiProfile("gl", ["GL_EXT_multi_draw_arrays"])] @@ -518262,8 +524855,14 @@ void IGL.MultiDrawArraysIndirect( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawArraysIndirect", "opengl") + (delegate* unmanaged)( + _slots[1624] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1624] = nativeContext.LoadFunction( + "glMultiDrawArraysIndirect", + "opengl" + ) + ) )(mode, indirect, drawcount, stride); [SupportedApiProfile( @@ -518351,8 +524950,14 @@ void IGL.MultiDrawArraysIndirectAMD( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawArraysIndirectAMD", "opengl") + (delegate* unmanaged)( + _slots[1625] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1625] = nativeContext.LoadFunction( + "glMultiDrawArraysIndirectAMD", + "opengl" + ) + ) )(mode, indirect, primcount, stride); [SupportedApiProfile("gl", ["GL_AMD_multi_draw_indirect"])] @@ -518400,8 +525005,14 @@ void IGL.MultiDrawArraysIndirectBindlessCountNV( [NativeTypeName("GLint")] int vertexBufferCount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawArraysIndirectBindlessCountNV", "opengl") + (delegate* unmanaged)( + _slots[1626] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1626] = nativeContext.LoadFunction( + "glMultiDrawArraysIndirectBindlessCountNV", + "opengl" + ) + ) )(mode, indirect, drawCount, maxDrawCount, stride, vertexBufferCount); [SupportedApiProfile("gl", ["GL_NV_bindless_multi_draw_indirect_count"])] @@ -518479,8 +525090,14 @@ void IGL.MultiDrawArraysIndirectBindlesNV( [NativeTypeName("GLint")] int vertexBufferCount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawArraysIndirectBindlessNV", "opengl") + (delegate* unmanaged)( + _slots[1627] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1627] = nativeContext.LoadFunction( + "glMultiDrawArraysIndirectBindlessNV", + "opengl" + ) + ) )(mode, indirect, drawCount, stride, vertexBufferCount); [SupportedApiProfile("gl", ["GL_NV_bindless_multi_draw_indirect"])] @@ -518552,8 +525169,14 @@ void IGL.MultiDrawArraysIndirectCount( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawArraysIndirectCount", "opengl") + (delegate* unmanaged)( + _slots[1628] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1628] = nativeContext.LoadFunction( + "glMultiDrawArraysIndirectCount", + "opengl" + ) + ) )(mode, indirect, drawcount, maxdrawcount, stride); [SupportedApiProfile("gl", ["GL_VERSION_4_6"], MinVersion = "4.6")] @@ -518611,8 +525234,14 @@ void IGL.MultiDrawArraysIndirectCountARB( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawArraysIndirectCountARB", "opengl") + (delegate* unmanaged)( + _slots[1629] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1629] = nativeContext.LoadFunction( + "glMultiDrawArraysIndirectCountARB", + "opengl" + ) + ) )(mode, indirect, drawcount, maxdrawcount, stride); [SupportedApiProfile("gl", ["GL_ARB_indirect_parameters"])] @@ -518671,8 +525300,14 @@ void IGL.MultiDrawArraysIndirectEXT( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawArraysIndirectEXT", "opengl") + (delegate* unmanaged)( + _slots[1630] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1630] = nativeContext.LoadFunction( + "glMultiDrawArraysIndirectEXT", + "opengl" + ) + ) )(mode, indirect, drawcount, stride); [SupportedApiProfile("gles2", ["GL_EXT_multi_draw_indirect"])] @@ -518718,8 +525353,14 @@ void IGL.MultiDrawElementArrayApple( [NativeTypeName("GLsizei")] uint primcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawElementArrayAPPLE", "opengl") + (delegate* unmanaged)( + _slots[1631] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1631] = nativeContext.LoadFunction( + "glMultiDrawElementArrayAPPLE", + "opengl" + ) + ) )(mode, first, count, primcount); [SupportedApiProfile("gl", ["GL_APPLE_element_array"])] @@ -518767,8 +525408,11 @@ void IGL.MultiDrawElements( [NativeTypeName("GLsizei")] uint drawcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawElements", "opengl") + (delegate* unmanaged)( + _slots[1632] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1632] = nativeContext.LoadFunction("glMultiDrawElements", "opengl") + ) )(mode, count, type, indices, drawcount); [SupportedApiProfile( @@ -518908,8 +525552,14 @@ void IGL.MultiDrawElementsBaseVertex( [NativeTypeName("const GLint *")] int* basevertex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawElementsBaseVertex", "opengl") + (delegate* unmanaged)( + _slots[1633] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1633] = nativeContext.LoadFunction( + "glMultiDrawElementsBaseVertex", + "opengl" + ) + ) )(mode, count, type, indices, drawcount, basevertex); [SupportedApiProfile( @@ -519034,8 +525684,14 @@ void IGL.MultiDrawElementsBaseVertexEXT( [NativeTypeName("const GLint *")] int* basevertex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawElementsBaseVertexEXT", "opengl") + (delegate* unmanaged)( + _slots[1634] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1634] = nativeContext.LoadFunction( + "glMultiDrawElementsBaseVertexEXT", + "opengl" + ) + ) )(mode, count, type, indices, drawcount, basevertex); [SupportedApiProfile( @@ -519119,8 +525775,11 @@ void IGL.MultiDrawElementsEXT( [NativeTypeName("GLsizei")] uint primcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawElementsEXT", "opengl") + (delegate* unmanaged)( + _slots[1635] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1635] = nativeContext.LoadFunction("glMultiDrawElementsEXT", "opengl") + ) )(mode, count, type, indices, primcount); [SupportedApiProfile("gl", ["GL_EXT_multi_draw_arrays"])] @@ -519181,8 +525840,14 @@ void IGL.MultiDrawElementsIndirect( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawElementsIndirect", "opengl") + (delegate* unmanaged)( + _slots[1636] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1636] = nativeContext.LoadFunction( + "glMultiDrawElementsIndirect", + "opengl" + ) + ) )(mode, type, indirect, drawcount, stride); [SupportedApiProfile( @@ -519280,8 +525945,14 @@ void IGL.MultiDrawElementsIndirectAMD( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawElementsIndirectAMD", "opengl") + (delegate* unmanaged)( + _slots[1637] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1637] = nativeContext.LoadFunction( + "glMultiDrawElementsIndirectAMD", + "opengl" + ) + ) )(mode, type, indirect, primcount, stride); [SupportedApiProfile("gl", ["GL_AMD_multi_draw_indirect"])] @@ -519339,8 +526010,14 @@ void IGL.MultiDrawElementsIndirectBindlessCountNV( [NativeTypeName("GLint")] int vertexBufferCount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawElementsIndirectBindlessCountNV", "opengl") + (delegate* unmanaged)( + _slots[1638] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1638] = nativeContext.LoadFunction( + "glMultiDrawElementsIndirectBindlessCountNV", + "opengl" + ) + ) )(mode, type, indirect, drawCount, maxDrawCount, stride, vertexBufferCount); [SupportedApiProfile("gl", ["GL_NV_bindless_multi_draw_indirect_count"])] @@ -519425,8 +526102,14 @@ void IGL.MultiDrawElementsIndirectBindlesNV( [NativeTypeName("GLint")] int vertexBufferCount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawElementsIndirectBindlessNV", "opengl") + (delegate* unmanaged)( + _slots[1639] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1639] = nativeContext.LoadFunction( + "glMultiDrawElementsIndirectBindlessNV", + "opengl" + ) + ) )(mode, type, indirect, drawCount, stride, vertexBufferCount); [SupportedApiProfile("gl", ["GL_NV_bindless_multi_draw_indirect"])] @@ -519505,8 +526188,14 @@ void IGL.MultiDrawElementsIndirectCount( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawElementsIndirectCount", "opengl") + (delegate* unmanaged)( + _slots[1640] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1640] = nativeContext.LoadFunction( + "glMultiDrawElementsIndirectCount", + "opengl" + ) + ) )(mode, type, indirect, drawcount, maxdrawcount, stride); [SupportedApiProfile("gl", ["GL_VERSION_4_6"], MinVersion = "4.6")] @@ -519585,8 +526274,14 @@ void IGL.MultiDrawElementsIndirectCountARB( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawElementsIndirectCountARB", "opengl") + (delegate* unmanaged)( + _slots[1641] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1641] = nativeContext.LoadFunction( + "glMultiDrawElementsIndirectCountARB", + "opengl" + ) + ) )(mode, type, indirect, drawcount, maxdrawcount, stride); [SupportedApiProfile("gl", ["GL_ARB_indirect_parameters"])] @@ -519664,8 +526359,14 @@ void IGL.MultiDrawElementsIndirectEXT( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawElementsIndirectEXT", "opengl") + (delegate* unmanaged)( + _slots[1642] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1642] = nativeContext.LoadFunction( + "glMultiDrawElementsIndirectEXT", + "opengl" + ) + ) )(mode, type, indirect, drawcount, stride); [SupportedApiProfile("gles2", ["GL_EXT_multi_draw_indirect"])] @@ -519720,8 +526421,14 @@ void IGL.MultiDrawMeshTasksIndirectCountNV( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawMeshTasksIndirectCountNV", "opengl") + (delegate* unmanaged)( + _slots[1643] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1643] = nativeContext.LoadFunction( + "glMultiDrawMeshTasksIndirectCountNV", + "opengl" + ) + ) )(indirect, drawcount, maxdrawcount, stride); [SupportedApiProfile("gl", ["GL_NV_mesh_shader"])] @@ -519743,8 +526450,14 @@ void IGL.MultiDrawMeshTasksIndirectNV( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawMeshTasksIndirectNV", "opengl") + (delegate* unmanaged)( + _slots[1644] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1644] = nativeContext.LoadFunction( + "glMultiDrawMeshTasksIndirectNV", + "opengl" + ) + ) )(indirect, drawcount, stride); [SupportedApiProfile("gl", ["GL_NV_mesh_shader"])] @@ -519768,8 +526481,14 @@ void IGL.MultiDrawRangeElementArrayApple( [NativeTypeName("GLsizei")] uint primcount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiDrawRangeElementArrayAPPLE", "opengl") + (delegate* unmanaged)( + _slots[1645] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1645] = nativeContext.LoadFunction( + "glMultiDrawRangeElementArrayAPPLE", + "opengl" + ) + ) )(mode, start, end, first, count, primcount); [SupportedApiProfile("gl", ["GL_APPLE_element_array"])] @@ -519830,8 +526549,14 @@ void IGL.MultiModeDrawArraysIBM( [NativeTypeName("GLint")] int modestride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiModeDrawArraysIBM", "opengl") + (delegate* unmanaged)( + _slots[1646] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1646] = nativeContext.LoadFunction( + "glMultiModeDrawArraysIBM", + "opengl" + ) + ) )(mode, first, count, primcount, modestride); [SupportedApiProfile("gl", ["GL_IBM_multimode_draw_arrays"])] @@ -519960,8 +526685,14 @@ void IGL.MultiModeDrawElementsIBM( [NativeTypeName("GLint")] int modestride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiModeDrawElementsIBM", "opengl") + (delegate* unmanaged)( + _slots[1647] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1647] = nativeContext.LoadFunction( + "glMultiModeDrawElementsIBM", + "opengl" + ) + ) )(mode, count, type, indices, primcount, modestride); [SupportedApiProfile("gl", ["GL_IBM_multimode_draw_arrays"])] @@ -520098,8 +526829,11 @@ void IGL.MultiTexBufferEXT( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexBufferEXT", "opengl") + (delegate* unmanaged)( + _slots[1648] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1648] = nativeContext.LoadFunction("glMultiTexBufferEXT", "opengl") + ) )(texunit, target, internalformat, buffer); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -520139,8 +526873,11 @@ void IGL.MultiTexCoord1OES( [NativeTypeName("GLbyte")] sbyte s ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1bOES", "opengl") + (delegate* unmanaged)( + _slots[1649] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1649] = nativeContext.LoadFunction("glMultiTexCoord1bOES", "opengl") + ) )(texture, s); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -520187,8 +526924,11 @@ void IGL.MultiTexCoord1OES( [NativeTypeName("const GLbyte *")] sbyte* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1bvOES", "opengl") + (delegate* unmanaged)( + _slots[1650] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1650] = nativeContext.LoadFunction("glMultiTexCoord1bvOES", "opengl") + ) )(texture, coords); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -520226,8 +526966,11 @@ void IGL.MultiTexCoord1D( [NativeTypeName("GLdouble")] double s ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1d", "opengl") + (delegate* unmanaged)( + _slots[1651] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1651] = nativeContext.LoadFunction("glMultiTexCoord1d", "opengl") + ) )(target, s); [SupportedApiProfile( @@ -520301,8 +527044,11 @@ void IGL.MultiTexCoord1DARB( [NativeTypeName("GLdouble")] double s ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1dARB", "opengl") + (delegate* unmanaged)( + _slots[1652] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1652] = nativeContext.LoadFunction("glMultiTexCoord1dARB", "opengl") + ) )(target, s); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -520334,8 +527080,11 @@ void IGL.MultiTexCoord1Dv( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1dv", "opengl") + (delegate* unmanaged)( + _slots[1653] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1653] = nativeContext.LoadFunction("glMultiTexCoord1dv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -520451,8 +527200,11 @@ void IGL.MultiTexCoord1DvARB( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1dvARB", "opengl") + (delegate* unmanaged)( + _slots[1654] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1654] = nativeContext.LoadFunction("glMultiTexCoord1dvARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -520505,8 +527257,11 @@ void IGL.MultiTexCoord1F( [NativeTypeName("GLfloat")] float s ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1f", "opengl") + (delegate* unmanaged)( + _slots[1655] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1655] = nativeContext.LoadFunction("glMultiTexCoord1f", "opengl") + ) )(target, s); [SupportedApiProfile( @@ -520580,8 +527335,11 @@ void IGL.MultiTexCoord1FARB( [NativeTypeName("GLfloat")] float s ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1fARB", "opengl") + (delegate* unmanaged)( + _slots[1656] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1656] = nativeContext.LoadFunction("glMultiTexCoord1fARB", "opengl") + ) )(target, s); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -520613,8 +527371,11 @@ void IGL.MultiTexCoord1Fv( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1fv", "opengl") + (delegate* unmanaged)( + _slots[1657] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1657] = nativeContext.LoadFunction("glMultiTexCoord1fv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -520730,8 +527491,11 @@ void IGL.MultiTexCoord1FvARB( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1fvARB", "opengl") + (delegate* unmanaged)( + _slots[1658] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1658] = nativeContext.LoadFunction("glMultiTexCoord1fvARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -520784,8 +527548,11 @@ void IGL.MultiTexCoord1NV( [NativeTypeName("GLhalfNV")] ushort s ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1hNV", "opengl") + (delegate* unmanaged)( + _slots[1659] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1659] = nativeContext.LoadFunction("glMultiTexCoord1hNV", "opengl") + ) )(target, s); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -520817,8 +527584,11 @@ void IGL.MultiTexCoord1HvNV( [NativeTypeName("const GLhalfNV *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1hvNV", "opengl") + (delegate* unmanaged)( + _slots[1660] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1660] = nativeContext.LoadFunction("glMultiTexCoord1hvNV", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -520871,8 +527641,11 @@ void IGL.MultiTexCoord1I( [NativeTypeName("GLint")] int s ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1i", "opengl") + (delegate* unmanaged)( + _slots[1661] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1661] = nativeContext.LoadFunction("glMultiTexCoord1i", "opengl") + ) )(target, s); [SupportedApiProfile( @@ -520946,8 +527719,11 @@ void IGL.MultiTexCoord1IARB( [NativeTypeName("GLint")] int s ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1iARB", "opengl") + (delegate* unmanaged)( + _slots[1662] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1662] = nativeContext.LoadFunction("glMultiTexCoord1iARB", "opengl") + ) )(target, s); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -520979,8 +527755,11 @@ void IGL.MultiTexCoord1Iv( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1iv", "opengl") + (delegate* unmanaged)( + _slots[1663] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1663] = nativeContext.LoadFunction("glMultiTexCoord1iv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -521096,8 +527875,11 @@ void IGL.MultiTexCoord1IvARB( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1ivARB", "opengl") + (delegate* unmanaged)( + _slots[1664] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1664] = nativeContext.LoadFunction("glMultiTexCoord1ivARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -521150,8 +527932,11 @@ void IGL.MultiTexCoord1S( [NativeTypeName("GLshort")] short s ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1s", "opengl") + (delegate* unmanaged)( + _slots[1665] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1665] = nativeContext.LoadFunction("glMultiTexCoord1s", "opengl") + ) )(target, s); [SupportedApiProfile( @@ -521225,8 +528010,11 @@ void IGL.MultiTexCoord1SARB( [NativeTypeName("GLshort")] short s ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1sARB", "opengl") + (delegate* unmanaged)( + _slots[1666] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1666] = nativeContext.LoadFunction("glMultiTexCoord1sARB", "opengl") + ) )(target, s); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -521258,8 +528046,11 @@ void IGL.MultiTexCoord1Sv( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1sv", "opengl") + (delegate* unmanaged)( + _slots[1667] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1667] = nativeContext.LoadFunction("glMultiTexCoord1sv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -521375,8 +528166,11 @@ void IGL.MultiTexCoord1SvARB( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1svARB", "opengl") + (delegate* unmanaged)( + _slots[1668] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1668] = nativeContext.LoadFunction("glMultiTexCoord1svARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -521429,8 +528223,11 @@ void IGL.MultiTexCoord1XOES( [NativeTypeName("GLfixed")] int s ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1xOES", "opengl") + (delegate* unmanaged)( + _slots[1669] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1669] = nativeContext.LoadFunction("glMultiTexCoord1xOES", "opengl") + ) )(texture, s); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -521477,8 +528274,11 @@ void IGL.MultiTexCoord1XOES( [NativeTypeName("const GLfixed *")] int* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord1xvOES", "opengl") + (delegate* unmanaged)( + _slots[1670] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1670] = nativeContext.LoadFunction("glMultiTexCoord1xvOES", "opengl") + ) )(texture, coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -521517,8 +528317,11 @@ void IGL.MultiTexCoord2OES( [NativeTypeName("GLbyte")] sbyte t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2bOES", "opengl") + (delegate* unmanaged)( + _slots[1671] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1671] = nativeContext.LoadFunction("glMultiTexCoord2bOES", "opengl") + ) )(texture, s, t); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -521553,8 +528356,11 @@ void IGL.MultiTexCoord2OES( [NativeTypeName("const GLbyte *")] sbyte* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2bvOES", "opengl") + (delegate* unmanaged)( + _slots[1672] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1672] = nativeContext.LoadFunction("glMultiTexCoord2bvOES", "opengl") + ) )(texture, coords); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -521593,8 +528399,11 @@ void IGL.MultiTexCoord2( [NativeTypeName("GLdouble")] double t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2d", "opengl") + (delegate* unmanaged)( + _slots[1673] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1673] = nativeContext.LoadFunction("glMultiTexCoord2d", "opengl") + ) )(target, s, t); [SupportedApiProfile( @@ -521672,8 +528481,11 @@ void IGL.MultiTexCoord2ARB( [NativeTypeName("GLdouble")] double t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2dARB", "opengl") + (delegate* unmanaged)( + _slots[1674] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1674] = nativeContext.LoadFunction("glMultiTexCoord2dARB", "opengl") + ) )(target, s, t); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -521708,8 +528520,11 @@ void IGL.MultiTexCoord2( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2dv", "opengl") + (delegate* unmanaged)( + _slots[1675] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1675] = nativeContext.LoadFunction("glMultiTexCoord2dv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -521789,8 +528604,11 @@ void IGL.MultiTexCoord2ARB( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2dvARB", "opengl") + (delegate* unmanaged)( + _slots[1676] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1676] = nativeContext.LoadFunction("glMultiTexCoord2dvARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -521829,8 +528647,11 @@ void IGL.MultiTexCoord2( [NativeTypeName("GLfloat")] float t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2f", "opengl") + (delegate* unmanaged)( + _slots[1677] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1677] = nativeContext.LoadFunction("glMultiTexCoord2f", "opengl") + ) )(target, s, t); [SupportedApiProfile( @@ -521908,8 +528729,11 @@ void IGL.MultiTexCoord2ARB( [NativeTypeName("GLfloat")] float t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2fARB", "opengl") + (delegate* unmanaged)( + _slots[1678] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1678] = nativeContext.LoadFunction("glMultiTexCoord2fARB", "opengl") + ) )(target, s, t); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -521944,8 +528768,11 @@ void IGL.MultiTexCoord2( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2fv", "opengl") + (delegate* unmanaged)( + _slots[1679] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1679] = nativeContext.LoadFunction("glMultiTexCoord2fv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -522025,8 +528852,11 @@ void IGL.MultiTexCoord2ARB( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2fvARB", "opengl") + (delegate* unmanaged)( + _slots[1680] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1680] = nativeContext.LoadFunction("glMultiTexCoord2fvARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -522065,8 +528895,11 @@ void IGL.MultiTexCoord2NV( [NativeTypeName("GLhalfNV")] ushort t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2hNV", "opengl") + (delegate* unmanaged)( + _slots[1681] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1681] = nativeContext.LoadFunction("glMultiTexCoord2hNV", "opengl") + ) )(target, s, t); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -522101,8 +528934,11 @@ void IGL.MultiTexCoord2NV( [NativeTypeName("const GLhalfNV *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2hvNV", "opengl") + (delegate* unmanaged)( + _slots[1682] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1682] = nativeContext.LoadFunction("glMultiTexCoord2hvNV", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -522141,8 +528977,11 @@ void IGL.MultiTexCoord2( [NativeTypeName("GLint")] int t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2i", "opengl") + (delegate* unmanaged)( + _slots[1683] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1683] = nativeContext.LoadFunction("glMultiTexCoord2i", "opengl") + ) )(target, s, t); [SupportedApiProfile( @@ -522220,8 +529059,11 @@ void IGL.MultiTexCoord2ARB( [NativeTypeName("GLint")] int t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2iARB", "opengl") + (delegate* unmanaged)( + _slots[1684] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1684] = nativeContext.LoadFunction("glMultiTexCoord2iARB", "opengl") + ) )(target, s, t); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -522256,8 +529098,11 @@ void IGL.MultiTexCoord2( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2iv", "opengl") + (delegate* unmanaged)( + _slots[1685] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1685] = nativeContext.LoadFunction("glMultiTexCoord2iv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -522337,8 +529182,11 @@ void IGL.MultiTexCoord2ARB( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2ivARB", "opengl") + (delegate* unmanaged)( + _slots[1686] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1686] = nativeContext.LoadFunction("glMultiTexCoord2ivARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -522377,8 +529225,11 @@ void IGL.MultiTexCoord2( [NativeTypeName("GLshort")] short t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2s", "opengl") + (delegate* unmanaged)( + _slots[1687] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1687] = nativeContext.LoadFunction("glMultiTexCoord2s", "opengl") + ) )(target, s, t); [SupportedApiProfile( @@ -522456,8 +529307,11 @@ void IGL.MultiTexCoord2ARB( [NativeTypeName("GLshort")] short t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2sARB", "opengl") + (delegate* unmanaged)( + _slots[1688] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1688] = nativeContext.LoadFunction("glMultiTexCoord2sARB", "opengl") + ) )(target, s, t); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -522492,8 +529346,11 @@ void IGL.MultiTexCoord2( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2sv", "opengl") + (delegate* unmanaged)( + _slots[1689] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1689] = nativeContext.LoadFunction("glMultiTexCoord2sv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -522573,8 +529430,11 @@ void IGL.MultiTexCoord2ARB( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2svARB", "opengl") + (delegate* unmanaged)( + _slots[1690] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1690] = nativeContext.LoadFunction("glMultiTexCoord2svARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -522613,8 +529473,11 @@ void IGL.MultiTexCoord2XOES( [NativeTypeName("GLfixed")] int t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2xOES", "opengl") + (delegate* unmanaged)( + _slots[1691] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1691] = nativeContext.LoadFunction("glMultiTexCoord2xOES", "opengl") + ) )(texture, s, t); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -522649,8 +529512,11 @@ void IGL.MultiTexCoord2XOES( [NativeTypeName("const GLfixed *")] int* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord2xvOES", "opengl") + (delegate* unmanaged)( + _slots[1692] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1692] = nativeContext.LoadFunction("glMultiTexCoord2xvOES", "opengl") + ) )(texture, coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -522690,8 +529556,11 @@ void IGL.MultiTexCoord3OES( [NativeTypeName("GLbyte")] sbyte r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3bOES", "opengl") + (delegate* unmanaged)( + _slots[1693] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1693] = nativeContext.LoadFunction("glMultiTexCoord3bOES", "opengl") + ) )(texture, s, t, r); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -522729,8 +529598,11 @@ void IGL.MultiTexCoord3OES( [NativeTypeName("const GLbyte *")] sbyte* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3bvOES", "opengl") + (delegate* unmanaged)( + _slots[1694] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1694] = nativeContext.LoadFunction("glMultiTexCoord3bvOES", "opengl") + ) )(texture, coords); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -522770,8 +529642,11 @@ void IGL.MultiTexCoord3( [NativeTypeName("GLdouble")] double r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3d", "opengl") + (delegate* unmanaged)( + _slots[1695] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1695] = nativeContext.LoadFunction("glMultiTexCoord3d", "opengl") + ) )(target, s, t, r); [SupportedApiProfile( @@ -522853,8 +529728,11 @@ void IGL.MultiTexCoord3ARB( [NativeTypeName("GLdouble")] double r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3dARB", "opengl") + (delegate* unmanaged)( + _slots[1696] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1696] = nativeContext.LoadFunction("glMultiTexCoord3dARB", "opengl") + ) )(target, s, t, r); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -522892,8 +529770,11 @@ void IGL.MultiTexCoord3( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3dv", "opengl") + (delegate* unmanaged)( + _slots[1697] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1697] = nativeContext.LoadFunction("glMultiTexCoord3dv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -522973,8 +529854,11 @@ void IGL.MultiTexCoord3ARB( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3dvARB", "opengl") + (delegate* unmanaged)( + _slots[1698] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1698] = nativeContext.LoadFunction("glMultiTexCoord3dvARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -523014,8 +529898,11 @@ void IGL.MultiTexCoord3( [NativeTypeName("GLfloat")] float r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3f", "opengl") + (delegate* unmanaged)( + _slots[1699] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1699] = nativeContext.LoadFunction("glMultiTexCoord3f", "opengl") + ) )(target, s, t, r); [SupportedApiProfile( @@ -523097,8 +529984,11 @@ void IGL.MultiTexCoord3ARB( [NativeTypeName("GLfloat")] float r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3fARB", "opengl") + (delegate* unmanaged)( + _slots[1700] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1700] = nativeContext.LoadFunction("glMultiTexCoord3fARB", "opengl") + ) )(target, s, t, r); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -523136,8 +530026,11 @@ void IGL.MultiTexCoord3( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3fv", "opengl") + (delegate* unmanaged)( + _slots[1701] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1701] = nativeContext.LoadFunction("glMultiTexCoord3fv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -523217,8 +530110,11 @@ void IGL.MultiTexCoord3ARB( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3fvARB", "opengl") + (delegate* unmanaged)( + _slots[1702] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1702] = nativeContext.LoadFunction("glMultiTexCoord3fvARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -523258,8 +530154,11 @@ void IGL.MultiTexCoord3NV( [NativeTypeName("GLhalfNV")] ushort r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3hNV", "opengl") + (delegate* unmanaged)( + _slots[1703] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1703] = nativeContext.LoadFunction("glMultiTexCoord3hNV", "opengl") + ) )(target, s, t, r); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -523297,8 +530196,11 @@ void IGL.MultiTexCoord3NV( [NativeTypeName("const GLhalfNV *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3hvNV", "opengl") + (delegate* unmanaged)( + _slots[1704] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1704] = nativeContext.LoadFunction("glMultiTexCoord3hvNV", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -523338,8 +530240,11 @@ void IGL.MultiTexCoord3( [NativeTypeName("GLint")] int r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3i", "opengl") + (delegate* unmanaged)( + _slots[1705] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1705] = nativeContext.LoadFunction("glMultiTexCoord3i", "opengl") + ) )(target, s, t, r); [SupportedApiProfile( @@ -523421,8 +530326,11 @@ void IGL.MultiTexCoord3ARB( [NativeTypeName("GLint")] int r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3iARB", "opengl") + (delegate* unmanaged)( + _slots[1706] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1706] = nativeContext.LoadFunction("glMultiTexCoord3iARB", "opengl") + ) )(target, s, t, r); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -523460,8 +530368,11 @@ void IGL.MultiTexCoord3( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3iv", "opengl") + (delegate* unmanaged)( + _slots[1707] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1707] = nativeContext.LoadFunction("glMultiTexCoord3iv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -523541,8 +530452,11 @@ void IGL.MultiTexCoord3ARB( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3ivARB", "opengl") + (delegate* unmanaged)( + _slots[1708] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1708] = nativeContext.LoadFunction("glMultiTexCoord3ivARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -523582,8 +530496,11 @@ void IGL.MultiTexCoord3( [NativeTypeName("GLshort")] short r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3s", "opengl") + (delegate* unmanaged)( + _slots[1709] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1709] = nativeContext.LoadFunction("glMultiTexCoord3s", "opengl") + ) )(target, s, t, r); [SupportedApiProfile( @@ -523665,8 +530582,11 @@ void IGL.MultiTexCoord3ARB( [NativeTypeName("GLshort")] short r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3sARB", "opengl") + (delegate* unmanaged)( + _slots[1710] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1710] = nativeContext.LoadFunction("glMultiTexCoord3sARB", "opengl") + ) )(target, s, t, r); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -523704,8 +530624,11 @@ void IGL.MultiTexCoord3( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3sv", "opengl") + (delegate* unmanaged)( + _slots[1711] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1711] = nativeContext.LoadFunction("glMultiTexCoord3sv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -523785,8 +530708,11 @@ void IGL.MultiTexCoord3ARB( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3svARB", "opengl") + (delegate* unmanaged)( + _slots[1712] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1712] = nativeContext.LoadFunction("glMultiTexCoord3svARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -523826,8 +530752,11 @@ void IGL.MultiTexCoord3XOES( [NativeTypeName("GLfixed")] int r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3xOES", "opengl") + (delegate* unmanaged)( + _slots[1713] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1713] = nativeContext.LoadFunction("glMultiTexCoord3xOES", "opengl") + ) )(texture, s, t, r); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -523865,8 +530794,11 @@ void IGL.MultiTexCoord3XOES( [NativeTypeName("const GLfixed *")] int* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord3xvOES", "opengl") + (delegate* unmanaged)( + _slots[1714] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1714] = nativeContext.LoadFunction("glMultiTexCoord3xvOES", "opengl") + ) )(texture, coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -523907,8 +530839,11 @@ void IGL.MultiTexCoord4OES( [NativeTypeName("GLbyte")] sbyte q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4bOES", "opengl") + (delegate* unmanaged)( + _slots[1715] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1715] = nativeContext.LoadFunction("glMultiTexCoord4bOES", "opengl") + ) )(texture, s, t, r, q); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -523949,8 +530884,11 @@ void IGL.MultiTexCoord4OES( [NativeTypeName("const GLbyte *")] sbyte* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4bvOES", "opengl") + (delegate* unmanaged)( + _slots[1716] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1716] = nativeContext.LoadFunction("glMultiTexCoord4bvOES", "opengl") + ) )(texture, coords); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -523991,8 +530929,11 @@ void IGL.MultiTexCoord4( [NativeTypeName("GLdouble")] double q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4d", "opengl") + (delegate* unmanaged)( + _slots[1717] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1717] = nativeContext.LoadFunction("glMultiTexCoord4d", "opengl") + ) )(target, s, t, r, q); [SupportedApiProfile( @@ -524078,8 +531019,11 @@ void IGL.MultiTexCoord4ARB( [NativeTypeName("GLdouble")] double q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4dARB", "opengl") + (delegate* unmanaged)( + _slots[1718] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1718] = nativeContext.LoadFunction("glMultiTexCoord4dARB", "opengl") + ) )(target, s, t, r, q); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -524120,8 +531064,11 @@ void IGL.MultiTexCoord4( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4dv", "opengl") + (delegate* unmanaged)( + _slots[1719] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1719] = nativeContext.LoadFunction("glMultiTexCoord4dv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -524201,8 +531148,11 @@ void IGL.MultiTexCoord4ARB( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4dvARB", "opengl") + (delegate* unmanaged)( + _slots[1720] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1720] = nativeContext.LoadFunction("glMultiTexCoord4dvARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -524243,8 +531193,11 @@ void IGL.MultiTexCoord4( [NativeTypeName("GLfloat")] float q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4f", "opengl") + (delegate* unmanaged)( + _slots[1721] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1721] = nativeContext.LoadFunction("glMultiTexCoord4f", "opengl") + ) )(target, s, t, r, q); [SupportedApiProfile( @@ -524332,8 +531285,11 @@ void IGL.MultiTexCoord4ARB( [NativeTypeName("GLfloat")] float q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4fARB", "opengl") + (delegate* unmanaged)( + _slots[1722] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1722] = nativeContext.LoadFunction("glMultiTexCoord4fARB", "opengl") + ) )(target, s, t, r, q); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -524374,8 +531330,11 @@ void IGL.MultiTexCoord4( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4fv", "opengl") + (delegate* unmanaged)( + _slots[1723] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1723] = nativeContext.LoadFunction("glMultiTexCoord4fv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -524455,8 +531414,11 @@ void IGL.MultiTexCoord4ARB( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4fvARB", "opengl") + (delegate* unmanaged)( + _slots[1724] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1724] = nativeContext.LoadFunction("glMultiTexCoord4fvARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -524497,8 +531459,11 @@ void IGL.MultiTexCoord4NV( [NativeTypeName("GLhalfNV")] ushort q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4hNV", "opengl") + (delegate* unmanaged)( + _slots[1725] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1725] = nativeContext.LoadFunction("glMultiTexCoord4hNV", "opengl") + ) )(target, s, t, r, q); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -524539,8 +531504,11 @@ void IGL.MultiTexCoord4NV( [NativeTypeName("const GLhalfNV *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4hvNV", "opengl") + (delegate* unmanaged)( + _slots[1726] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1726] = nativeContext.LoadFunction("glMultiTexCoord4hvNV", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -524581,8 +531549,11 @@ void IGL.MultiTexCoord4( [NativeTypeName("GLint")] int q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4i", "opengl") + (delegate* unmanaged)( + _slots[1727] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1727] = nativeContext.LoadFunction("glMultiTexCoord4i", "opengl") + ) )(target, s, t, r, q); [SupportedApiProfile( @@ -524668,8 +531639,11 @@ void IGL.MultiTexCoord4ARB( [NativeTypeName("GLint")] int q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4iARB", "opengl") + (delegate* unmanaged)( + _slots[1728] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1728] = nativeContext.LoadFunction("glMultiTexCoord4iARB", "opengl") + ) )(target, s, t, r, q); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -524710,8 +531684,11 @@ void IGL.MultiTexCoord4( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4iv", "opengl") + (delegate* unmanaged)( + _slots[1729] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1729] = nativeContext.LoadFunction("glMultiTexCoord4iv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -524791,8 +531768,11 @@ void IGL.MultiTexCoord4ARB( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4ivARB", "opengl") + (delegate* unmanaged)( + _slots[1730] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1730] = nativeContext.LoadFunction("glMultiTexCoord4ivARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -524833,8 +531813,11 @@ void IGL.MultiTexCoord4( [NativeTypeName("GLshort")] short q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4s", "opengl") + (delegate* unmanaged)( + _slots[1731] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1731] = nativeContext.LoadFunction("glMultiTexCoord4s", "opengl") + ) )(target, s, t, r, q); [SupportedApiProfile( @@ -524920,8 +531903,11 @@ void IGL.MultiTexCoord4ARB( [NativeTypeName("GLshort")] short q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4sARB", "opengl") + (delegate* unmanaged)( + _slots[1732] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1732] = nativeContext.LoadFunction("glMultiTexCoord4sARB", "opengl") + ) )(target, s, t, r, q); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -524962,8 +531948,11 @@ void IGL.MultiTexCoord4( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4sv", "opengl") + (delegate* unmanaged)( + _slots[1733] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1733] = nativeContext.LoadFunction("glMultiTexCoord4sv", "opengl") + ) )(target, v); [SupportedApiProfile( @@ -525043,8 +532032,11 @@ void IGL.MultiTexCoord4ARB( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4svARB", "opengl") + (delegate* unmanaged)( + _slots[1734] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1734] = nativeContext.LoadFunction("glMultiTexCoord4svARB", "opengl") + ) )(target, v); [SupportedApiProfile("gl", ["GL_ARB_multitexture"])] @@ -525085,8 +532077,11 @@ void IGL.MultiTexCoord4X( [NativeTypeName("GLfixed")] int q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4x", "opengl") + (delegate* unmanaged)( + _slots[1735] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1735] = nativeContext.LoadFunction("glMultiTexCoord4x", "opengl") + ) )(texture, s, t, r, q); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -525130,8 +532125,11 @@ void IGL.MultiTexCoord4XOES( [NativeTypeName("GLfixed")] int q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4xOES", "opengl") + (delegate* unmanaged)( + _slots[1736] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1736] = nativeContext.LoadFunction("glMultiTexCoord4xOES", "opengl") + ) )(texture, s, t, r, q); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -525174,8 +532172,11 @@ void IGL.MultiTexCoord4XOES( [NativeTypeName("const GLfixed *")] int* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoord4xvOES", "opengl") + (delegate* unmanaged)( + _slots[1737] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1737] = nativeContext.LoadFunction("glMultiTexCoord4xvOES", "opengl") + ) )(texture, coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -525214,8 +532215,11 @@ void IGL.MultiTexCoordP1( [NativeTypeName("GLuint")] uint coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoordP1ui", "opengl") + (delegate* unmanaged)( + _slots[1738] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1738] = nativeContext.LoadFunction("glMultiTexCoordP1ui", "opengl") + ) )(texture, type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -525251,8 +532255,11 @@ void IGL.MultiTexCoordP1Uiv( [NativeTypeName("const GLuint *")] uint* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoordP1uiv", "opengl") + (delegate* unmanaged)( + _slots[1739] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1739] = nativeContext.LoadFunction("glMultiTexCoordP1uiv", "opengl") + ) )(texture, type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -525311,8 +532318,11 @@ void IGL.MultiTexCoordP2( [NativeTypeName("GLuint")] uint coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoordP2ui", "opengl") + (delegate* unmanaged)( + _slots[1740] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1740] = nativeContext.LoadFunction("glMultiTexCoordP2ui", "opengl") + ) )(texture, type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -525348,8 +532358,11 @@ void IGL.MultiTexCoordP2Uiv( [NativeTypeName("const GLuint *")] uint* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoordP2uiv", "opengl") + (delegate* unmanaged)( + _slots[1741] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1741] = nativeContext.LoadFunction("glMultiTexCoordP2uiv", "opengl") + ) )(texture, type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -525408,8 +532421,11 @@ void IGL.MultiTexCoordP3( [NativeTypeName("GLuint")] uint coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoordP3ui", "opengl") + (delegate* unmanaged)( + _slots[1742] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1742] = nativeContext.LoadFunction("glMultiTexCoordP3ui", "opengl") + ) )(texture, type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -525445,8 +532461,11 @@ void IGL.MultiTexCoordP3Uiv( [NativeTypeName("const GLuint *")] uint* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoordP3uiv", "opengl") + (delegate* unmanaged)( + _slots[1743] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1743] = nativeContext.LoadFunction("glMultiTexCoordP3uiv", "opengl") + ) )(texture, type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -525505,8 +532524,11 @@ void IGL.MultiTexCoordP4( [NativeTypeName("GLuint")] uint coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoordP4ui", "opengl") + (delegate* unmanaged)( + _slots[1744] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1744] = nativeContext.LoadFunction("glMultiTexCoordP4ui", "opengl") + ) )(texture, type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -525542,8 +532564,11 @@ void IGL.MultiTexCoordP4Uiv( [NativeTypeName("const GLuint *")] uint* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoordP4uiv", "opengl") + (delegate* unmanaged)( + _slots[1745] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1745] = nativeContext.LoadFunction("glMultiTexCoordP4uiv", "opengl") + ) )(texture, type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -525604,8 +532629,14 @@ void IGL.MultiTexCoordPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexCoordPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[1746] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1746] = nativeContext.LoadFunction( + "glMultiTexCoordPointerEXT", + "opengl" + ) + ) )(texunit, size, type, stride, pointer); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -525662,8 +532693,11 @@ void IGL.MultiTexEnvEXT( [NativeTypeName("GLfloat")] float param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexEnvfEXT", "opengl") + (delegate* unmanaged)( + _slots[1747] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1747] = nativeContext.LoadFunction("glMultiTexEnvfEXT", "opengl") + ) )(texunit, target, pname, param3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -525705,8 +532739,11 @@ void IGL.MultiTexEnvEXT( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexEnvfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1748] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1748] = nativeContext.LoadFunction("glMultiTexEnvfvEXT", "opengl") + ) )(texunit, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -525754,8 +532791,11 @@ void IGL.MultiTexEnvEXT( [NativeTypeName("GLint")] int param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexEnviEXT", "opengl") + (delegate* unmanaged)( + _slots[1749] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1749] = nativeContext.LoadFunction("glMultiTexEnviEXT", "opengl") + ) )(texunit, target, pname, param3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -525797,8 +532837,11 @@ void IGL.MultiTexEnvEXT( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexEnvivEXT", "opengl") + (delegate* unmanaged)( + _slots[1750] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1750] = nativeContext.LoadFunction("glMultiTexEnvivEXT", "opengl") + ) )(texunit, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -525846,8 +532889,11 @@ void IGL.MultiTexGenEXT( [NativeTypeName("GLdouble")] double param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexGendEXT", "opengl") + (delegate* unmanaged)( + _slots[1751] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1751] = nativeContext.LoadFunction("glMultiTexGendEXT", "opengl") + ) )(texunit, coord, pname, param3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -525889,8 +532935,11 @@ void IGL.MultiTexGenEXT( [NativeTypeName("const GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexGendvEXT", "opengl") + (delegate* unmanaged)( + _slots[1752] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1752] = nativeContext.LoadFunction("glMultiTexGendvEXT", "opengl") + ) )(texunit, coord, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -525938,8 +532987,11 @@ void IGL.MultiTexGenEXT( [NativeTypeName("GLfloat")] float param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexGenfEXT", "opengl") + (delegate* unmanaged)( + _slots[1753] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1753] = nativeContext.LoadFunction("glMultiTexGenfEXT", "opengl") + ) )(texunit, coord, pname, param3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -525981,8 +533033,11 @@ void IGL.MultiTexGenEXT( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexGenfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1754] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1754] = nativeContext.LoadFunction("glMultiTexGenfvEXT", "opengl") + ) )(texunit, coord, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526030,8 +533085,11 @@ void IGL.MultiTexGenEXT( [NativeTypeName("GLint")] int param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexGeniEXT", "opengl") + (delegate* unmanaged)( + _slots[1755] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1755] = nativeContext.LoadFunction("glMultiTexGeniEXT", "opengl") + ) )(texunit, coord, pname, param3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526073,8 +533131,11 @@ void IGL.MultiTexGenEXT( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexGenivEXT", "opengl") + (delegate* unmanaged)( + _slots[1756] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1756] = nativeContext.LoadFunction("glMultiTexGenivEXT", "opengl") + ) )(texunit, coord, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526127,8 +533188,11 @@ void IGL.MultiTexImage1DEXT( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[1757] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1757] = nativeContext.LoadFunction("glMultiTexImage1DEXT", "opengl") + ) )(texunit, target, level, internalformat, width, border, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526229,8 +533293,11 @@ void IGL.MultiTexImage2DEXT( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[1758] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1758] = nativeContext.LoadFunction("glMultiTexImage2DEXT", "opengl") + ) )(texunit, target, level, internalformat, width, height, border, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526350,8 +533417,11 @@ void IGL.MultiTexImage3DEXT( uint, uint, void*, - void>) - nativeContext.LoadFunction("glMultiTexImage3DEXT", "opengl") + void>)( + _slots[1759] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1759] = nativeContext.LoadFunction("glMultiTexImage3DEXT", "opengl") + ) )( texunit, target, @@ -526470,8 +533540,11 @@ void IGL.MultiTexParameterEXT( [NativeTypeName("GLfloat")] float param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexParameterfEXT", "opengl") + (delegate* unmanaged)( + _slots[1760] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1760] = nativeContext.LoadFunction("glMultiTexParameterfEXT", "opengl") + ) )(texunit, target, pname, param3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526513,8 +533586,14 @@ void IGL.MultiTexParameterEXT( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1761] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1761] = nativeContext.LoadFunction( + "glMultiTexParameterfvEXT", + "opengl" + ) + ) )(texunit, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526567,8 +533646,11 @@ void IGL.MultiTexParameterEXT( [NativeTypeName("GLint")] int param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexParameteriEXT", "opengl") + (delegate* unmanaged)( + _slots[1762] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1762] = nativeContext.LoadFunction("glMultiTexParameteriEXT", "opengl") + ) )(texunit, target, pname, param3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526610,8 +533692,14 @@ void IGL.MultiTexParameterIEXT( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexParameterIivEXT", "opengl") + (delegate* unmanaged)( + _slots[1763] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1763] = nativeContext.LoadFunction( + "glMultiTexParameterIivEXT", + "opengl" + ) + ) )(texunit, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526664,8 +533752,14 @@ void IGL.MultiTexParameterIEXT( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexParameterIuivEXT", "opengl") + (delegate* unmanaged)( + _slots[1764] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1764] = nativeContext.LoadFunction( + "glMultiTexParameterIuivEXT", + "opengl" + ) + ) )(texunit, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526718,8 +533812,14 @@ void IGL.MultiTexParameterEXT( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1765] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1765] = nativeContext.LoadFunction( + "glMultiTexParameterivEXT", + "opengl" + ) + ) )(texunit, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526771,8 +533871,14 @@ void IGL.MultiTexRenderbufferEXT( [NativeTypeName("GLuint")] uint renderbuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexRenderbufferEXT", "opengl") + (delegate* unmanaged)( + _slots[1766] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1766] = nativeContext.LoadFunction( + "glMultiTexRenderbufferEXT", + "opengl" + ) + ) )(texunit, target, renderbuffer); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526815,8 +533921,11 @@ void IGL.MultiTexSubImage1DEXT( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexSubImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[1767] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1767] = nativeContext.LoadFunction("glMultiTexSubImage1DEXT", "opengl") + ) )(texunit, target, level, xoffset, width, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -526911,8 +534020,11 @@ void IGL.MultiTexSubImage2DEXT( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultiTexSubImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[1768] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1768] = nativeContext.LoadFunction("glMultiTexSubImage2DEXT", "opengl") + ) )(texunit, target, level, xoffset, yoffset, width, height, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -527034,8 +534146,11 @@ void IGL.MultiTexSubImage3DEXT( uint, uint, void*, - void>) - nativeContext.LoadFunction("glMultiTexSubImage3DEXT", "opengl") + void>)( + _slots[1769] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1769] = nativeContext.LoadFunction("glMultiTexSubImage3DEXT", "opengl") + ) )( texunit, target, @@ -527155,9 +534270,13 @@ public static void MultiTexSubImage3DEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MultMatrix([NativeTypeName("const GLdouble *")] double* m) => - ((delegate* unmanaged)nativeContext.LoadFunction("glMultMatrixd", "opengl"))( - m - ); + ( + (delegate* unmanaged)( + _slots[1770] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1770] = nativeContext.LoadFunction("glMultMatrixd", "opengl") + ) + )(m); [SupportedApiProfile( "gl", @@ -527231,9 +534350,13 @@ public static void MultMatrix([NativeTypeName("const GLdouble *")] Ref m [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MultMatrix([NativeTypeName("const GLfloat *")] float* m) => - ((delegate* unmanaged)nativeContext.LoadFunction("glMultMatrixf", "opengl"))( - m - ); + ( + (delegate* unmanaged)( + _slots[1771] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1771] = nativeContext.LoadFunction("glMultMatrixf", "opengl") + ) + )(m); [SupportedApiProfile( "gl", @@ -527309,7 +534432,13 @@ public static void MultMatrix([NativeTypeName("const GLfloat *")] Ref m) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MultMatrixx([NativeTypeName("const GLfixed *")] int* m) => - ((delegate* unmanaged)nativeContext.LoadFunction("glMultMatrixx", "opengl"))(m); + ( + (delegate* unmanaged)( + _slots[1772] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1772] = nativeContext.LoadFunction("glMultMatrixx", "opengl") + ) + )(m); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] [NativeFunction("opengl", EntryPoint = "glMultMatrixx")] @@ -527335,9 +534464,13 @@ public static void MultMatrixx([NativeTypeName("const GLfixed *")] Ref m) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MultMatrixxOES([NativeTypeName("const GLfixed *")] int* m) => - ((delegate* unmanaged)nativeContext.LoadFunction("glMultMatrixxOES", "opengl"))( - m - ); + ( + (delegate* unmanaged)( + _slots[1773] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1773] = nativeContext.LoadFunction("glMultMatrixxOES", "opengl") + ) + )(m); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [SupportedApiProfile("gles1", ["GL_OES_fixed_point"])] @@ -527366,8 +534499,11 @@ public static void MultMatrixxOES([NativeTypeName("const GLfixed *")] Ref m [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MultTransposeMatrix([NativeTypeName("const GLdouble *")] double* m) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultTransposeMatrixd", "opengl") + (delegate* unmanaged)( + _slots[1774] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1774] = nativeContext.LoadFunction("glMultTransposeMatrixd", "opengl") + ) )(m); [SupportedApiProfile( @@ -527437,8 +534573,14 @@ public static void MultTransposeMatrix([NativeTypeName("const GLdouble *")] Ref< [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MultTransposeMatrixARB([NativeTypeName("const GLdouble *")] double* m) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultTransposeMatrixdARB", "opengl") + (delegate* unmanaged)( + _slots[1775] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1775] = nativeContext.LoadFunction( + "glMultTransposeMatrixdARB", + "opengl" + ) + ) )(m); [SupportedApiProfile("gl", ["GL_ARB_transpose_matrix"])] @@ -527466,8 +534608,11 @@ public static void MultTransposeMatrixARB([NativeTypeName("const GLdouble *")] R [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MultTransposeMatrix([NativeTypeName("const GLfloat *")] float* m) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultTransposeMatrixf", "opengl") + (delegate* unmanaged)( + _slots[1776] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1776] = nativeContext.LoadFunction("glMultTransposeMatrixf", "opengl") + ) )(m); [SupportedApiProfile( @@ -527537,8 +534682,14 @@ public static void MultTransposeMatrix([NativeTypeName("const GLfloat *")] Ref ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultTransposeMatrixfARB", "opengl") + (delegate* unmanaged)( + _slots[1777] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1777] = nativeContext.LoadFunction( + "glMultTransposeMatrixfARB", + "opengl" + ) + ) )(m); [SupportedApiProfile("gl", ["GL_ARB_transpose_matrix"])] @@ -527566,8 +534717,14 @@ public static void MultTransposeMatrixARB([NativeTypeName("const GLfloat *")] Re [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.MultTransposeMatrixxOES([NativeTypeName("const GLfixed *")] int* m) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glMultTransposeMatrixxOES", "opengl") + (delegate* unmanaged)( + _slots[1778] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1778] = nativeContext.LoadFunction( + "glMultTransposeMatrixxOES", + "opengl" + ) + ) )(m); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -527599,8 +534756,14 @@ void IGL.NamedBufferAttachMemoryNV( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedBufferAttachMemoryNV", "opengl") + (delegate* unmanaged)( + _slots[1779] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1779] = nativeContext.LoadFunction( + "glNamedBufferAttachMemoryNV", + "opengl" + ) + ) )(buffer, memory, offset); [SupportedApiProfile("gl", ["GL_NV_memory_attachment"])] @@ -527622,8 +534785,11 @@ void IGL.NamedBufferData( [NativeTypeName("GLenum")] uint usage ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedBufferData", "opengl") + (delegate* unmanaged)( + _slots[1780] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1780] = nativeContext.LoadFunction("glNamedBufferData", "opengl") + ) )(buffer, size, data, usage); [SupportedApiProfile( @@ -527687,8 +534853,11 @@ void IGL.NamedBufferDataEXT( [NativeTypeName("GLenum")] uint usage ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedBufferDataEXT", "opengl") + (delegate* unmanaged)( + _slots[1781] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1781] = nativeContext.LoadFunction("glNamedBufferDataEXT", "opengl") + ) )(buffer, size, data, usage); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -527736,8 +534905,14 @@ void IGL.NamedBufferPageCommitmentARB( [NativeTypeName("GLboolean")] uint commit ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedBufferPageCommitmentARB", "opengl") + (delegate* unmanaged)( + _slots[1782] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1782] = nativeContext.LoadFunction( + "glNamedBufferPageCommitmentARB", + "opengl" + ) + ) )(buffer, offset, size, commit); [SupportedApiProfile("gl", ["GL_ARB_sparse_buffer"])] @@ -527779,8 +534954,14 @@ void IGL.NamedBufferPageCommitmentEXT( [NativeTypeName("GLboolean")] uint commit ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedBufferPageCommitmentEXT", "opengl") + (delegate* unmanaged)( + _slots[1783] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1783] = nativeContext.LoadFunction( + "glNamedBufferPageCommitmentEXT", + "opengl" + ) + ) )(buffer, offset, size, commit); [SupportedApiProfile("gl", ["GL_ARB_sparse_buffer"])] @@ -527824,8 +535005,14 @@ void IGL.NamedBufferPageCommitmentMemNV( [NativeTypeName("GLboolean")] uint commit ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedBufferPageCommitmentMemNV", "opengl") + (delegate* unmanaged)( + _slots[1784] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1784] = nativeContext.LoadFunction( + "glNamedBufferPageCommitmentMemNV", + "opengl" + ) + ) )(buffer, offset, size, memory, memOffset, commit); [SupportedApiProfile("gl", ["GL_NV_memory_object_sparse"])] @@ -527883,8 +535070,11 @@ void IGL.NamedBufferStorage( [NativeTypeName("GLbitfield")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedBufferStorage", "opengl") + (delegate* unmanaged)( + _slots[1785] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1785] = nativeContext.LoadFunction("glNamedBufferStorage", "opengl") + ) )(buffer, size, data, flags); [SupportedApiProfile( @@ -527948,8 +535138,11 @@ void IGL.NamedBufferStorageEXT( [NativeTypeName("GLbitfield")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedBufferStorageEXT", "opengl") + (delegate* unmanaged)( + _slots[1786] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1786] = nativeContext.LoadFunction("glNamedBufferStorageEXT", "opengl") + ) )(buffer, size, data, flags); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -527998,8 +535191,14 @@ void IGL.NamedBufferStorageExternalEXT( [NativeTypeName("GLbitfield")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedBufferStorageExternalEXT", "opengl") + (delegate* unmanaged)( + _slots[1787] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1787] = nativeContext.LoadFunction( + "glNamedBufferStorageExternalEXT", + "opengl" + ) + ) )(buffer, offset, size, clientBuffer, flags); [SupportedApiProfile("gl", ["GL_EXT_external_buffer"])] @@ -528056,8 +535255,14 @@ void IGL.NamedBufferStorageMemEXT( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedBufferStorageMemEXT", "opengl") + (delegate* unmanaged)( + _slots[1788] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1788] = nativeContext.LoadFunction( + "glNamedBufferStorageMemEXT", + "opengl" + ) + ) )(buffer, size, memory, offset); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -528079,8 +535284,11 @@ void IGL.NamedBufferSubData( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedBufferSubData", "opengl") + (delegate* unmanaged)( + _slots[1789] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1789] = nativeContext.LoadFunction("glNamedBufferSubData", "opengl") + ) )(buffer, offset, size, data); [SupportedApiProfile( @@ -528144,8 +535352,11 @@ void IGL.NamedBufferSubDataEXT( [NativeTypeName("const void *")] void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedBufferSubDataEXT", "opengl") + (delegate* unmanaged)( + _slots[1790] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1790] = nativeContext.LoadFunction("glNamedBufferSubDataEXT", "opengl") + ) )(buffer, offset, size, data); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -528194,8 +535405,14 @@ void IGL.NamedCopyBufferSubDataEXT( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedCopyBufferSubDataEXT", "opengl") + (delegate* unmanaged)( + _slots[1791] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1791] = nativeContext.LoadFunction( + "glNamedCopyBufferSubDataEXT", + "opengl" + ) + ) )(readBuffer, writeBuffer, readOffset, writeOffset, size); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -528223,8 +535440,14 @@ void IGL.NamedFramebufferDrawBuffer( [NativeTypeName("GLenum")] uint buf ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferDrawBuffer", "opengl") + (delegate* unmanaged)( + _slots[1792] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1792] = nativeContext.LoadFunction( + "glNamedFramebufferDrawBuffer", + "opengl" + ) + ) )(framebuffer, buf); [SupportedApiProfile( @@ -528323,8 +535546,14 @@ void IGL.NamedFramebufferDrawBuffers( [NativeTypeName("const GLenum *")] uint* bufs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferDrawBuffers", "opengl") + (delegate* unmanaged)( + _slots[1793] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1793] = nativeContext.LoadFunction( + "glNamedFramebufferDrawBuffers", + "opengl" + ) + ) )(framebuffer, n, bufs); [SupportedApiProfile( @@ -528448,8 +535677,14 @@ void IGL.NamedFramebufferParameter( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferParameteri", "opengl") + (delegate* unmanaged)( + _slots[1794] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1794] = nativeContext.LoadFunction( + "glNamedFramebufferParameteri", + "opengl" + ) + ) )(framebuffer, pname, param2); [SupportedApiProfile( @@ -528503,8 +535738,14 @@ void IGL.NamedFramebufferParameterEXT( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferParameteriEXT", "opengl") + (delegate* unmanaged)( + _slots[1795] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1795] = nativeContext.LoadFunction( + "glNamedFramebufferParameteriEXT", + "opengl" + ) + ) )(framebuffer, pname, param2); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -528541,8 +535782,14 @@ void IGL.NamedFramebufferReadBuffer( [NativeTypeName("GLenum")] uint src ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferReadBuffer", "opengl") + (delegate* unmanaged)( + _slots[1796] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1796] = nativeContext.LoadFunction( + "glNamedFramebufferReadBuffer", + "opengl" + ) + ) )(framebuffer, src); [SupportedApiProfile( @@ -528594,8 +535841,14 @@ void IGL.NamedFramebufferRenderbuffer( [NativeTypeName("GLuint")] uint renderbuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferRenderbuffer", "opengl") + (delegate* unmanaged)( + _slots[1797] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1797] = nativeContext.LoadFunction( + "glNamedFramebufferRenderbuffer", + "opengl" + ) + ) )(framebuffer, attachment, renderbuffertarget, renderbuffer); [SupportedApiProfile( @@ -528671,8 +535924,14 @@ void IGL.NamedFramebufferRenderbufferEXT( [NativeTypeName("GLuint")] uint renderbuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferRenderbufferEXT", "opengl") + (delegate* unmanaged)( + _slots[1798] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1798] = nativeContext.LoadFunction( + "glNamedFramebufferRenderbufferEXT", + "opengl" + ) + ) )(framebuffer, attachment, renderbuffertarget, renderbuffer); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -528732,8 +535991,14 @@ void IGL.NamedFramebufferSampleLocationsARB( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferSampleLocationsfvARB", "opengl") + (delegate* unmanaged)( + _slots[1799] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1799] = nativeContext.LoadFunction( + "glNamedFramebufferSampleLocationsfvARB", + "opengl" + ) + ) )(framebuffer, start, count, v); [SupportedApiProfile("gl", ["GL_ARB_sample_locations"])] @@ -528781,8 +536046,14 @@ void IGL.NamedFramebufferSampleLocationsNV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferSampleLocationsfvNV", "opengl") + (delegate* unmanaged)( + _slots[1800] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1800] = nativeContext.LoadFunction( + "glNamedFramebufferSampleLocationsfvNV", + "opengl" + ) + ) )(framebuffer, start, count, v); [SupportedApiProfile("gl", ["GL_NV_sample_locations"])] @@ -528832,8 +536103,14 @@ void IGL.NamedFramebufferSamplePositionsAMD( [NativeTypeName("const GLfloat *")] float* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferSamplePositionsfvAMD", "opengl") + (delegate* unmanaged)( + _slots[1801] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1801] = nativeContext.LoadFunction( + "glNamedFramebufferSamplePositionsfvAMD", + "opengl" + ) + ) )(framebuffer, numsamples, pixelindex, values); [SupportedApiProfile("gl", ["GL_AMD_framebuffer_sample_positions"])] @@ -528884,8 +536161,14 @@ void IGL.NamedFramebufferTexture( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferTexture", "opengl") + (delegate* unmanaged)( + _slots[1802] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1802] = nativeContext.LoadFunction( + "glNamedFramebufferTexture", + "opengl" + ) + ) )(framebuffer, attachment, texture, level); [SupportedApiProfile( @@ -528944,8 +536227,14 @@ void IGL.NamedFramebufferTexture1DEXT( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferTexture1DEXT", "opengl") + (delegate* unmanaged)( + _slots[1803] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1803] = nativeContext.LoadFunction( + "glNamedFramebufferTexture1DEXT", + "opengl" + ) + ) )(framebuffer, attachment, textarget, texture, level); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529000,8 +536289,14 @@ void IGL.NamedFramebufferTexture2DEXT( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferTexture2DEXT", "opengl") + (delegate* unmanaged)( + _slots[1804] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1804] = nativeContext.LoadFunction( + "glNamedFramebufferTexture2DEXT", + "opengl" + ) + ) )(framebuffer, attachment, textarget, texture, level); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529057,8 +536352,14 @@ void IGL.NamedFramebufferTexture3DEXT( [NativeTypeName("GLint")] int zoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferTexture3DEXT", "opengl") + (delegate* unmanaged)( + _slots[1805] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1805] = nativeContext.LoadFunction( + "glNamedFramebufferTexture3DEXT", + "opengl" + ) + ) )(framebuffer, attachment, textarget, texture, level, zoffset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529130,8 +536431,14 @@ void IGL.NamedFramebufferTextureEXT( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferTextureEXT", "opengl") + (delegate* unmanaged)( + _slots[1806] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1806] = nativeContext.LoadFunction( + "glNamedFramebufferTextureEXT", + "opengl" + ) + ) )(framebuffer, attachment, texture, level); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529174,8 +536481,14 @@ void IGL.NamedFramebufferTextureFaceEXT( [NativeTypeName("GLenum")] uint face ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferTextureFaceEXT", "opengl") + (delegate* unmanaged)( + _slots[1807] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1807] = nativeContext.LoadFunction( + "glNamedFramebufferTextureFaceEXT", + "opengl" + ) + ) )(framebuffer, attachment, texture, level, face); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529228,8 +536541,14 @@ void IGL.NamedFramebufferTextureLayer( [NativeTypeName("GLint")] int layer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferTextureLayer", "opengl") + (delegate* unmanaged)( + _slots[1808] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1808] = nativeContext.LoadFunction( + "glNamedFramebufferTextureLayer", + "opengl" + ) + ) )(framebuffer, attachment, texture, level, layer); [SupportedApiProfile( @@ -529298,8 +536617,14 @@ void IGL.NamedFramebufferTextureLayerEXT( [NativeTypeName("GLint")] int layer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedFramebufferTextureLayerEXT", "opengl") + (delegate* unmanaged)( + _slots[1809] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1809] = nativeContext.LoadFunction( + "glNamedFramebufferTextureLayerEXT", + "opengl" + ) + ) )(framebuffer, attachment, texture, level, layer); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529354,8 +536679,14 @@ void IGL.NamedProgramLocalParameter4EXT( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedProgramLocalParameter4dEXT", "opengl") + (delegate* unmanaged)( + _slots[1810] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1810] = nativeContext.LoadFunction( + "glNamedProgramLocalParameter4dEXT", + "opengl" + ) + ) )(program, target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529406,8 +536737,14 @@ void IGL.NamedProgramLocalParameter4EXT( [NativeTypeName("const GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedProgramLocalParameter4dvEXT", "opengl") + (delegate* unmanaged)( + _slots[1811] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1811] = nativeContext.LoadFunction( + "glNamedProgramLocalParameter4dvEXT", + "opengl" + ) + ) )(program, target, index, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529458,8 +536795,14 @@ void IGL.NamedProgramLocalParameter4EXT( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedProgramLocalParameter4fEXT", "opengl") + (delegate* unmanaged)( + _slots[1812] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1812] = nativeContext.LoadFunction( + "glNamedProgramLocalParameter4fEXT", + "opengl" + ) + ) )(program, target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529510,8 +536853,14 @@ void IGL.NamedProgramLocalParameter4EXT( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedProgramLocalParameter4fvEXT", "opengl") + (delegate* unmanaged)( + _slots[1813] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1813] = nativeContext.LoadFunction( + "glNamedProgramLocalParameter4fvEXT", + "opengl" + ) + ) )(program, target, index, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529562,8 +536911,14 @@ void IGL.NamedProgramLocalParameterI4EXT( [NativeTypeName("GLint")] int w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedProgramLocalParameterI4iEXT", "opengl") + (delegate* unmanaged)( + _slots[1814] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1814] = nativeContext.LoadFunction( + "glNamedProgramLocalParameterI4iEXT", + "opengl" + ) + ) )(program, target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529614,8 +536969,14 @@ void IGL.NamedProgramLocalParameterI4EXT( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedProgramLocalParameterI4ivEXT", "opengl") + (delegate* unmanaged)( + _slots[1815] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1815] = nativeContext.LoadFunction( + "glNamedProgramLocalParameterI4ivEXT", + "opengl" + ) + ) )(program, target, index, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529666,8 +537027,14 @@ void IGL.NamedProgramLocalParameterI4EXT( [NativeTypeName("GLuint")] uint w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedProgramLocalParameterI4uiEXT", "opengl") + (delegate* unmanaged)( + _slots[1816] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1816] = nativeContext.LoadFunction( + "glNamedProgramLocalParameterI4uiEXT", + "opengl" + ) + ) )(program, target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529718,8 +537085,14 @@ void IGL.NamedProgramLocalParameterI4EXT( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedProgramLocalParameterI4uivEXT", "opengl") + (delegate* unmanaged)( + _slots[1817] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1817] = nativeContext.LoadFunction( + "glNamedProgramLocalParameterI4uivEXT", + "opengl" + ) + ) )(program, target, index, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529768,8 +537141,14 @@ void IGL.NamedProgramLocalParameters4EXT( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedProgramLocalParameters4fvEXT", "opengl") + (delegate* unmanaged)( + _slots[1818] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1818] = nativeContext.LoadFunction( + "glNamedProgramLocalParameters4fvEXT", + "opengl" + ) + ) )(program, target, index, count, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529827,8 +537206,14 @@ void IGL.NamedProgramLocalParametersI4EXT( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedProgramLocalParametersI4ivEXT", "opengl") + (delegate* unmanaged)( + _slots[1819] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1819] = nativeContext.LoadFunction( + "glNamedProgramLocalParametersI4ivEXT", + "opengl" + ) + ) )(program, target, index, count, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529886,8 +537271,14 @@ void IGL.NamedProgramLocalParametersI4EXT( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedProgramLocalParametersI4uivEXT", "opengl") + (delegate* unmanaged)( + _slots[1820] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1820] = nativeContext.LoadFunction( + "glNamedProgramLocalParametersI4uivEXT", + "opengl" + ) + ) )(program, target, index, count, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -529945,8 +537336,11 @@ void IGL.NamedProgramStringEXT( [NativeTypeName("const void *")] void* @string ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedProgramStringEXT", "opengl") + (delegate* unmanaged)( + _slots[1821] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1821] = nativeContext.LoadFunction("glNamedProgramStringEXT", "opengl") + ) )(program, target, format, len, @string); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -530003,8 +537397,14 @@ void IGL.NamedRenderbufferStorage( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedRenderbufferStorage", "opengl") + (delegate* unmanaged)( + _slots[1822] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1822] = nativeContext.LoadFunction( + "glNamedRenderbufferStorage", + "opengl" + ) + ) )(renderbuffer, internalformat, width, height); [SupportedApiProfile( @@ -530062,8 +537462,14 @@ void IGL.NamedRenderbufferStorageEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedRenderbufferStorageEXT", "opengl") + (delegate* unmanaged)( + _slots[1823] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1823] = nativeContext.LoadFunction( + "glNamedRenderbufferStorageEXT", + "opengl" + ) + ) )(renderbuffer, internalformat, width, height); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -530106,8 +537512,14 @@ void IGL.NamedRenderbufferStorageMultisample( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedRenderbufferStorageMultisample", "opengl") + (delegate* unmanaged)( + _slots[1824] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1824] = nativeContext.LoadFunction( + "glNamedRenderbufferStorageMultisample", + "opengl" + ) + ) )(renderbuffer, samples, internalformat, width, height); [SupportedApiProfile( @@ -530191,11 +537603,14 @@ void IGL.NamedRenderbufferStorageMultisampleAdvanceAMD( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction( - "glNamedRenderbufferStorageMultisampleAdvancedAMD", - "opengl" - ) + (delegate* unmanaged)( + _slots[1825] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1825] = nativeContext.LoadFunction( + "glNamedRenderbufferStorageMultisampleAdvancedAMD", + "opengl" + ) + ) )(renderbuffer, samples, storageSamples, internalformat, width, height); [SupportedApiProfile("gl", ["GL_AMD_framebuffer_multisample_advanced"])] @@ -530271,11 +537686,14 @@ void IGL.NamedRenderbufferStorageMultisampleCoverageEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction( - "glNamedRenderbufferStorageMultisampleCoverageEXT", - "opengl" - ) + (delegate* unmanaged)( + _slots[1826] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1826] = nativeContext.LoadFunction( + "glNamedRenderbufferStorageMultisampleCoverageEXT", + "opengl" + ) + ) )(renderbuffer, coverageSamples, colorSamples, internalformat, width, height); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -530348,8 +537766,14 @@ void IGL.NamedRenderbufferStorageMultisampleEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedRenderbufferStorageMultisampleEXT", "opengl") + (delegate* unmanaged)( + _slots[1827] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1827] = nativeContext.LoadFunction( + "glNamedRenderbufferStorageMultisampleEXT", + "opengl" + ) + ) )(renderbuffer, samples, internalformat, width, height); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -530416,8 +537840,11 @@ void IGL.NamedStringARB( [NativeTypeName("const GLchar *")] sbyte* @string ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNamedStringARB", "opengl") + (delegate* unmanaged)( + _slots[1828] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1828] = nativeContext.LoadFunction("glNamedStringARB", "opengl") + ) )(type, namelen, name, stringlen, @string); [SupportedApiProfile("gl", ["GL_ARB_shading_language_include"])] @@ -530463,10 +537890,13 @@ public static void NamedStringARB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.NewList([NativeTypeName("GLuint")] uint list, [NativeTypeName("GLenum")] uint mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glNewList", "opengl"))( - list, - mode - ); + ( + (delegate* unmanaged)( + _slots[1829] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1829] = nativeContext.LoadFunction("glNewList", "opengl") + ) + )(list, mode); [SupportedApiProfile( "gl", @@ -530546,8 +537976,11 @@ uint IGL.NewObjectBufferATI( [NativeTypeName("GLenum")] uint usage ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNewObjectBufferATI", "opengl") + (delegate* unmanaged)( + _slots[1830] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1830] = nativeContext.LoadFunction("glNewObjectBufferATI", "opengl") + ) )(size, pointer, usage); [return: NativeTypeName("GLuint")] @@ -530591,8 +538024,11 @@ void IGL.Normal3( [NativeTypeName("GLbyte")] sbyte nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormal3b", "opengl") + (delegate* unmanaged)( + _slots[1831] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1831] = nativeContext.LoadFunction("glNormal3b", "opengl") + ) )(nx, ny, nz); [SupportedApiProfile( @@ -530630,7 +538066,13 @@ public static void Normal3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Normal3([NativeTypeName("const GLbyte *")] sbyte* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glNormal3bv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[1832] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1832] = nativeContext.LoadFunction("glNormal3bv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -530709,8 +538151,11 @@ void IGL.Normal3( [NativeTypeName("GLdouble")] double nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormal3d", "opengl") + (delegate* unmanaged)( + _slots[1833] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1833] = nativeContext.LoadFunction("glNormal3d", "opengl") + ) )(nx, ny, nz); [SupportedApiProfile( @@ -530748,9 +538193,13 @@ public static void Normal3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Normal3([NativeTypeName("const GLdouble *")] double* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glNormal3dv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[1834] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1834] = nativeContext.LoadFunction("glNormal3dv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -530829,8 +538278,11 @@ void IGL.Normal3( [NativeTypeName("GLfloat")] float nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormal3f", "opengl") + (delegate* unmanaged)( + _slots[1835] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1835] = nativeContext.LoadFunction("glNormal3f", "opengl") + ) )(nx, ny, nz); [SupportedApiProfile( @@ -530869,7 +538321,13 @@ public static void Normal3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Normal3([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glNormal3fv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[1836] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1836] = nativeContext.LoadFunction("glNormal3fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -530951,8 +538409,11 @@ void IGL.Normal3FVertex3SUN( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormal3fVertex3fSUN", "opengl") + (delegate* unmanaged)( + _slots[1837] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1837] = nativeContext.LoadFunction("glNormal3fVertex3fSUN", "opengl") + ) )(nx, ny, nz, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -530973,8 +538434,11 @@ void IGL.Normal3FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormal3fVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[1838] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1838] = nativeContext.LoadFunction("glNormal3fVertex3fvSUN", "opengl") + ) )(n, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -531014,8 +538478,11 @@ void IGL.Normal3NV( [NativeTypeName("GLhalfNV")] ushort nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormal3hNV", "opengl") + (delegate* unmanaged)( + _slots[1839] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1839] = nativeContext.LoadFunction("glNormal3hNV", "opengl") + ) )(nx, ny, nz); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -531029,9 +538496,13 @@ public static void Normal3NV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Normal3NV([NativeTypeName("const GLhalfNV *")] ushort* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glNormal3hvNV", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[1840] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1840] = nativeContext.LoadFunction("glNormal3hvNV", "opengl") + ) + )(v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] [NativeFunction("opengl", EntryPoint = "glNormal3hvNV")] @@ -531062,8 +538533,11 @@ void IGL.Normal3( [NativeTypeName("GLint")] int nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormal3i", "opengl") + (delegate* unmanaged)( + _slots[1841] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1841] = nativeContext.LoadFunction("glNormal3i", "opengl") + ) )(nx, ny, nz); [SupportedApiProfile( @@ -531101,7 +538575,13 @@ public static void Normal3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Normal3([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glNormal3iv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[1842] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1842] = nativeContext.LoadFunction("glNormal3iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -531179,8 +538659,11 @@ void IGL.Normal3( [NativeTypeName("GLshort")] short nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormal3s", "opengl") + (delegate* unmanaged)( + _slots[1843] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1843] = nativeContext.LoadFunction("glNormal3s", "opengl") + ) )(nx, ny, nz); [SupportedApiProfile( @@ -531218,7 +538701,13 @@ public static void Normal3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Normal3([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glNormal3sv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[1844] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1844] = nativeContext.LoadFunction("glNormal3sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -531297,8 +538786,11 @@ void IGL.Normal3X( [NativeTypeName("GLfixed")] int nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormal3x", "opengl") + (delegate* unmanaged)( + _slots[1845] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1845] = nativeContext.LoadFunction("glNormal3x", "opengl") + ) )(nx, ny, nz); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -531317,8 +538809,11 @@ void IGL.Normal3XOES( [NativeTypeName("GLfixed")] int nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormal3xOES", "opengl") + (delegate* unmanaged)( + _slots[1846] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1846] = nativeContext.LoadFunction("glNormal3xOES", "opengl") + ) )(nx, ny, nz); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -531333,9 +538828,13 @@ public static void Normal3XOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Normal3XOES([NativeTypeName("const GLfixed *")] int* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glNormal3xvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[1847] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1847] = nativeContext.LoadFunction("glNormal3xvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glNormal3xvOES")] @@ -531365,8 +538864,11 @@ void IGL.NormalFormatNV( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalFormatNV", "opengl") + (delegate* unmanaged)( + _slots[1848] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1848] = nativeContext.LoadFunction("glNormalFormatNV", "opengl") + ) )(type, stride); [SupportedApiProfile("gl", ["GL_NV_vertex_buffer_unified_memory"])] @@ -531384,8 +538886,11 @@ void IGL.NormalP3( [NativeTypeName("GLuint")] uint coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalP3ui", "opengl") + (delegate* unmanaged)( + _slots[1849] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1849] = nativeContext.LoadFunction("glNormalP3ui", "opengl") + ) )(type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -531417,8 +538922,11 @@ void IGL.NormalP3Uiv( [NativeTypeName("const GLuint *")] uint* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalP3uiv", "opengl") + (delegate* unmanaged)( + _slots[1850] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1850] = nativeContext.LoadFunction("glNormalP3uiv", "opengl") + ) )(type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -531472,8 +538980,11 @@ void IGL.NormalPointer( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalPointer", "opengl") + (delegate* unmanaged)( + _slots[1851] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1851] = nativeContext.LoadFunction("glNormalPointer", "opengl") + ) )(type, stride, pointer); [SupportedApiProfile( @@ -531564,8 +539075,11 @@ void IGL.NormalPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[1852] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1852] = nativeContext.LoadFunction("glNormalPointerEXT", "opengl") + ) )(type, stride, count, pointer); [SupportedApiProfile("gl", ["GL_EXT_vertex_array"])] @@ -531611,8 +539125,11 @@ void IGL.NormalPointerListIBM( [NativeTypeName("GLint")] int ptrstride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalPointerListIBM", "opengl") + (delegate* unmanaged)( + _slots[1853] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1853] = nativeContext.LoadFunction("glNormalPointerListIBM", "opengl") + ) )(type, stride, pointer, ptrstride); [SupportedApiProfile("gl", ["GL_IBM_vertex_array_lists"])] @@ -531656,8 +539173,11 @@ void IGL.NormalPointerIntel( [NativeTypeName("const void **")] void** pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalPointervINTEL", "opengl") + (delegate* unmanaged)( + _slots[1854] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1854] = nativeContext.LoadFunction("glNormalPointervINTEL", "opengl") + ) )(type, pointer); [SupportedApiProfile("gl", ["GL_INTEL_parallel_arrays"])] @@ -531697,8 +539217,11 @@ void IGL.NormalStream3ATI( [NativeTypeName("GLbyte")] sbyte nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalStream3bATI", "opengl") + (delegate* unmanaged)( + _slots[1855] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1855] = nativeContext.LoadFunction("glNormalStream3bATI", "opengl") + ) )(stream, nx, ny, nz); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -531736,8 +539259,11 @@ void IGL.NormalStream3ATI( [NativeTypeName("const GLbyte *")] sbyte* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalStream3bvATI", "opengl") + (delegate* unmanaged)( + _slots[1856] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1856] = nativeContext.LoadFunction("glNormalStream3bvATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -531777,8 +539303,11 @@ void IGL.NormalStream3ATI( [NativeTypeName("GLdouble")] double nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalStream3dATI", "opengl") + (delegate* unmanaged)( + _slots[1857] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1857] = nativeContext.LoadFunction("glNormalStream3dATI", "opengl") + ) )(stream, nx, ny, nz); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -531816,8 +539345,11 @@ void IGL.NormalStream3ATI( [NativeTypeName("const GLdouble *")] double* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalStream3dvATI", "opengl") + (delegate* unmanaged)( + _slots[1858] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1858] = nativeContext.LoadFunction("glNormalStream3dvATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -531857,8 +539389,11 @@ void IGL.NormalStream3ATI( [NativeTypeName("GLfloat")] float nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalStream3fATI", "opengl") + (delegate* unmanaged)( + _slots[1859] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1859] = nativeContext.LoadFunction("glNormalStream3fATI", "opengl") + ) )(stream, nx, ny, nz); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -531896,8 +539431,11 @@ void IGL.NormalStream3ATI( [NativeTypeName("const GLfloat *")] float* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalStream3fvATI", "opengl") + (delegate* unmanaged)( + _slots[1860] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1860] = nativeContext.LoadFunction("glNormalStream3fvATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -531937,8 +539475,11 @@ void IGL.NormalStream3ATI( [NativeTypeName("GLint")] int nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalStream3iATI", "opengl") + (delegate* unmanaged)( + _slots[1861] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1861] = nativeContext.LoadFunction("glNormalStream3iATI", "opengl") + ) )(stream, nx, ny, nz); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -531976,8 +539517,11 @@ void IGL.NormalStream3ATI( [NativeTypeName("const GLint *")] int* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalStream3ivATI", "opengl") + (delegate* unmanaged)( + _slots[1862] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1862] = nativeContext.LoadFunction("glNormalStream3ivATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -532017,8 +539561,11 @@ void IGL.NormalStream3ATI( [NativeTypeName("GLshort")] short nz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalStream3sATI", "opengl") + (delegate* unmanaged)( + _slots[1863] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1863] = nativeContext.LoadFunction("glNormalStream3sATI", "opengl") + ) )(stream, nx, ny, nz); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -532056,8 +539603,11 @@ void IGL.NormalStream3ATI( [NativeTypeName("const GLshort *")] short* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glNormalStream3svATI", "opengl") + (delegate* unmanaged)( + _slots[1864] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1864] = nativeContext.LoadFunction("glNormalStream3svATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -532097,8 +539647,11 @@ void IGL.ObjectLabel( [NativeTypeName("const GLchar *")] sbyte* label ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glObjectLabel", "opengl") + (delegate* unmanaged)( + _slots[1865] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1865] = nativeContext.LoadFunction("glObjectLabel", "opengl") + ) )(identifier, name, length, label); [SupportedApiProfile( @@ -532162,8 +539715,11 @@ void IGL.ObjectLabelKHR( [NativeTypeName("const GLchar *")] sbyte* label ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glObjectLabelKHR", "opengl") + (delegate* unmanaged)( + _slots[1866] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1866] = nativeContext.LoadFunction("glObjectLabelKHR", "opengl") + ) )(identifier, name, length, label); [SupportedApiProfile("gles2", ["GL_KHR_debug"])] @@ -532208,8 +539764,11 @@ void IGL.ObjectPtrLabel( [NativeTypeName("const GLchar *")] sbyte* label ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glObjectPtrLabel", "opengl") + (delegate* unmanaged)( + _slots[1867] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1867] = nativeContext.LoadFunction("glObjectPtrLabel", "opengl") + ) )(ptr, length, label); [SupportedApiProfile( @@ -532270,8 +539829,11 @@ void IGL.ObjectPtrLabelKHR( [NativeTypeName("const GLchar *")] sbyte* label ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glObjectPtrLabelKHR", "opengl") + (delegate* unmanaged)( + _slots[1868] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1868] = nativeContext.LoadFunction("glObjectPtrLabelKHR", "opengl") + ) )(ptr, length, label); [SupportedApiProfile("gles2", ["GL_KHR_debug"])] @@ -532314,8 +539876,11 @@ uint IGL.ObjectPurgeableApple( [NativeTypeName("GLenum")] uint option ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glObjectPurgeableAPPLE", "opengl") + (delegate* unmanaged)( + _slots[1869] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1869] = nativeContext.LoadFunction("glObjectPurgeableAPPLE", "opengl") + ) )(objectType, name, option); [return: NativeTypeName("GLenum")] @@ -532335,8 +539900,14 @@ uint IGL.ObjectUnpurgeableApple( [NativeTypeName("GLenum")] uint option ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glObjectUnpurgeableAPPLE", "opengl") + (delegate* unmanaged)( + _slots[1870] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1870] = nativeContext.LoadFunction( + "glObjectUnpurgeableAPPLE", + "opengl" + ) + ) )(objectType, name, option); [return: NativeTypeName("GLenum")] @@ -532359,8 +539930,11 @@ void IGL.Ortho( [NativeTypeName("GLdouble")] double zFar ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glOrtho", "opengl") + (delegate* unmanaged)( + _slots[1871] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1871] = nativeContext.LoadFunction("glOrtho", "opengl") + ) )(left, right, bottom, top, zNear, zFar); [SupportedApiProfile( @@ -532409,8 +539983,11 @@ void IGL.Ortho( [NativeTypeName("GLfloat")] float f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glOrthof", "opengl") + (delegate* unmanaged)( + _slots[1872] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1872] = nativeContext.LoadFunction("glOrthof", "opengl") + ) )(l, r, b, t, n, f); [SupportedApiProfile("gles1", MaxVersion = "2.0")] @@ -532435,8 +540012,11 @@ void IGL.OrthoOES( [NativeTypeName("GLfloat")] float f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glOrthofOES", "opengl") + (delegate* unmanaged)( + _slots[1873] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1873] = nativeContext.LoadFunction("glOrthofOES", "opengl") + ) )(l, r, b, t, n, f); [SupportedApiProfile("gl", ["GL_OES_single_precision"])] @@ -532462,8 +540042,11 @@ void IGL.Orthox( [NativeTypeName("GLfixed")] int f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glOrthox", "opengl") + (delegate* unmanaged)( + _slots[1874] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1874] = nativeContext.LoadFunction("glOrthox", "opengl") + ) )(l, r, b, t, n, f); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -532488,8 +540071,11 @@ void IGL.OrthoxOES( [NativeTypeName("GLfixed")] int f ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glOrthoxOES", "opengl") + (delegate* unmanaged)( + _slots[1875] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1875] = nativeContext.LoadFunction("glOrthoxOES", "opengl") + ) )(l, r, b, t, n, f); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -532512,8 +540098,11 @@ void IGL.PassTexCoordATI( [NativeTypeName("GLenum")] uint swizzle ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPassTexCoordATI", "opengl") + (delegate* unmanaged)( + _slots[1876] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1876] = nativeContext.LoadFunction("glPassTexCoordATI", "opengl") + ) )(dst, coord, swizzle); [SupportedApiProfile("gl", ["GL_ATI_fragment_shader"])] @@ -532544,9 +540133,13 @@ public static void PassTexCoordATI( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PassThrough([NativeTypeName("GLfloat")] float token) => - ((delegate* unmanaged)nativeContext.LoadFunction("glPassThrough", "opengl"))( - token - ); + ( + (delegate* unmanaged)( + _slots[1877] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1877] = nativeContext.LoadFunction("glPassThrough", "opengl") + ) + )(token); [SupportedApiProfile( "gl", @@ -532580,9 +540173,13 @@ public static void PassThrough([NativeTypeName("GLfloat")] float token) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PassThroughxOES([NativeTypeName("GLfixed")] int token) => - ((delegate* unmanaged)nativeContext.LoadFunction("glPassThroughxOES", "opengl"))( - token - ); + ( + (delegate* unmanaged)( + _slots[1878] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1878] = nativeContext.LoadFunction("glPassThroughxOES", "opengl") + ) + )(token); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glPassThroughxOES")] @@ -532596,8 +540193,11 @@ void IGL.PatchParameter( [NativeTypeName("const GLfloat *")] float* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPatchParameterfv", "opengl") + (delegate* unmanaged)( + _slots[1879] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1879] = nativeContext.LoadFunction("glPatchParameterfv", "opengl") + ) )(pname, values); [SupportedApiProfile( @@ -532689,8 +540289,11 @@ void IGL.PatchParameter( [NativeTypeName("GLint")] int value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPatchParameteri", "opengl") + (delegate* unmanaged)( + _slots[1880] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1880] = nativeContext.LoadFunction("glPatchParameteri", "opengl") + ) )(pname, value); [SupportedApiProfile( @@ -532776,8 +540379,11 @@ void IGL.PatchParameterEXT( [NativeTypeName("GLint")] int value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPatchParameteriEXT", "opengl") + (delegate* unmanaged)( + _slots[1881] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1881] = nativeContext.LoadFunction("glPatchParameteriEXT", "opengl") + ) )(pname, value); [SupportedApiProfile("gles2", ["GL_EXT_tessellation_shader"])] @@ -532809,8 +540415,11 @@ void IGL.PatchParameterOES( [NativeTypeName("GLint")] int value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPatchParameteriOES", "opengl") + (delegate* unmanaged)( + _slots[1882] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1882] = nativeContext.LoadFunction("glPatchParameteriOES", "opengl") + ) )(pname, value); [SupportedApiProfile("gles2", ["GL_OES_tessellation_shader"])] @@ -532844,8 +540453,11 @@ void IGL.PathColorGenNV( [NativeTypeName("const GLfloat *")] float* coeffs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathColorGenNV", "opengl") + (delegate* unmanaged)( + _slots[1883] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1883] = nativeContext.LoadFunction("glPathColorGenNV", "opengl") + ) )(color, genMode, colorFormat, coeffs); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -532893,8 +540505,11 @@ void IGL.PathCommandsNV( [NativeTypeName("const void *")] void* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathCommandsNV", "opengl") + (delegate* unmanaged)( + _slots[1884] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1884] = nativeContext.LoadFunction("glPathCommandsNV", "opengl") + ) )(path, numCommands, commands, numCoords, coordType, coords); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -532997,8 +540612,11 @@ void IGL.PathCoordsNV( [NativeTypeName("const void *")] void* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathCoordsNV", "opengl") + (delegate* unmanaged)( + _slots[1885] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1885] = nativeContext.LoadFunction("glPathCoordsNV", "opengl") + ) )(path, numCoords, coordType, coords); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -533043,8 +540661,11 @@ public static void PathCoordsNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PathCoverDepthFuncNV([NativeTypeName("GLenum")] uint func) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathCoverDepthFuncNV", "opengl") + (delegate* unmanaged)( + _slots[1886] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1886] = nativeContext.LoadFunction("glPathCoverDepthFuncNV", "opengl") + ) )(func); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -533077,8 +540698,11 @@ void IGL.PathDashArrayNV( [NativeTypeName("const GLfloat *")] float* dashArray ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathDashArrayNV", "opengl") + (delegate* unmanaged)( + _slots[1887] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1887] = nativeContext.LoadFunction("glPathDashArrayNV", "opengl") + ) )(path, dashCount, dashArray); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -533136,9 +540760,13 @@ public static void PathDashArrayNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PathFogGenNV([NativeTypeName("GLenum")] uint genMode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glPathFogGenNV", "opengl"))( - genMode - ); + ( + (delegate* unmanaged)( + _slots[1888] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1888] = nativeContext.LoadFunction("glPathFogGenNV", "opengl") + ) + )(genMode); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] [NativeFunction("opengl", EntryPoint = "glPathFogGenNV")] @@ -533170,8 +540798,11 @@ uint IGL.PathGlyphIndexArrayNV( [NativeTypeName("GLfloat")] float emScale ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathGlyphIndexArrayNV", "opengl") + (delegate* unmanaged)( + _slots[1889] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1889] = nativeContext.LoadFunction("glPathGlyphIndexArrayNV", "opengl") + ) )( firstPathName, fontTarget, @@ -533276,8 +540907,11 @@ uint IGL.PathGlyphIndexRangeNV( [NativeTypeName("GLuint *")] uint* baseAndCount ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathGlyphIndexRangeNV", "opengl") + (delegate* unmanaged)( + _slots[1890] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1890] = nativeContext.LoadFunction("glPathGlyphIndexRangeNV", "opengl") + ) )(fontTarget, fontName, fontStyle, pathParameterTemplate, emScale, baseAndCount); [return: NativeTypeName("GLenum")] @@ -533365,8 +540999,11 @@ void IGL.PathGlyphRangeNV( [NativeTypeName("GLfloat")] float emScale ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathGlyphRangeNV", "opengl") + (delegate* unmanaged)( + _slots[1891] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1891] = nativeContext.LoadFunction("glPathGlyphRangeNV", "opengl") + ) )( firstPathName, fontTarget, @@ -533492,8 +541129,11 @@ void IGL.PathGlyphNV( uint, uint, float, - void>) - nativeContext.LoadFunction("glPathGlyphsNV", "opengl") + void>)( + _slots[1892] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1892] = nativeContext.LoadFunction("glPathGlyphsNV", "opengl") + ) )( firstPathName, fontTarget, @@ -533615,8 +541255,14 @@ uint IGL.PathMemoryGlyphIndexArrayNV( [NativeTypeName("GLfloat")] float emScale ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathMemoryGlyphIndexArrayNV", "opengl") + (delegate* unmanaged)( + _slots[1893] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1893] = nativeContext.LoadFunction( + "glPathMemoryGlyphIndexArrayNV", + "opengl" + ) + ) )( firstPathName, fontTarget, @@ -533725,8 +541371,11 @@ void IGL.PathParameterNV( [NativeTypeName("GLfloat")] float value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathParameterfNV", "opengl") + (delegate* unmanaged)( + _slots[1894] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1894] = nativeContext.LoadFunction("glPathParameterfNV", "opengl") + ) )(path, pname, value); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -533766,8 +541415,11 @@ void IGL.PathParameterNV( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[1895] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1895] = nativeContext.LoadFunction("glPathParameterfvNV", "opengl") + ) )(path, pname, value); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -533813,8 +541465,11 @@ void IGL.PathParameterNV( [NativeTypeName("GLint")] int value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathParameteriNV", "opengl") + (delegate* unmanaged)( + _slots[1896] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1896] = nativeContext.LoadFunction("glPathParameteriNV", "opengl") + ) )(path, pname, value); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -533854,8 +541509,11 @@ void IGL.PathParameterNV( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[1897] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1897] = nativeContext.LoadFunction("glPathParameterivNV", "opengl") + ) )(path, pname, value); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -533900,8 +541558,14 @@ void IGL.PathStencilDepthOffsetNV( [NativeTypeName("GLfloat")] float units ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathStencilDepthOffsetNV", "opengl") + (delegate* unmanaged)( + _slots[1898] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1898] = nativeContext.LoadFunction( + "glPathStencilDepthOffsetNV", + "opengl" + ) + ) )(factor, units); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -533921,8 +541585,11 @@ void IGL.PathStencilFuncNV( [NativeTypeName("GLuint")] uint mask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathStencilFuncNV", "opengl") + (delegate* unmanaged)( + _slots[1899] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1899] = nativeContext.LoadFunction("glPathStencilFuncNV", "opengl") + ) )(func, @ref, mask); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -533963,8 +541630,11 @@ void IGL.PathStringNV( [NativeTypeName("const void *")] void* pathString ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathStringNV", "opengl") + (delegate* unmanaged)( + _slots[1900] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1900] = nativeContext.LoadFunction("glPathStringNV", "opengl") + ) )(path, format, length, pathString); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -534018,8 +541688,11 @@ void IGL.PathSubCommandsNV( [NativeTypeName("const void *")] void* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathSubCommandsNV", "opengl") + (delegate* unmanaged)( + _slots[1901] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1901] = nativeContext.LoadFunction("glPathSubCommandsNV", "opengl") + ) )( path, commandStart, @@ -534176,8 +541849,11 @@ void IGL.PathSubCoordsNV( [NativeTypeName("const void *")] void* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathSubCoordsNV", "opengl") + (delegate* unmanaged)( + _slots[1902] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1902] = nativeContext.LoadFunction("glPathSubCoordsNV", "opengl") + ) )(path, coordStart, numCoords, coordType, coords); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -534230,8 +541906,11 @@ void IGL.PathTexGenNV( [NativeTypeName("const GLfloat *")] float* coeffs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPathTexGenNV", "opengl") + (delegate* unmanaged)( + _slots[1903] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1903] = nativeContext.LoadFunction("glPathTexGenNV", "opengl") + ) )(texCoordSet, genMode, components, coeffs); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -534272,8 +541951,14 @@ public static void PathTexGenNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PauseTransformFeedback() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPauseTransformFeedback", "opengl") + (delegate* unmanaged)( + _slots[1904] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1904] = nativeContext.LoadFunction( + "glPauseTransformFeedback", + "opengl" + ) + ) )(); [SupportedApiProfile( @@ -534311,8 +541996,14 @@ void IGL.PauseTransformFeedback() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PauseTransformFeedbackNV() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPauseTransformFeedbackNV", "opengl") + (delegate* unmanaged)( + _slots[1905] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1905] = nativeContext.LoadFunction( + "glPauseTransformFeedbackNV", + "opengl" + ) + ) )(); [SupportedApiProfile("gl", ["GL_NV_transform_feedback2"])] @@ -534327,8 +542018,11 @@ void IGL.PixelDataRangeNV( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelDataRangeNV", "opengl") + (delegate* unmanaged)( + _slots[1906] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1906] = nativeContext.LoadFunction("glPixelDataRangeNV", "opengl") + ) )(target, length, pointer); [SupportedApiProfile("gl", ["GL_NV_pixel_data_range"])] @@ -534370,8 +542064,11 @@ void IGL.PixelMap( [NativeTypeName("const GLfloat *")] float* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelMapfv", "opengl") + (delegate* unmanaged)( + _slots[1907] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1907] = nativeContext.LoadFunction("glPixelMapfv", "opengl") + ) )(map, mapsize, values); [SupportedApiProfile( @@ -534500,8 +542197,11 @@ void IGL.PixelMap( [NativeTypeName("const GLuint *")] uint* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelMapuiv", "opengl") + (delegate* unmanaged)( + _slots[1908] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1908] = nativeContext.LoadFunction("glPixelMapuiv", "opengl") + ) )(map, mapsize, values); [SupportedApiProfile( @@ -534630,8 +542330,11 @@ void IGL.PixelMap( [NativeTypeName("const GLushort *")] ushort* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelMapusv", "opengl") + (delegate* unmanaged)( + _slots[1909] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1909] = nativeContext.LoadFunction("glPixelMapusv", "opengl") + ) )(map, mapsize, values); [SupportedApiProfile( @@ -534760,8 +542463,11 @@ void IGL.PixelMapx( [NativeTypeName("const GLfixed *")] int* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelMapx", "opengl") + (delegate* unmanaged)( + _slots[1910] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1910] = nativeContext.LoadFunction("glPixelMapx", "opengl") + ) )(map, size, values); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -534817,8 +542523,11 @@ void IGL.PixelStore( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelStoref", "opengl") + (delegate* unmanaged)( + _slots[1911] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1911] = nativeContext.LoadFunction("glPixelStoref", "opengl") + ) )(pname, param1); [SupportedApiProfile( @@ -534948,8 +542657,11 @@ void IGL.PixelStore( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelStorei", "opengl") + (delegate* unmanaged)( + _slots[1912] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1912] = nativeContext.LoadFunction("glPixelStorei", "opengl") + ) )(pname, param1); [SupportedApiProfile( @@ -535091,8 +542803,11 @@ void IGL.PixelStorex( [NativeTypeName("GLfixed")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelStorex", "opengl") + (delegate* unmanaged)( + _slots[1913] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1913] = nativeContext.LoadFunction("glPixelStorex", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -535124,8 +542839,14 @@ void IGL.PixelTexGenParameterSGIS( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelTexGenParameterfSGIS", "opengl") + (delegate* unmanaged)( + _slots[1914] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1914] = nativeContext.LoadFunction( + "glPixelTexGenParameterfSGIS", + "opengl" + ) + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_SGIS_pixel_texture"])] @@ -535157,8 +542878,14 @@ void IGL.PixelTexGenParameterSGIS( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelTexGenParameterfvSGIS", "opengl") + (delegate* unmanaged)( + _slots[1915] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1915] = nativeContext.LoadFunction( + "glPixelTexGenParameterfvSGIS", + "opengl" + ) + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_SGIS_pixel_texture"])] @@ -535196,8 +542923,14 @@ void IGL.PixelTexGenParameterSGIS( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelTexGenParameteriSGIS", "opengl") + (delegate* unmanaged)( + _slots[1916] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1916] = nativeContext.LoadFunction( + "glPixelTexGenParameteriSGIS", + "opengl" + ) + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_SGIS_pixel_texture"])] @@ -535229,8 +542962,14 @@ void IGL.PixelTexGenParameterSGIS( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelTexGenParameterivSGIS", "opengl") + (delegate* unmanaged)( + _slots[1917] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1917] = nativeContext.LoadFunction( + "glPixelTexGenParameterivSGIS", + "opengl" + ) + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_SGIS_pixel_texture"])] @@ -535265,8 +543004,11 @@ public static void PixelTexGenParameterSGIS( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PixelTexGenSGIX([NativeTypeName("GLenum")] uint mode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelTexGenSGIX", "opengl") + (delegate* unmanaged)( + _slots[1918] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1918] = nativeContext.LoadFunction("glPixelTexGenSGIX", "opengl") + ) )(mode); [SupportedApiProfile("gl", ["GL_SGIX_pixel_texture"])] @@ -535294,8 +543036,11 @@ void IGL.PixelTransfer( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelTransferf", "opengl") + (delegate* unmanaged)( + _slots[1919] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1919] = nativeContext.LoadFunction("glPixelTransferf", "opengl") + ) )(pname, param1); [SupportedApiProfile( @@ -535375,8 +543120,11 @@ void IGL.PixelTransfer( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelTransferi", "opengl") + (delegate* unmanaged)( + _slots[1920] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1920] = nativeContext.LoadFunction("glPixelTransferi", "opengl") + ) )(pname, param1); [SupportedApiProfile( @@ -535456,8 +543204,11 @@ void IGL.PixelTransferxOES( [NativeTypeName("GLfixed")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelTransferxOES", "opengl") + (delegate* unmanaged)( + _slots[1921] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1921] = nativeContext.LoadFunction("glPixelTransferxOES", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -535490,8 +543241,14 @@ void IGL.PixelTransformParameterfEXT( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelTransformParameterfEXT", "opengl") + (delegate* unmanaged)( + _slots[1922] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1922] = nativeContext.LoadFunction( + "glPixelTransformParameterfEXT", + "opengl" + ) + ) )(target, pname, param2); [SupportedApiProfile("gl", ["GL_EXT_pixel_transform"])] @@ -535527,8 +543284,14 @@ void IGL.PixelTransformParameterfvEXT( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelTransformParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1923] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1923] = nativeContext.LoadFunction( + "glPixelTransformParameterfvEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_pixel_transform"])] @@ -535587,8 +543350,14 @@ void IGL.PixelTransformParameteriEXT( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelTransformParameteriEXT", "opengl") + (delegate* unmanaged)( + _slots[1924] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1924] = nativeContext.LoadFunction( + "glPixelTransformParameteriEXT", + "opengl" + ) + ) )(target, pname, param2); [SupportedApiProfile("gl", ["GL_EXT_pixel_transform"])] @@ -535624,8 +543393,14 @@ void IGL.PixelTransformParameterivEXT( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelTransformParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[1925] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1925] = nativeContext.LoadFunction( + "glPixelTransformParameterivEXT", + "opengl" + ) + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_pixel_transform"])] @@ -535683,8 +543458,11 @@ void IGL.PixelZoom( [NativeTypeName("GLfloat")] float yfactor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelZoom", "opengl") + (delegate* unmanaged)( + _slots[1926] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1926] = nativeContext.LoadFunction("glPixelZoom", "opengl") + ) )(xfactor, yfactor); [SupportedApiProfile( @@ -535725,8 +543503,11 @@ void IGL.PixelZoomxOES( [NativeTypeName("GLfixed")] int yfactor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPixelZoomxOES", "opengl") + (delegate* unmanaged)( + _slots[1927] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1927] = nativeContext.LoadFunction("glPixelZoomxOES", "opengl") + ) )(xfactor, yfactor); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -535743,8 +543524,11 @@ void IGL.PNTrianglesATI( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPNTrianglesfATI", "opengl") + (delegate* unmanaged)( + _slots[1928] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1928] = nativeContext.LoadFunction("glPNTrianglesfATI", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_ATI_pn_triangles"])] @@ -535776,8 +543560,11 @@ void IGL.PNTrianglesATI( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPNTrianglesiATI", "opengl") + (delegate* unmanaged)( + _slots[1929] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1929] = nativeContext.LoadFunction("glPNTrianglesiATI", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_ATI_pn_triangles"])] @@ -535815,8 +543602,11 @@ uint IGL.PointAlongPathNV( [NativeTypeName("GLfloat *")] float* tangentY ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointAlongPathNV", "opengl") + (delegate* unmanaged)( + _slots[1930] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1930] = nativeContext.LoadFunction("glPointAlongPathNV", "opengl") + ) )(path, startSegment, numSegments, distance, x, y, tangentX, tangentY); [return: NativeTypeName("GLboolean")] @@ -535912,8 +543702,11 @@ void IGL.PointParameter( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterf", "opengl") + (delegate* unmanaged)( + _slots[1931] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1931] = nativeContext.LoadFunction("glPointParameterf", "opengl") + ) )(pname, param1); [SupportedApiProfile( @@ -536029,8 +543822,11 @@ void IGL.PointParameterARB( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterfARB", "opengl") + (delegate* unmanaged)( + _slots[1932] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1932] = nativeContext.LoadFunction("glPointParameterfARB", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_ARB_point_parameters"])] @@ -536062,8 +543858,11 @@ void IGL.PointParameterEXT( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterfEXT", "opengl") + (delegate* unmanaged)( + _slots[1933] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1933] = nativeContext.LoadFunction("glPointParameterfEXT", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_EXT_point_parameters"])] @@ -536095,8 +543894,11 @@ void IGL.PointParameterSGIS( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterfSGIS", "opengl") + (delegate* unmanaged)( + _slots[1934] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1934] = nativeContext.LoadFunction("glPointParameterfSGIS", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_SGIS_point_parameters"])] @@ -536128,8 +543930,11 @@ void IGL.PointParameter( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterfv", "opengl") + (delegate* unmanaged)( + _slots[1935] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1935] = nativeContext.LoadFunction("glPointParameterfv", "opengl") + ) )(pname, @params); [SupportedApiProfile( @@ -536251,8 +544056,11 @@ void IGL.PointParameterARB( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterfvARB", "opengl") + (delegate* unmanaged)( + _slots[1936] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1936] = nativeContext.LoadFunction("glPointParameterfvARB", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_ARB_point_parameters"])] @@ -536290,8 +544098,11 @@ void IGL.PointParameterEXT( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[1937] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1937] = nativeContext.LoadFunction("glPointParameterfvEXT", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_EXT_point_parameters"])] @@ -536329,8 +544140,11 @@ void IGL.PointParameterSGIS( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterfvSGIS", "opengl") + (delegate* unmanaged)( + _slots[1938] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1938] = nativeContext.LoadFunction("glPointParameterfvSGIS", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_SGIS_point_parameters"])] @@ -536368,8 +544182,11 @@ void IGL.PointParameter( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameteri", "opengl") + (delegate* unmanaged)( + _slots[1939] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1939] = nativeContext.LoadFunction("glPointParameteri", "opengl") + ) )(pname, param1); [SupportedApiProfile( @@ -536483,8 +544300,11 @@ void IGL.PointParameterNV( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameteriNV", "opengl") + (delegate* unmanaged)( + _slots[1940] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1940] = nativeContext.LoadFunction("glPointParameteriNV", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_NV_point_sprite"])] @@ -536516,8 +544336,11 @@ void IGL.PointParameter( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameteriv", "opengl") + (delegate* unmanaged)( + _slots[1941] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1941] = nativeContext.LoadFunction("glPointParameteriv", "opengl") + ) )(pname, @params); [SupportedApiProfile( @@ -536637,8 +544460,11 @@ void IGL.PointParameterNV( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[1942] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1942] = nativeContext.LoadFunction("glPointParameterivNV", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_NV_point_sprite"])] @@ -536676,8 +544502,11 @@ void IGL.PointParameterx( [NativeTypeName("GLfixed")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterx", "opengl") + (delegate* unmanaged)( + _slots[1943] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1943] = nativeContext.LoadFunction("glPointParameterx", "opengl") + ) )(pname, param1); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -536709,8 +544538,11 @@ void IGL.PointParameterxOES( [NativeTypeName("GLfixed")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterxOES", "opengl") + (delegate* unmanaged)( + _slots[1944] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1944] = nativeContext.LoadFunction("glPointParameterxOES", "opengl") + ) )(pname, param1); [SupportedApiProfile("gles1", ["GL_OES_fixed_point"])] @@ -536742,8 +544574,11 @@ void IGL.PointParameterx( [NativeTypeName("const GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterxv", "opengl") + (delegate* unmanaged)( + _slots[1945] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1945] = nativeContext.LoadFunction("glPointParameterxv", "opengl") + ) )(pname, @params); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -536781,8 +544616,11 @@ void IGL.PointParameterxOES( [NativeTypeName("const GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointParameterxvOES", "opengl") + (delegate* unmanaged)( + _slots[1946] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1946] = nativeContext.LoadFunction("glPointParameterxvOES", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -536818,9 +544656,13 @@ public static void PointParameterxOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PointSize([NativeTypeName("GLfloat")] float size) => - ((delegate* unmanaged)nativeContext.LoadFunction("glPointSize", "opengl"))( - size - ); + ( + (delegate* unmanaged)( + _slots[1947] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1947] = nativeContext.LoadFunction("glPointSize", "opengl") + ) + )(size); [SupportedApiProfile( "gl", @@ -536885,8 +544727,11 @@ void IGL.PointSizePointerOES( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPointSizePointerOES", "opengl") + (delegate* unmanaged)( + _slots[1948] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1948] = nativeContext.LoadFunction("glPointSizePointerOES", "opengl") + ) )(type, stride, pointer); [SupportedApiProfile("gles1", ["GL_OES_point_size_array"])] @@ -536923,9 +544768,13 @@ public static void PointSizePointerOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PointSizex([NativeTypeName("GLfixed")] int size) => - ((delegate* unmanaged)nativeContext.LoadFunction("glPointSizex", "opengl"))( - size - ); + ( + (delegate* unmanaged)( + _slots[1949] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1949] = nativeContext.LoadFunction("glPointSizex", "opengl") + ) + )(size); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] [NativeFunction("opengl", EntryPoint = "glPointSizex")] @@ -536935,9 +544784,13 @@ public static void PointSizex([NativeTypeName("GLfixed")] int size) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PointSizexOES([NativeTypeName("GLfixed")] int size) => - ((delegate* unmanaged)nativeContext.LoadFunction("glPointSizexOES", "opengl"))( - size - ); + ( + (delegate* unmanaged)( + _slots[1950] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1950] = nativeContext.LoadFunction("glPointSizexOES", "opengl") + ) + )(size); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [SupportedApiProfile("gles1", ["GL_OES_fixed_point"])] @@ -536948,9 +544801,13 @@ public static void PointSizexOES([NativeTypeName("GLfixed")] int size) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int IGL.PollAsyncSGIX([NativeTypeName("GLuint *")] uint* markerp) => - ((delegate* unmanaged)nativeContext.LoadFunction("glPollAsyncSGIX", "opengl"))( - markerp - ); + ( + (delegate* unmanaged)( + _slots[1951] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1951] = nativeContext.LoadFunction("glPollAsyncSGIX", "opengl") + ) + )(markerp); [return: NativeTypeName("GLint")] [SupportedApiProfile("gl", ["GL_SGIX_async"])] @@ -536979,8 +544836,11 @@ public static int PollAsyncSGIX([NativeTypeName("GLuint *")] Ref markerp) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int IGL.PollInstrumentsSGIX([NativeTypeName("GLint *")] int* marker_p) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPollInstrumentsSGIX", "opengl") + (delegate* unmanaged)( + _slots[1952] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1952] = nativeContext.LoadFunction("glPollInstrumentsSGIX", "opengl") + ) )(marker_p); [return: NativeTypeName("GLint")] @@ -537013,8 +544873,11 @@ void IGL.PolygonMode( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPolygonMode", "opengl") + (delegate* unmanaged)( + _slots[1953] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1953] = nativeContext.LoadFunction("glPolygonMode", "opengl") + ) )(face, mode); [SupportedApiProfile( @@ -537144,8 +545007,11 @@ void IGL.PolygonModeNV( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPolygonModeNV", "opengl") + (delegate* unmanaged)( + _slots[1954] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1954] = nativeContext.LoadFunction("glPolygonModeNV", "opengl") + ) )(face, mode); [SupportedApiProfile("gles2", ["GL_NV_polygon_mode"])] @@ -537177,8 +545043,11 @@ void IGL.PolygonOffset( [NativeTypeName("GLfloat")] float units ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPolygonOffset", "opengl") + (delegate* unmanaged)( + _slots[1955] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1955] = nativeContext.LoadFunction("glPolygonOffset", "opengl") + ) )(factor, units); [SupportedApiProfile( @@ -537249,8 +545118,11 @@ void IGL.PolygonOffsetClamp( [NativeTypeName("GLfloat")] float clamp ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPolygonOffsetClamp", "opengl") + (delegate* unmanaged)( + _slots[1956] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1956] = nativeContext.LoadFunction("glPolygonOffsetClamp", "opengl") + ) )(factor, units, clamp); [SupportedApiProfile( @@ -537278,8 +545150,11 @@ void IGL.PolygonOffsetClampEXT( [NativeTypeName("GLfloat")] float clamp ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPolygonOffsetClampEXT", "opengl") + (delegate* unmanaged)( + _slots[1957] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1957] = nativeContext.LoadFunction("glPolygonOffsetClampEXT", "opengl") + ) )(factor, units, clamp); [SupportedApiProfile("gl", ["GL_EXT_polygon_offset_clamp"])] @@ -537299,8 +545174,11 @@ void IGL.PolygonOffsetEXT( [NativeTypeName("GLfloat")] float bias ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPolygonOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[1958] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1958] = nativeContext.LoadFunction("glPolygonOffsetEXT", "opengl") + ) )(factor, bias); [SupportedApiProfile("gl", ["GL_EXT_polygon_offset"])] @@ -537317,8 +545195,11 @@ void IGL.PolygonOffsetx( [NativeTypeName("GLfixed")] int units ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPolygonOffsetx", "opengl") + (delegate* unmanaged)( + _slots[1959] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1959] = nativeContext.LoadFunction("glPolygonOffsetx", "opengl") + ) )(factor, units); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -537335,8 +545216,11 @@ void IGL.PolygonOffsetxOES( [NativeTypeName("GLfixed")] int units ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPolygonOffsetxOES", "opengl") + (delegate* unmanaged)( + _slots[1960] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1960] = nativeContext.LoadFunction("glPolygonOffsetxOES", "opengl") + ) )(factor, units); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -537351,8 +545235,11 @@ public static void PolygonOffsetxOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PolygonStipple([NativeTypeName("const GLubyte *")] byte* mask) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPolygonStipple", "opengl") + (delegate* unmanaged)( + _slots[1961] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1961] = nativeContext.LoadFunction("glPolygonStipple", "opengl") + ) )(mask); [SupportedApiProfile( @@ -537427,7 +545314,13 @@ public static void PolygonStipple([NativeTypeName("const GLubyte *")] Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PopAttrib() => - ((delegate* unmanaged)nativeContext.LoadFunction("glPopAttrib", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[1962] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1962] = nativeContext.LoadFunction("glPopAttrib", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -537460,7 +545353,13 @@ void IGL.PopAttrib() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PopClientAttrib() => - ((delegate* unmanaged)nativeContext.LoadFunction("glPopClientAttrib", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[1963] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1963] = nativeContext.LoadFunction("glPopClientAttrib", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -537492,7 +545391,13 @@ void IGL.PopClientAttrib() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PopDebugGroup() => - ((delegate* unmanaged)nativeContext.LoadFunction("glPopDebugGroup", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[1964] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1964] = nativeContext.LoadFunction("glPopDebugGroup", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -537510,7 +545415,13 @@ void IGL.PopDebugGroup() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PopDebugGroupKHR() => - ((delegate* unmanaged)nativeContext.LoadFunction("glPopDebugGroupKHR", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[1965] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1965] = nativeContext.LoadFunction("glPopDebugGroupKHR", "opengl") + ) + )(); [SupportedApiProfile("gles2", ["GL_KHR_debug"])] [NativeFunction("opengl", EntryPoint = "glPopDebugGroupKHR")] @@ -537519,7 +545430,13 @@ void IGL.PopDebugGroupKHR() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PopGroupMarkerEXT() => - ((delegate* unmanaged)nativeContext.LoadFunction("glPopGroupMarkerEXT", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[1966] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1966] = nativeContext.LoadFunction("glPopGroupMarkerEXT", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_EXT_debug_marker"])] [SupportedApiProfile("glcore", ["GL_EXT_debug_marker"])] @@ -537531,7 +545448,13 @@ void IGL.PopGroupMarkerEXT() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PopMatrix() => - ((delegate* unmanaged)nativeContext.LoadFunction("glPopMatrix", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[1967] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1967] = nativeContext.LoadFunction("glPopMatrix", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -537565,7 +545488,13 @@ void IGL.PopMatrix() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PopName() => - ((delegate* unmanaged)nativeContext.LoadFunction("glPopName", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[1968] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1968] = nativeContext.LoadFunction("glPopName", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -537627,8 +545556,14 @@ void IGL.PresentFrameDualFillNV( uint, uint, uint, - void>) - nativeContext.LoadFunction("glPresentFrameDualFillNV", "opengl") + void>)( + _slots[1969] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1969] = nativeContext.LoadFunction( + "glPresentFrameDualFillNV", + "opengl" + ) + ) )( video_slot, minPresentTime, @@ -537706,8 +545641,11 @@ void IGL.PresentFrameKeyeNV( uint, uint, uint, - void>) - nativeContext.LoadFunction("glPresentFrameKeyedNV", "opengl") + void>)( + _slots[1970] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1970] = nativeContext.LoadFunction("glPresentFrameKeyedNV", "opengl") + ) )( video_slot, minPresentTime, @@ -537764,8 +545702,14 @@ void IGL.PrimitiveBoundingBoxARB( [NativeTypeName("GLfloat")] float maxW ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPrimitiveBoundingBoxARB", "opengl") + (delegate* unmanaged)( + _slots[1971] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1971] = nativeContext.LoadFunction( + "glPrimitiveBoundingBoxARB", + "opengl" + ) + ) )(minX, minY, minZ, minW, maxX, maxY, maxZ, maxW); [SupportedApiProfile("gl", ["GL_ARB_ES3_2_compatibility"])] @@ -537795,8 +545739,14 @@ void IGL.PrimitiveBoundingBoxEXT( [NativeTypeName("GLfloat")] float maxW ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPrimitiveBoundingBoxEXT", "opengl") + (delegate* unmanaged)( + _slots[1972] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1972] = nativeContext.LoadFunction( + "glPrimitiveBoundingBoxEXT", + "opengl" + ) + ) )(minX, minY, minZ, minW, maxX, maxY, maxZ, maxW); [SupportedApiProfile("gles2", ["GL_EXT_primitive_bounding_box"])] @@ -537825,8 +545775,14 @@ void IGL.PrimitiveBoundingBoxOES( [NativeTypeName("GLfloat")] float maxW ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPrimitiveBoundingBoxOES", "opengl") + (delegate* unmanaged)( + _slots[1973] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1973] = nativeContext.LoadFunction( + "glPrimitiveBoundingBoxOES", + "opengl" + ) + ) )(minX, minY, minZ, minW, maxX, maxY, maxZ, maxW); [SupportedApiProfile("gles2", ["GL_OES_primitive_bounding_box"])] @@ -537846,8 +545802,11 @@ public static void PrimitiveBoundingBoxOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PrimitiveRestartIndex([NativeTypeName("GLuint")] uint index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPrimitiveRestartIndex", "opengl") + (delegate* unmanaged)( + _slots[1974] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1974] = nativeContext.LoadFunction("glPrimitiveRestartIndex", "opengl") + ) )(index); [SupportedApiProfile( @@ -537890,8 +545849,14 @@ public static void PrimitiveRestartIndex([NativeTypeName("GLuint")] uint index) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PrimitiveRestartIndexNV([NativeTypeName("GLuint")] uint index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPrimitiveRestartIndexNV", "opengl") + (delegate* unmanaged)( + _slots[1975] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1975] = nativeContext.LoadFunction( + "glPrimitiveRestartIndexNV", + "opengl" + ) + ) )(index); [SupportedApiProfile("gl", ["GL_NV_primitive_restart"])] @@ -537902,7 +545867,13 @@ public static void PrimitiveRestartIndexNV([NativeTypeName("GLuint")] uint index [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PrimitiveRestartNV() => - ((delegate* unmanaged)nativeContext.LoadFunction("glPrimitiveRestartNV", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[1976] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1976] = nativeContext.LoadFunction("glPrimitiveRestartNV", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_NV_primitive_restart"])] [NativeFunction("opengl", EntryPoint = "glPrimitiveRestartNV")] @@ -537916,8 +545887,11 @@ void IGL.PrioritizeTextures( [NativeTypeName("const GLfloat *")] float* priorities ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPrioritizeTextures", "opengl") + (delegate* unmanaged)( + _slots[1977] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1977] = nativeContext.LoadFunction("glPrioritizeTextures", "opengl") + ) )(n, textures, priorities); [SupportedApiProfile( @@ -538006,8 +545980,11 @@ void IGL.PrioritizeTexturesEXT( [NativeTypeName("const GLclampf *")] float* priorities ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPrioritizeTexturesEXT", "opengl") + (delegate* unmanaged)( + _slots[1978] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1978] = nativeContext.LoadFunction("glPrioritizeTexturesEXT", "opengl") + ) )(n, textures, priorities); [SupportedApiProfile("gl", ["GL_EXT_texture_object"])] @@ -538050,8 +546027,14 @@ void IGL.PrioritizeTexturesxOES( [NativeTypeName("const GLfixed *")] int* priorities ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPrioritizeTexturesxOES", "opengl") + (delegate* unmanaged)( + _slots[1979] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1979] = nativeContext.LoadFunction( + "glPrioritizeTexturesxOES", + "opengl" + ) + ) )(n, textures, priorities); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -538095,8 +546078,11 @@ void IGL.ProgramBinary( [NativeTypeName("GLsizei")] uint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramBinary", "opengl") + (delegate* unmanaged)( + _slots[1980] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1980] = nativeContext.LoadFunction("glProgramBinary", "opengl") + ) )(program, binaryFormat, binary, length); [SupportedApiProfile( @@ -538192,8 +546178,11 @@ void IGL.ProgramBinaryOES( [NativeTypeName("GLint")] int length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramBinaryOES", "opengl") + (delegate* unmanaged)( + _slots[1981] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1981] = nativeContext.LoadFunction("glProgramBinaryOES", "opengl") + ) )(program, binaryFormat, binary, length); [SupportedApiProfile("gles2", ["GL_OES_get_program_binary"])] @@ -538240,8 +546229,14 @@ void IGL.ProgramBufferParametersNV( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramBufferParametersfvNV", "opengl") + (delegate* unmanaged)( + _slots[1982] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1982] = nativeContext.LoadFunction( + "glProgramBufferParametersfvNV", + "opengl" + ) + ) )(target, bindingIndex, wordIndex, count, @params); [SupportedApiProfile("gl", ["GL_NV_parameter_buffer_object"])] @@ -538323,8 +546318,14 @@ void IGL.ProgramBufferParametersINV( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramBufferParametersIivNV", "opengl") + (delegate* unmanaged)( + _slots[1983] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1983] = nativeContext.LoadFunction( + "glProgramBufferParametersIivNV", + "opengl" + ) + ) )(target, bindingIndex, wordIndex, count, @params); [SupportedApiProfile("gl", ["GL_NV_parameter_buffer_object"])] @@ -538406,8 +546407,14 @@ void IGL.ProgramBufferParametersINV( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramBufferParametersIuivNV", "opengl") + (delegate* unmanaged)( + _slots[1984] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1984] = nativeContext.LoadFunction( + "glProgramBufferParametersIuivNV", + "opengl" + ) + ) )(target, bindingIndex, wordIndex, count, @params); [SupportedApiProfile("gl", ["GL_NV_parameter_buffer_object"])] @@ -538490,8 +546497,14 @@ void IGL.ProgramEnvParameter4ARB( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramEnvParameter4dARB", "opengl") + (delegate* unmanaged)( + _slots[1985] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1985] = nativeContext.LoadFunction( + "glProgramEnvParameter4dARB", + "opengl" + ) + ) )(target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -538536,8 +546549,14 @@ void IGL.ProgramEnvParameter4ARB( [NativeTypeName("const GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramEnvParameter4dvARB", "opengl") + (delegate* unmanaged)( + _slots[1986] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1986] = nativeContext.LoadFunction( + "glProgramEnvParameter4dvARB", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -538582,8 +546601,14 @@ void IGL.ProgramEnvParameter4ARB( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramEnvParameter4fARB", "opengl") + (delegate* unmanaged)( + _slots[1987] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1987] = nativeContext.LoadFunction( + "glProgramEnvParameter4fARB", + "opengl" + ) + ) )(target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -538628,8 +546653,14 @@ void IGL.ProgramEnvParameter4ARB( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramEnvParameter4fvARB", "opengl") + (delegate* unmanaged)( + _slots[1988] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1988] = nativeContext.LoadFunction( + "glProgramEnvParameter4fvARB", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -538674,8 +546705,14 @@ void IGL.ProgramEnvParameterI4NV( [NativeTypeName("GLint")] int w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramEnvParameterI4iNV", "opengl") + (delegate* unmanaged)( + _slots[1989] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1989] = nativeContext.LoadFunction( + "glProgramEnvParameterI4iNV", + "opengl" + ) + ) )(target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -538720,8 +546757,14 @@ void IGL.ProgramEnvParameterI4NV( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramEnvParameterI4ivNV", "opengl") + (delegate* unmanaged)( + _slots[1990] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1990] = nativeContext.LoadFunction( + "glProgramEnvParameterI4ivNV", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -538766,8 +546809,14 @@ void IGL.ProgramEnvParameterI4NV( [NativeTypeName("GLuint")] uint w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramEnvParameterI4uiNV", "opengl") + (delegate* unmanaged)( + _slots[1991] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1991] = nativeContext.LoadFunction( + "glProgramEnvParameterI4uiNV", + "opengl" + ) + ) )(target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -538812,8 +546861,14 @@ void IGL.ProgramEnvParameterI4NV( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramEnvParameterI4uivNV", "opengl") + (delegate* unmanaged)( + _slots[1992] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1992] = nativeContext.LoadFunction( + "glProgramEnvParameterI4uivNV", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -538856,8 +546911,14 @@ void IGL.ProgramEnvParameters4EXT( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramEnvParameters4fvEXT", "opengl") + (delegate* unmanaged)( + _slots[1993] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1993] = nativeContext.LoadFunction( + "glProgramEnvParameters4fvEXT", + "opengl" + ) + ) )(target, index, count, @params); [SupportedApiProfile("gl", ["GL_EXT_gpu_program_parameters"])] @@ -538903,8 +546964,14 @@ void IGL.ProgramEnvParametersI4NV( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramEnvParametersI4ivNV", "opengl") + (delegate* unmanaged)( + _slots[1994] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1994] = nativeContext.LoadFunction( + "glProgramEnvParametersI4ivNV", + "opengl" + ) + ) )(target, index, count, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -538950,8 +547017,14 @@ void IGL.ProgramEnvParametersI4NV( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramEnvParametersI4uivNV", "opengl") + (delegate* unmanaged)( + _slots[1995] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1995] = nativeContext.LoadFunction( + "glProgramEnvParametersI4uivNV", + "opengl" + ) + ) )(target, index, count, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -538999,8 +547072,14 @@ void IGL.ProgramLocalParameter4ARB( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramLocalParameter4dARB", "opengl") + (delegate* unmanaged)( + _slots[1996] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1996] = nativeContext.LoadFunction( + "glProgramLocalParameter4dARB", + "opengl" + ) + ) )(target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -539045,8 +547124,14 @@ void IGL.ProgramLocalParameter4ARB( [NativeTypeName("const GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramLocalParameter4dvARB", "opengl") + (delegate* unmanaged)( + _slots[1997] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1997] = nativeContext.LoadFunction( + "glProgramLocalParameter4dvARB", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -539091,8 +547176,14 @@ void IGL.ProgramLocalParameter4ARB( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramLocalParameter4fARB", "opengl") + (delegate* unmanaged)( + _slots[1998] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1998] = nativeContext.LoadFunction( + "glProgramLocalParameter4fARB", + "opengl" + ) + ) )(target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -539137,8 +547228,14 @@ void IGL.ProgramLocalParameter4ARB( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramLocalParameter4fvARB", "opengl") + (delegate* unmanaged)( + _slots[1999] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1999] = nativeContext.LoadFunction( + "glProgramLocalParameter4fvARB", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -539183,8 +547280,14 @@ void IGL.ProgramLocalParameterI4NV( [NativeTypeName("GLint")] int w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramLocalParameterI4iNV", "opengl") + (delegate* unmanaged)( + _slots[2000] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2000] = nativeContext.LoadFunction( + "glProgramLocalParameterI4iNV", + "opengl" + ) + ) )(target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -539229,8 +547332,14 @@ void IGL.ProgramLocalParameterI4NV( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramLocalParameterI4ivNV", "opengl") + (delegate* unmanaged)( + _slots[2001] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2001] = nativeContext.LoadFunction( + "glProgramLocalParameterI4ivNV", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -539275,8 +547384,14 @@ void IGL.ProgramLocalParameterI4NV( [NativeTypeName("GLuint")] uint w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramLocalParameterI4uiNV", "opengl") + (delegate* unmanaged)( + _slots[2002] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2002] = nativeContext.LoadFunction( + "glProgramLocalParameterI4uiNV", + "opengl" + ) + ) )(target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -539321,8 +547436,14 @@ void IGL.ProgramLocalParameterI4NV( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramLocalParameterI4uivNV", "opengl") + (delegate* unmanaged)( + _slots[2003] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2003] = nativeContext.LoadFunction( + "glProgramLocalParameterI4uivNV", + "opengl" + ) + ) )(target, index, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -539365,8 +547486,14 @@ void IGL.ProgramLocalParameters4EXT( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramLocalParameters4fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2004] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2004] = nativeContext.LoadFunction( + "glProgramLocalParameters4fvEXT", + "opengl" + ) + ) )(target, index, count, @params); [SupportedApiProfile("gl", ["GL_EXT_gpu_program_parameters"])] @@ -539412,8 +547539,14 @@ void IGL.ProgramLocalParametersI4NV( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramLocalParametersI4ivNV", "opengl") + (delegate* unmanaged)( + _slots[2005] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2005] = nativeContext.LoadFunction( + "glProgramLocalParametersI4ivNV", + "opengl" + ) + ) )(target, index, count, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -539459,8 +547592,14 @@ void IGL.ProgramLocalParametersI4NV( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramLocalParametersI4uivNV", "opengl") + (delegate* unmanaged)( + _slots[2006] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2006] = nativeContext.LoadFunction( + "glProgramLocalParametersI4uivNV", + "opengl" + ) + ) )(target, index, count, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program4"])] @@ -539509,8 +547648,14 @@ void IGL.ProgramNamedParameter4NV( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramNamedParameter4dNV", "opengl") + (delegate* unmanaged)( + _slots[2007] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2007] = nativeContext.LoadFunction( + "glProgramNamedParameter4dNV", + "opengl" + ) + ) )(id, len, name, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_fragment_program"])] @@ -539590,8 +547735,14 @@ void IGL.ProgramNamedParameter4NV( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramNamedParameter4dvNV", "opengl") + (delegate* unmanaged)( + _slots[2008] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2008] = nativeContext.LoadFunction( + "glProgramNamedParameter4dvNV", + "opengl" + ) + ) )(id, len, name, v); [SupportedApiProfile("gl", ["GL_NV_fragment_program"])] @@ -539666,8 +547817,14 @@ void IGL.ProgramNamedParameter4NV( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramNamedParameter4fNV", "opengl") + (delegate* unmanaged)( + _slots[2009] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2009] = nativeContext.LoadFunction( + "glProgramNamedParameter4fNV", + "opengl" + ) + ) )(id, len, name, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_fragment_program"])] @@ -539747,8 +547904,14 @@ void IGL.ProgramNamedParameter4NV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramNamedParameter4fvNV", "opengl") + (delegate* unmanaged)( + _slots[2010] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2010] = nativeContext.LoadFunction( + "glProgramNamedParameter4fvNV", + "opengl" + ) + ) )(id, len, name, v); [SupportedApiProfile("gl", ["GL_NV_fragment_program"])] @@ -539822,8 +547985,11 @@ void IGL.ProgramParameter4NV( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramParameter4dNV", "opengl") + (delegate* unmanaged)( + _slots[2011] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2011] = nativeContext.LoadFunction("glProgramParameter4dNV", "opengl") + ) )(target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -539868,8 +548034,11 @@ void IGL.ProgramParameter4NV( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramParameter4dvNV", "opengl") + (delegate* unmanaged)( + _slots[2012] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2012] = nativeContext.LoadFunction("glProgramParameter4dvNV", "opengl") + ) )(target, index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -539914,8 +548083,11 @@ void IGL.ProgramParameter4NV( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramParameter4fNV", "opengl") + (delegate* unmanaged)( + _slots[2013] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2013] = nativeContext.LoadFunction("glProgramParameter4fNV", "opengl") + ) )(target, index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -539960,8 +548132,11 @@ void IGL.ProgramParameter4NV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramParameter4fvNV", "opengl") + (delegate* unmanaged)( + _slots[2014] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2014] = nativeContext.LoadFunction("glProgramParameter4fvNV", "opengl") + ) )(target, index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -540003,8 +548178,11 @@ void IGL.ProgramParameter( [NativeTypeName("GLint")] int value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramParameteri", "opengl") + (delegate* unmanaged)( + _slots[2015] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2015] = nativeContext.LoadFunction("glProgramParameteri", "opengl") + ) )(program, pname, value); [SupportedApiProfile( @@ -540094,8 +548272,11 @@ void IGL.ProgramParameterARB( [NativeTypeName("GLint")] int value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramParameteriARB", "opengl") + (delegate* unmanaged)( + _slots[2016] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2016] = nativeContext.LoadFunction("glProgramParameteriARB", "opengl") + ) )(program, pname, value); [SupportedApiProfile("gl", ["GL_ARB_geometry_shader4"])] @@ -540133,8 +548314,11 @@ void IGL.ProgramParameterEXT( [NativeTypeName("GLint")] int value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramParameteriEXT", "opengl") + (delegate* unmanaged)( + _slots[2017] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2017] = nativeContext.LoadFunction("glProgramParameteriEXT", "opengl") + ) )(program, pname, value); [SupportedApiProfile("gl", ["GL_EXT_geometry_shader4", "GL_EXT_separate_shader_objects"])] @@ -540173,8 +548357,14 @@ void IGL.ProgramParameters4NV( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramParameters4dvNV", "opengl") + (delegate* unmanaged)( + _slots[2018] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2018] = nativeContext.LoadFunction( + "glProgramParameters4dvNV", + "opengl" + ) + ) )(target, index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -540220,8 +548410,14 @@ void IGL.ProgramParameters4NV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramParameters4fvNV", "opengl") + (delegate* unmanaged)( + _slots[2019] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2019] = nativeContext.LoadFunction( + "glProgramParameters4fvNV", + "opengl" + ) + ) )(target, index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -540268,8 +548464,14 @@ void IGL.ProgramPathFragmentInputGenNV( [NativeTypeName("const GLfloat *")] float* coeffs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramPathFragmentInputGenNV", "opengl") + (delegate* unmanaged)( + _slots[2020] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2020] = nativeContext.LoadFunction( + "glProgramPathFragmentInputGenNV", + "opengl" + ) + ) )(program, location, genMode, components, coeffs); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -540328,8 +548530,11 @@ void IGL.ProgramStringARB( [NativeTypeName("const void *")] void* @string ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramStringARB", "opengl") + (delegate* unmanaged)( + _slots[2021] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2021] = nativeContext.LoadFunction("glProgramStringARB", "opengl") + ) )(target, format, len, @string); [SupportedApiProfile("gl", ["GL_ARB_fragment_program", "GL_ARB_vertex_program"])] @@ -540374,8 +548579,14 @@ void IGL.ProgramSubroutineParametersNV( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramSubroutineParametersuivNV", "opengl") + (delegate* unmanaged)( + _slots[2022] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2022] = nativeContext.LoadFunction( + "glProgramSubroutineParametersuivNV", + "opengl" + ) + ) )(target, count, @params); [SupportedApiProfile("gl", ["GL_NV_gpu_program5"])] @@ -540432,8 +548643,11 @@ void IGL.ProgramUniform1D( [NativeTypeName("GLdouble")] double v0 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1d", "opengl") + (delegate* unmanaged)( + _slots[2023] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2023] = nativeContext.LoadFunction("glProgramUniform1d", "opengl") + ) )(program, location, v0); [SupportedApiProfile( @@ -540477,8 +548691,11 @@ void IGL.ProgramUniform1DEXT( [NativeTypeName("GLdouble")] double x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1dEXT", "opengl") + (delegate* unmanaged)( + _slots[2024] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2024] = nativeContext.LoadFunction("glProgramUniform1dEXT", "opengl") + ) )(program, location, x); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -540499,8 +548716,11 @@ void IGL.ProgramUniform1Dv( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1dv", "opengl") + (delegate* unmanaged)( + _slots[2025] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2025] = nativeContext.LoadFunction("glProgramUniform1dv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -540638,8 +548858,11 @@ void IGL.ProgramUniform1DvEXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2026] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2026] = nativeContext.LoadFunction("glProgramUniform1dvEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -540704,8 +548927,11 @@ void IGL.ProgramUniform1F( [NativeTypeName("GLfloat")] float v0 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1f", "opengl") + (delegate* unmanaged)( + _slots[2027] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2027] = nativeContext.LoadFunction("glProgramUniform1f", "opengl") + ) )(program, location, v0); [SupportedApiProfile( @@ -540749,8 +548975,11 @@ void IGL.ProgramUniform1FEXT( [NativeTypeName("GLfloat")] float v0 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1fEXT", "opengl") + (delegate* unmanaged)( + _slots[2028] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2028] = nativeContext.LoadFunction("glProgramUniform1fEXT", "opengl") + ) )(program, location, v0); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -540775,8 +549004,11 @@ void IGL.ProgramUniform1Fv( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1fv", "opengl") + (delegate* unmanaged)( + _slots[2029] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2029] = nativeContext.LoadFunction("glProgramUniform1fv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -540914,8 +549146,11 @@ void IGL.ProgramUniform1FvEXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2030] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2030] = nativeContext.LoadFunction("glProgramUniform1fvEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -540992,8 +549227,11 @@ void IGL.ProgramUniform1I( [NativeTypeName("GLint")] int v0 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1i", "opengl") + (delegate* unmanaged)( + _slots[2031] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2031] = nativeContext.LoadFunction("glProgramUniform1i", "opengl") + ) )(program, location, v0); [SupportedApiProfile( @@ -541037,8 +549275,11 @@ void IGL.ProgramUniform1ARB( [NativeTypeName("GLint64")] long x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1i64ARB", "opengl") + (delegate* unmanaged)( + _slots[2032] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2032] = nativeContext.LoadFunction("glProgramUniform1i64ARB", "opengl") + ) )(program, location, x); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -541058,8 +549299,11 @@ void IGL.ProgramUniform1NV( [NativeTypeName("GLint64EXT")] long x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1i64NV", "opengl") + (delegate* unmanaged)( + _slots[2033] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2033] = nativeContext.LoadFunction("glProgramUniform1i64NV", "opengl") + ) )(program, location, x); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -541081,8 +549325,14 @@ void IGL.ProgramUniform1I64VARB( [NativeTypeName("const GLint64 *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1i64vARB", "opengl") + (delegate* unmanaged)( + _slots[2034] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2034] = nativeContext.LoadFunction( + "glProgramUniform1i64vARB", + "opengl" + ) + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -541148,8 +549398,11 @@ void IGL.ProgramUniform1I64VNV( [NativeTypeName("const GLint64EXT *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1i64vNV", "opengl") + (delegate* unmanaged)( + _slots[2035] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2035] = nativeContext.LoadFunction("glProgramUniform1i64vNV", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -541217,8 +549470,11 @@ void IGL.ProgramUniform1IEXT( [NativeTypeName("GLint")] int v0 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1iEXT", "opengl") + (delegate* unmanaged)( + _slots[2036] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2036] = nativeContext.LoadFunction("glProgramUniform1iEXT", "opengl") + ) )(program, location, v0); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -541243,8 +549499,11 @@ void IGL.ProgramUniform1Iv( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1iv", "opengl") + (delegate* unmanaged)( + _slots[2037] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2037] = nativeContext.LoadFunction("glProgramUniform1iv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -541382,8 +549641,11 @@ void IGL.ProgramUniform1IvEXT( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1ivEXT", "opengl") + (delegate* unmanaged)( + _slots[2038] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2038] = nativeContext.LoadFunction("glProgramUniform1ivEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -541460,8 +549722,11 @@ void IGL.ProgramUniform1Ui( [NativeTypeName("GLuint")] uint v0 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1ui", "opengl") + (delegate* unmanaged)( + _slots[2039] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2039] = nativeContext.LoadFunction("glProgramUniform1ui", "opengl") + ) )(program, location, v0); [SupportedApiProfile( @@ -541505,8 +549770,14 @@ void IGL.ProgramUniform1Ui64ARB( [NativeTypeName("GLuint64")] ulong x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1ui64ARB", "opengl") + (delegate* unmanaged)( + _slots[2040] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2040] = nativeContext.LoadFunction( + "glProgramUniform1ui64ARB", + "opengl" + ) + ) )(program, location, x); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -541526,8 +549797,11 @@ void IGL.ProgramUniform1Ui64NV( [NativeTypeName("GLuint64EXT")] ulong x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1ui64NV", "opengl") + (delegate* unmanaged)( + _slots[2041] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2041] = nativeContext.LoadFunction("glProgramUniform1ui64NV", "opengl") + ) )(program, location, x); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -541549,8 +549823,14 @@ void IGL.ProgramUniform1Ui64VARB( [NativeTypeName("const GLuint64 *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1ui64vARB", "opengl") + (delegate* unmanaged)( + _slots[2042] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2042] = nativeContext.LoadFunction( + "glProgramUniform1ui64vARB", + "opengl" + ) + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -541616,8 +549896,14 @@ void IGL.ProgramUniform1Ui64VNV( [NativeTypeName("const GLuint64EXT *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1ui64vNV", "opengl") + (delegate* unmanaged)( + _slots[2043] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2043] = nativeContext.LoadFunction( + "glProgramUniform1ui64vNV", + "opengl" + ) + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -541685,8 +549971,11 @@ void IGL.ProgramUniform1UiEXT( [NativeTypeName("GLuint")] uint v0 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1uiEXT", "opengl") + (delegate* unmanaged)( + _slots[2044] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2044] = nativeContext.LoadFunction("glProgramUniform1uiEXT", "opengl") + ) )(program, location, v0); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -541711,8 +550000,11 @@ void IGL.ProgramUniform1Uiv( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1uiv", "opengl") + (delegate* unmanaged)( + _slots[2045] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2045] = nativeContext.LoadFunction("glProgramUniform1uiv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -541850,8 +550142,11 @@ void IGL.ProgramUniform1UivEXT( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform1uivEXT", "opengl") + (delegate* unmanaged)( + _slots[2046] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2046] = nativeContext.LoadFunction("glProgramUniform1uivEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -541929,8 +550224,11 @@ void IGL.ProgramUniform2( [NativeTypeName("GLdouble")] double v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2d", "opengl") + (delegate* unmanaged)( + _slots[2047] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2047] = nativeContext.LoadFunction("glProgramUniform2d", "opengl") + ) )(program, location, v0, v1); [SupportedApiProfile( @@ -541976,8 +550274,11 @@ void IGL.ProgramUniform2EXT( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2dEXT", "opengl") + (delegate* unmanaged)( + _slots[2048] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2048] = nativeContext.LoadFunction("glProgramUniform2dEXT", "opengl") + ) )(program, location, x, y); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -541999,8 +550300,11 @@ void IGL.ProgramUniform2( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2dv", "opengl") + (delegate* unmanaged)( + _slots[2049] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2049] = nativeContext.LoadFunction("glProgramUniform2dv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -542096,8 +550400,11 @@ void IGL.ProgramUniform2EXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2050] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2050] = nativeContext.LoadFunction("glProgramUniform2dvEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -542145,8 +550452,11 @@ void IGL.ProgramUniform2( [NativeTypeName("GLfloat")] float v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2f", "opengl") + (delegate* unmanaged)( + _slots[2051] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2051] = nativeContext.LoadFunction("glProgramUniform2f", "opengl") + ) )(program, location, v0, v1); [SupportedApiProfile( @@ -542192,8 +550502,11 @@ void IGL.ProgramUniform2EXT( [NativeTypeName("GLfloat")] float v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2fEXT", "opengl") + (delegate* unmanaged)( + _slots[2052] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2052] = nativeContext.LoadFunction("glProgramUniform2fEXT", "opengl") + ) )(program, location, v0, v1); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -542219,8 +550532,11 @@ void IGL.ProgramUniform2( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2fv", "opengl") + (delegate* unmanaged)( + _slots[2053] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2053] = nativeContext.LoadFunction("glProgramUniform2fv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -542316,8 +550632,11 @@ void IGL.ProgramUniform2EXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2054] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2054] = nativeContext.LoadFunction("glProgramUniform2fvEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -542373,8 +550692,11 @@ void IGL.ProgramUniform2( [NativeTypeName("GLint")] int v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2i", "opengl") + (delegate* unmanaged)( + _slots[2055] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2055] = nativeContext.LoadFunction("glProgramUniform2i", "opengl") + ) )(program, location, v0, v1); [SupportedApiProfile( @@ -542420,8 +550742,11 @@ void IGL.ProgramUniform2ARB( [NativeTypeName("GLint64")] long y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2i64ARB", "opengl") + (delegate* unmanaged)( + _slots[2056] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2056] = nativeContext.LoadFunction("glProgramUniform2i64ARB", "opengl") + ) )(program, location, x, y); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -542443,8 +550768,11 @@ void IGL.ProgramUniform2NV( [NativeTypeName("GLint64EXT")] long y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2i64NV", "opengl") + (delegate* unmanaged)( + _slots[2057] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2057] = nativeContext.LoadFunction("glProgramUniform2i64NV", "opengl") + ) )(program, location, x, y); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -542467,8 +550795,14 @@ void IGL.ProgramUniform2ARB( [NativeTypeName("const GLint64 *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2i64vARB", "opengl") + (delegate* unmanaged)( + _slots[2058] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2058] = nativeContext.LoadFunction( + "glProgramUniform2i64vARB", + "opengl" + ) + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -542516,8 +550850,11 @@ void IGL.ProgramUniform2NV( [NativeTypeName("const GLint64EXT *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2i64vNV", "opengl") + (delegate* unmanaged)( + _slots[2059] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2059] = nativeContext.LoadFunction("glProgramUniform2i64vNV", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -542567,8 +550904,11 @@ void IGL.ProgramUniform2EXT( [NativeTypeName("GLint")] int v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2iEXT", "opengl") + (delegate* unmanaged)( + _slots[2060] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2060] = nativeContext.LoadFunction("glProgramUniform2iEXT", "opengl") + ) )(program, location, v0, v1); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -542594,8 +550934,11 @@ void IGL.ProgramUniform2( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2iv", "opengl") + (delegate* unmanaged)( + _slots[2061] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2061] = nativeContext.LoadFunction("glProgramUniform2iv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -542691,8 +551034,11 @@ void IGL.ProgramUniform2EXT( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2ivEXT", "opengl") + (delegate* unmanaged)( + _slots[2062] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2062] = nativeContext.LoadFunction("glProgramUniform2ivEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -542748,8 +551094,11 @@ void IGL.ProgramUniform2( [NativeTypeName("GLuint")] uint v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2ui", "opengl") + (delegate* unmanaged)( + _slots[2063] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2063] = nativeContext.LoadFunction("glProgramUniform2ui", "opengl") + ) )(program, location, v0, v1); [SupportedApiProfile( @@ -542795,8 +551144,14 @@ void IGL.ProgramUniform2ARB( [NativeTypeName("GLuint64")] ulong y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2ui64ARB", "opengl") + (delegate* unmanaged)( + _slots[2064] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2064] = nativeContext.LoadFunction( + "glProgramUniform2ui64ARB", + "opengl" + ) + ) )(program, location, x, y); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -542818,8 +551173,11 @@ void IGL.ProgramUniform2NV( [NativeTypeName("GLuint64EXT")] ulong y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2ui64NV", "opengl") + (delegate* unmanaged)( + _slots[2065] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2065] = nativeContext.LoadFunction("glProgramUniform2ui64NV", "opengl") + ) )(program, location, x, y); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -542842,8 +551200,14 @@ void IGL.ProgramUniform2ARB( [NativeTypeName("const GLuint64 *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2ui64vARB", "opengl") + (delegate* unmanaged)( + _slots[2066] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2066] = nativeContext.LoadFunction( + "glProgramUniform2ui64vARB", + "opengl" + ) + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -542891,8 +551255,14 @@ void IGL.ProgramUniform2NV( [NativeTypeName("const GLuint64EXT *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2ui64vNV", "opengl") + (delegate* unmanaged)( + _slots[2067] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2067] = nativeContext.LoadFunction( + "glProgramUniform2ui64vNV", + "opengl" + ) + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -542942,8 +551312,11 @@ void IGL.ProgramUniform2EXT( [NativeTypeName("GLuint")] uint v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2uiEXT", "opengl") + (delegate* unmanaged)( + _slots[2068] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2068] = nativeContext.LoadFunction("glProgramUniform2uiEXT", "opengl") + ) )(program, location, v0, v1); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -542969,8 +551342,11 @@ void IGL.ProgramUniform2( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2uiv", "opengl") + (delegate* unmanaged)( + _slots[2069] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2069] = nativeContext.LoadFunction("glProgramUniform2uiv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -543066,8 +551442,11 @@ void IGL.ProgramUniform2EXT( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform2uivEXT", "opengl") + (delegate* unmanaged)( + _slots[2070] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2070] = nativeContext.LoadFunction("glProgramUniform2uivEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -543124,8 +551503,11 @@ void IGL.ProgramUniform3( [NativeTypeName("GLdouble")] double v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3d", "opengl") + (delegate* unmanaged)( + _slots[2071] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2071] = nativeContext.LoadFunction("glProgramUniform3d", "opengl") + ) )(program, location, v0, v1, v2); [SupportedApiProfile( @@ -543173,8 +551555,11 @@ void IGL.ProgramUniform3EXT( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3dEXT", "opengl") + (delegate* unmanaged)( + _slots[2072] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2072] = nativeContext.LoadFunction("glProgramUniform3dEXT", "opengl") + ) )(program, location, x, y, z); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -543197,8 +551582,11 @@ void IGL.ProgramUniform3( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3dv", "opengl") + (delegate* unmanaged)( + _slots[2073] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2073] = nativeContext.LoadFunction("glProgramUniform3dv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -543294,8 +551682,11 @@ void IGL.ProgramUniform3EXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2074] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2074] = nativeContext.LoadFunction("glProgramUniform3dvEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -543344,8 +551735,11 @@ void IGL.ProgramUniform3( [NativeTypeName("GLfloat")] float v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3f", "opengl") + (delegate* unmanaged)( + _slots[2075] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2075] = nativeContext.LoadFunction("glProgramUniform3f", "opengl") + ) )(program, location, v0, v1, v2); [SupportedApiProfile( @@ -543393,8 +551787,11 @@ void IGL.ProgramUniform3EXT( [NativeTypeName("GLfloat")] float v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3fEXT", "opengl") + (delegate* unmanaged)( + _slots[2076] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2076] = nativeContext.LoadFunction("glProgramUniform3fEXT", "opengl") + ) )(program, location, v0, v1, v2); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -543421,8 +551818,11 @@ void IGL.ProgramUniform3( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3fv", "opengl") + (delegate* unmanaged)( + _slots[2077] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2077] = nativeContext.LoadFunction("glProgramUniform3fv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -543518,8 +551918,11 @@ void IGL.ProgramUniform3EXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2078] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2078] = nativeContext.LoadFunction("glProgramUniform3fvEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -543576,8 +551979,11 @@ void IGL.ProgramUniform3( [NativeTypeName("GLint")] int v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3i", "opengl") + (delegate* unmanaged)( + _slots[2079] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2079] = nativeContext.LoadFunction("glProgramUniform3i", "opengl") + ) )(program, location, v0, v1, v2); [SupportedApiProfile( @@ -543625,8 +552031,11 @@ void IGL.ProgramUniform3ARB( [NativeTypeName("GLint64")] long z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3i64ARB", "opengl") + (delegate* unmanaged)( + _slots[2080] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2080] = nativeContext.LoadFunction("glProgramUniform3i64ARB", "opengl") + ) )(program, location, x, y, z); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -543650,8 +552059,11 @@ void IGL.ProgramUniform3NV( [NativeTypeName("GLint64EXT")] long z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3i64NV", "opengl") + (delegate* unmanaged)( + _slots[2081] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2081] = nativeContext.LoadFunction("glProgramUniform3i64NV", "opengl") + ) )(program, location, x, y, z); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -543675,8 +552087,14 @@ void IGL.ProgramUniform3ARB( [NativeTypeName("const GLint64 *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3i64vARB", "opengl") + (delegate* unmanaged)( + _slots[2082] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2082] = nativeContext.LoadFunction( + "glProgramUniform3i64vARB", + "opengl" + ) + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -543724,8 +552142,11 @@ void IGL.ProgramUniform3NV( [NativeTypeName("const GLint64EXT *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3i64vNV", "opengl") + (delegate* unmanaged)( + _slots[2083] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2083] = nativeContext.LoadFunction("glProgramUniform3i64vNV", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -543776,8 +552197,11 @@ void IGL.ProgramUniform3EXT( [NativeTypeName("GLint")] int v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3iEXT", "opengl") + (delegate* unmanaged)( + _slots[2084] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2084] = nativeContext.LoadFunction("glProgramUniform3iEXT", "opengl") + ) )(program, location, v0, v1, v2); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -543804,8 +552228,11 @@ void IGL.ProgramUniform3( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3iv", "opengl") + (delegate* unmanaged)( + _slots[2085] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2085] = nativeContext.LoadFunction("glProgramUniform3iv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -543901,8 +552328,11 @@ void IGL.ProgramUniform3EXT( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3ivEXT", "opengl") + (delegate* unmanaged)( + _slots[2086] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2086] = nativeContext.LoadFunction("glProgramUniform3ivEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -543959,8 +552389,11 @@ void IGL.ProgramUniform3( [NativeTypeName("GLuint")] uint v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3ui", "opengl") + (delegate* unmanaged)( + _slots[2087] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2087] = nativeContext.LoadFunction("glProgramUniform3ui", "opengl") + ) )(program, location, v0, v1, v2); [SupportedApiProfile( @@ -544008,8 +552441,14 @@ void IGL.ProgramUniform3ARB( [NativeTypeName("GLuint64")] ulong z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3ui64ARB", "opengl") + (delegate* unmanaged)( + _slots[2088] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2088] = nativeContext.LoadFunction( + "glProgramUniform3ui64ARB", + "opengl" + ) + ) )(program, location, x, y, z); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -544033,8 +552472,11 @@ void IGL.ProgramUniform3NV( [NativeTypeName("GLuint64EXT")] ulong z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3ui64NV", "opengl") + (delegate* unmanaged)( + _slots[2089] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2089] = nativeContext.LoadFunction("glProgramUniform3ui64NV", "opengl") + ) )(program, location, x, y, z); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -544058,8 +552500,14 @@ void IGL.ProgramUniform3ARB( [NativeTypeName("const GLuint64 *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3ui64vARB", "opengl") + (delegate* unmanaged)( + _slots[2090] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2090] = nativeContext.LoadFunction( + "glProgramUniform3ui64vARB", + "opengl" + ) + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -544107,8 +552555,14 @@ void IGL.ProgramUniform3NV( [NativeTypeName("const GLuint64EXT *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3ui64vNV", "opengl") + (delegate* unmanaged)( + _slots[2091] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2091] = nativeContext.LoadFunction( + "glProgramUniform3ui64vNV", + "opengl" + ) + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -544159,8 +552613,11 @@ void IGL.ProgramUniform3EXT( [NativeTypeName("GLuint")] uint v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3uiEXT", "opengl") + (delegate* unmanaged)( + _slots[2092] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2092] = nativeContext.LoadFunction("glProgramUniform3uiEXT", "opengl") + ) )(program, location, v0, v1, v2); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -544187,8 +552644,11 @@ void IGL.ProgramUniform3( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3uiv", "opengl") + (delegate* unmanaged)( + _slots[2093] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2093] = nativeContext.LoadFunction("glProgramUniform3uiv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -544284,8 +552744,11 @@ void IGL.ProgramUniform3EXT( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform3uivEXT", "opengl") + (delegate* unmanaged)( + _slots[2094] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2094] = nativeContext.LoadFunction("glProgramUniform3uivEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -544343,8 +552806,11 @@ void IGL.ProgramUniform4( [NativeTypeName("GLdouble")] double v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4d", "opengl") + (delegate* unmanaged)( + _slots[2095] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2095] = nativeContext.LoadFunction("glProgramUniform4d", "opengl") + ) )(program, location, v0, v1, v2, v3); [SupportedApiProfile( @@ -544394,8 +552860,11 @@ void IGL.ProgramUniform4EXT( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4dEXT", "opengl") + (delegate* unmanaged)( + _slots[2096] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2096] = nativeContext.LoadFunction("glProgramUniform4dEXT", "opengl") + ) )(program, location, x, y, z, w); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -544419,8 +552888,11 @@ void IGL.ProgramUniform4( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4dv", "opengl") + (delegate* unmanaged)( + _slots[2097] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2097] = nativeContext.LoadFunction("glProgramUniform4dv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -544516,8 +552988,11 @@ void IGL.ProgramUniform4EXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2098] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2098] = nativeContext.LoadFunction("glProgramUniform4dvEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -544567,8 +553042,11 @@ void IGL.ProgramUniform4( [NativeTypeName("GLfloat")] float v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4f", "opengl") + (delegate* unmanaged)( + _slots[2099] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2099] = nativeContext.LoadFunction("glProgramUniform4f", "opengl") + ) )(program, location, v0, v1, v2, v3); [SupportedApiProfile( @@ -544618,8 +553096,11 @@ void IGL.ProgramUniform4EXT( [NativeTypeName("GLfloat")] float v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4fEXT", "opengl") + (delegate* unmanaged)( + _slots[2100] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2100] = nativeContext.LoadFunction("glProgramUniform4fEXT", "opengl") + ) )(program, location, v0, v1, v2, v3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -544647,8 +553128,11 @@ void IGL.ProgramUniform4( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4fv", "opengl") + (delegate* unmanaged)( + _slots[2101] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2101] = nativeContext.LoadFunction("glProgramUniform4fv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -544744,8 +553228,11 @@ void IGL.ProgramUniform4EXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2102] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2102] = nativeContext.LoadFunction("glProgramUniform4fvEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -544803,8 +553290,11 @@ void IGL.ProgramUniform4( [NativeTypeName("GLint")] int v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4i", "opengl") + (delegate* unmanaged)( + _slots[2103] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2103] = nativeContext.LoadFunction("glProgramUniform4i", "opengl") + ) )(program, location, v0, v1, v2, v3); [SupportedApiProfile( @@ -544854,8 +553344,11 @@ void IGL.ProgramUniform4ARB( [NativeTypeName("GLint64")] long w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4i64ARB", "opengl") + (delegate* unmanaged)( + _slots[2104] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2104] = nativeContext.LoadFunction("glProgramUniform4i64ARB", "opengl") + ) )(program, location, x, y, z, w); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -544881,8 +553374,11 @@ void IGL.ProgramUniform4NV( [NativeTypeName("GLint64EXT")] long w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4i64NV", "opengl") + (delegate* unmanaged)( + _slots[2105] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2105] = nativeContext.LoadFunction("glProgramUniform4i64NV", "opengl") + ) )(program, location, x, y, z, w); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -544907,8 +553403,14 @@ void IGL.ProgramUniform4ARB( [NativeTypeName("const GLint64 *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4i64vARB", "opengl") + (delegate* unmanaged)( + _slots[2106] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2106] = nativeContext.LoadFunction( + "glProgramUniform4i64vARB", + "opengl" + ) + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -544956,8 +553458,11 @@ void IGL.ProgramUniform4NV( [NativeTypeName("const GLint64EXT *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4i64vNV", "opengl") + (delegate* unmanaged)( + _slots[2107] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2107] = nativeContext.LoadFunction("glProgramUniform4i64vNV", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -545009,8 +553514,11 @@ void IGL.ProgramUniform4EXT( [NativeTypeName("GLint")] int v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4iEXT", "opengl") + (delegate* unmanaged)( + _slots[2108] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2108] = nativeContext.LoadFunction("glProgramUniform4iEXT", "opengl") + ) )(program, location, v0, v1, v2, v3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -545038,8 +553546,11 @@ void IGL.ProgramUniform4( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4iv", "opengl") + (delegate* unmanaged)( + _slots[2109] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2109] = nativeContext.LoadFunction("glProgramUniform4iv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -545135,8 +553646,11 @@ void IGL.ProgramUniform4EXT( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4ivEXT", "opengl") + (delegate* unmanaged)( + _slots[2110] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2110] = nativeContext.LoadFunction("glProgramUniform4ivEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -545194,8 +553708,11 @@ void IGL.ProgramUniform4( [NativeTypeName("GLuint")] uint v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4ui", "opengl") + (delegate* unmanaged)( + _slots[2111] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2111] = nativeContext.LoadFunction("glProgramUniform4ui", "opengl") + ) )(program, location, v0, v1, v2, v3); [SupportedApiProfile( @@ -545245,8 +553762,14 @@ void IGL.ProgramUniform4ARB( [NativeTypeName("GLuint64")] ulong w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4ui64ARB", "opengl") + (delegate* unmanaged)( + _slots[2112] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2112] = nativeContext.LoadFunction( + "glProgramUniform4ui64ARB", + "opengl" + ) + ) )(program, location, x, y, z, w); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -545272,8 +553795,11 @@ void IGL.ProgramUniform4NV( [NativeTypeName("GLuint64EXT")] ulong w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4ui64NV", "opengl") + (delegate* unmanaged)( + _slots[2113] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2113] = nativeContext.LoadFunction("glProgramUniform4ui64NV", "opengl") + ) )(program, location, x, y, z, w); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -545298,8 +553824,14 @@ void IGL.ProgramUniform4ARB( [NativeTypeName("const GLuint64 *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4ui64vARB", "opengl") + (delegate* unmanaged)( + _slots[2114] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2114] = nativeContext.LoadFunction( + "glProgramUniform4ui64vARB", + "opengl" + ) + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -545347,8 +553879,14 @@ void IGL.ProgramUniform4NV( [NativeTypeName("const GLuint64EXT *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4ui64vNV", "opengl") + (delegate* unmanaged)( + _slots[2115] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2115] = nativeContext.LoadFunction( + "glProgramUniform4ui64vNV", + "opengl" + ) + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -545400,8 +553938,11 @@ void IGL.ProgramUniform4EXT( [NativeTypeName("GLuint")] uint v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4uiEXT", "opengl") + (delegate* unmanaged)( + _slots[2116] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2116] = nativeContext.LoadFunction("glProgramUniform4uiEXT", "opengl") + ) )(program, location, v0, v1, v2, v3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -545429,8 +553970,11 @@ void IGL.ProgramUniform4( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4uiv", "opengl") + (delegate* unmanaged)( + _slots[2117] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2117] = nativeContext.LoadFunction("glProgramUniform4uiv", "opengl") + ) )(program, location, count, value); [SupportedApiProfile( @@ -545526,8 +554070,11 @@ void IGL.ProgramUniform4EXT( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniform4uivEXT", "opengl") + (delegate* unmanaged)( + _slots[2118] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2118] = nativeContext.LoadFunction("glProgramUniform4uivEXT", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -545582,8 +554129,14 @@ void IGL.ProgramUniformHandleARB( [NativeTypeName("GLuint64")] ulong value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformHandleui64ARB", "opengl") + (delegate* unmanaged)( + _slots[2119] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2119] = nativeContext.LoadFunction( + "glProgramUniformHandleui64ARB", + "opengl" + ) + ) )(program, location, value); [SupportedApiProfile("gl", ["GL_ARB_bindless_texture"])] @@ -545603,8 +554156,14 @@ void IGL.ProgramUniformHandleIMG( [NativeTypeName("GLuint64")] ulong value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformHandleui64IMG", "opengl") + (delegate* unmanaged)( + _slots[2120] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2120] = nativeContext.LoadFunction( + "glProgramUniformHandleui64IMG", + "opengl" + ) + ) )(program, location, value); [SupportedApiProfile("gles2", ["GL_IMG_bindless_texture"])] @@ -545623,8 +554182,14 @@ void IGL.ProgramUniformHandleNV( [NativeTypeName("GLuint64")] ulong value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformHandleui64NV", "opengl") + (delegate* unmanaged)( + _slots[2121] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2121] = nativeContext.LoadFunction( + "glProgramUniformHandleui64NV", + "opengl" + ) + ) )(program, location, value); [SupportedApiProfile("gl", ["GL_NV_bindless_texture"])] @@ -545646,8 +554211,14 @@ void IGL.ProgramUniformHandleui64VARB( [NativeTypeName("const GLuint64 *")] ulong* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformHandleui64vARB", "opengl") + (delegate* unmanaged)( + _slots[2122] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2122] = nativeContext.LoadFunction( + "glProgramUniformHandleui64vARB", + "opengl" + ) + ) )(program, location, count, values); [SupportedApiProfile("gl", ["GL_ARB_bindless_texture"])] @@ -545713,8 +554284,14 @@ void IGL.ProgramUniformHandleui64VIMG( [NativeTypeName("const GLuint64 *")] ulong* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformHandleui64vIMG", "opengl") + (delegate* unmanaged)( + _slots[2123] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2123] = nativeContext.LoadFunction( + "glProgramUniformHandleui64vIMG", + "opengl" + ) + ) )(program, location, count, values); [SupportedApiProfile("gles2", ["GL_IMG_bindless_texture"])] @@ -545777,8 +554354,14 @@ void IGL.ProgramUniformHandleui64VNV( [NativeTypeName("const GLuint64 *")] ulong* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformHandleui64vNV", "opengl") + (delegate* unmanaged)( + _slots[2124] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2124] = nativeContext.LoadFunction( + "glProgramUniformHandleui64vNV", + "opengl" + ) + ) )(program, location, count, values); [SupportedApiProfile("gl", ["GL_NV_bindless_texture"])] @@ -545848,8 +554431,14 @@ void IGL.ProgramUniformMatrix2( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix2dv", "opengl") + (delegate* unmanaged)( + _slots[2125] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2125] = nativeContext.LoadFunction( + "glProgramUniformMatrix2dv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -545955,8 +554544,14 @@ void IGL.ProgramUniformMatrix2EXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix2dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2126] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2126] = nativeContext.LoadFunction( + "glProgramUniformMatrix2dvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -546014,8 +554609,14 @@ void IGL.ProgramUniformMatrix2( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix2fv", "opengl") + (delegate* unmanaged)( + _slots[2127] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2127] = nativeContext.LoadFunction( + "glProgramUniformMatrix2fv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -546121,8 +554722,14 @@ void IGL.ProgramUniformMatrix2EXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix2fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2128] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2128] = nativeContext.LoadFunction( + "glProgramUniformMatrix2fvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -546188,8 +554795,14 @@ void IGL.ProgramUniformMatrix2X3( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix2x3dv", "opengl") + (delegate* unmanaged)( + _slots[2129] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2129] = nativeContext.LoadFunction( + "glProgramUniformMatrix2x3dv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -546295,8 +554908,14 @@ void IGL.ProgramUniformMatrix2X3EXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix2x3dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2130] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2130] = nativeContext.LoadFunction( + "glProgramUniformMatrix2x3dvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -546354,8 +554973,14 @@ void IGL.ProgramUniformMatrix2X3( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix2x3fv", "opengl") + (delegate* unmanaged)( + _slots[2131] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2131] = nativeContext.LoadFunction( + "glProgramUniformMatrix2x3fv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -546461,8 +555086,14 @@ void IGL.ProgramUniformMatrix2X3EXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix2x3fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2132] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2132] = nativeContext.LoadFunction( + "glProgramUniformMatrix2x3fvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -546528,8 +555159,14 @@ void IGL.ProgramUniformMatrix2X4( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix2x4dv", "opengl") + (delegate* unmanaged)( + _slots[2133] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2133] = nativeContext.LoadFunction( + "glProgramUniformMatrix2x4dv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -546635,8 +555272,14 @@ void IGL.ProgramUniformMatrix2X4EXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix2x4dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2134] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2134] = nativeContext.LoadFunction( + "glProgramUniformMatrix2x4dvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -546694,8 +555337,14 @@ void IGL.ProgramUniformMatrix2X4( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix2x4fv", "opengl") + (delegate* unmanaged)( + _slots[2135] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2135] = nativeContext.LoadFunction( + "glProgramUniformMatrix2x4fv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -546801,8 +555450,14 @@ void IGL.ProgramUniformMatrix2X4EXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix2x4fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2136] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2136] = nativeContext.LoadFunction( + "glProgramUniformMatrix2x4fvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -546868,8 +555523,14 @@ void IGL.ProgramUniformMatrix3( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix3dv", "opengl") + (delegate* unmanaged)( + _slots[2137] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2137] = nativeContext.LoadFunction( + "glProgramUniformMatrix3dv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -546975,8 +555636,14 @@ void IGL.ProgramUniformMatrix3EXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix3dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2138] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2138] = nativeContext.LoadFunction( + "glProgramUniformMatrix3dvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -547034,8 +555701,14 @@ void IGL.ProgramUniformMatrix3( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix3fv", "opengl") + (delegate* unmanaged)( + _slots[2139] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2139] = nativeContext.LoadFunction( + "glProgramUniformMatrix3fv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -547141,8 +555814,14 @@ void IGL.ProgramUniformMatrix3EXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix3fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2140] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2140] = nativeContext.LoadFunction( + "glProgramUniformMatrix3fvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -547208,8 +555887,14 @@ void IGL.ProgramUniformMatrix3X2( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix3x2dv", "opengl") + (delegate* unmanaged)( + _slots[2141] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2141] = nativeContext.LoadFunction( + "glProgramUniformMatrix3x2dv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -547315,8 +556000,14 @@ void IGL.ProgramUniformMatrix3X2EXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix3x2dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2142] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2142] = nativeContext.LoadFunction( + "glProgramUniformMatrix3x2dvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -547374,8 +556065,14 @@ void IGL.ProgramUniformMatrix3X2( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix3x2fv", "opengl") + (delegate* unmanaged)( + _slots[2143] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2143] = nativeContext.LoadFunction( + "glProgramUniformMatrix3x2fv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -547481,8 +556178,14 @@ void IGL.ProgramUniformMatrix3X2EXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix3x2fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2144] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2144] = nativeContext.LoadFunction( + "glProgramUniformMatrix3x2fvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -547548,8 +556251,14 @@ void IGL.ProgramUniformMatrix3X4( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix3x4dv", "opengl") + (delegate* unmanaged)( + _slots[2145] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2145] = nativeContext.LoadFunction( + "glProgramUniformMatrix3x4dv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -547655,8 +556364,14 @@ void IGL.ProgramUniformMatrix3X4EXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix3x4dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2146] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2146] = nativeContext.LoadFunction( + "glProgramUniformMatrix3x4dvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -547714,8 +556429,14 @@ void IGL.ProgramUniformMatrix3X4( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix3x4fv", "opengl") + (delegate* unmanaged)( + _slots[2147] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2147] = nativeContext.LoadFunction( + "glProgramUniformMatrix3x4fv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -547821,8 +556542,14 @@ void IGL.ProgramUniformMatrix3X4EXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix3x4fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2148] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2148] = nativeContext.LoadFunction( + "glProgramUniformMatrix3x4fvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -547888,8 +556615,14 @@ void IGL.ProgramUniformMatrix4( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix4dv", "opengl") + (delegate* unmanaged)( + _slots[2149] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2149] = nativeContext.LoadFunction( + "glProgramUniformMatrix4dv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -547995,8 +556728,14 @@ void IGL.ProgramUniformMatrix4EXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix4dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2150] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2150] = nativeContext.LoadFunction( + "glProgramUniformMatrix4dvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -548054,8 +556793,14 @@ void IGL.ProgramUniformMatrix4( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix4fv", "opengl") + (delegate* unmanaged)( + _slots[2151] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2151] = nativeContext.LoadFunction( + "glProgramUniformMatrix4fv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -548161,8 +556906,14 @@ void IGL.ProgramUniformMatrix4EXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix4fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2152] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2152] = nativeContext.LoadFunction( + "glProgramUniformMatrix4fvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -548228,8 +556979,14 @@ void IGL.ProgramUniformMatrix4X2( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix4x2dv", "opengl") + (delegate* unmanaged)( + _slots[2153] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2153] = nativeContext.LoadFunction( + "glProgramUniformMatrix4x2dv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -548335,8 +557092,14 @@ void IGL.ProgramUniformMatrix4X2EXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix4x2dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2154] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2154] = nativeContext.LoadFunction( + "glProgramUniformMatrix4x2dvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -548394,8 +557157,14 @@ void IGL.ProgramUniformMatrix4X2( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix4x2fv", "opengl") + (delegate* unmanaged)( + _slots[2155] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2155] = nativeContext.LoadFunction( + "glProgramUniformMatrix4x2fv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -548501,8 +557270,14 @@ void IGL.ProgramUniformMatrix4X2EXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix4x2fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2156] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2156] = nativeContext.LoadFunction( + "glProgramUniformMatrix4x2fvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -548568,8 +557343,14 @@ void IGL.ProgramUniformMatrix4X3( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix4x3dv", "opengl") + (delegate* unmanaged)( + _slots[2157] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2157] = nativeContext.LoadFunction( + "glProgramUniformMatrix4x3dv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -548675,8 +557456,14 @@ void IGL.ProgramUniformMatrix4X3EXT( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix4x3dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2158] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2158] = nativeContext.LoadFunction( + "glProgramUniformMatrix4x3dvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -548734,8 +557521,14 @@ void IGL.ProgramUniformMatrix4X3( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix4x3fv", "opengl") + (delegate* unmanaged)( + _slots[2159] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2159] = nativeContext.LoadFunction( + "glProgramUniformMatrix4x3fv", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile( @@ -548841,8 +557634,14 @@ void IGL.ProgramUniformMatrix4X3EXT( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformMatrix4x3fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2160] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2160] = nativeContext.LoadFunction( + "glProgramUniformMatrix4x3fvEXT", + "opengl" + ) + ) )(program, location, count, transpose, value); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_separate_shader_objects"])] @@ -548906,8 +557705,11 @@ void IGL.ProgramUniformNV( [NativeTypeName("GLuint64EXT")] ulong value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformui64NV", "opengl") + (delegate* unmanaged)( + _slots[2161] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2161] = nativeContext.LoadFunction("glProgramUniformui64NV", "opengl") + ) )(program, location, value); [SupportedApiProfile("gl", ["GL_NV_shader_buffer_load"])] @@ -548928,8 +557730,11 @@ void IGL.ProgramUniformui64VNV( [NativeTypeName("const GLuint64EXT *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramUniformui64vNV", "opengl") + (delegate* unmanaged)( + _slots[2162] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2162] = nativeContext.LoadFunction("glProgramUniformui64vNV", "opengl") + ) )(program, location, count, value); [SupportedApiProfile("gl", ["GL_NV_shader_buffer_load"])] @@ -548993,8 +557798,11 @@ void IGL.ProgramVertexLimitNV( [NativeTypeName("GLint")] int limit ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProgramVertexLimitNV", "opengl") + (delegate* unmanaged)( + _slots[2163] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2163] = nativeContext.LoadFunction("glProgramVertexLimitNV", "opengl") + ) )(target, limit); [SupportedApiProfile("gl", ["GL_NV_geometry_program4"])] @@ -549023,8 +557831,11 @@ public static void ProgramVertexLimitNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ProvokingVertex([NativeTypeName("GLenum")] uint mode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProvokingVertex", "opengl") + (delegate* unmanaged)( + _slots[2164] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2164] = nativeContext.LoadFunction("glProvokingVertex", "opengl") + ) )(mode); [SupportedApiProfile( @@ -549111,8 +557922,11 @@ public static void ProvokingVertex( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ProvokingVertexEXT([NativeTypeName("GLenum")] uint mode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glProvokingVertexEXT", "opengl") + (delegate* unmanaged)( + _slots[2165] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2165] = nativeContext.LoadFunction("glProvokingVertexEXT", "opengl") + ) )(mode); [SupportedApiProfile("gl", ["GL_EXT_provoking_vertex"])] @@ -549136,9 +557950,13 @@ public static void ProvokingVertexEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PushAttrib([NativeTypeName("GLbitfield")] uint mask) => - ((delegate* unmanaged)nativeContext.LoadFunction("glPushAttrib", "opengl"))( - mask - ); + ( + (delegate* unmanaged)( + _slots[2166] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2166] = nativeContext.LoadFunction("glPushAttrib", "opengl") + ) + )(mask); [SupportedApiProfile( "gl", @@ -549209,8 +558027,11 @@ public static void PushAttrib( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PushClientAttrib([NativeTypeName("GLbitfield")] uint mask) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPushClientAttrib", "opengl") + (delegate* unmanaged)( + _slots[2167] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2167] = nativeContext.LoadFunction("glPushClientAttrib", "opengl") + ) )(mask); [SupportedApiProfile( @@ -549281,8 +558102,14 @@ public static void PushClientAttrib( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PushClientAttribDefaultEXT([NativeTypeName("GLbitfield")] uint mask) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPushClientAttribDefaultEXT", "opengl") + (delegate* unmanaged)( + _slots[2168] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2168] = nativeContext.LoadFunction( + "glPushClientAttribDefaultEXT", + "opengl" + ) + ) )(mask); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -549314,8 +558141,11 @@ void IGL.PushDebugGroup( [NativeTypeName("const GLchar *")] sbyte* message ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPushDebugGroup", "opengl") + (delegate* unmanaged)( + _slots[2169] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2169] = nativeContext.LoadFunction("glPushDebugGroup", "opengl") + ) )(source, id, length, message); [SupportedApiProfile( @@ -549379,8 +558209,11 @@ void IGL.PushDebugGroupKHR( [NativeTypeName("const GLchar *")] sbyte* message ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPushDebugGroupKHR", "opengl") + (delegate* unmanaged)( + _slots[2170] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2170] = nativeContext.LoadFunction("glPushDebugGroupKHR", "opengl") + ) )(source, id, length, message); [SupportedApiProfile("gles2", ["GL_KHR_debug"])] @@ -549424,8 +558257,11 @@ void IGL.PushGroupMarkerEXT( [NativeTypeName("const GLchar *")] sbyte* marker ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glPushGroupMarkerEXT", "opengl") + (delegate* unmanaged)( + _slots[2171] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2171] = nativeContext.LoadFunction("glPushGroupMarkerEXT", "opengl") + ) )(length, marker); [SupportedApiProfile("gl", ["GL_EXT_debug_marker"])] @@ -549465,7 +558301,13 @@ public static void PushGroupMarkerEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PushMatrix() => - ((delegate* unmanaged)nativeContext.LoadFunction("glPushMatrix", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[2172] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2172] = nativeContext.LoadFunction("glPushMatrix", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -549499,7 +558341,13 @@ void IGL.PushMatrix() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.PushName([NativeTypeName("GLuint")] uint name) => - ((delegate* unmanaged)nativeContext.LoadFunction("glPushName", "opengl"))(name); + ( + (delegate* unmanaged)( + _slots[2173] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2173] = nativeContext.LoadFunction("glPushName", "opengl") + ) + )(name); [SupportedApiProfile( "gl", @@ -549536,8 +558384,11 @@ void IGL.QueryCounter( [NativeTypeName("GLenum")] uint target ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glQueryCounter", "opengl") + (delegate* unmanaged)( + _slots[2174] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2174] = nativeContext.LoadFunction("glQueryCounter", "opengl") + ) )(id, target); [SupportedApiProfile( @@ -549627,8 +558478,11 @@ void IGL.QueryCounterEXT( [NativeTypeName("GLenum")] uint target ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glQueryCounterEXT", "opengl") + (delegate* unmanaged)( + _slots[2175] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2175] = nativeContext.LoadFunction("glQueryCounterEXT", "opengl") + ) )(id, target); [SupportedApiProfile("gles2", ["GL_EXT_disjoint_timer_query"])] @@ -549660,8 +558514,11 @@ uint IGL.QueryMatrixxOES( [NativeTypeName("GLint *")] int* exponent ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glQueryMatrixxOES", "opengl") + (delegate* unmanaged)( + _slots[2176] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2176] = nativeContext.LoadFunction("glQueryMatrixxOES", "opengl") + ) )(mantissa, exponent); [return: NativeTypeName("GLbitfield")] @@ -549706,8 +558563,14 @@ void IGL.QueryObjectParameterAMD( [NativeTypeName("GLuint")] uint param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glQueryObjectParameteruiAMD", "opengl") + (delegate* unmanaged)( + _slots[2177] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2177] = nativeContext.LoadFunction( + "glQueryObjectParameteruiAMD", + "opengl" + ) + ) )(target, id, pname, param3); [SupportedApiProfile("gl", ["GL_AMD_occlusion_query_event"])] @@ -549747,8 +558610,11 @@ int IGL.QueryResourceNV( [NativeTypeName("GLint *")] int* buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glQueryResourceNV", "opengl") + (delegate* unmanaged)( + _slots[2178] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2178] = nativeContext.LoadFunction("glQueryResourceNV", "opengl") + ) )(queryType, tagId, count, buffer); [return: NativeTypeName("GLint")] @@ -549794,8 +558660,11 @@ void IGL.QueryResourceTagNV( [NativeTypeName("const GLchar *")] sbyte* tagString ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glQueryResourceTagNV", "opengl") + (delegate* unmanaged)( + _slots[2179] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2179] = nativeContext.LoadFunction("glQueryResourceTagNV", "opengl") + ) )(tagId, tagString); [SupportedApiProfile("gl", ["GL_NV_query_resource_tag"])] @@ -549833,8 +558702,11 @@ void IGL.RasterPos2( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos2d", "opengl") + (delegate* unmanaged)( + _slots[2180] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2180] = nativeContext.LoadFunction("glRasterPos2d", "opengl") + ) )(x, y); [SupportedApiProfile( @@ -549872,8 +558744,11 @@ public static void RasterPos2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos2([NativeTypeName("const GLdouble *")] double* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos2dv", "opengl") + (delegate* unmanaged)( + _slots[2181] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2181] = nativeContext.LoadFunction("glRasterPos2dv", "opengl") + ) )(v); [SupportedApiProfile( @@ -549949,8 +558824,11 @@ public static void RasterPos2([NativeTypeName("const GLdouble *")] Ref v [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos2([NativeTypeName("GLfloat")] float x, [NativeTypeName("GLfloat")] float y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos2f", "opengl") + (delegate* unmanaged)( + _slots[2182] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2182] = nativeContext.LoadFunction("glRasterPos2f", "opengl") + ) )(x, y); [SupportedApiProfile( @@ -549987,9 +558865,13 @@ public static void RasterPos2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos2([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glRasterPos2fv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2183] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2183] = nativeContext.LoadFunction("glRasterPos2fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -550064,8 +558946,11 @@ public static void RasterPos2([NativeTypeName("const GLfloat *")] Ref v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos2([NativeTypeName("GLint")] int x, [NativeTypeName("GLint")] int y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos2i", "opengl") + (delegate* unmanaged)( + _slots[2184] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2184] = nativeContext.LoadFunction("glRasterPos2i", "opengl") + ) )(x, y); [SupportedApiProfile( @@ -550102,9 +558987,13 @@ public static void RasterPos2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos2([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glRasterPos2iv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2185] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2185] = nativeContext.LoadFunction("glRasterPos2iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -550179,8 +559068,11 @@ public static void RasterPos2([NativeTypeName("const GLint *")] Ref v) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos2([NativeTypeName("GLshort")] short x, [NativeTypeName("GLshort")] short y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos2s", "opengl") + (delegate* unmanaged)( + _slots[2186] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2186] = nativeContext.LoadFunction("glRasterPos2s", "opengl") + ) )(x, y); [SupportedApiProfile( @@ -550217,9 +559109,13 @@ public static void RasterPos2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos2([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glRasterPos2sv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2187] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2187] = nativeContext.LoadFunction("glRasterPos2sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -550294,8 +559190,11 @@ public static void RasterPos2([NativeTypeName("const GLshort *")] Ref v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos2XOES([NativeTypeName("GLfixed")] int x, [NativeTypeName("GLfixed")] int y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos2xOES", "opengl") + (delegate* unmanaged)( + _slots[2188] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2188] = nativeContext.LoadFunction("glRasterPos2xOES", "opengl") + ) )(x, y); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -550309,8 +559208,11 @@ public static void RasterPos2XOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos2XOES([NativeTypeName("const GLfixed *")] int* coords) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos2xvOES", "opengl") + (delegate* unmanaged)( + _slots[2189] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2189] = nativeContext.LoadFunction("glRasterPos2xvOES", "opengl") + ) )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -550342,8 +559244,11 @@ void IGL.RasterPos3( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos3d", "opengl") + (delegate* unmanaged)( + _slots[2190] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2190] = nativeContext.LoadFunction("glRasterPos3d", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -550382,8 +559287,11 @@ public static void RasterPos3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos3([NativeTypeName("const GLdouble *")] double* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos3dv", "opengl") + (delegate* unmanaged)( + _slots[2191] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2191] = nativeContext.LoadFunction("glRasterPos3dv", "opengl") + ) )(v); [SupportedApiProfile( @@ -550463,8 +559371,11 @@ void IGL.RasterPos3( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos3f", "opengl") + (delegate* unmanaged)( + _slots[2192] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2192] = nativeContext.LoadFunction("glRasterPos3f", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -550502,9 +559413,13 @@ public static void RasterPos3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos3([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glRasterPos3fv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2193] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2193] = nativeContext.LoadFunction("glRasterPos3fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -550583,8 +559498,11 @@ void IGL.RasterPos3( [NativeTypeName("GLint")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos3i", "opengl") + (delegate* unmanaged)( + _slots[2194] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2194] = nativeContext.LoadFunction("glRasterPos3i", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -550622,9 +559540,13 @@ public static void RasterPos3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos3([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glRasterPos3iv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2195] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2195] = nativeContext.LoadFunction("glRasterPos3iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -550703,8 +559625,11 @@ void IGL.RasterPos3( [NativeTypeName("GLshort")] short z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos3s", "opengl") + (delegate* unmanaged)( + _slots[2196] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2196] = nativeContext.LoadFunction("glRasterPos3s", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -550742,9 +559667,13 @@ public static void RasterPos3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos3([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glRasterPos3sv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2197] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2197] = nativeContext.LoadFunction("glRasterPos3sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -550823,8 +559752,11 @@ void IGL.RasterPos3XOES( [NativeTypeName("GLfixed")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos3xOES", "opengl") + (delegate* unmanaged)( + _slots[2198] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2198] = nativeContext.LoadFunction("glRasterPos3xOES", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -550839,8 +559771,11 @@ public static void RasterPos3XOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos3XOES([NativeTypeName("const GLfixed *")] int* coords) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos3xvOES", "opengl") + (delegate* unmanaged)( + _slots[2199] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2199] = nativeContext.LoadFunction("glRasterPos3xvOES", "opengl") + ) )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -550873,8 +559808,11 @@ void IGL.RasterPos4( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos4d", "opengl") + (delegate* unmanaged)( + _slots[2200] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2200] = nativeContext.LoadFunction("glRasterPos4d", "opengl") + ) )(x, y, z, w); [SupportedApiProfile( @@ -550914,8 +559852,11 @@ public static void RasterPos4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos4([NativeTypeName("const GLdouble *")] double* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos4dv", "opengl") + (delegate* unmanaged)( + _slots[2201] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2201] = nativeContext.LoadFunction("glRasterPos4dv", "opengl") + ) )(v); [SupportedApiProfile( @@ -550996,8 +559937,11 @@ void IGL.RasterPos4( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos4f", "opengl") + (delegate* unmanaged)( + _slots[2202] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2202] = nativeContext.LoadFunction("glRasterPos4f", "opengl") + ) )(x, y, z, w); [SupportedApiProfile( @@ -551036,9 +559980,13 @@ public static void RasterPos4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos4([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glRasterPos4fv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2203] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2203] = nativeContext.LoadFunction("glRasterPos4fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -551118,8 +560066,11 @@ void IGL.RasterPos4( [NativeTypeName("GLint")] int w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos4i", "opengl") + (delegate* unmanaged)( + _slots[2204] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2204] = nativeContext.LoadFunction("glRasterPos4i", "opengl") + ) )(x, y, z, w); [SupportedApiProfile( @@ -551158,9 +560109,13 @@ public static void RasterPos4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos4([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glRasterPos4iv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2205] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2205] = nativeContext.LoadFunction("glRasterPos4iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -551240,8 +560195,11 @@ void IGL.RasterPos4( [NativeTypeName("GLshort")] short w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos4s", "opengl") + (delegate* unmanaged)( + _slots[2206] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2206] = nativeContext.LoadFunction("glRasterPos4s", "opengl") + ) )(x, y, z, w); [SupportedApiProfile( @@ -551280,9 +560238,13 @@ public static void RasterPos4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos4([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glRasterPos4sv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2207] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2207] = nativeContext.LoadFunction("glRasterPos4sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -551362,8 +560324,11 @@ void IGL.RasterPos4XOES( [NativeTypeName("GLfixed")] int w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos4xOES", "opengl") + (delegate* unmanaged)( + _slots[2208] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2208] = nativeContext.LoadFunction("glRasterPos4xOES", "opengl") + ) )(x, y, z, w); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -551379,8 +560344,11 @@ public static void RasterPos4XOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RasterPos4XOES([NativeTypeName("const GLfixed *")] int* coords) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterPos4xvOES", "opengl") + (delegate* unmanaged)( + _slots[2209] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2209] = nativeContext.LoadFunction("glRasterPos4xvOES", "opengl") + ) )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -551411,8 +560379,11 @@ void IGL.RasterSamplesEXT( [NativeTypeName("GLboolean")] uint fixedsamplelocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRasterSamplesEXT", "opengl") + (delegate* unmanaged)( + _slots[2210] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2210] = nativeContext.LoadFunction("glRasterSamplesEXT", "opengl") + ) )(samples, fixedsamplelocations); [SupportedApiProfile("gl", ["GL_EXT_raster_multisample", "GL_NV_framebuffer_mixed_samples"])] @@ -551450,9 +560421,13 @@ public static void RasterSamplesEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ReadBuffer([NativeTypeName("GLenum")] uint src) => - ((delegate* unmanaged)nativeContext.LoadFunction("glReadBuffer", "opengl"))( - src - ); + ( + (delegate* unmanaged)( + _slots[2211] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2211] = nativeContext.LoadFunction("glReadBuffer", "opengl") + ) + )(src); [SupportedApiProfile( "gl", @@ -551576,8 +560551,11 @@ void IGL.ReadBufferIndexedEXT( [NativeTypeName("GLint")] int index ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReadBufferIndexedEXT", "opengl") + (delegate* unmanaged)( + _slots[2212] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2212] = nativeContext.LoadFunction("glReadBufferIndexedEXT", "opengl") + ) )(src, index); [SupportedApiProfile("gles2", ["GL_EXT_multiview_draw_buffers"])] @@ -551605,9 +560583,13 @@ public static void ReadBufferIndexedEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ReadBufferNV([NativeTypeName("GLenum")] uint mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glReadBufferNV", "opengl"))( - mode - ); + ( + (delegate* unmanaged)( + _slots[2213] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2213] = nativeContext.LoadFunction("glReadBufferNV", "opengl") + ) + )(mode); [SupportedApiProfile("gles2", ["GL_NV_read_buffer"])] [NativeFunction("opengl", EntryPoint = "glReadBufferNV")] @@ -551618,8 +560600,11 @@ public static void ReadBufferNV([NativeTypeName("GLenum")] uint mode) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ReadInstrumentsSGIX([NativeTypeName("GLint")] int marker) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReadInstrumentsSGIX", "opengl") + (delegate* unmanaged)( + _slots[2214] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2214] = nativeContext.LoadFunction("glReadInstrumentsSGIX", "opengl") + ) )(marker); [SupportedApiProfile("gl", ["GL_SGIX_instruments"])] @@ -551640,8 +560625,11 @@ void IGL.ReadnPixels( void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReadnPixels", "opengl") + (delegate* unmanaged)( + _slots[2215] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2215] = nativeContext.LoadFunction("glReadnPixels", "opengl") + ) )(x, y, width, height, format, type, bufSize, data); [SupportedApiProfile( @@ -551730,8 +560718,11 @@ void IGL.ReadnPixelsARB( void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReadnPixelsARB", "opengl") + (delegate* unmanaged)( + _slots[2216] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2216] = nativeContext.LoadFunction("glReadnPixelsARB", "opengl") + ) )(x, y, width, height, format, type, bufSize, data); [SupportedApiProfile("gl", ["GL_ARB_robustness"])] @@ -551804,8 +560795,11 @@ void IGL.ReadnPixelsEXT( void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReadnPixelsEXT", "opengl") + (delegate* unmanaged)( + _slots[2217] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2217] = nativeContext.LoadFunction("glReadnPixelsEXT", "opengl") + ) )(x, y, width, height, format, type, bufSize, data); [SupportedApiProfile("gles2", ["GL_EXT_robustness"])] @@ -551878,8 +560872,11 @@ void IGL.ReadnPixelsKHR( void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReadnPixelsKHR", "opengl") + (delegate* unmanaged)( + _slots[2218] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2218] = nativeContext.LoadFunction("glReadnPixelsKHR", "opengl") + ) )(x, y, width, height, format, type, bufSize, data); [SupportedApiProfile("gles2", ["GL_KHR_robustness"])] @@ -551949,8 +560946,11 @@ void IGL.ReadPixels( void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReadPixels", "opengl") + (delegate* unmanaged)( + _slots[2219] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2219] = nativeContext.LoadFunction("glReadPixels", "opengl") + ) )(x, y, width, height, format, type, pixels); [SupportedApiProfile( @@ -552115,8 +561115,11 @@ void IGL.Rect( [NativeTypeName("GLdouble")] double y2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRectd", "opengl") + (delegate* unmanaged)( + _slots[2220] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2220] = nativeContext.LoadFunction("glRectd", "opengl") + ) )(x1, y1, x2, y2); [SupportedApiProfile( @@ -552159,8 +561162,11 @@ void IGL.Rect( [NativeTypeName("const GLdouble *")] double* v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRectdv", "opengl") + (delegate* unmanaged)( + _slots[2221] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2221] = nativeContext.LoadFunction("glRectdv", "opengl") + ) )(v1, v2); [SupportedApiProfile( @@ -552249,8 +561255,11 @@ void IGL.Rect( [NativeTypeName("GLfloat")] float y2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRectf", "opengl") + (delegate* unmanaged)( + _slots[2222] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2222] = nativeContext.LoadFunction("glRectf", "opengl") + ) )(x1, y1, x2, y2); [SupportedApiProfile( @@ -552293,8 +561302,11 @@ void IGL.Rect( [NativeTypeName("const GLfloat *")] float* v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRectfv", "opengl") + (delegate* unmanaged)( + _slots[2223] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2223] = nativeContext.LoadFunction("glRectfv", "opengl") + ) )(v1, v2); [SupportedApiProfile( @@ -552383,8 +561395,11 @@ void IGL.Rect( [NativeTypeName("GLint")] int y2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRecti", "opengl") + (delegate* unmanaged)( + _slots[2224] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2224] = nativeContext.LoadFunction("glRecti", "opengl") + ) )(x1, y1, x2, y2); [SupportedApiProfile( @@ -552426,10 +561441,13 @@ void IGL.Rect( [NativeTypeName("const GLint *")] int* v1, [NativeTypeName("const GLint *")] int* v2 ) => - ((delegate* unmanaged)nativeContext.LoadFunction("glRectiv", "opengl"))( - v1, - v2 - ); + ( + (delegate* unmanaged)( + _slots[2225] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2225] = nativeContext.LoadFunction("glRectiv", "opengl") + ) + )(v1, v2); [SupportedApiProfile( "gl", @@ -552517,8 +561535,11 @@ void IGL.Rects( [NativeTypeName("GLshort")] short y2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRects", "opengl") + (delegate* unmanaged)( + _slots[2226] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2226] = nativeContext.LoadFunction("glRects", "opengl") + ) )(x1, y1, x2, y2); [SupportedApiProfile( @@ -552561,8 +561582,11 @@ void IGL.Rect( [NativeTypeName("const GLshort *")] short* v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRectsv", "opengl") + (delegate* unmanaged)( + _slots[2227] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2227] = nativeContext.LoadFunction("glRectsv", "opengl") + ) )(v1, v2); [SupportedApiProfile( @@ -552651,8 +561675,11 @@ void IGL.RectxOES( [NativeTypeName("GLfixed")] int y2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRectxOES", "opengl") + (delegate* unmanaged)( + _slots[2228] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2228] = nativeContext.LoadFunction("glRectxOES", "opengl") + ) )(x1, y1, x2, y2); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -552671,8 +561698,11 @@ void IGL.RectxOES( [NativeTypeName("const GLfixed *")] int* v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRectxvOES", "opengl") + (delegate* unmanaged)( + _slots[2229] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2229] = nativeContext.LoadFunction("glRectxvOES", "opengl") + ) )(v1, v2); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -552708,8 +561738,11 @@ public static void RectxOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ReferencePlaneSGIX([NativeTypeName("const GLdouble *")] double* equation) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReferencePlaneSGIX", "opengl") + (delegate* unmanaged)( + _slots[2230] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2230] = nativeContext.LoadFunction("glReferencePlaneSGIX", "opengl") + ) )(equation); [SupportedApiProfile("gl", ["GL_SGIX_reference_plane"])] @@ -552758,8 +561791,14 @@ uint IGL.ReleaseKeyedMutexWin32EXTRaw( [NativeTypeName("GLuint64")] ulong key ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReleaseKeyedMutexWin32EXT", "opengl") + (delegate* unmanaged)( + _slots[2231] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2231] = nativeContext.LoadFunction( + "glReleaseKeyedMutexWin32EXT", + "opengl" + ) + ) )(memory, key); [return: NativeTypeName("GLboolean")] @@ -552775,8 +561814,11 @@ public static uint ReleaseKeyedMutexWin32EXTRaw( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ReleaseShaderCompiler() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReleaseShaderCompiler", "opengl") + (delegate* unmanaged)( + _slots[2232] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2232] = nativeContext.LoadFunction("glReleaseShaderCompiler", "opengl") + ) )(); [SupportedApiProfile( @@ -552822,8 +561864,11 @@ void IGL.RenderbufferStorage( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRenderbufferStorage", "opengl") + (delegate* unmanaged)( + _slots[2233] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2233] = nativeContext.LoadFunction("glRenderbufferStorage", "opengl") + ) )(target, internalformat, width, height); [SupportedApiProfile( @@ -552943,8 +561988,14 @@ void IGL.RenderbufferStorageEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRenderbufferStorageEXT", "opengl") + (delegate* unmanaged)( + _slots[2234] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2234] = nativeContext.LoadFunction( + "glRenderbufferStorageEXT", + "opengl" + ) + ) )(target, internalformat, width, height); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_object"])] @@ -552985,8 +562036,14 @@ void IGL.RenderbufferStorageMultisample( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRenderbufferStorageMultisample", "opengl") + (delegate* unmanaged)( + _slots[2235] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2235] = nativeContext.LoadFunction( + "glRenderbufferStorageMultisample", + "opengl" + ) + ) )(target, samples, internalformat, width, height); [SupportedApiProfile( @@ -553108,8 +562165,14 @@ void IGL.RenderbufferStorageMultisampleAdvanceAMD( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRenderbufferStorageMultisampleAdvancedAMD", "opengl") + (delegate* unmanaged)( + _slots[2236] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2236] = nativeContext.LoadFunction( + "glRenderbufferStorageMultisampleAdvancedAMD", + "opengl" + ) + ) )(target, samples, storageSamples, internalformat, width, height); [SupportedApiProfile("gl", ["GL_AMD_framebuffer_multisample_advanced"])] @@ -553184,8 +562247,14 @@ void IGL.RenderbufferStorageMultisampleAngle( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRenderbufferStorageMultisampleANGLE", "opengl") + (delegate* unmanaged)( + _slots[2237] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2237] = nativeContext.LoadFunction( + "glRenderbufferStorageMultisampleANGLE", + "opengl" + ) + ) )(target, samples, internalformat, width, height); [SupportedApiProfile("gles2", ["GL_ANGLE_framebuffer_multisample"])] @@ -553250,8 +562319,14 @@ void IGL.RenderbufferStorageMultisampleApple( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRenderbufferStorageMultisampleAPPLE", "opengl") + (delegate* unmanaged)( + _slots[2238] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2238] = nativeContext.LoadFunction( + "glRenderbufferStorageMultisampleAPPLE", + "opengl" + ) + ) )(target, samples, internalformat, width, height); [SupportedApiProfile("gles2", ["GL_APPLE_framebuffer_multisample"])] @@ -553319,8 +562394,14 @@ void IGL.RenderbufferStorageMultisampleCoverageNV( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRenderbufferStorageMultisampleCoverageNV", "opengl") + (delegate* unmanaged)( + _slots[2239] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2239] = nativeContext.LoadFunction( + "glRenderbufferStorageMultisampleCoverageNV", + "opengl" + ) + ) )(target, coverageSamples, colorSamples, internalformat, width, height); [SupportedApiProfile("gl", ["GL_NV_framebuffer_multisample_coverage"])] @@ -553393,8 +562474,14 @@ void IGL.RenderbufferStorageMultisampleEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRenderbufferStorageMultisampleEXT", "opengl") + (delegate* unmanaged)( + _slots[2240] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2240] = nativeContext.LoadFunction( + "glRenderbufferStorageMultisampleEXT", + "opengl" + ) + ) )(target, samples, internalformat, width, height); [SupportedApiProfile("gl", ["GL_EXT_framebuffer_multisample"])] @@ -553463,8 +562550,14 @@ void IGL.RenderbufferStorageMultisampleIMG( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRenderbufferStorageMultisampleIMG", "opengl") + (delegate* unmanaged)( + _slots[2241] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2241] = nativeContext.LoadFunction( + "glRenderbufferStorageMultisampleIMG", + "opengl" + ) + ) )(target, samples, internalformat, width, height); [SupportedApiProfile("gles2", ["GL_IMG_multisampled_render_to_texture"])] @@ -553531,8 +562624,14 @@ void IGL.RenderbufferStorageMultisampleNV( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRenderbufferStorageMultisampleNV", "opengl") + (delegate* unmanaged)( + _slots[2242] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2242] = nativeContext.LoadFunction( + "glRenderbufferStorageMultisampleNV", + "opengl" + ) + ) )(target, samples, internalformat, width, height); [SupportedApiProfile("gles2", ["GL_NV_framebuffer_multisample"])] @@ -553584,8 +562683,14 @@ void IGL.RenderbufferStorageOES( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRenderbufferStorageOES", "opengl") + (delegate* unmanaged)( + _slots[2243] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2243] = nativeContext.LoadFunction( + "glRenderbufferStorageOES", + "opengl" + ) + ) )(target, internalformat, width, height); [SupportedApiProfile("gles1", ["GL_OES_framebuffer_object"])] @@ -553620,8 +562725,11 @@ public static void RenderbufferStorageOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.RenderGpuMaskNV([NativeTypeName("GLbitfield")] uint mask) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRenderGpuMaskNV", "opengl") + (delegate* unmanaged)( + _slots[2244] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2244] = nativeContext.LoadFunction("glRenderGpuMaskNV", "opengl") + ) )(mask); [SupportedApiProfile("gl", ["GL_NV_gpu_multicast"])] @@ -553632,9 +562740,13 @@ public static void RenderGpuMaskNV([NativeTypeName("GLbitfield")] uint mask) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int IGL.RenderMode([NativeTypeName("GLenum")] uint mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glRenderMode", "opengl"))( - mode - ); + ( + (delegate* unmanaged)( + _slots[2245] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2245] = nativeContext.LoadFunction("glRenderMode", "opengl") + ) + )(mode); [return: NativeTypeName("GLint")] [SupportedApiProfile( @@ -553711,8 +562823,14 @@ void IGL.ReplacementCodePointerSUN( [NativeTypeName("const void **")] void** pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodePointerSUN", "opengl") + (delegate* unmanaged)( + _slots[2246] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2246] = nativeContext.LoadFunction( + "glReplacementCodePointerSUN", + "opengl" + ) + ) )(type, stride, pointer); [SupportedApiProfile("gl", ["GL_SUN_triangle_list"])] @@ -553750,8 +562868,11 @@ public static void ReplacementCodePointerSUN( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ReplacementCodeSUN([NativeTypeName("GLubyte")] byte code) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeubSUN", "opengl") + (delegate* unmanaged)( + _slots[2247] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2247] = nativeContext.LoadFunction("glReplacementCodeubSUN", "opengl") + ) )(code); [SupportedApiProfile("gl", ["GL_SUN_triangle_list"])] @@ -553763,8 +562884,11 @@ public static void ReplacementCodeSUN([NativeTypeName("GLubyte")] byte code) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ReplacementCodeSUN([NativeTypeName("const GLubyte *")] byte* code) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeubvSUN", "opengl") + (delegate* unmanaged)( + _slots[2248] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2248] = nativeContext.LoadFunction("glReplacementCodeubvSUN", "opengl") + ) )(code); [SupportedApiProfile("gl", ["GL_SUN_triangle_list"])] @@ -553800,8 +562924,14 @@ void IGL.ReplacementCodeuiColor3FVertex3SUN( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeuiColor3fVertex3fSUN", "opengl") + (delegate* unmanaged)( + _slots[2249] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2249] = nativeContext.LoadFunction( + "glReplacementCodeuiColor3fVertex3fSUN", + "opengl" + ) + ) )(rc, r, g, b, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -553849,8 +562979,14 @@ void IGL.ReplacementCodeuiColor3FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeuiColor3fVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[2250] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2250] = nativeContext.LoadFunction( + "glReplacementCodeuiColor3fVertex3fvSUN", + "opengl" + ) + ) )(rc, c, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -554040,11 +563176,14 @@ void IGL.ReplacementCodeuiColor4FNormal3FVertex3SUN( float, float, float, - void>) - nativeContext.LoadFunction( - "glReplacementCodeuiColor4fNormal3fVertex3fSUN", - "opengl" - ) + void>)( + _slots[2251] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2251] = nativeContext.LoadFunction( + "glReplacementCodeuiColor4fNormal3fVertex3fSUN", + "opengl" + ) + ) )(rc, r, g, b, a, nx, ny, nz, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -554118,11 +563257,14 @@ void IGL.ReplacementCodeuiColor4FNormal3FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction( - "glReplacementCodeuiColor4fNormal3fVertex3fvSUN", - "opengl" - ) + (delegate* unmanaged)( + _slots[2252] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2252] = nativeContext.LoadFunction( + "glReplacementCodeuiColor4fNormal3fVertex3fvSUN", + "opengl" + ) + ) )(rc, c, n, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -554342,8 +563484,14 @@ void IGL.ReplacementCodeuiColor4UbVertex3SUN( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeuiColor4ubVertex3fSUN", "opengl") + (delegate* unmanaged)( + _slots[2253] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2253] = nativeContext.LoadFunction( + "glReplacementCodeuiColor4ubVertex3fSUN", + "opengl" + ) + ) )(rc, r, g, b, a, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -554394,8 +563542,14 @@ void IGL.ReplacementCodeuiColor4UbVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeuiColor4ubVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[2254] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2254] = nativeContext.LoadFunction( + "glReplacementCodeuiColor4ubVertex3fvSUN", + "opengl" + ) + ) )(rc, c, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -554569,8 +563723,14 @@ void IGL.ReplacementCodeuiNormal3FVertex3SUN( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeuiNormal3fVertex3fSUN", "opengl") + (delegate* unmanaged)( + _slots[2255] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2255] = nativeContext.LoadFunction( + "glReplacementCodeuiNormal3fVertex3fSUN", + "opengl" + ) + ) )(rc, nx, ny, nz, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -554618,8 +563778,14 @@ void IGL.ReplacementCodeuiNormal3FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeuiNormal3fVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[2256] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2256] = nativeContext.LoadFunction( + "glReplacementCodeuiNormal3fVertex3fvSUN", + "opengl" + ) + ) )(rc, n, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -554785,8 +563951,11 @@ public static void ReplacementCodeuiNormal3FVertex3SUN( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ReplacementCodeSUN([NativeTypeName("GLuint")] uint code) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeuiSUN", "opengl") + (delegate* unmanaged)( + _slots[2257] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2257] = nativeContext.LoadFunction("glReplacementCodeuiSUN", "opengl") + ) )(code); [SupportedApiProfile("gl", ["GL_SUN_triangle_list"])] @@ -554839,11 +564008,14 @@ void IGL.ReplacementCodeuiTexCoord2FColor4FNormal3FVertex3SUN( float, float, float, - void>) - nativeContext.LoadFunction( - "glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN", - "opengl" - ) + void>)( + _slots[2258] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2258] = nativeContext.LoadFunction( + "glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN", + "opengl" + ) + ) )(rc, s, t, r, g, b, a, nx, ny, nz, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -554962,11 +564134,14 @@ void IGL.ReplacementCodeuiTexCoord2FColor4FNormal3FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction( - "glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN", - "opengl" - ) + (delegate* unmanaged)( + _slots[2259] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2259] = nativeContext.LoadFunction( + "glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN", + "opengl" + ) + ) )(rc, tc, c, n, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -555243,11 +564418,14 @@ void IGL.ReplacementCodeuiTexCoord2FNormal3FVertex3SUN( float, float, float, - void>) - nativeContext.LoadFunction( - "glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN", - "opengl" - ) + void>)( + _slots[2260] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2260] = nativeContext.LoadFunction( + "glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN", + "opengl" + ) + ) )(rc, s, t, nx, ny, nz, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -555313,11 +564491,14 @@ void IGL.ReplacementCodeuiTexCoord2FNormal3FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction( - "glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN", - "opengl" - ) + (delegate* unmanaged)( + _slots[2261] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2261] = nativeContext.LoadFunction( + "glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN", + "opengl" + ) + ) )(rc, tc, n, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -555535,8 +564716,14 @@ void IGL.ReplacementCodeuiTexCoord2FVertex3SUN( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeuiTexCoord2fVertex3fSUN", "opengl") + (delegate* unmanaged)( + _slots[2262] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2262] = nativeContext.LoadFunction( + "glReplacementCodeuiTexCoord2fVertex3fSUN", + "opengl" + ) + ) )(rc, s, t, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -555581,8 +564768,14 @@ void IGL.ReplacementCodeuiTexCoord2FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeuiTexCoord2fVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[2263] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2263] = nativeContext.LoadFunction( + "glReplacementCodeuiTexCoord2fVertex3fvSUN", + "opengl" + ) + ) )(rc, tc, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -555757,8 +564950,14 @@ void IGL.ReplacementCodeuiVertex3SUN( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeuiVertex3fSUN", "opengl") + (delegate* unmanaged)( + _slots[2264] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2264] = nativeContext.LoadFunction( + "glReplacementCodeuiVertex3fSUN", + "opengl" + ) + ) )(rc, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -555796,8 +564995,14 @@ void IGL.ReplacementCodeuiVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeuiVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[2265] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2265] = nativeContext.LoadFunction( + "glReplacementCodeuiVertex3fvSUN", + "opengl" + ) + ) )(rc, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -555940,8 +565145,11 @@ public static void ReplacementCodeuiVertex3SUN( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ReplacementCodeSUN([NativeTypeName("const GLuint *")] uint* code) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeuivSUN", "opengl") + (delegate* unmanaged)( + _slots[2266] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2266] = nativeContext.LoadFunction("glReplacementCodeuivSUN", "opengl") + ) )(code); [SupportedApiProfile("gl", ["GL_SUN_triangle_list"])] @@ -556002,8 +565210,11 @@ public static void ReplacementCodeSUN( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ReplacementCodeSUN([NativeTypeName("GLushort")] ushort code) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeusSUN", "opengl") + (delegate* unmanaged)( + _slots[2267] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2267] = nativeContext.LoadFunction("glReplacementCodeusSUN", "opengl") + ) )(code); [SupportedApiProfile("gl", ["GL_SUN_triangle_list"])] @@ -556015,8 +565226,11 @@ public static void ReplacementCodeSUN([NativeTypeName("GLushort")] ushort code) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ReplacementCodeSUN([NativeTypeName("const GLushort *")] ushort* code) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glReplacementCodeusvSUN", "opengl") + (delegate* unmanaged)( + _slots[2268] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2268] = nativeContext.LoadFunction("glReplacementCodeusvSUN", "opengl") + ) )(code); [SupportedApiProfile("gl", ["GL_SUN_triangle_list"])] @@ -556047,8 +565261,14 @@ void IGL.RequestResidentProgramNV( [NativeTypeName("const GLuint *")] uint* programs ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRequestResidentProgramsNV", "opengl") + (delegate* unmanaged)( + _slots[2269] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2269] = nativeContext.LoadFunction( + "glRequestResidentProgramsNV", + "opengl" + ) + ) )(n, programs); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -556093,9 +565313,13 @@ public static void RequestResidentProgramNV([NativeTypeName("const GLuint *")] u [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ResetHistogram([NativeTypeName("GLenum")] uint target) => - ((delegate* unmanaged)nativeContext.LoadFunction("glResetHistogram", "opengl"))( - target - ); + ( + (delegate* unmanaged)( + _slots[2270] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2270] = nativeContext.LoadFunction("glResetHistogram", "opengl") + ) + )(target); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] [NativeFunction("opengl", EntryPoint = "glResetHistogram")] @@ -556119,8 +565343,11 @@ public static void ResetHistogram( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ResetHistogramEXT([NativeTypeName("GLenum")] uint target) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glResetHistogramEXT", "opengl") + (delegate* unmanaged)( + _slots[2271] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2271] = nativeContext.LoadFunction("glResetHistogramEXT", "opengl") + ) )(target); [SupportedApiProfile("gl", ["GL_EXT_histogram"])] @@ -556148,8 +565375,14 @@ void IGL.ResetMemoryObjectParameterNV( [NativeTypeName("GLenum")] uint pname ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glResetMemoryObjectParameterNV", "opengl") + (delegate* unmanaged)( + _slots[2272] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2272] = nativeContext.LoadFunction( + "glResetMemoryObjectParameterNV", + "opengl" + ) + ) )(memory, pname); [SupportedApiProfile("gl", ["GL_NV_memory_attachment"])] @@ -556164,9 +565397,13 @@ public static void ResetMemoryObjectParameterNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ResetMinmax([NativeTypeName("GLenum")] uint target) => - ((delegate* unmanaged)nativeContext.LoadFunction("glResetMinmax", "opengl"))( - target - ); + ( + (delegate* unmanaged)( + _slots[2273] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2273] = nativeContext.LoadFunction("glResetMinmax", "opengl") + ) + )(target); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] [NativeFunction("opengl", EntryPoint = "glResetMinmax")] @@ -556189,9 +565426,13 @@ public static void ResetMinmax( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ResetMinmaxEXT([NativeTypeName("GLenum")] uint target) => - ((delegate* unmanaged)nativeContext.LoadFunction("glResetMinmaxEXT", "opengl"))( - target - ); + ( + (delegate* unmanaged)( + _slots[2274] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2274] = nativeContext.LoadFunction("glResetMinmaxEXT", "opengl") + ) + )(target); [SupportedApiProfile("gl", ["GL_EXT_histogram"])] [NativeFunction("opengl", EntryPoint = "glResetMinmaxEXT")] @@ -556214,7 +565455,13 @@ public static void ResetMinmaxEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ResizeBuffersMESA() => - ((delegate* unmanaged)nativeContext.LoadFunction("glResizeBuffersMESA", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[2275] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2275] = nativeContext.LoadFunction("glResizeBuffersMESA", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_MESA_resize_buffers"])] [NativeFunction("opengl", EntryPoint = "glResizeBuffersMESA")] @@ -556224,8 +565471,11 @@ void IGL.ResizeBuffersMESA() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ResolveDepthValuesNV() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glResolveDepthValuesNV", "opengl") + (delegate* unmanaged)( + _slots[2276] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2276] = nativeContext.LoadFunction("glResolveDepthValuesNV", "opengl") + ) )(); [SupportedApiProfile("gl", ["GL_NV_sample_locations"])] @@ -556238,8 +565488,14 @@ void IGL.ResolveDepthValuesNV() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ResolveMultisampleFramebufferApple() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glResolveMultisampleFramebufferAPPLE", "opengl") + (delegate* unmanaged)( + _slots[2277] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2277] = nativeContext.LoadFunction( + "glResolveMultisampleFramebufferAPPLE", + "opengl" + ) + ) )(); [SupportedApiProfile("gles2", ["GL_APPLE_framebuffer_multisample"])] @@ -556252,8 +565508,14 @@ public static void ResolveMultisampleFramebufferApple() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ResumeTransformFeedback() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glResumeTransformFeedback", "opengl") + (delegate* unmanaged)( + _slots[2278] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2278] = nativeContext.LoadFunction( + "glResumeTransformFeedback", + "opengl" + ) + ) )(); [SupportedApiProfile( @@ -556291,8 +565553,14 @@ void IGL.ResumeTransformFeedback() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ResumeTransformFeedbackNV() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glResumeTransformFeedbackNV", "opengl") + (delegate* unmanaged)( + _slots[2279] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2279] = nativeContext.LoadFunction( + "glResumeTransformFeedbackNV", + "opengl" + ) + ) )(); [SupportedApiProfile("gl", ["GL_NV_transform_feedback2"])] @@ -556308,8 +565576,11 @@ void IGL.Rotate( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRotated", "opengl") + (delegate* unmanaged)( + _slots[2280] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2280] = nativeContext.LoadFunction("glRotated", "opengl") + ) )(angle, x, y, z); [SupportedApiProfile( @@ -556354,8 +565625,11 @@ void IGL.Rotate( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRotatef", "opengl") + (delegate* unmanaged)( + _slots[2281] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2281] = nativeContext.LoadFunction("glRotatef", "opengl") + ) )(angle, x, y, z); [SupportedApiProfile( @@ -556401,8 +565675,11 @@ void IGL.Rotatex( [NativeTypeName("GLfixed")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRotatex", "opengl") + (delegate* unmanaged)( + _slots[2282] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2282] = nativeContext.LoadFunction("glRotatex", "opengl") + ) )(angle, x, y, z); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -556423,8 +565700,11 @@ void IGL.RotatexOES( [NativeTypeName("GLfixed")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glRotatexOES", "opengl") + (delegate* unmanaged)( + _slots[2283] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2283] = nativeContext.LoadFunction("glRotatexOES", "opengl") + ) )(angle, x, y, z); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -556444,8 +565724,11 @@ void IGL.SampleCoverage( [NativeTypeName("GLboolean")] uint invert ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSampleCoverage", "opengl") + (delegate* unmanaged)( + _slots[2284] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2284] = nativeContext.LoadFunction("glSampleCoverage", "opengl") + ) )(value, invert); [SupportedApiProfile( @@ -556575,8 +565858,11 @@ void IGL.SampleCoverageARB( [NativeTypeName("GLboolean")] uint invert ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSampleCoverageARB", "opengl") + (delegate* unmanaged)( + _slots[2285] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2285] = nativeContext.LoadFunction("glSampleCoverageARB", "opengl") + ) )(value, invert); [SupportedApiProfile("gl", ["GL_ARB_multisample"])] @@ -556608,8 +565894,11 @@ void IGL.SampleCoveragex( [NativeTypeName("GLboolean")] uint invert ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSampleCoveragex", "opengl") + (delegate* unmanaged)( + _slots[2286] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2286] = nativeContext.LoadFunction("glSampleCoveragex", "opengl") + ) )(value, invert); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -556641,8 +565930,11 @@ void IGL.SampleCoveragexOES( [NativeTypeName("GLboolean")] uint invert ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSampleCoveragexOES", "opengl") + (delegate* unmanaged)( + _slots[2287] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2287] = nativeContext.LoadFunction("glSampleCoveragexOES", "opengl") + ) )(value, invert); [SupportedApiProfile("gles1", ["GL_OES_fixed_point"])] @@ -556675,8 +565967,11 @@ void IGL.SampleMapATI( [NativeTypeName("GLenum")] uint swizzle ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSampleMapATI", "opengl") + (delegate* unmanaged)( + _slots[2288] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2288] = nativeContext.LoadFunction("glSampleMapATI", "opengl") + ) )(dst, interp, swizzle); [SupportedApiProfile("gl", ["GL_ATI_fragment_shader"])] @@ -556711,8 +566006,11 @@ void IGL.SampleMaskEXT( [NativeTypeName("GLboolean")] uint invert ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSampleMaskEXT", "opengl") + (delegate* unmanaged)( + _slots[2289] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2289] = nativeContext.LoadFunction("glSampleMaskEXT", "opengl") + ) )(value, invert); [SupportedApiProfile("gl", ["GL_EXT_multisample"])] @@ -556744,8 +566042,11 @@ void IGL.SampleMask( [NativeTypeName("GLbitfield")] uint mask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSampleMaski", "opengl") + (delegate* unmanaged)( + _slots[2290] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2290] = nativeContext.LoadFunction("glSampleMaski", "opengl") + ) )(maskNumber, mask); [SupportedApiProfile( @@ -556793,8 +566094,11 @@ void IGL.SampleMaskIndexedNV( [NativeTypeName("GLbitfield")] uint mask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSampleMaskIndexedNV", "opengl") + (delegate* unmanaged)( + _slots[2291] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2291] = nativeContext.LoadFunction("glSampleMaskIndexedNV", "opengl") + ) )(index, mask); [SupportedApiProfile("gl", ["GL_NV_explicit_multisample"])] @@ -556811,8 +566115,11 @@ void IGL.SampleMaskSGIS( [NativeTypeName("GLboolean")] uint invert ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSampleMaskSGIS", "opengl") + (delegate* unmanaged)( + _slots[2292] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2292] = nativeContext.LoadFunction("glSampleMaskSGIS", "opengl") + ) )(value, invert); [SupportedApiProfile("gl", ["GL_SGIS_multisample"])] @@ -556841,8 +566148,11 @@ public static void SampleMaskSGIS( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SamplePatternEXT([NativeTypeName("GLenum")] uint pattern) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSamplePatternEXT", "opengl") + (delegate* unmanaged)( + _slots[2293] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2293] = nativeContext.LoadFunction("glSamplePatternEXT", "opengl") + ) )(pattern); [SupportedApiProfile("gl", ["GL_EXT_multisample"])] @@ -556867,8 +566177,11 @@ public static void SamplePatternEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SamplePatternSGIS([NativeTypeName("GLenum")] uint pattern) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSamplePatternSGIS", "opengl") + (delegate* unmanaged)( + _slots[2294] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2294] = nativeContext.LoadFunction("glSamplePatternSGIS", "opengl") + ) )(pattern); [SupportedApiProfile("gl", ["GL_SGIS_multisample"])] @@ -556897,8 +566210,11 @@ void IGL.SamplerParameter( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSamplerParameterf", "opengl") + (delegate* unmanaged)( + _slots[2295] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2295] = nativeContext.LoadFunction("glSamplerParameterf", "opengl") + ) )(sampler, pname, param2); [SupportedApiProfile( @@ -557002,8 +566318,11 @@ void IGL.SamplerParameter( [NativeTypeName("const GLfloat *")] float* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSamplerParameterfv", "opengl") + (delegate* unmanaged)( + _slots[2296] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2296] = nativeContext.LoadFunction("glSamplerParameterfv", "opengl") + ) )(sampler, pname, param2); [SupportedApiProfile( @@ -557113,8 +566432,11 @@ void IGL.SamplerParameter( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSamplerParameteri", "opengl") + (delegate* unmanaged)( + _slots[2297] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2297] = nativeContext.LoadFunction("glSamplerParameteri", "opengl") + ) )(sampler, pname, param2); [SupportedApiProfile( @@ -557218,8 +566540,11 @@ void IGL.SamplerParameterI( [NativeTypeName("const GLint *")] int* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSamplerParameterIiv", "opengl") + (delegate* unmanaged)( + _slots[2298] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2298] = nativeContext.LoadFunction("glSamplerParameterIiv", "opengl") + ) )(sampler, pname, param2); [SupportedApiProfile( @@ -557319,8 +566644,14 @@ void IGL.SamplerParameterIEXT( [NativeTypeName("const GLint *")] int* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSamplerParameterIivEXT", "opengl") + (delegate* unmanaged)( + _slots[2299] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2299] = nativeContext.LoadFunction( + "glSamplerParameterIivEXT", + "opengl" + ) + ) )(sampler, pname, param2); [SupportedApiProfile("gles2", ["GL_EXT_texture_border_clamp"])] @@ -557362,8 +566693,14 @@ void IGL.SamplerParameterIOES( [NativeTypeName("const GLint *")] int* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSamplerParameterIivOES", "opengl") + (delegate* unmanaged)( + _slots[2300] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2300] = nativeContext.LoadFunction( + "glSamplerParameterIivOES", + "opengl" + ) + ) )(sampler, pname, param2); [SupportedApiProfile("gles2", ["GL_OES_texture_border_clamp"])] @@ -557405,8 +566742,11 @@ void IGL.SamplerParameterI( [NativeTypeName("const GLuint *")] uint* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSamplerParameterIuiv", "opengl") + (delegate* unmanaged)( + _slots[2301] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2301] = nativeContext.LoadFunction("glSamplerParameterIuiv", "opengl") + ) )(sampler, pname, param2); [SupportedApiProfile( @@ -557506,8 +566846,14 @@ void IGL.SamplerParameterIEXT( [NativeTypeName("const GLuint *")] uint* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSamplerParameterIuivEXT", "opengl") + (delegate* unmanaged)( + _slots[2302] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2302] = nativeContext.LoadFunction( + "glSamplerParameterIuivEXT", + "opengl" + ) + ) )(sampler, pname, param2); [SupportedApiProfile("gles2", ["GL_EXT_texture_border_clamp"])] @@ -557549,8 +566895,14 @@ void IGL.SamplerParameterIOES( [NativeTypeName("const GLuint *")] uint* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSamplerParameterIuivOES", "opengl") + (delegate* unmanaged)( + _slots[2303] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2303] = nativeContext.LoadFunction( + "glSamplerParameterIuivOES", + "opengl" + ) + ) )(sampler, pname, param2); [SupportedApiProfile("gles2", ["GL_OES_texture_border_clamp"])] @@ -557592,8 +566944,11 @@ void IGL.SamplerParameter( [NativeTypeName("const GLint *")] int* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSamplerParameteriv", "opengl") + (delegate* unmanaged)( + _slots[2304] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2304] = nativeContext.LoadFunction("glSamplerParameteriv", "opengl") + ) )(sampler, pname, param2); [SupportedApiProfile( @@ -557703,8 +567058,11 @@ void IGL.Scale( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScaled", "opengl") + (delegate* unmanaged)( + _slots[2305] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2305] = nativeContext.LoadFunction("glScaled", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -557747,8 +567105,11 @@ void IGL.Scale( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScalef", "opengl") + (delegate* unmanaged)( + _slots[2306] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2306] = nativeContext.LoadFunction("glScalef", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -557792,8 +567153,11 @@ void IGL.Scalex( [NativeTypeName("GLfixed")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScalex", "opengl") + (delegate* unmanaged)( + _slots[2307] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2307] = nativeContext.LoadFunction("glScalex", "opengl") + ) )(x, y, z); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -557812,8 +567176,11 @@ void IGL.ScalexOES( [NativeTypeName("GLfixed")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScalexOES", "opengl") + (delegate* unmanaged)( + _slots[2308] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2308] = nativeContext.LoadFunction("glScalexOES", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -557834,8 +567201,11 @@ void IGL.Scissor( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScissor", "opengl") + (delegate* unmanaged)( + _slots[2309] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2309] = nativeContext.LoadFunction("glScissor", "opengl") + ) )(x, y, width, height); [SupportedApiProfile( @@ -557910,8 +567280,11 @@ void IGL.ScissorArray( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScissorArrayv", "opengl") + (delegate* unmanaged)( + _slots[2310] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2310] = nativeContext.LoadFunction("glScissorArrayv", "opengl") + ) )(first, count, v); [SupportedApiProfile( @@ -558043,8 +567416,11 @@ void IGL.ScissorArrayNV( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScissorArrayvNV", "opengl") + (delegate* unmanaged)( + _slots[2311] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2311] = nativeContext.LoadFunction("glScissorArrayvNV", "opengl") + ) )(first, count, v); [SupportedApiProfile("gles2", ["GL_NV_viewport_array"])] @@ -558116,8 +567492,11 @@ void IGL.ScissorArrayOES( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScissorArrayvOES", "opengl") + (delegate* unmanaged)( + _slots[2312] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2312] = nativeContext.LoadFunction("glScissorArrayvOES", "opengl") + ) )(first, count, v); [SupportedApiProfile("gles2", ["GL_OES_viewport_array"])] @@ -558159,8 +567538,14 @@ void IGL.ScissorExclusiveArrayNV( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScissorExclusiveArrayvNV", "opengl") + (delegate* unmanaged)( + _slots[2313] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2313] = nativeContext.LoadFunction( + "glScissorExclusiveArrayvNV", + "opengl" + ) + ) )(first, count, v); [SupportedApiProfile("gl", ["GL_NV_scissor_exclusive"])] @@ -558224,8 +567609,11 @@ void IGL.ScissorExclusiveNV( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScissorExclusiveNV", "opengl") + (delegate* unmanaged)( + _slots[2314] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2314] = nativeContext.LoadFunction("glScissorExclusiveNV", "opengl") + ) )(x, y, width, height); [SupportedApiProfile("gl", ["GL_NV_scissor_exclusive"])] @@ -558249,8 +567637,11 @@ void IGL.ScissorIndexed( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScissorIndexed", "opengl") + (delegate* unmanaged)( + _slots[2315] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2315] = nativeContext.LoadFunction("glScissorIndexed", "opengl") + ) )(index, left, bottom, width, height); [SupportedApiProfile( @@ -558298,8 +567689,11 @@ void IGL.ScissorIndexedNV( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScissorIndexedNV", "opengl") + (delegate* unmanaged)( + _slots[2316] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2316] = nativeContext.LoadFunction("glScissorIndexedNV", "opengl") + ) )(index, left, bottom, width, height); [SupportedApiProfile("gles2", ["GL_NV_viewport_array"])] @@ -558322,8 +567716,11 @@ void IGL.ScissorIndexedOES( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScissorIndexedOES", "opengl") + (delegate* unmanaged)( + _slots[2317] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2317] = nativeContext.LoadFunction("glScissorIndexedOES", "opengl") + ) )(index, left, bottom, width, height); [SupportedApiProfile("gles2", ["GL_OES_viewport_array"])] @@ -558343,8 +567740,11 @@ void IGL.ScissorIndexed( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScissorIndexedv", "opengl") + (delegate* unmanaged)( + _slots[2318] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2318] = nativeContext.LoadFunction("glScissorIndexedv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -558432,8 +567832,11 @@ void IGL.ScissorIndexedNV( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScissorIndexedvNV", "opengl") + (delegate* unmanaged)( + _slots[2319] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2319] = nativeContext.LoadFunction("glScissorIndexedvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gles2", ["GL_NV_viewport_array"])] @@ -558471,8 +567874,11 @@ void IGL.ScissorIndexedOES( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glScissorIndexedvOES", "opengl") + (delegate* unmanaged)( + _slots[2320] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2320] = nativeContext.LoadFunction("glScissorIndexedvOES", "opengl") + ) )(index, v); [SupportedApiProfile("gles2", ["GL_OES_viewport_array"])] @@ -558511,8 +567917,11 @@ void IGL.SecondaryColor3( [NativeTypeName("GLbyte")] sbyte blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3b", "opengl") + (delegate* unmanaged)( + _slots[2321] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2321] = nativeContext.LoadFunction("glSecondaryColor3b", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -558551,8 +567960,11 @@ void IGL.SecondaryColor3EXT( [NativeTypeName("GLbyte")] sbyte blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3bEXT", "opengl") + (delegate* unmanaged)( + _slots[2322] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2322] = nativeContext.LoadFunction("glSecondaryColor3bEXT", "opengl") + ) )(red, green, blue); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -558567,8 +567979,11 @@ public static void SecondaryColor3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3([NativeTypeName("const GLbyte *")] sbyte* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3bv", "opengl") + (delegate* unmanaged)( + _slots[2323] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2323] = nativeContext.LoadFunction("glSecondaryColor3bv", "opengl") + ) )(v); [SupportedApiProfile( @@ -558636,8 +568051,11 @@ public static void SecondaryColor3([NativeTypeName("const GLbyte *")] Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3EXT([NativeTypeName("const GLbyte *")] sbyte* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3bvEXT", "opengl") + (delegate* unmanaged)( + _slots[2324] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2324] = nativeContext.LoadFunction("glSecondaryColor3bvEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -558669,8 +568087,11 @@ void IGL.SecondaryColor3( [NativeTypeName("GLdouble")] double blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3d", "opengl") + (delegate* unmanaged)( + _slots[2325] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2325] = nativeContext.LoadFunction("glSecondaryColor3d", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -558709,8 +568130,11 @@ void IGL.SecondaryColor3EXT( [NativeTypeName("GLdouble")] double blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3dEXT", "opengl") + (delegate* unmanaged)( + _slots[2326] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2326] = nativeContext.LoadFunction("glSecondaryColor3dEXT", "opengl") + ) )(red, green, blue); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -558725,8 +568149,11 @@ public static void SecondaryColor3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3([NativeTypeName("const GLdouble *")] double* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3dv", "opengl") + (delegate* unmanaged)( + _slots[2327] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2327] = nativeContext.LoadFunction("glSecondaryColor3dv", "opengl") + ) )(v); [SupportedApiProfile( @@ -558794,8 +568221,11 @@ public static void SecondaryColor3([NativeTypeName("const GLdouble *")] Ref ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2328] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2328] = nativeContext.LoadFunction("glSecondaryColor3dvEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -558827,8 +568257,11 @@ void IGL.SecondaryColor3( [NativeTypeName("GLfloat")] float blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3f", "opengl") + (delegate* unmanaged)( + _slots[2329] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2329] = nativeContext.LoadFunction("glSecondaryColor3f", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -558867,8 +568300,11 @@ void IGL.SecondaryColor3EXT( [NativeTypeName("GLfloat")] float blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3fEXT", "opengl") + (delegate* unmanaged)( + _slots[2330] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2330] = nativeContext.LoadFunction("glSecondaryColor3fEXT", "opengl") + ) )(red, green, blue); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -558883,8 +568319,11 @@ public static void SecondaryColor3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3([NativeTypeName("const GLfloat *")] float* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3fv", "opengl") + (delegate* unmanaged)( + _slots[2331] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2331] = nativeContext.LoadFunction("glSecondaryColor3fv", "opengl") + ) )(v); [SupportedApiProfile( @@ -558952,8 +568391,11 @@ public static void SecondaryColor3([NativeTypeName("const GLfloat *")] Ref ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2332] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2332] = nativeContext.LoadFunction("glSecondaryColor3fvEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -558985,8 +568427,11 @@ void IGL.SecondaryColor3NV( [NativeTypeName("GLhalfNV")] ushort blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3hNV", "opengl") + (delegate* unmanaged)( + _slots[2333] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2333] = nativeContext.LoadFunction("glSecondaryColor3hNV", "opengl") + ) )(red, green, blue); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -559001,8 +568446,11 @@ public static void SecondaryColor3NV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3NV([NativeTypeName("const GLhalfNV *")] ushort* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3hvNV", "opengl") + (delegate* unmanaged)( + _slots[2334] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2334] = nativeContext.LoadFunction("glSecondaryColor3hvNV", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -559034,8 +568482,11 @@ void IGL.SecondaryColor3( [NativeTypeName("GLint")] int blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3i", "opengl") + (delegate* unmanaged)( + _slots[2335] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2335] = nativeContext.LoadFunction("glSecondaryColor3i", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -559074,8 +568525,11 @@ void IGL.SecondaryColor3EXT( [NativeTypeName("GLint")] int blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3iEXT", "opengl") + (delegate* unmanaged)( + _slots[2336] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2336] = nativeContext.LoadFunction("glSecondaryColor3iEXT", "opengl") + ) )(red, green, blue); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -559090,8 +568544,11 @@ public static void SecondaryColor3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3([NativeTypeName("const GLint *")] int* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3iv", "opengl") + (delegate* unmanaged)( + _slots[2337] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2337] = nativeContext.LoadFunction("glSecondaryColor3iv", "opengl") + ) )(v); [SupportedApiProfile( @@ -559159,8 +568616,11 @@ public static void SecondaryColor3([NativeTypeName("const GLint *")] Ref v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3EXT([NativeTypeName("const GLint *")] int* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3ivEXT", "opengl") + (delegate* unmanaged)( + _slots[2338] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2338] = nativeContext.LoadFunction("glSecondaryColor3ivEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -559192,8 +568652,11 @@ void IGL.SecondaryColor3( [NativeTypeName("GLshort")] short blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3s", "opengl") + (delegate* unmanaged)( + _slots[2339] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2339] = nativeContext.LoadFunction("glSecondaryColor3s", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -559232,8 +568695,11 @@ void IGL.SecondaryColor3EXT( [NativeTypeName("GLshort")] short blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3sEXT", "opengl") + (delegate* unmanaged)( + _slots[2340] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2340] = nativeContext.LoadFunction("glSecondaryColor3sEXT", "opengl") + ) )(red, green, blue); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -559248,8 +568714,11 @@ public static void SecondaryColor3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3([NativeTypeName("const GLshort *")] short* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3sv", "opengl") + (delegate* unmanaged)( + _slots[2341] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2341] = nativeContext.LoadFunction("glSecondaryColor3sv", "opengl") + ) )(v); [SupportedApiProfile( @@ -559317,8 +568786,11 @@ public static void SecondaryColor3([NativeTypeName("const GLshort *")] Ref ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3svEXT", "opengl") + (delegate* unmanaged)( + _slots[2342] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2342] = nativeContext.LoadFunction("glSecondaryColor3svEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -559350,8 +568822,11 @@ void IGL.SecondaryColor3( [NativeTypeName("GLubyte")] byte blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3ub", "opengl") + (delegate* unmanaged)( + _slots[2343] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2343] = nativeContext.LoadFunction("glSecondaryColor3ub", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -559390,8 +568865,11 @@ void IGL.SecondaryColor3EXT( [NativeTypeName("GLubyte")] byte blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3ubEXT", "opengl") + (delegate* unmanaged)( + _slots[2344] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2344] = nativeContext.LoadFunction("glSecondaryColor3ubEXT", "opengl") + ) )(red, green, blue); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -559406,8 +568884,11 @@ public static void SecondaryColor3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3([NativeTypeName("const GLubyte *")] byte* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3ubv", "opengl") + (delegate* unmanaged)( + _slots[2345] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2345] = nativeContext.LoadFunction("glSecondaryColor3ubv", "opengl") + ) )(v); [SupportedApiProfile( @@ -559475,8 +568956,11 @@ public static void SecondaryColor3([NativeTypeName("const GLubyte *")] Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3EXT([NativeTypeName("const GLubyte *")] byte* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3ubvEXT", "opengl") + (delegate* unmanaged)( + _slots[2346] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2346] = nativeContext.LoadFunction("glSecondaryColor3ubvEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -559508,8 +568992,11 @@ void IGL.SecondaryColor3( [NativeTypeName("GLuint")] uint blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3ui", "opengl") + (delegate* unmanaged)( + _slots[2347] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2347] = nativeContext.LoadFunction("glSecondaryColor3ui", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -559548,8 +569035,11 @@ void IGL.SecondaryColor3EXT( [NativeTypeName("GLuint")] uint blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3uiEXT", "opengl") + (delegate* unmanaged)( + _slots[2348] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2348] = nativeContext.LoadFunction("glSecondaryColor3uiEXT", "opengl") + ) )(red, green, blue); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -559564,8 +569054,11 @@ public static void SecondaryColor3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3([NativeTypeName("const GLuint *")] uint* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3uiv", "opengl") + (delegate* unmanaged)( + _slots[2349] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2349] = nativeContext.LoadFunction("glSecondaryColor3uiv", "opengl") + ) )(v); [SupportedApiProfile( @@ -559633,8 +569126,11 @@ public static void SecondaryColor3([NativeTypeName("const GLuint *")] Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3EXT([NativeTypeName("const GLuint *")] uint* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3uivEXT", "opengl") + (delegate* unmanaged)( + _slots[2350] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2350] = nativeContext.LoadFunction("glSecondaryColor3uivEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -559666,8 +569162,11 @@ void IGL.SecondaryColor3( [NativeTypeName("GLushort")] ushort blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3us", "opengl") + (delegate* unmanaged)( + _slots[2351] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2351] = nativeContext.LoadFunction("glSecondaryColor3us", "opengl") + ) )(red, green, blue); [SupportedApiProfile( @@ -559706,8 +569205,11 @@ void IGL.SecondaryColor3EXT( [NativeTypeName("GLushort")] ushort blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3usEXT", "opengl") + (delegate* unmanaged)( + _slots[2352] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2352] = nativeContext.LoadFunction("glSecondaryColor3usEXT", "opengl") + ) )(red, green, blue); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -559722,8 +569224,11 @@ public static void SecondaryColor3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SecondaryColor3([NativeTypeName("const GLushort *")] ushort* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3usv", "opengl") + (delegate* unmanaged)( + _slots[2353] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2353] = nativeContext.LoadFunction("glSecondaryColor3usv", "opengl") + ) )(v); [SupportedApiProfile( @@ -559791,8 +569296,11 @@ public static void SecondaryColor3([NativeTypeName("const GLushort *")] Ref ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColor3usvEXT", "opengl") + (delegate* unmanaged)( + _slots[2354] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2354] = nativeContext.LoadFunction("glSecondaryColor3usvEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -559824,8 +569332,14 @@ void IGL.SecondaryColorFormatNV( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColorFormatNV", "opengl") + (delegate* unmanaged)( + _slots[2355] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2355] = nativeContext.LoadFunction( + "glSecondaryColorFormatNV", + "opengl" + ) + ) )(size, type, stride); [SupportedApiProfile("gl", ["GL_NV_vertex_buffer_unified_memory"])] @@ -559862,8 +569376,11 @@ void IGL.SecondaryColorP3( [NativeTypeName("GLuint")] uint color ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColorP3ui", "opengl") + (delegate* unmanaged)( + _slots[2356] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2356] = nativeContext.LoadFunction("glSecondaryColorP3ui", "opengl") + ) )(type, color); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -559895,8 +569412,11 @@ void IGL.SecondaryColorP3Uiv( [NativeTypeName("const GLuint *")] uint* color ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColorP3uiv", "opengl") + (delegate* unmanaged)( + _slots[2357] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2357] = nativeContext.LoadFunction("glSecondaryColorP3uiv", "opengl") + ) )(type, color); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -559951,8 +569471,11 @@ void IGL.SecondaryColorPointer( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColorPointer", "opengl") + (delegate* unmanaged)( + _slots[2358] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2358] = nativeContext.LoadFunction("glSecondaryColorPointer", "opengl") + ) )(size, type, stride, pointer); [SupportedApiProfile( @@ -560038,8 +569561,14 @@ void IGL.SecondaryColorPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColorPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[2359] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2359] = nativeContext.LoadFunction( + "glSecondaryColorPointerEXT", + "opengl" + ) + ) )(size, type, stride, pointer); [SupportedApiProfile("gl", ["GL_EXT_secondary_color"])] @@ -560086,8 +569615,14 @@ void IGL.SecondaryColorPointerListIBM( [NativeTypeName("GLint")] int ptrstride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSecondaryColorPointerListIBM", "opengl") + (delegate* unmanaged)( + _slots[2360] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2360] = nativeContext.LoadFunction( + "glSecondaryColorPointerListIBM", + "opengl" + ) + ) )(size, type, stride, pointer, ptrstride); [SupportedApiProfile("gl", ["GL_IBM_vertex_array_lists"])] @@ -560168,8 +569703,11 @@ void IGL.SelectBuffer( [NativeTypeName("GLuint *")] uint* buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSelectBuffer", "opengl") + (delegate* unmanaged)( + _slots[2361] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2361] = nativeContext.LoadFunction("glSelectBuffer", "opengl") + ) )(size, buffer); [SupportedApiProfile( @@ -560296,8 +569834,14 @@ void IGL.SelectPerfMonitorCountersAMD( [NativeTypeName("GLuint *")] uint* counterList ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSelectPerfMonitorCountersAMD", "opengl") + (delegate* unmanaged)( + _slots[2362] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2362] = nativeContext.LoadFunction( + "glSelectPerfMonitorCountersAMD", + "opengl" + ) + ) )(monitor, enable, group, numCounters, counterList); [SupportedApiProfile("gl", ["GL_AMD_performance_monitor"])] @@ -560385,8 +569929,14 @@ void IGL.SemaphoreParameterNV( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSemaphoreParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[2363] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2363] = nativeContext.LoadFunction( + "glSemaphoreParameterivNV", + "opengl" + ) + ) )(semaphore, pname, @params); [SupportedApiProfile("gl", ["GL_NV_timeline_semaphore"])] @@ -560430,8 +569980,14 @@ void IGL.SemaphoreParameterEXT( [NativeTypeName("const GLuint64 *")] ulong* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSemaphoreParameterui64vEXT", "opengl") + (delegate* unmanaged)( + _slots[2364] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2364] = nativeContext.LoadFunction( + "glSemaphoreParameterui64vEXT", + "opengl" + ) + ) )(semaphore, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_semaphore"])] @@ -560480,8 +570036,11 @@ void IGL.SeparableFilter2D( [NativeTypeName("const void *")] void* column ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSeparableFilter2D", "opengl") + (delegate* unmanaged)( + _slots[2365] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2365] = nativeContext.LoadFunction("glSeparableFilter2D", "opengl") + ) )(target, internalformat, width, height, format, type, row, column); [SupportedApiProfile("gl", ["GL_ARB_imaging"])] @@ -560573,8 +570132,11 @@ void IGL.SeparableFilter2DEXT( [NativeTypeName("const void *")] void* column ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSeparableFilter2DEXT", "opengl") + (delegate* unmanaged)( + _slots[2366] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2366] = nativeContext.LoadFunction("glSeparableFilter2DEXT", "opengl") + ) )(target, internalformat, width, height, format, type, row, column); [SupportedApiProfile("gl", ["GL_EXT_convolution"])] @@ -560656,9 +570218,13 @@ public static void SeparableFilter2DEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SetFenceApple([NativeTypeName("GLuint")] uint fence) => - ((delegate* unmanaged)nativeContext.LoadFunction("glSetFenceAPPLE", "opengl"))( - fence - ); + ( + (delegate* unmanaged)( + _slots[2367] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2367] = nativeContext.LoadFunction("glSetFenceAPPLE", "opengl") + ) + )(fence); [SupportedApiProfile("gl", ["GL_APPLE_fence"])] [NativeFunction("opengl", EntryPoint = "glSetFenceAPPLE")] @@ -560672,8 +570238,11 @@ void IGL.SetFenceNV( [NativeTypeName("GLenum")] uint condition ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSetFenceNV", "opengl") + (delegate* unmanaged)( + _slots[2368] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2368] = nativeContext.LoadFunction("glSetFenceNV", "opengl") + ) )(fence, condition); [SupportedApiProfile("gl", ["GL_NV_fence"])] @@ -560709,8 +570278,14 @@ void IGL.SetFragmentShaderConstantATI( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSetFragmentShaderConstantATI", "opengl") + (delegate* unmanaged)( + _slots[2369] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2369] = nativeContext.LoadFunction( + "glSetFragmentShaderConstantATI", + "opengl" + ) + ) )(dst, value); [SupportedApiProfile("gl", ["GL_ATI_fragment_shader"])] @@ -560749,8 +570324,11 @@ void IGL.SetInvariantEXT( [NativeTypeName("const void *")] void* addr ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSetInvariantEXT", "opengl") + (delegate* unmanaged)( + _slots[2370] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2370] = nativeContext.LoadFunction("glSetInvariantEXT", "opengl") + ) )(id, type, addr); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -560792,8 +570370,11 @@ void IGL.SetLocalConstantEXT( [NativeTypeName("const void *")] void* addr ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSetLocalConstantEXT", "opengl") + (delegate* unmanaged)( + _slots[2371] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2371] = nativeContext.LoadFunction("glSetLocalConstantEXT", "opengl") + ) )(id, type, addr); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -560835,8 +570416,11 @@ void IGL.SetMultisampleAMD( [NativeTypeName("const GLfloat *")] float* val ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSetMultisamplefvAMD", "opengl") + (delegate* unmanaged)( + _slots[2372] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2372] = nativeContext.LoadFunction("glSetMultisamplefvAMD", "opengl") + ) )(pname, index, val); [SupportedApiProfile("gl", ["GL_AMD_sample_positions"])] @@ -560873,9 +570457,13 @@ public static void SetMultisampleAMD( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ShadeModel([NativeTypeName("GLenum")] uint mode) => - ((delegate* unmanaged)nativeContext.LoadFunction("glShadeModel", "opengl"))( - mode - ); + ( + (delegate* unmanaged)( + _slots[2373] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2373] = nativeContext.LoadFunction("glShadeModel", "opengl") + ) + )(mode); [SupportedApiProfile( "gl", @@ -560954,8 +570542,11 @@ void IGL.ShaderBinary( [NativeTypeName("GLsizei")] uint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShaderBinary", "opengl") + (delegate* unmanaged)( + _slots[2374] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2374] = nativeContext.LoadFunction("glShaderBinary", "opengl") + ) )(count, shaders, binaryFormat, binary, length); [SupportedApiProfile( @@ -561070,8 +570661,11 @@ void IGL.ShaderOp1EXT( [NativeTypeName("GLuint")] uint arg1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShaderOp1EXT", "opengl") + (delegate* unmanaged)( + _slots[2375] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2375] = nativeContext.LoadFunction("glShaderOp1EXT", "opengl") + ) )(op, res, arg1); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -561108,8 +570702,11 @@ void IGL.ShaderOp2EXT( [NativeTypeName("GLuint")] uint arg2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShaderOp2EXT", "opengl") + (delegate* unmanaged)( + _slots[2376] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2376] = nativeContext.LoadFunction("glShaderOp2EXT", "opengl") + ) )(op, res, arg1, arg2); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -561150,8 +570747,11 @@ void IGL.ShaderOp3EXT( [NativeTypeName("GLuint")] uint arg3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShaderOp3EXT", "opengl") + (delegate* unmanaged)( + _slots[2377] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2377] = nativeContext.LoadFunction("glShaderOp3EXT", "opengl") + ) )(op, res, arg1, arg2, arg3); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -561194,8 +570794,11 @@ void IGL.ShaderSource( [NativeTypeName("const GLint *")] int* length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShaderSource", "opengl") + (delegate* unmanaged)( + _slots[2378] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2378] = nativeContext.LoadFunction("glShaderSource", "opengl") + ) )(shader, count, @string, length); [SupportedApiProfile( @@ -561326,8 +570929,11 @@ void IGL.ShaderSourceARB( [NativeTypeName("const GLint *")] int* length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShaderSourceARB", "opengl") + (delegate* unmanaged)( + _slots[2379] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2379] = nativeContext.LoadFunction("glShaderSourceARB", "opengl") + ) )(shaderObj, count, @string, length); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -561373,8 +570979,14 @@ void IGL.ShaderStorageBlockBinding( [NativeTypeName("GLuint")] uint storageBlockBinding ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShaderStorageBlockBinding", "opengl") + (delegate* unmanaged)( + _slots[2380] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2380] = nativeContext.LoadFunction( + "glShaderStorageBlockBinding", + "opengl" + ) + ) )(program, storageBlockIndex, storageBlockBinding); [SupportedApiProfile( @@ -561413,8 +571025,14 @@ void IGL.ShadingRateCombinerOpEXT( [NativeTypeName("GLenum")] uint combinerOp1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShadingRateCombinerOpsEXT", "opengl") + (delegate* unmanaged)( + _slots[2381] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2381] = nativeContext.LoadFunction( + "glShadingRateCombinerOpsEXT", + "opengl" + ) + ) )(combinerOp0, combinerOp1); [SupportedApiProfile("gles2", ["GL_EXT_fragment_shading_rate"])] @@ -561442,9 +571060,13 @@ public static void ShadingRateCombinerOpEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ShadingRateEXT([NativeTypeName("GLenum")] uint rate) => - ((delegate* unmanaged)nativeContext.LoadFunction("glShadingRateEXT", "opengl"))( - rate - ); + ( + (delegate* unmanaged)( + _slots[2382] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2382] = nativeContext.LoadFunction("glShadingRateEXT", "opengl") + ) + )(rate); [SupportedApiProfile("gles2", ["GL_EXT_fragment_shading_rate"])] [NativeFunction("opengl", EntryPoint = "glShadingRateEXT")] @@ -561467,8 +571089,14 @@ public static void ShadingRateEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ShadingRateImageBarrierNV([NativeTypeName("GLboolean")] uint synchronize) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShadingRateImageBarrierNV", "opengl") + (delegate* unmanaged)( + _slots[2383] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2383] = nativeContext.LoadFunction( + "glShadingRateImageBarrierNV", + "opengl" + ) + ) )(synchronize); [SupportedApiProfile("gl", ["GL_NV_shading_rate_image"])] @@ -561501,8 +571129,14 @@ void IGL.ShadingRateImagePaletteNV( [NativeTypeName("const GLenum *")] uint* rates ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShadingRateImagePaletteNV", "opengl") + (delegate* unmanaged)( + _slots[2384] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2384] = nativeContext.LoadFunction( + "glShadingRateImagePaletteNV", + "opengl" + ) + ) )(viewport, first, count, rates); [SupportedApiProfile("gl", ["GL_NV_shading_rate_image"])] @@ -561566,8 +571200,11 @@ public static void ShadingRateImagePaletteNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ShadingRateQCOM([NativeTypeName("GLenum")] uint rate) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShadingRateQCOM", "opengl") + (delegate* unmanaged)( + _slots[2385] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2385] = nativeContext.LoadFunction("glShadingRateQCOM", "opengl") + ) )(rate); [SupportedApiProfile("gles2", ["GL_QCOM_shading_rate"])] @@ -561596,8 +571233,14 @@ void IGL.ShadingRateSampleOrderCustomNV( [NativeTypeName("const GLint *")] int* locations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShadingRateSampleOrderCustomNV", "opengl") + (delegate* unmanaged)( + _slots[2386] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2386] = nativeContext.LoadFunction( + "glShadingRateSampleOrderCustomNV", + "opengl" + ) + ) )(rate, samples, locations); [SupportedApiProfile("gl", ["GL_NV_shading_rate_image"])] @@ -561656,8 +571299,14 @@ public static void ShadingRateSampleOrderCustomNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ShadingRateSampleOrderNV([NativeTypeName("GLenum")] uint order) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glShadingRateSampleOrderNV", "opengl") + (delegate* unmanaged)( + _slots[2387] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2387] = nativeContext.LoadFunction( + "glShadingRateSampleOrderNV", + "opengl" + ) + ) )(order); [SupportedApiProfile("gl", ["GL_NV_shading_rate_image"])] @@ -561675,8 +571324,11 @@ void IGL.SharpenTexFuncSGIS( [NativeTypeName("const GLfloat *")] float* points ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSharpenTexFuncSGIS", "opengl") + (delegate* unmanaged)( + _slots[2388] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2388] = nativeContext.LoadFunction("glSharpenTexFuncSGIS", "opengl") + ) )(target, n, points); [SupportedApiProfile("gl", ["GL_SGIS_sharpen_texture"])] @@ -561721,8 +571373,11 @@ void IGL.SignalSemaphoreEXT( [NativeTypeName("const GLenum *")] uint* dstLayouts ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSignalSemaphoreEXT", "opengl") + (delegate* unmanaged)( + _slots[2389] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2389] = nativeContext.LoadFunction("glSignalSemaphoreEXT", "opengl") + ) )(semaphore, numBufferBarriers, buffers, numTextureBarriers, textures, dstLayouts); [SupportedApiProfile("gl", ["GL_EXT_semaphore"])] @@ -562006,8 +571661,14 @@ void IGL.SignalSemaphoreNVX( [NativeTypeName("const GLuint64 *")] ulong* fenceValueArray ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSignalSemaphoreui64NVX", "opengl") + (delegate* unmanaged)( + _slots[2390] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2390] = nativeContext.LoadFunction( + "glSignalSemaphoreui64NVX", + "opengl" + ) + ) )(signalGpu, fenceObjectCount, semaphoreArray, fenceValueArray); [SupportedApiProfile("gl", ["GL_NVX_progress_fence"])] @@ -562056,8 +571717,11 @@ public static void SignalSemaphoreNVX( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SignalVkFenceNV([NativeTypeName("GLuint64")] ulong vkFence) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSignalVkFenceNV", "opengl") + (delegate* unmanaged)( + _slots[2391] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2391] = nativeContext.LoadFunction("glSignalVkFenceNV", "opengl") + ) )(vkFence); [SupportedApiProfile("gl", ["GL_NV_draw_vulkan_image"])] @@ -562071,8 +571735,11 @@ public static void SignalVkFenceNV([NativeTypeName("GLuint64")] ulong vkFence) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SignalVkSemaphoreNV([NativeTypeName("GLuint64")] ulong vkSemaphore) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSignalVkSemaphoreNV", "opengl") + (delegate* unmanaged)( + _slots[2392] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2392] = nativeContext.LoadFunction("glSignalVkSemaphoreNV", "opengl") + ) )(vkSemaphore); [SupportedApiProfile("gl", ["GL_NV_draw_vulkan_image"])] @@ -562092,8 +571759,11 @@ void IGL.SpecializeShader( [NativeTypeName("const GLuint *")] uint* pConstantValue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSpecializeShader", "opengl") + (delegate* unmanaged)( + _slots[2393] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2393] = nativeContext.LoadFunction("glSpecializeShader", "opengl") + ) )(shader, pEntryPoint, numSpecializationConstants, pConstantIndex, pConstantValue); [SupportedApiProfile("gl", ["GL_VERSION_4_6"], MinVersion = "4.6")] @@ -562167,8 +571837,11 @@ void IGL.SpecializeShaderARB( [NativeTypeName("const GLuint *")] uint* pConstantValue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSpecializeShaderARB", "opengl") + (delegate* unmanaged)( + _slots[2394] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2394] = nativeContext.LoadFunction("glSpecializeShaderARB", "opengl") + ) )(shader, pEntryPoint, numSpecializationConstants, pConstantIndex, pConstantValue); [SupportedApiProfile("gl", ["GL_ARB_gl_spirv"])] @@ -562239,8 +571912,11 @@ void IGL.SpriteParameterSGIX( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSpriteParameterfSGIX", "opengl") + (delegate* unmanaged)( + _slots[2395] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2395] = nativeContext.LoadFunction("glSpriteParameterfSGIX", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_SGIX_sprite"])] @@ -562272,8 +571948,11 @@ void IGL.SpriteParameterSGIX( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSpriteParameterfvSGIX", "opengl") + (delegate* unmanaged)( + _slots[2396] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2396] = nativeContext.LoadFunction("glSpriteParameterfvSGIX", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_sprite"])] @@ -562311,8 +571990,11 @@ void IGL.SpriteParameterSGIX( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSpriteParameteriSGIX", "opengl") + (delegate* unmanaged)( + _slots[2397] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2397] = nativeContext.LoadFunction("glSpriteParameteriSGIX", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_SGIX_sprite"])] @@ -562344,8 +572026,11 @@ void IGL.SpriteParameterSGIX( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSpriteParameterivSGIX", "opengl") + (delegate* unmanaged)( + _slots[2398] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2398] = nativeContext.LoadFunction("glSpriteParameterivSGIX", "opengl") + ) )(pname, @params); [SupportedApiProfile("gl", ["GL_SGIX_sprite"])] @@ -562380,8 +572065,11 @@ public static void SpriteParameterSGIX( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.StartInstrumentsSGIX() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStartInstrumentsSGIX", "opengl") + (delegate* unmanaged)( + _slots[2399] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2399] = nativeContext.LoadFunction("glStartInstrumentsSGIX", "opengl") + ) )(); [SupportedApiProfile("gl", ["GL_SGIX_instruments"])] @@ -562398,8 +572086,11 @@ void IGL.StartTilingQCOM( [NativeTypeName("GLbitfield")] uint preserveMask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStartTilingQCOM", "opengl") + (delegate* unmanaged)( + _slots[2400] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2400] = nativeContext.LoadFunction("glStartTilingQCOM", "opengl") + ) )(x, y, width, height, preserveMask); [SupportedApiProfile("gles2", ["GL_QCOM_tiled_rendering"])] @@ -562442,8 +572133,11 @@ void IGL.StateCaptureNV( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStateCaptureNV", "opengl") + (delegate* unmanaged)( + _slots[2401] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2401] = nativeContext.LoadFunction("glStateCaptureNV", "opengl") + ) )(state, mode); [SupportedApiProfile("gl", ["GL_NV_command_list"])] @@ -562461,8 +572155,11 @@ void IGL.StencilClearTagEXT( [NativeTypeName("GLuint")] uint stencilClearTag ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilClearTagEXT", "opengl") + (delegate* unmanaged)( + _slots[2402] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2402] = nativeContext.LoadFunction("glStencilClearTagEXT", "opengl") + ) )(stencilTagBits, stencilClearTag); [SupportedApiProfile("gl", ["GL_EXT_stencil_clear_tag"])] @@ -562485,8 +572182,14 @@ void IGL.StencilFillPathInstancedNV( [NativeTypeName("const GLfloat *")] float* transformValues ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilFillPathInstancedNV", "opengl") + (delegate* unmanaged)( + _slots[2403] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2403] = nativeContext.LoadFunction( + "glStencilFillPathInstancedNV", + "opengl" + ) + ) )(numPaths, pathNameType, paths, pathBase, fillMode, mask, transformType, transformValues); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -562577,8 +572280,11 @@ void IGL.StencilFillPathNV( [NativeTypeName("GLuint")] uint mask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilFillPathNV", "opengl") + (delegate* unmanaged)( + _slots[2404] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2404] = nativeContext.LoadFunction("glStencilFillPathNV", "opengl") + ) )(path, fillMode, mask); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -562618,8 +572324,11 @@ void IGL.StencilFunc( [NativeTypeName("GLuint")] uint mask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilFunc", "opengl") + (delegate* unmanaged)( + _slots[2405] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2405] = nativeContext.LoadFunction("glStencilFunc", "opengl") + ) )(func, @ref, mask); [SupportedApiProfile( @@ -562766,8 +572475,11 @@ void IGL.StencilFuncSeparate( [NativeTypeName("GLuint")] uint mask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilFuncSeparate", "opengl") + (delegate* unmanaged)( + _slots[2406] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2406] = nativeContext.LoadFunction("glStencilFuncSeparate", "opengl") + ) )(face, func, @ref, mask); [SupportedApiProfile( @@ -562891,8 +572603,14 @@ void IGL.StencilFuncSeparateATI( [NativeTypeName("GLuint")] uint mask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilFuncSeparateATI", "opengl") + (delegate* unmanaged)( + _slots[2407] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2407] = nativeContext.LoadFunction( + "glStencilFuncSeparateATI", + "opengl" + ) + ) )(frontfunc, backfunc, @ref, mask); [SupportedApiProfile("gl", ["GL_ATI_separate_stencil"])] @@ -562926,9 +572644,13 @@ public static void StencilFuncSeparateATI( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.StencilMask([NativeTypeName("GLuint")] uint mask) => - ((delegate* unmanaged)nativeContext.LoadFunction("glStencilMask", "opengl"))( - mask - ); + ( + (delegate* unmanaged)( + _slots[2408] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2408] = nativeContext.LoadFunction("glStencilMask", "opengl") + ) + )(mask); [SupportedApiProfile( "gl", @@ -562997,8 +572719,11 @@ void IGL.StencilMaskSeparate( [NativeTypeName("GLuint")] uint mask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilMaskSeparate", "opengl") + (delegate* unmanaged)( + _slots[2409] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2409] = nativeContext.LoadFunction("glStencilMaskSeparate", "opengl") + ) )(face, mask); [SupportedApiProfile( @@ -563115,8 +572840,11 @@ void IGL.StencilOp( [NativeTypeName("GLenum")] uint zpass ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilOp", "opengl") + (delegate* unmanaged)( + _slots[2410] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2410] = nativeContext.LoadFunction("glStencilOp", "opengl") + ) )(fail, zfail, zpass); [SupportedApiProfile( @@ -563263,8 +572991,11 @@ void IGL.StencilOpSeparate( [NativeTypeName("GLenum")] uint dppass ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilOpSeparate", "opengl") + (delegate* unmanaged)( + _slots[2411] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2411] = nativeContext.LoadFunction("glStencilOpSeparate", "opengl") + ) )(face, sfail, dpfail, dppass); [SupportedApiProfile( @@ -563388,8 +573119,11 @@ void IGL.StencilOpSeparateATI( [NativeTypeName("GLenum")] uint dppass ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilOpSeparateATI", "opengl") + (delegate* unmanaged)( + _slots[2412] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2412] = nativeContext.LoadFunction("glStencilOpSeparateATI", "opengl") + ) )(face, sfail, dpfail, dppass); [SupportedApiProfile("gl", ["GL_ATI_separate_stencil"])] @@ -563427,8 +573161,11 @@ void IGL.StencilOpValueAMD( [NativeTypeName("GLuint")] uint value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilOpValueAMD", "opengl") + (delegate* unmanaged)( + _slots[2413] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2413] = nativeContext.LoadFunction("glStencilOpValueAMD", "opengl") + ) )(face, value); [SupportedApiProfile("gl", ["GL_AMD_stencil_operation_extended"])] @@ -563466,8 +573203,14 @@ void IGL.StencilStrokePathInstancedNV( [NativeTypeName("const GLfloat *")] float* transformValues ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilStrokePathInstancedNV", "opengl") + (delegate* unmanaged)( + _slots[2414] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2414] = nativeContext.LoadFunction( + "glStencilStrokePathInstancedNV", + "opengl" + ) + ) )(numPaths, pathNameType, paths, pathBase, reference, mask, transformType, transformValues); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -563558,8 +573301,11 @@ void IGL.StencilStrokePathNV( [NativeTypeName("GLuint")] uint mask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilStrokePathNV", "opengl") + (delegate* unmanaged)( + _slots[2415] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2415] = nativeContext.LoadFunction("glStencilStrokePathNV", "opengl") + ) )(path, reference, mask); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -563586,8 +573332,14 @@ void IGL.StencilThenCoverFillPathInstancedNV( [NativeTypeName("const GLfloat *")] float* transformValues ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilThenCoverFillPathInstancedNV", "opengl") + (delegate* unmanaged)( + _slots[2416] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2416] = nativeContext.LoadFunction( + "glStencilThenCoverFillPathInstancedNV", + "opengl" + ) + ) )( numPaths, pathNameType, @@ -563695,8 +573447,14 @@ void IGL.StencilThenCoverFillPathNV( [NativeTypeName("GLenum")] uint coverMode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilThenCoverFillPathNV", "opengl") + (delegate* unmanaged)( + _slots[2417] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2417] = nativeContext.LoadFunction( + "glStencilThenCoverFillPathNV", + "opengl" + ) + ) )(path, fillMode, mask, coverMode); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -563745,8 +573503,14 @@ void IGL.StencilThenCoverStrokePathInstancedNV( [NativeTypeName("const GLfloat *")] float* transformValues ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilThenCoverStrokePathInstancedNV", "opengl") + (delegate* unmanaged)( + _slots[2418] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2418] = nativeContext.LoadFunction( + "glStencilThenCoverStrokePathInstancedNV", + "opengl" + ) + ) )( numPaths, pathNameType, @@ -563854,8 +573618,14 @@ void IGL.StencilThenCoverStrokePathNV( [NativeTypeName("GLenum")] uint coverMode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStencilThenCoverStrokePathNV", "opengl") + (delegate* unmanaged)( + _slots[2419] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2419] = nativeContext.LoadFunction( + "glStencilThenCoverStrokePathNV", + "opengl" + ) + ) )(path, reference, mask, coverMode); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -563894,8 +573664,11 @@ public static void StencilThenCoverStrokePathNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.StopInstrumentsSGIX([NativeTypeName("GLint")] int marker) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStopInstrumentsSGIX", "opengl") + (delegate* unmanaged)( + _slots[2420] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2420] = nativeContext.LoadFunction("glStopInstrumentsSGIX", "opengl") + ) )(marker); [SupportedApiProfile("gl", ["GL_SGIX_instruments"])] @@ -563910,8 +573683,11 @@ void IGL.StringMarkerGremedy( [NativeTypeName("const void *")] void* @string ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glStringMarkerGREMEDY", "opengl") + (delegate* unmanaged)( + _slots[2421] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2421] = nativeContext.LoadFunction("glStringMarkerGREMEDY", "opengl") + ) )(len, @string); [SupportedApiProfile("gl", ["GL_GREMEDY_string_marker"])] @@ -563949,8 +573725,14 @@ void IGL.SubpixelPrecisionBiasNV( [NativeTypeName("GLuint")] uint ybits ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSubpixelPrecisionBiasNV", "opengl") + (delegate* unmanaged)( + _slots[2422] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2422] = nativeContext.LoadFunction( + "glSubpixelPrecisionBiasNV", + "opengl" + ) + ) )(xbits, ybits); [SupportedApiProfile("gl", ["GL_NV_conservative_raster"])] @@ -563973,8 +573755,11 @@ void IGL.SwizzleEXT( [NativeTypeName("GLenum")] uint outW ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSwizzleEXT", "opengl") + (delegate* unmanaged)( + _slots[2423] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2423] = nativeContext.LoadFunction("glSwizzleEXT", "opengl") + ) )(res, @in, outX, outY, outZ, outW); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -564015,8 +573800,11 @@ public static void SwizzleEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.SyncTextureIntel([NativeTypeName("GLuint")] uint texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glSyncTextureINTEL", "opengl") + (delegate* unmanaged)( + _slots[2424] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2424] = nativeContext.LoadFunction("glSyncTextureINTEL", "opengl") + ) )(texture); [SupportedApiProfile("gl", ["GL_INTEL_map_texture"])] @@ -564028,7 +573816,11 @@ public static void SyncTextureIntel([NativeTypeName("GLuint")] uint texture) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TagSampleBufferSGIX() => ( - (delegate* unmanaged)nativeContext.LoadFunction("glTagSampleBufferSGIX", "opengl") + (delegate* unmanaged)( + _slots[2425] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2425] = nativeContext.LoadFunction("glTagSampleBufferSGIX", "opengl") + ) )(); [SupportedApiProfile("gl", ["GL_SGIX_tag_sample_buffer"])] @@ -564043,8 +573835,11 @@ void IGL.Tangent3EXT( [NativeTypeName("GLbyte")] sbyte tz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTangent3bEXT", "opengl") + (delegate* unmanaged)( + _slots[2426] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2426] = nativeContext.LoadFunction("glTangent3bEXT", "opengl") + ) )(tx, ty, tz); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -564059,8 +573854,11 @@ public static void Tangent3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Tangent3EXT([NativeTypeName("const GLbyte *")] sbyte* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTangent3bvEXT", "opengl") + (delegate* unmanaged)( + _slots[2427] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2427] = nativeContext.LoadFunction("glTangent3bvEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -564092,8 +573890,11 @@ void IGL.Tangent3EXT( [NativeTypeName("GLdouble")] double tz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTangent3dEXT", "opengl") + (delegate* unmanaged)( + _slots[2428] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2428] = nativeContext.LoadFunction("glTangent3dEXT", "opengl") + ) )(tx, ty, tz); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -564108,8 +573909,11 @@ public static void Tangent3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Tangent3EXT([NativeTypeName("const GLdouble *")] double* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTangent3dvEXT", "opengl") + (delegate* unmanaged)( + _slots[2429] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2429] = nativeContext.LoadFunction("glTangent3dvEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -564141,8 +573945,11 @@ void IGL.Tangent3EXT( [NativeTypeName("GLfloat")] float tz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTangent3fEXT", "opengl") + (delegate* unmanaged)( + _slots[2430] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2430] = nativeContext.LoadFunction("glTangent3fEXT", "opengl") + ) )(tx, ty, tz); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -564157,8 +573964,11 @@ public static void Tangent3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Tangent3EXT([NativeTypeName("const GLfloat *")] float* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTangent3fvEXT", "opengl") + (delegate* unmanaged)( + _slots[2431] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2431] = nativeContext.LoadFunction("glTangent3fvEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -564190,8 +574000,11 @@ void IGL.Tangent3EXT( [NativeTypeName("GLint")] int tz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTangent3iEXT", "opengl") + (delegate* unmanaged)( + _slots[2432] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2432] = nativeContext.LoadFunction("glTangent3iEXT", "opengl") + ) )(tx, ty, tz); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -564205,9 +574018,13 @@ public static void Tangent3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Tangent3EXT([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTangent3ivEXT", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2433] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2433] = nativeContext.LoadFunction("glTangent3ivEXT", "opengl") + ) + )(v); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] [NativeFunction("opengl", EntryPoint = "glTangent3ivEXT")] @@ -564238,8 +574055,11 @@ void IGL.Tangent3EXT( [NativeTypeName("GLshort")] short tz ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTangent3sEXT", "opengl") + (delegate* unmanaged)( + _slots[2434] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2434] = nativeContext.LoadFunction("glTangent3sEXT", "opengl") + ) )(tx, ty, tz); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -564254,8 +574074,11 @@ public static void Tangent3EXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Tangent3EXT([NativeTypeName("const GLshort *")] short* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTangent3svEXT", "opengl") + (delegate* unmanaged)( + _slots[2435] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2435] = nativeContext.LoadFunction("glTangent3svEXT", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -564287,8 +574110,11 @@ void IGL.TangentPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTangentPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[2436] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2436] = nativeContext.LoadFunction("glTangentPointerEXT", "opengl") + ) )(type, stride, pointer); [SupportedApiProfile("gl", ["GL_EXT_coordinate_frame"])] @@ -564326,8 +574152,11 @@ public static void TangentPointerEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TbufferMask3DFX([NativeTypeName("GLuint")] uint mask) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTbufferMask3DFX", "opengl") + (delegate* unmanaged)( + _slots[2437] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2437] = nativeContext.LoadFunction("glTbufferMask3DFX", "opengl") + ) )(mask); [SupportedApiProfile("gl", ["GL_3DFX_tbuffer"])] @@ -564339,8 +574168,11 @@ public static void TbufferMask3DFX([NativeTypeName("GLuint")] uint mask) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TessellationFactorAMD([NativeTypeName("GLfloat")] float factor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTessellationFactorAMD", "opengl") + (delegate* unmanaged)( + _slots[2438] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2438] = nativeContext.LoadFunction("glTessellationFactorAMD", "opengl") + ) )(factor); [SupportedApiProfile("gl", ["GL_AMD_vertex_shader_tessellator"])] @@ -564352,8 +574184,11 @@ public static void TessellationFactorAMD([NativeTypeName("GLfloat")] float facto [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TessellationModeAMD([NativeTypeName("GLenum")] uint mode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTessellationModeAMD", "opengl") + (delegate* unmanaged)( + _slots[2439] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2439] = nativeContext.LoadFunction("glTessellationModeAMD", "opengl") + ) )(mode); [SupportedApiProfile("gl", ["GL_AMD_vertex_shader_tessellator"])] @@ -564376,9 +574211,13 @@ public static MaybeBool TestFenceApple([NativeTypeName("GLuint")] uint fen [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.TestFenceAppleRaw([NativeTypeName("GLuint")] uint fence) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTestFenceAPPLE", "opengl"))( - fence - ); + ( + (delegate* unmanaged)( + _slots[2440] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2440] = nativeContext.LoadFunction("glTestFenceAPPLE", "opengl") + ) + )(fence); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_APPLE_fence"])] @@ -564403,9 +574242,13 @@ public static MaybeBool TestFenceNV([NativeTypeName("GLuint")] uint fence) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.TestFenceNVRaw([NativeTypeName("GLuint")] uint fence) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTestFenceNV", "opengl"))( - fence - ); + ( + (delegate* unmanaged)( + _slots[2441] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2441] = nativeContext.LoadFunction("glTestFenceNV", "opengl") + ) + )(fence); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_NV_fence"])] @@ -564438,8 +574281,11 @@ uint IGL.TestObjectAppleRaw( [NativeTypeName("GLuint")] uint name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTestObjectAPPLE", "opengl") + (delegate* unmanaged)( + _slots[2442] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2442] = nativeContext.LoadFunction("glTestObjectAPPLE", "opengl") + ) )(@object, name); [return: NativeTypeName("GLboolean")] @@ -564458,8 +574304,11 @@ void IGL.TexAttachMemoryNV( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexAttachMemoryNV", "opengl") + (delegate* unmanaged)( + _slots[2443] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2443] = nativeContext.LoadFunction("glTexAttachMemoryNV", "opengl") + ) )(target, memory, offset); [SupportedApiProfile("gl", ["GL_NV_memory_attachment"])] @@ -564499,8 +574348,11 @@ void IGL.TexBuffer( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexBuffer", "opengl") + (delegate* unmanaged)( + _slots[2444] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2444] = nativeContext.LoadFunction("glTexBuffer", "opengl") + ) )(target, internalformat, buffer); [SupportedApiProfile( @@ -564598,8 +574450,11 @@ void IGL.TexBufferARB( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexBufferARB", "opengl") + (delegate* unmanaged)( + _slots[2445] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2445] = nativeContext.LoadFunction("glTexBufferARB", "opengl") + ) )(target, internalformat, buffer); [SupportedApiProfile("gl", ["GL_ARB_texture_buffer_object"])] @@ -564637,8 +574492,11 @@ void IGL.TexBufferEXT( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexBufferEXT", "opengl") + (delegate* unmanaged)( + _slots[2446] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2446] = nativeContext.LoadFunction("glTexBufferEXT", "opengl") + ) )(target, internalformat, buffer); [SupportedApiProfile("gl", ["GL_EXT_texture_buffer_object"])] @@ -564676,8 +574534,11 @@ void IGL.TexBufferOES( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexBufferOES", "opengl") + (delegate* unmanaged)( + _slots[2447] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2447] = nativeContext.LoadFunction("glTexBufferOES", "opengl") + ) )(target, internalformat, buffer); [SupportedApiProfile("gles2", ["GL_OES_texture_buffer"])] @@ -564715,8 +574576,11 @@ void IGL.TexBufferRange( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexBufferRange", "opengl") + (delegate* unmanaged)( + _slots[2448] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2448] = nativeContext.LoadFunction("glTexBufferRange", "opengl") + ) )(target, internalformat, buffer, offset, size); [SupportedApiProfile( @@ -564802,8 +574666,11 @@ void IGL.TexBufferRangeEXT( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexBufferRangeEXT", "opengl") + (delegate* unmanaged)( + _slots[2449] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2449] = nativeContext.LoadFunction("glTexBufferRangeEXT", "opengl") + ) )(target, internalformat, buffer, offset, size); [SupportedApiProfile("gles2", ["GL_EXT_texture_buffer"])] @@ -564847,8 +574714,11 @@ void IGL.TexBufferRangeOES( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexBufferRangeOES", "opengl") + (delegate* unmanaged)( + _slots[2450] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2450] = nativeContext.LoadFunction("glTexBufferRangeOES", "opengl") + ) )(target, internalformat, buffer, offset, size); [SupportedApiProfile("gles2", ["GL_OES_texture_buffer"])] @@ -564889,8 +574759,11 @@ void IGL.TexBumpParameterATI( [NativeTypeName("const GLfloat *")] float* param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexBumpParameterfvATI", "opengl") + (delegate* unmanaged)( + _slots[2451] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2451] = nativeContext.LoadFunction("glTexBumpParameterfvATI", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_ATI_envmap_bumpmap"])] @@ -564928,8 +574801,11 @@ void IGL.TexBumpParameterATI( [NativeTypeName("const GLint *")] int* param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexBumpParameterivATI", "opengl") + (delegate* unmanaged)( + _slots[2452] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2452] = nativeContext.LoadFunction("glTexBumpParameterivATI", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_ATI_envmap_bumpmap"])] @@ -564963,9 +574839,13 @@ public static void TexBumpParameterATI( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1OES([NativeTypeName("GLbyte")] sbyte s) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord1bOES", "opengl"))( - s - ); + ( + (delegate* unmanaged)( + _slots[2453] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2453] = nativeContext.LoadFunction("glTexCoord1bOES", "opengl") + ) + )(s); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] [NativeFunction("opengl", EntryPoint = "glTexCoord1bOES")] @@ -564987,8 +574867,11 @@ public static void TexCoord1BvO([NativeTypeName("const GLbyte *")] sbyte coords) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1OES([NativeTypeName("const GLbyte *")] sbyte* coords) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord1bvOES", "opengl") + (delegate* unmanaged)( + _slots[2454] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2454] = nativeContext.LoadFunction("glTexCoord1bvOES", "opengl") + ) )(coords); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -565015,9 +574898,13 @@ public static void TexCoord1OES([NativeTypeName("const GLbyte *")] Ref co [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1D([NativeTypeName("GLdouble")] double s) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord1d", "opengl"))( - s - ); + ( + (delegate* unmanaged)( + _slots[2455] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2455] = nativeContext.LoadFunction("glTexCoord1d", "opengl") + ) + )(s); [SupportedApiProfile( "gl", @@ -565051,9 +574938,13 @@ public static void TexCoord1D([NativeTypeName("GLdouble")] double s) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1Dv([NativeTypeName("const GLdouble *")] double* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord1dv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2456] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2456] = nativeContext.LoadFunction("glTexCoord1dv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -565162,7 +575053,13 @@ public static void TexCoord1Dv([NativeTypeName("const GLdouble *")] double v) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1F([NativeTypeName("GLfloat")] float s) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord1f", "opengl"))(s); + ( + (delegate* unmanaged)( + _slots[2457] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2457] = nativeContext.LoadFunction("glTexCoord1f", "opengl") + ) + )(s); [SupportedApiProfile( "gl", @@ -565195,9 +575092,13 @@ void IGL.TexCoord1F([NativeTypeName("GLfloat")] float s) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1Fv([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord1fv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2458] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2458] = nativeContext.LoadFunction("glTexCoord1fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -565306,9 +575207,13 @@ public static void TexCoord1Fv([NativeTypeName("const GLfloat *")] float v) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1NV([NativeTypeName("GLhalfNV")] ushort s) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord1hNV", "opengl"))( - s - ); + ( + (delegate* unmanaged)( + _slots[2459] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2459] = nativeContext.LoadFunction("glTexCoord1hNV", "opengl") + ) + )(s); [SupportedApiProfile("gl", ["GL_NV_half_float"])] [NativeFunction("opengl", EntryPoint = "glTexCoord1hNV")] @@ -565319,8 +575224,11 @@ public static void TexCoord1NV([NativeTypeName("GLhalfNV")] ushort s) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1HvNV([NativeTypeName("const GLhalfNV *")] ushort* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord1hvNV", "opengl") + (delegate* unmanaged)( + _slots[2460] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2460] = nativeContext.LoadFunction("glTexCoord1hvNV", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -565358,7 +575266,13 @@ public static void TexCoord1HvNV([NativeTypeName("const GLhalfNV *")] ushort v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1I([NativeTypeName("GLint")] int s) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord1i", "opengl"))(s); + ( + (delegate* unmanaged)( + _slots[2461] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2461] = nativeContext.LoadFunction("glTexCoord1i", "opengl") + ) + )(s); [SupportedApiProfile( "gl", @@ -565391,7 +575305,13 @@ void IGL.TexCoord1I([NativeTypeName("GLint")] int s) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1Iv([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord1iv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2462] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2462] = nativeContext.LoadFunction("glTexCoord1iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -565500,7 +575420,13 @@ public static void TexCoord1Iv([NativeTypeName("const GLint *")] int v) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1S([NativeTypeName("GLshort")] short s) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord1s", "opengl"))(s); + ( + (delegate* unmanaged)( + _slots[2463] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2463] = nativeContext.LoadFunction("glTexCoord1s", "opengl") + ) + )(s); [SupportedApiProfile( "gl", @@ -565533,9 +575459,13 @@ void IGL.TexCoord1S([NativeTypeName("GLshort")] short s) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1Sv([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord1sv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2464] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2464] = nativeContext.LoadFunction("glTexCoord1sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -565644,9 +575574,13 @@ public static void TexCoord1Sv([NativeTypeName("const GLshort *")] short v) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1XOES([NativeTypeName("GLfixed")] int s) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord1xOES", "opengl"))( - s - ); + ( + (delegate* unmanaged)( + _slots[2465] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2465] = nativeContext.LoadFunction("glTexCoord1xOES", "opengl") + ) + )(s); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glTexCoord1xOES")] @@ -565667,9 +575601,13 @@ public static void TexCoord1XvO([NativeTypeName("const GLfixed *")] int coords) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord1XOES([NativeTypeName("const GLfixed *")] int* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord1xvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[2466] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2466] = nativeContext.LoadFunction("glTexCoord1xvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glTexCoord1xvOES")] @@ -565696,8 +575634,11 @@ public static void TexCoord1XOES([NativeTypeName("const GLfixed *")] Ref co [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord2OES([NativeTypeName("GLbyte")] sbyte s, [NativeTypeName("GLbyte")] sbyte t) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2bOES", "opengl") + (delegate* unmanaged)( + _slots[2467] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2467] = nativeContext.LoadFunction("glTexCoord2bOES", "opengl") + ) )(s, t); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -565711,8 +575652,11 @@ public static void TexCoord2OES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord2OES([NativeTypeName("const GLbyte *")] sbyte* coords) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2bvOES", "opengl") + (delegate* unmanaged)( + _slots[2468] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2468] = nativeContext.LoadFunction("glTexCoord2bvOES", "opengl") + ) )(coords); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -565743,8 +575687,11 @@ void IGL.TexCoord2( [NativeTypeName("GLdouble")] double t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2d", "opengl") + (delegate* unmanaged)( + _slots[2469] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2469] = nativeContext.LoadFunction("glTexCoord2d", "opengl") + ) )(s, t); [SupportedApiProfile( @@ -565781,9 +575728,13 @@ public static void TexCoord2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord2([NativeTypeName("const GLdouble *")] double* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord2dv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2470] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2470] = nativeContext.LoadFunction("glTexCoord2dv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -565858,8 +575809,11 @@ public static void TexCoord2([NativeTypeName("const GLdouble *")] Ref v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord2([NativeTypeName("GLfloat")] float s, [NativeTypeName("GLfloat")] float t) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2f", "opengl") + (delegate* unmanaged)( + _slots[2471] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2471] = nativeContext.LoadFunction("glTexCoord2f", "opengl") + ) )(s, t); [SupportedApiProfile( @@ -565906,8 +575860,14 @@ void IGL.TexCoord2FColor3FVertex3SUN( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2fColor3fVertex3fSUN", "opengl") + (delegate* unmanaged)( + _slots[2472] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2472] = nativeContext.LoadFunction( + "glTexCoord2fColor3fVertex3fSUN", + "opengl" + ) + ) )(s, t, r, g, b, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -565931,8 +575891,14 @@ void IGL.TexCoord2FColor3FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2fColor3fVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[2473] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2473] = nativeContext.LoadFunction( + "glTexCoord2fColor3fVertex3fvSUN", + "opengl" + ) + ) )(tc, c, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -565998,8 +575964,14 @@ void IGL.TexCoord2FColor4FNormal3FVertex3SUN( float, float, float, - void>) - nativeContext.LoadFunction("glTexCoord2fColor4fNormal3fVertex3fSUN", "opengl") + void>)( + _slots[2474] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2474] = nativeContext.LoadFunction( + "glTexCoord2fColor4fNormal3fVertex3fSUN", + "opengl" + ) + ) )(s, t, r, g, b, a, nx, ny, nz, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -566028,8 +576000,14 @@ void IGL.TexCoord2FColor4FNormal3FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2fColor4fNormal3fVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[2475] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2475] = nativeContext.LoadFunction( + "glTexCoord2fColor4fNormal3fVertex3fvSUN", + "opengl" + ) + ) )(tc, c, n, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -566083,8 +576061,14 @@ void IGL.TexCoord2FColor4UbVertex3SUN( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2fColor4ubVertex3fSUN", "opengl") + (delegate* unmanaged)( + _slots[2476] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2476] = nativeContext.LoadFunction( + "glTexCoord2fColor4ubVertex3fSUN", + "opengl" + ) + ) )(s, t, r, g, b, a, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -566109,8 +576093,14 @@ void IGL.TexCoord2FColor4UbVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2fColor4ubVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[2477] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2477] = nativeContext.LoadFunction( + "glTexCoord2fColor4ubVertex3fvSUN", + "opengl" + ) + ) )(tc, c, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -566159,8 +576149,14 @@ void IGL.TexCoord2FNormal3FVertex3SUN( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2fNormal3fVertex3fSUN", "opengl") + (delegate* unmanaged)( + _slots[2478] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2478] = nativeContext.LoadFunction( + "glTexCoord2fNormal3fVertex3fSUN", + "opengl" + ) + ) )(s, t, nx, ny, nz, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -566184,8 +576180,14 @@ void IGL.TexCoord2FNormal3FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2fNormal3fVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[2479] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2479] = nativeContext.LoadFunction( + "glTexCoord2fNormal3fVertex3fvSUN", + "opengl" + ) + ) )(tc, n, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -566224,9 +576226,13 @@ public static void TexCoord2FNormal3FVertex3SUN( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord2([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord2fv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2480] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2480] = nativeContext.LoadFunction("glTexCoord2fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -566307,8 +576313,11 @@ void IGL.TexCoord2FVertex3SUN( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2fVertex3fSUN", "opengl") + (delegate* unmanaged)( + _slots[2481] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2481] = nativeContext.LoadFunction("glTexCoord2fVertex3fSUN", "opengl") + ) )(s, t, x, y, z); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -566328,8 +576337,14 @@ void IGL.TexCoord2FVertex3SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2fVertex3fvSUN", "opengl") + (delegate* unmanaged)( + _slots[2482] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2482] = nativeContext.LoadFunction( + "glTexCoord2fVertex3fvSUN", + "opengl" + ) + ) )(tc, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -566368,8 +576383,11 @@ void IGL.TexCoord2NV( [NativeTypeName("GLhalfNV")] ushort t ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2hNV", "opengl") + (delegate* unmanaged)( + _slots[2483] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2483] = nativeContext.LoadFunction("glTexCoord2hNV", "opengl") + ) )(s, t); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -566383,8 +576401,11 @@ public static void TexCoord2NV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord2NV([NativeTypeName("const GLhalfNV *")] ushort* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2hvNV", "opengl") + (delegate* unmanaged)( + _slots[2484] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2484] = nativeContext.LoadFunction("glTexCoord2hvNV", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -566411,10 +576432,13 @@ public static void TexCoord2NV([NativeTypeName("const GLhalfNV *")] Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord2([NativeTypeName("GLint")] int s, [NativeTypeName("GLint")] int t) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord2i", "opengl"))( - s, - t - ); + ( + (delegate* unmanaged)( + _slots[2485] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2485] = nativeContext.LoadFunction("glTexCoord2i", "opengl") + ) + )(s, t); [SupportedApiProfile( "gl", @@ -566450,7 +576474,13 @@ public static void TexCoord2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord2([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord2iv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2486] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2486] = nativeContext.LoadFunction("glTexCoord2iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -566525,8 +576555,11 @@ public static void TexCoord2([NativeTypeName("const GLint *")] Ref v) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord2([NativeTypeName("GLshort")] short s, [NativeTypeName("GLshort")] short t) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2s", "opengl") + (delegate* unmanaged)( + _slots[2487] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2487] = nativeContext.LoadFunction("glTexCoord2s", "opengl") + ) )(s, t); [SupportedApiProfile( @@ -566563,9 +576596,13 @@ public static void TexCoord2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord2([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord2sv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2488] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2488] = nativeContext.LoadFunction("glTexCoord2sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -566640,8 +576677,11 @@ public static void TexCoord2([NativeTypeName("const GLshort *")] Ref v) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord2XOES([NativeTypeName("GLfixed")] int s, [NativeTypeName("GLfixed")] int t) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord2xOES", "opengl") + (delegate* unmanaged)( + _slots[2489] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2489] = nativeContext.LoadFunction("glTexCoord2xOES", "opengl") + ) )(s, t); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -566654,9 +576694,13 @@ public static void TexCoord2XOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord2XOES([NativeTypeName("const GLfixed *")] int* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord2xvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[2490] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2490] = nativeContext.LoadFunction("glTexCoord2xvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glTexCoord2xvOES")] @@ -566687,8 +576731,11 @@ void IGL.TexCoord3OES( [NativeTypeName("GLbyte")] sbyte r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord3bOES", "opengl") + (delegate* unmanaged)( + _slots[2491] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2491] = nativeContext.LoadFunction("glTexCoord3bOES", "opengl") + ) )(s, t, r); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -566703,8 +576750,11 @@ public static void TexCoord3OES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord3OES([NativeTypeName("const GLbyte *")] sbyte* coords) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord3bvOES", "opengl") + (delegate* unmanaged)( + _slots[2492] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2492] = nativeContext.LoadFunction("glTexCoord3bvOES", "opengl") + ) )(coords); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -566736,8 +576786,11 @@ void IGL.TexCoord3( [NativeTypeName("GLdouble")] double r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord3d", "opengl") + (delegate* unmanaged)( + _slots[2493] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2493] = nativeContext.LoadFunction("glTexCoord3d", "opengl") + ) )(s, t, r); [SupportedApiProfile( @@ -566775,9 +576828,13 @@ public static void TexCoord3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord3([NativeTypeName("const GLdouble *")] double* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord3dv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2494] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2494] = nativeContext.LoadFunction("glTexCoord3dv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -566856,8 +576913,11 @@ void IGL.TexCoord3( [NativeTypeName("GLfloat")] float r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord3f", "opengl") + (delegate* unmanaged)( + _slots[2495] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2495] = nativeContext.LoadFunction("glTexCoord3f", "opengl") + ) )(s, t, r); [SupportedApiProfile( @@ -566895,9 +576955,13 @@ public static void TexCoord3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord3([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord3fv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2496] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2496] = nativeContext.LoadFunction("glTexCoord3fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -566976,8 +577040,11 @@ void IGL.TexCoord3NV( [NativeTypeName("GLhalfNV")] ushort r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord3hNV", "opengl") + (delegate* unmanaged)( + _slots[2497] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2497] = nativeContext.LoadFunction("glTexCoord3hNV", "opengl") + ) )(s, t, r); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -566992,8 +577059,11 @@ public static void TexCoord3NV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord3NV([NativeTypeName("const GLhalfNV *")] ushort* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord3hvNV", "opengl") + (delegate* unmanaged)( + _slots[2498] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2498] = nativeContext.LoadFunction("glTexCoord3hvNV", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -567025,8 +577095,11 @@ void IGL.TexCoord3( [NativeTypeName("GLint")] int r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord3i", "opengl") + (delegate* unmanaged)( + _slots[2499] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2499] = nativeContext.LoadFunction("glTexCoord3i", "opengl") + ) )(s, t, r); [SupportedApiProfile( @@ -567064,7 +577137,13 @@ public static void TexCoord3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord3([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord3iv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2500] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2500] = nativeContext.LoadFunction("glTexCoord3iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -567143,8 +577222,11 @@ void IGL.TexCoord3( [NativeTypeName("GLshort")] short r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord3s", "opengl") + (delegate* unmanaged)( + _slots[2501] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2501] = nativeContext.LoadFunction("glTexCoord3s", "opengl") + ) )(s, t, r); [SupportedApiProfile( @@ -567182,9 +577264,13 @@ public static void TexCoord3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord3([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord3sv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2502] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2502] = nativeContext.LoadFunction("glTexCoord3sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -567263,8 +577349,11 @@ void IGL.TexCoord3XOES( [NativeTypeName("GLfixed")] int r ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord3xOES", "opengl") + (delegate* unmanaged)( + _slots[2503] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2503] = nativeContext.LoadFunction("glTexCoord3xOES", "opengl") + ) )(s, t, r); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -567278,9 +577367,13 @@ public static void TexCoord3XOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord3XOES([NativeTypeName("const GLfixed *")] int* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord3xvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[2504] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2504] = nativeContext.LoadFunction("glTexCoord3xvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glTexCoord3xvOES")] @@ -567312,8 +577405,11 @@ void IGL.TexCoord4OES( [NativeTypeName("GLbyte")] sbyte q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord4bOES", "opengl") + (delegate* unmanaged)( + _slots[2505] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2505] = nativeContext.LoadFunction("glTexCoord4bOES", "opengl") + ) )(s, t, r, q); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -567329,8 +577425,11 @@ public static void TexCoord4OES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord4OES([NativeTypeName("const GLbyte *")] sbyte* coords) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord4bvOES", "opengl") + (delegate* unmanaged)( + _slots[2506] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2506] = nativeContext.LoadFunction("glTexCoord4bvOES", "opengl") + ) )(coords); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -567363,8 +577462,11 @@ void IGL.TexCoord4( [NativeTypeName("GLdouble")] double q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord4d", "opengl") + (delegate* unmanaged)( + _slots[2507] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2507] = nativeContext.LoadFunction("glTexCoord4d", "opengl") + ) )(s, t, r, q); [SupportedApiProfile( @@ -567403,9 +577505,13 @@ public static void TexCoord4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord4([NativeTypeName("const GLdouble *")] double* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord4dv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2508] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2508] = nativeContext.LoadFunction("glTexCoord4dv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -567485,8 +577591,11 @@ void IGL.TexCoord4( [NativeTypeName("GLfloat")] float q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord4f", "opengl") + (delegate* unmanaged)( + _slots[2509] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2509] = nativeContext.LoadFunction("glTexCoord4f", "opengl") + ) )(s, t, r, q); [SupportedApiProfile( @@ -567558,8 +577667,14 @@ void IGL.TexCoord4FColor4FNormal3FVertex4SUN( float, float, float, - void>) - nativeContext.LoadFunction("glTexCoord4fColor4fNormal3fVertex4fSUN", "opengl") + void>)( + _slots[2510] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2510] = nativeContext.LoadFunction( + "glTexCoord4fColor4fNormal3fVertex4fSUN", + "opengl" + ) + ) )(s, t, p, q, r, g, b, a, nx, ny, nz, x, y, z, w); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -567608,8 +577723,14 @@ void IGL.TexCoord4FColor4FNormal3FVertex4SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord4fColor4fNormal3fVertex4fvSUN", "opengl") + (delegate* unmanaged)( + _slots[2511] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2511] = nativeContext.LoadFunction( + "glTexCoord4fColor4fNormal3fVertex4fvSUN", + "opengl" + ) + ) )(tc, c, n, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -567652,9 +577773,13 @@ public static void TexCoord4FColor4FNormal3FVertex4SUN( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord4([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord4fv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2512] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2512] = nativeContext.LoadFunction("glTexCoord4fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -567738,8 +577863,11 @@ void IGL.TexCoord4FVertex4SUN( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord4fVertex4fSUN", "opengl") + (delegate* unmanaged)( + _slots[2513] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2513] = nativeContext.LoadFunction("glTexCoord4fVertex4fSUN", "opengl") + ) )(s, t, p, q, x, y, z, w); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -567762,8 +577890,14 @@ void IGL.TexCoord4FVertex4SUN( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord4fVertex4fvSUN", "opengl") + (delegate* unmanaged)( + _slots[2514] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2514] = nativeContext.LoadFunction( + "glTexCoord4fVertex4fvSUN", + "opengl" + ) + ) )(tc, v); [SupportedApiProfile("gl", ["GL_SUN_vertex"])] @@ -567804,8 +577938,11 @@ void IGL.TexCoord4NV( [NativeTypeName("GLhalfNV")] ushort q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord4hNV", "opengl") + (delegate* unmanaged)( + _slots[2515] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2515] = nativeContext.LoadFunction("glTexCoord4hNV", "opengl") + ) )(s, t, r, q); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -567821,8 +577958,11 @@ public static void TexCoord4NV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord4NV([NativeTypeName("const GLhalfNV *")] ushort* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord4hvNV", "opengl") + (delegate* unmanaged)( + _slots[2516] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2516] = nativeContext.LoadFunction("glTexCoord4hvNV", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -567855,8 +577995,11 @@ void IGL.TexCoord4( [NativeTypeName("GLint")] int q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord4i", "opengl") + (delegate* unmanaged)( + _slots[2517] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2517] = nativeContext.LoadFunction("glTexCoord4i", "opengl") + ) )(s, t, r, q); [SupportedApiProfile( @@ -567895,7 +578038,13 @@ public static void TexCoord4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord4([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord4iv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2518] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2518] = nativeContext.LoadFunction("glTexCoord4iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -567975,8 +578124,11 @@ void IGL.TexCoord4( [NativeTypeName("GLshort")] short q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord4s", "opengl") + (delegate* unmanaged)( + _slots[2519] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2519] = nativeContext.LoadFunction("glTexCoord4s", "opengl") + ) )(s, t, r, q); [SupportedApiProfile( @@ -568015,9 +578167,13 @@ public static void TexCoord4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord4([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord4sv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2520] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2520] = nativeContext.LoadFunction("glTexCoord4sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -568097,8 +578253,11 @@ void IGL.TexCoord4XOES( [NativeTypeName("GLfixed")] int q ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoord4xOES", "opengl") + (delegate* unmanaged)( + _slots[2521] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2521] = nativeContext.LoadFunction("glTexCoord4xOES", "opengl") + ) )(s, t, r, q); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -568113,9 +578272,13 @@ public static void TexCoord4XOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TexCoord4XOES([NativeTypeName("const GLfixed *")] int* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glTexCoord4xvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[2522] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2522] = nativeContext.LoadFunction("glTexCoord4xvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glTexCoord4xvOES")] @@ -568146,8 +578309,11 @@ void IGL.TexCoordFormatNV( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordFormatNV", "opengl") + (delegate* unmanaged)( + _slots[2523] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2523] = nativeContext.LoadFunction("glTexCoordFormatNV", "opengl") + ) )(size, type, stride); [SupportedApiProfile("gl", ["GL_NV_vertex_buffer_unified_memory"])] @@ -568166,8 +578332,11 @@ void IGL.TexCoordP1( [NativeTypeName("GLuint")] uint coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordP1ui", "opengl") + (delegate* unmanaged)( + _slots[2524] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2524] = nativeContext.LoadFunction("glTexCoordP1ui", "opengl") + ) )(type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -568199,8 +578368,11 @@ void IGL.TexCoordP1Uiv( [NativeTypeName("const GLuint *")] uint* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordP1uiv", "opengl") + (delegate* unmanaged)( + _slots[2525] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2525] = nativeContext.LoadFunction("glTexCoordP1uiv", "opengl") + ) )(type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -568253,8 +578425,11 @@ void IGL.TexCoordP2( [NativeTypeName("GLuint")] uint coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordP2ui", "opengl") + (delegate* unmanaged)( + _slots[2526] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2526] = nativeContext.LoadFunction("glTexCoordP2ui", "opengl") + ) )(type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -568286,8 +578461,11 @@ void IGL.TexCoordP2Uiv( [NativeTypeName("const GLuint *")] uint* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordP2uiv", "opengl") + (delegate* unmanaged)( + _slots[2527] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2527] = nativeContext.LoadFunction("glTexCoordP2uiv", "opengl") + ) )(type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -568340,8 +578518,11 @@ void IGL.TexCoordP3( [NativeTypeName("GLuint")] uint coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordP3ui", "opengl") + (delegate* unmanaged)( + _slots[2528] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2528] = nativeContext.LoadFunction("glTexCoordP3ui", "opengl") + ) )(type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -568373,8 +578554,11 @@ void IGL.TexCoordP3Uiv( [NativeTypeName("const GLuint *")] uint* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordP3uiv", "opengl") + (delegate* unmanaged)( + _slots[2529] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2529] = nativeContext.LoadFunction("glTexCoordP3uiv", "opengl") + ) )(type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -568427,8 +578611,11 @@ void IGL.TexCoordP4( [NativeTypeName("GLuint")] uint coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordP4ui", "opengl") + (delegate* unmanaged)( + _slots[2530] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2530] = nativeContext.LoadFunction("glTexCoordP4ui", "opengl") + ) )(type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -568460,8 +578647,11 @@ void IGL.TexCoordP4Uiv( [NativeTypeName("const GLuint *")] uint* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordP4uiv", "opengl") + (delegate* unmanaged)( + _slots[2531] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2531] = nativeContext.LoadFunction("glTexCoordP4uiv", "opengl") + ) )(type, coords); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -568516,8 +578706,11 @@ void IGL.TexCoordPointer( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordPointer", "opengl") + (delegate* unmanaged)( + _slots[2532] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2532] = nativeContext.LoadFunction("glTexCoordPointer", "opengl") + ) )(size, type, stride, pointer); [SupportedApiProfile( @@ -568612,8 +578805,11 @@ void IGL.TexCoordPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[2533] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2533] = nativeContext.LoadFunction("glTexCoordPointerEXT", "opengl") + ) )(size, type, stride, count, pointer); [SupportedApiProfile("gl", ["GL_EXT_vertex_array"])] @@ -568663,8 +578859,14 @@ void IGL.TexCoordPointerListIBM( [NativeTypeName("GLint")] int ptrstride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordPointerListIBM", "opengl") + (delegate* unmanaged)( + _slots[2534] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2534] = nativeContext.LoadFunction( + "glTexCoordPointerListIBM", + "opengl" + ) + ) )(size, type, stride, pointer, ptrstride); [SupportedApiProfile("gl", ["GL_IBM_vertex_array_lists"])] @@ -568734,8 +578936,11 @@ void IGL.TexCoordPointerIntel( [NativeTypeName("const void **")] void** pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexCoordPointervINTEL", "opengl") + (delegate* unmanaged)( + _slots[2535] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2535] = nativeContext.LoadFunction("glTexCoordPointervINTEL", "opengl") + ) )(size, type, pointer); [SupportedApiProfile("gl", ["GL_INTEL_parallel_arrays"])] @@ -568777,8 +578982,11 @@ void IGL.TexEnv( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexEnvf", "opengl") + (delegate* unmanaged)( + _slots[2536] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2536] = nativeContext.LoadFunction("glTexEnvf", "opengl") + ) )(target, pname, param2); [SupportedApiProfile( @@ -568864,8 +579072,11 @@ void IGL.TexEnv( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexEnvfv", "opengl") + (delegate* unmanaged)( + _slots[2537] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2537] = nativeContext.LoadFunction("glTexEnvfv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -568957,8 +579168,11 @@ void IGL.TexEnv( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexEnvi", "opengl") + (delegate* unmanaged)( + _slots[2538] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2538] = nativeContext.LoadFunction("glTexEnvi", "opengl") + ) )(target, pname, param2); [SupportedApiProfile( @@ -569044,8 +579258,11 @@ void IGL.TexEnv( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexEnviv", "opengl") + (delegate* unmanaged)( + _slots[2539] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2539] = nativeContext.LoadFunction("glTexEnviv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -569137,8 +579354,11 @@ void IGL.TexEnvx( [NativeTypeName("GLfixed")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexEnvx", "opengl") + (delegate* unmanaged)( + _slots[2540] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2540] = nativeContext.LoadFunction("glTexEnvx", "opengl") + ) )(target, pname, param2); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -569174,8 +579394,11 @@ void IGL.TexEnvxOES( [NativeTypeName("GLfixed")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexEnvxOES", "opengl") + (delegate* unmanaged)( + _slots[2541] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2541] = nativeContext.LoadFunction("glTexEnvxOES", "opengl") + ) )(target, pname, param2); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -569213,8 +579436,11 @@ void IGL.TexEnvx( [NativeTypeName("const GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexEnvxv", "opengl") + (delegate* unmanaged)( + _slots[2542] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2542] = nativeContext.LoadFunction("glTexEnvxv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -569256,8 +579482,11 @@ void IGL.TexEnvxOES( [NativeTypeName("const GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexEnvxvOES", "opengl") + (delegate* unmanaged)( + _slots[2543] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2543] = nativeContext.LoadFunction("glTexEnvxvOES", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -569301,8 +579530,11 @@ void IGL.TexEstimateMotionQCOM( [NativeTypeName("GLuint")] uint output ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexEstimateMotionQCOM", "opengl") + (delegate* unmanaged)( + _slots[2544] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2544] = nativeContext.LoadFunction("glTexEstimateMotionQCOM", "opengl") + ) )(@ref, target, output); [SupportedApiProfile("gles2", ["GL_QCOM_motion_estimation"])] @@ -569322,8 +579554,14 @@ void IGL.TexEstimateMotionRegionQCOM( [NativeTypeName("GLuint")] uint mask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexEstimateMotionRegionsQCOM", "opengl") + (delegate* unmanaged)( + _slots[2545] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2545] = nativeContext.LoadFunction( + "glTexEstimateMotionRegionsQCOM", + "opengl" + ) + ) )(@ref, target, output, mask); [SupportedApiProfile("gles2", ["GL_QCOM_motion_estimation"])] @@ -569361,8 +579599,11 @@ void IGL.TexFilterFuncSGIS( [NativeTypeName("const GLfloat *")] float* weights ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexFilterFuncSGIS", "opengl") + (delegate* unmanaged)( + _slots[2546] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2546] = nativeContext.LoadFunction("glTexFilterFuncSGIS", "opengl") + ) )(target, filter, n, weights); [SupportedApiProfile("gl", ["GL_SGIS_texture_filter4"])] @@ -569407,8 +579648,11 @@ void IGL.TexGen( [NativeTypeName("GLdouble")] double param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexGend", "opengl") + (delegate* unmanaged)( + _slots[2547] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2547] = nativeContext.LoadFunction("glTexGend", "opengl") + ) )(coord, pname, param2); [SupportedApiProfile( @@ -569492,8 +579736,11 @@ void IGL.TexGen( [NativeTypeName("const GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexGendv", "opengl") + (delegate* unmanaged)( + _slots[2548] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2548] = nativeContext.LoadFunction("glTexGendv", "opengl") + ) )(coord, pname, @params); [SupportedApiProfile( @@ -569583,8 +579830,11 @@ void IGL.TexGen( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexGenf", "opengl") + (delegate* unmanaged)( + _slots[2549] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2549] = nativeContext.LoadFunction("glTexGenf", "opengl") + ) )(coord, pname, param2); [SupportedApiProfile( @@ -569668,8 +579918,11 @@ void IGL.TexGenOES( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexGenfOES", "opengl") + (delegate* unmanaged)( + _slots[2550] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2550] = nativeContext.LoadFunction("glTexGenfOES", "opengl") + ) )(coord, pname, param2); [SupportedApiProfile("gles1", ["GL_OES_texture_cube_map"])] @@ -569705,8 +579958,11 @@ void IGL.TexGen( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexGenfv", "opengl") + (delegate* unmanaged)( + _slots[2551] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2551] = nativeContext.LoadFunction("glTexGenfv", "opengl") + ) )(coord, pname, @params); [SupportedApiProfile( @@ -569796,8 +580052,11 @@ void IGL.TexGenOES( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexGenfvOES", "opengl") + (delegate* unmanaged)( + _slots[2552] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2552] = nativeContext.LoadFunction("glTexGenfvOES", "opengl") + ) )(coord, pname, @params); [SupportedApiProfile("gles1", ["GL_OES_texture_cube_map"])] @@ -569839,8 +580098,11 @@ void IGL.TexGen( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexGeni", "opengl") + (delegate* unmanaged)( + _slots[2553] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2553] = nativeContext.LoadFunction("glTexGeni", "opengl") + ) )(coord, pname, param2); [SupportedApiProfile( @@ -569924,8 +580186,11 @@ void IGL.TexGenOES( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexGeniOES", "opengl") + (delegate* unmanaged)( + _slots[2554] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2554] = nativeContext.LoadFunction("glTexGeniOES", "opengl") + ) )(coord, pname, param2); [SupportedApiProfile("gles1", ["GL_OES_texture_cube_map"])] @@ -569961,8 +580226,11 @@ void IGL.TexGen( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexGeniv", "opengl") + (delegate* unmanaged)( + _slots[2555] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2555] = nativeContext.LoadFunction("glTexGeniv", "opengl") + ) )(coord, pname, @params); [SupportedApiProfile( @@ -570052,8 +580320,11 @@ void IGL.TexGenOES( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexGenivOES", "opengl") + (delegate* unmanaged)( + _slots[2556] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2556] = nativeContext.LoadFunction("glTexGenivOES", "opengl") + ) )(coord, pname, @params); [SupportedApiProfile("gles1", ["GL_OES_texture_cube_map"])] @@ -570095,8 +580366,11 @@ void IGL.TexGenxOES( [NativeTypeName("GLfixed")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexGenxOES", "opengl") + (delegate* unmanaged)( + _slots[2557] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2557] = nativeContext.LoadFunction("glTexGenxOES", "opengl") + ) )(coord, pname, param2); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -570134,8 +580408,11 @@ void IGL.TexGenxOES( [NativeTypeName("const GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexGenxvOES", "opengl") + (delegate* unmanaged)( + _slots[2558] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2558] = nativeContext.LoadFunction("glTexGenxvOES", "opengl") + ) )(coord, pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -570184,8 +580461,11 @@ void IGL.TexImage1D( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexImage1D", "opengl") + (delegate* unmanaged)( + _slots[2559] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2559] = nativeContext.LoadFunction("glTexImage1D", "opengl") + ) )(target, level, internalformat, width, border, format, type, pixels); [SupportedApiProfile( @@ -570355,8 +580635,11 @@ void IGL.TexImage2D( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexImage2D", "opengl") + (delegate* unmanaged)( + _slots[2560] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2560] = nativeContext.LoadFunction("glTexImage2D", "opengl") + ) )(target, level, internalformat, width, height, border, format, type, pixels); [SupportedApiProfile( @@ -570561,8 +580844,11 @@ void IGL.TexImage2DMultisample( [NativeTypeName("GLboolean")] uint fixedsamplelocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexImage2DMultisample", "opengl") + (delegate* unmanaged)( + _slots[2561] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2561] = nativeContext.LoadFunction("glTexImage2DMultisample", "opengl") + ) )(target, samples, internalformat, width, height, fixedsamplelocations); [SupportedApiProfile( @@ -570697,8 +580983,14 @@ void IGL.TexImage2DMultisampleCoverageNV( [NativeTypeName("GLboolean")] uint fixedSampleLocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexImage2DMultisampleCoverageNV", "opengl") + (delegate* unmanaged)( + _slots[2562] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2562] = nativeContext.LoadFunction( + "glTexImage2DMultisampleCoverageNV", + "opengl" + ) + ) )( target, coverageSamples, @@ -570788,8 +581080,11 @@ void IGL.TexImage3D( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexImage3D", "opengl") + (delegate* unmanaged)( + _slots[2563] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2563] = nativeContext.LoadFunction("glTexImage3D", "opengl") + ) )(target, level, internalformat, width, height, depth, border, format, type, pixels); [SupportedApiProfile( @@ -570984,8 +581279,11 @@ void IGL.TexImage3DEXT( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexImage3DEXT", "opengl") + (delegate* unmanaged)( + _slots[2564] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2564] = nativeContext.LoadFunction("glTexImage3DEXT", "opengl") + ) )(target, level, internalformat, width, height, depth, border, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_texture3D"])] @@ -571087,8 +581385,11 @@ void IGL.TexImage3DMultisample( [NativeTypeName("GLboolean")] uint fixedsamplelocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexImage3DMultisample", "opengl") + (delegate* unmanaged)( + _slots[2565] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2565] = nativeContext.LoadFunction("glTexImage3DMultisample", "opengl") + ) )(target, samples, internalformat, width, height, depth, fixedsamplelocations); [SupportedApiProfile( @@ -571230,8 +581531,14 @@ void IGL.TexImage3DMultisampleCoverageNV( [NativeTypeName("GLboolean")] uint fixedSampleLocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexImage3DMultisampleCoverageNV", "opengl") + (delegate* unmanaged)( + _slots[2566] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2566] = nativeContext.LoadFunction( + "glTexImage3DMultisampleCoverageNV", + "opengl" + ) + ) )( target, coverageSamples, @@ -571328,8 +581635,11 @@ void IGL.TexImage3DOES( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexImage3DOES", "opengl") + (delegate* unmanaged)( + _slots[2567] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2567] = nativeContext.LoadFunction("glTexImage3DOES", "opengl") + ) )(target, level, internalformat, width, height, depth, border, format, type, pixels); [SupportedApiProfile("gles2", ["GL_OES_texture_3D"])] @@ -571447,8 +581757,11 @@ void IGL.TexImage4DSGIS( uint, uint, void*, - void>) - nativeContext.LoadFunction("glTexImage4DSGIS", "opengl") + void>)( + _slots[2568] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2568] = nativeContext.LoadFunction("glTexImage4DSGIS", "opengl") + ) )( target, level, @@ -571570,8 +581883,11 @@ void IGL.TexPageCommitmentARB( [NativeTypeName("GLboolean")] uint commit ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexPageCommitmentARB", "opengl") + (delegate* unmanaged)( + _slots[2569] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2569] = nativeContext.LoadFunction("glTexPageCommitmentARB", "opengl") + ) )(target, level, xoffset, yoffset, zoffset, width, height, depth, commit); [SupportedApiProfile("gl", ["GL_ARB_sparse_texture"])] @@ -571666,8 +581982,11 @@ void IGL.TexPageCommitmentEXT( [NativeTypeName("GLboolean")] uint commit ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexPageCommitmentEXT", "opengl") + (delegate* unmanaged)( + _slots[2570] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2570] = nativeContext.LoadFunction("glTexPageCommitmentEXT", "opengl") + ) )(target, level, xoffset, yoffset, zoffset, width, height, depth, commit); [SupportedApiProfile("gles2", ["GL_EXT_sparse_texture"])] @@ -571776,8 +582095,14 @@ void IGL.TexPageCommitmentMemNV( uint, ulong, uint, - void>) - nativeContext.LoadFunction("glTexPageCommitmentMemNV", "opengl") + void>)( + _slots[2571] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2571] = nativeContext.LoadFunction( + "glTexPageCommitmentMemNV", + "opengl" + ) + ) )( target, layer, @@ -571899,8 +582224,11 @@ void IGL.TexParameter( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameterf", "opengl") + (delegate* unmanaged)( + _slots[2572] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2572] = nativeContext.LoadFunction("glTexParameterf", "opengl") + ) )(target, pname, param2); [SupportedApiProfile( @@ -572046,8 +582374,11 @@ void IGL.TexParameter( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameterfv", "opengl") + (delegate* unmanaged)( + _slots[2573] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2573] = nativeContext.LoadFunction("glTexParameterfv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -572199,8 +582530,11 @@ void IGL.TexParameter( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameteri", "opengl") + (delegate* unmanaged)( + _slots[2574] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2574] = nativeContext.LoadFunction("glTexParameteri", "opengl") + ) )(target, pname, param2); [SupportedApiProfile( @@ -572346,8 +582680,11 @@ void IGL.TexParameterI( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameterIiv", "opengl") + (delegate* unmanaged)( + _slots[2575] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2575] = nativeContext.LoadFunction("glTexParameterIiv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -572455,8 +582792,11 @@ void IGL.TexParameterIEXT( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameterIivEXT", "opengl") + (delegate* unmanaged)( + _slots[2576] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2576] = nativeContext.LoadFunction("glTexParameterIivEXT", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_texture_integer"])] @@ -572500,8 +582840,11 @@ void IGL.TexParameterIOES( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameterIivOES", "opengl") + (delegate* unmanaged)( + _slots[2577] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2577] = nativeContext.LoadFunction("glTexParameterIivOES", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gles2", ["GL_OES_texture_border_clamp"])] @@ -572543,8 +582886,11 @@ void IGL.TexParameterI( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameterIuiv", "opengl") + (delegate* unmanaged)( + _slots[2578] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2578] = nativeContext.LoadFunction("glTexParameterIuiv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -572652,8 +582998,11 @@ void IGL.TexParameterIEXT( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameterIuivEXT", "opengl") + (delegate* unmanaged)( + _slots[2579] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2579] = nativeContext.LoadFunction("glTexParameterIuivEXT", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_texture_integer"])] @@ -572697,8 +583046,11 @@ void IGL.TexParameterIOES( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameterIuivOES", "opengl") + (delegate* unmanaged)( + _slots[2580] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2580] = nativeContext.LoadFunction("glTexParameterIuivOES", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gles2", ["GL_OES_texture_border_clamp"])] @@ -572740,8 +583092,11 @@ void IGL.TexParameter( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameteriv", "opengl") + (delegate* unmanaged)( + _slots[2581] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2581] = nativeContext.LoadFunction("glTexParameteriv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile( @@ -572893,8 +583248,11 @@ void IGL.TexParameterx( [NativeTypeName("GLfixed")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameterx", "opengl") + (delegate* unmanaged)( + _slots[2582] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2582] = nativeContext.LoadFunction("glTexParameterx", "opengl") + ) )(target, pname, param2); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -572930,8 +583288,11 @@ void IGL.TexParameterxOES( [NativeTypeName("GLfixed")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameterxOES", "opengl") + (delegate* unmanaged)( + _slots[2583] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2583] = nativeContext.LoadFunction("glTexParameterxOES", "opengl") + ) )(target, pname, param2); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -572969,8 +583330,11 @@ void IGL.TexParameterx( [NativeTypeName("const GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameterxv", "opengl") + (delegate* unmanaged)( + _slots[2584] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2584] = nativeContext.LoadFunction("glTexParameterxv", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -573012,8 +583376,11 @@ void IGL.TexParameterxOES( [NativeTypeName("const GLfixed *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexParameterxvOES", "opengl") + (delegate* unmanaged)( + _slots[2585] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2585] = nativeContext.LoadFunction("glTexParameterxvOES", "opengl") + ) )(target, pname, @params); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -573056,8 +583423,11 @@ void IGL.TexRenderbufferNV( [NativeTypeName("GLuint")] uint renderbuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexRenderbufferNV", "opengl") + (delegate* unmanaged)( + _slots[2586] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2586] = nativeContext.LoadFunction("glTexRenderbufferNV", "opengl") + ) )(target, renderbuffer); [SupportedApiProfile("gl", ["GL_NV_explicit_multisample"])] @@ -573091,8 +583461,11 @@ void IGL.TexStorage1D( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorage1D", "opengl") + (delegate* unmanaged)( + _slots[2587] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2587] = nativeContext.LoadFunction("glTexStorage1D", "opengl") + ) )(target, levels, internalformat, width); [SupportedApiProfile( @@ -573178,8 +583551,11 @@ void IGL.TexStorage1DEXT( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[2588] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2588] = nativeContext.LoadFunction("glTexStorage1DEXT", "opengl") + ) )(target, levels, internalformat, width); [SupportedApiProfile("gl", ["GL_EXT_texture_storage"])] @@ -573226,8 +583602,11 @@ void IGL.TexStorage2D( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorage2D", "opengl") + (delegate* unmanaged)( + _slots[2589] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2589] = nativeContext.LoadFunction("glTexStorage2D", "opengl") + ) )(target, levels, internalformat, width, height); [SupportedApiProfile( @@ -573317,8 +583696,11 @@ void IGL.TexStorage2DEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[2590] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2590] = nativeContext.LoadFunction("glTexStorage2DEXT", "opengl") + ) )(target, levels, internalformat, width, height); [SupportedApiProfile("gl", ["GL_EXT_texture_storage"])] @@ -573369,8 +583751,14 @@ void IGL.TexStorage2DMultisample( [NativeTypeName("GLboolean")] uint fixedsamplelocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorage2DMultisample", "opengl") + (delegate* unmanaged)( + _slots[2591] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2591] = nativeContext.LoadFunction( + "glTexStorage2DMultisample", + "opengl" + ) + ) )(target, samples, internalformat, width, height, fixedsamplelocations); [SupportedApiProfile( @@ -573484,8 +583872,11 @@ void IGL.TexStorage3D( [NativeTypeName("GLsizei")] uint depth ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorage3D", "opengl") + (delegate* unmanaged)( + _slots[2592] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2592] = nativeContext.LoadFunction("glTexStorage3D", "opengl") + ) )(target, levels, internalformat, width, height, depth); [SupportedApiProfile( @@ -573579,8 +583970,11 @@ void IGL.TexStorage3DEXT( [NativeTypeName("GLsizei")] uint depth ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorage3DEXT", "opengl") + (delegate* unmanaged)( + _slots[2593] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2593] = nativeContext.LoadFunction("glTexStorage3DEXT", "opengl") + ) )(target, levels, internalformat, width, height, depth); [SupportedApiProfile("gl", ["GL_EXT_texture_storage"])] @@ -573643,8 +584037,14 @@ void IGL.TexStorage3DMultisample( [NativeTypeName("GLboolean")] uint fixedsamplelocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorage3DMultisample", "opengl") + (delegate* unmanaged)( + _slots[2594] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2594] = nativeContext.LoadFunction( + "glTexStorage3DMultisample", + "opengl" + ) + ) )(target, samples, internalformat, width, height, depth, fixedsamplelocations); [SupportedApiProfile( @@ -573765,8 +584165,14 @@ void IGL.TexStorage3DMultisampleOES( [NativeTypeName("GLboolean")] uint fixedsamplelocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorage3DMultisampleOES", "opengl") + (delegate* unmanaged)( + _slots[2595] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2595] = nativeContext.LoadFunction( + "glTexStorage3DMultisampleOES", + "opengl" + ) + ) )(target, samples, internalformat, width, height, depth, fixedsamplelocations); [SupportedApiProfile("gles2", ["GL_OES_texture_storage_multisample_2d_array"])] @@ -573844,8 +584250,14 @@ void IGL.TexStorageAttribs2DEXT( [NativeTypeName("const GLint *")] int* attrib_list ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorageAttribs2DEXT", "opengl") + (delegate* unmanaged)( + _slots[2596] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2596] = nativeContext.LoadFunction( + "glTexStorageAttribs2DEXT", + "opengl" + ) + ) )(target, levels, internalformat, width, height, attrib_list); [SupportedApiProfile("gles2", ["GL_EXT_texture_storage_compression"])] @@ -574011,8 +584423,14 @@ void IGL.TexStorageAttribs3DEXT( [NativeTypeName("const GLint *")] int* attrib_list ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorageAttribs3DEXT", "opengl") + (delegate* unmanaged)( + _slots[2597] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2597] = nativeContext.LoadFunction( + "glTexStorageAttribs3DEXT", + "opengl" + ) + ) )(target, levels, internalformat, width, height, depth, attrib_list); [SupportedApiProfile("gles2", ["GL_EXT_texture_storage_compression"])] @@ -574191,8 +584609,11 @@ void IGL.TexStorageMem1DEXT( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorageMem1DEXT", "opengl") + (delegate* unmanaged)( + _slots[2598] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2598] = nativeContext.LoadFunction("glTexStorageMem1DEXT", "opengl") + ) )(target, levels, internalFormat, width, memory, offset); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -574249,8 +584670,11 @@ void IGL.TexStorageMem2DEXT( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorageMem2DEXT", "opengl") + (delegate* unmanaged)( + _slots[2599] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2599] = nativeContext.LoadFunction("glTexStorageMem2DEXT", "opengl") + ) )(target, levels, internalFormat, width, height, memory, offset); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -574332,8 +584756,14 @@ void IGL.TexStorageMem2DMultisampleEXT( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorageMem2DMultisampleEXT", "opengl") + (delegate* unmanaged)( + _slots[2600] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2600] = nativeContext.LoadFunction( + "glTexStorageMem2DMultisampleEXT", + "opengl" + ) + ) )(target, samples, internalFormat, width, height, fixedSampleLocations, memory, offset); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -574421,8 +584851,11 @@ void IGL.TexStorageMem3DEXT( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorageMem3DEXT", "opengl") + (delegate* unmanaged)( + _slots[2601] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2601] = nativeContext.LoadFunction("glTexStorageMem3DEXT", "opengl") + ) )(target, levels, internalFormat, width, height, depth, memory, offset); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -574511,8 +584944,14 @@ void IGL.TexStorageMem3DMultisampleEXT( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorageMem3DMultisampleEXT", "opengl") + (delegate* unmanaged)( + _slots[2602] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2602] = nativeContext.LoadFunction( + "glTexStorageMem3DMultisampleEXT", + "opengl" + ) + ) )( target, samples, @@ -574615,8 +585054,11 @@ void IGL.TexStorageSparseAMD( [NativeTypeName("GLbitfield")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexStorageSparseAMD", "opengl") + (delegate* unmanaged)( + _slots[2603] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2603] = nativeContext.LoadFunction("glTexStorageSparseAMD", "opengl") + ) )(target, internalFormat, width, height, depth, layers, flags); [SupportedApiProfile("gl", ["GL_AMD_sparse_texture"])] @@ -574679,8 +585121,11 @@ void IGL.TexSubImage1D( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexSubImage1D", "opengl") + (delegate* unmanaged)( + _slots[2604] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2604] = nativeContext.LoadFunction("glTexSubImage1D", "opengl") + ) )(target, level, xoffset, width, format, type, pixels); [SupportedApiProfile( @@ -574840,8 +585285,11 @@ void IGL.TexSubImage1DEXT( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexSubImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[2605] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2605] = nativeContext.LoadFunction("glTexSubImage1DEXT", "opengl") + ) )(target, level, xoffset, width, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_subtexture"])] @@ -574909,8 +585357,11 @@ void IGL.TexSubImage2D( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexSubImage2D", "opengl") + (delegate* unmanaged)( + _slots[2606] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2606] = nativeContext.LoadFunction("glTexSubImage2D", "opengl") + ) )(target, level, xoffset, yoffset, width, height, format, type, pixels); [SupportedApiProfile( @@ -575114,8 +585565,11 @@ void IGL.TexSubImage2DEXT( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexSubImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[2607] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2607] = nativeContext.LoadFunction("glTexSubImage2DEXT", "opengl") + ) )(target, level, xoffset, yoffset, width, height, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_subtexture"])] @@ -575227,8 +585681,11 @@ void IGL.TexSubImage3D( uint, uint, void*, - void>) - nativeContext.LoadFunction("glTexSubImage3D", "opengl") + void>)( + _slots[2608] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2608] = nativeContext.LoadFunction("glTexSubImage3D", "opengl") + ) )(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); [SupportedApiProfile( @@ -575442,8 +585899,11 @@ void IGL.TexSubImage3DEXT( uint, uint, void*, - void>) - nativeContext.LoadFunction("glTexSubImage3DEXT", "opengl") + void>)( + _slots[2609] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2609] = nativeContext.LoadFunction("glTexSubImage3DEXT", "opengl") + ) )(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_texture3D"])] @@ -575567,8 +586027,11 @@ void IGL.TexSubImage3DOES( uint, uint, void*, - void>) - nativeContext.LoadFunction("glTexSubImage3DOES", "opengl") + void>)( + _slots[2610] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2610] = nativeContext.LoadFunction("glTexSubImage3DOES", "opengl") + ) )(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); [SupportedApiProfile("gles2", ["GL_OES_texture_3D"])] @@ -575696,8 +586159,11 @@ void IGL.TexSubImage4DSGIS( uint, uint, void*, - void>) - nativeContext.LoadFunction("glTexSubImage4DSGIS", "opengl") + void>)( + _slots[2611] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2611] = nativeContext.LoadFunction("glTexSubImage4DSGIS", "opengl") + ) )( target, level, @@ -575827,8 +586293,11 @@ void IGL.TextureAttachMemoryNV( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureAttachMemoryNV", "opengl") + (delegate* unmanaged)( + _slots[2612] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2612] = nativeContext.LoadFunction("glTextureAttachMemoryNV", "opengl") + ) )(texture, memory, offset); [SupportedApiProfile("gl", ["GL_NV_memory_attachment"])] @@ -575844,7 +586313,13 @@ public static void TextureAttachMemoryNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TextureBarrier() => - ((delegate* unmanaged)nativeContext.LoadFunction("glTextureBarrier", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[2613] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2613] = nativeContext.LoadFunction("glTextureBarrier", "opengl") + ) + )(); [SupportedApiProfile( "gl", @@ -575862,7 +586337,13 @@ void IGL.TextureBarrier() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TextureBarrierNV() => - ((delegate* unmanaged)nativeContext.LoadFunction("glTextureBarrierNV", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[2614] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2614] = nativeContext.LoadFunction("glTextureBarrierNV", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_NV_texture_barrier"])] [SupportedApiProfile("glcore", ["GL_NV_texture_barrier"])] @@ -575877,8 +586358,11 @@ void IGL.TextureBuffer( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureBuffer", "opengl") + (delegate* unmanaged)( + _slots[2615] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2615] = nativeContext.LoadFunction("glTextureBuffer", "opengl") + ) )(texture, internalformat, buffer); [SupportedApiProfile( @@ -575933,8 +586417,11 @@ void IGL.TextureBufferEXT( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureBufferEXT", "opengl") + (delegate* unmanaged)( + _slots[2616] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2616] = nativeContext.LoadFunction("glTextureBufferEXT", "opengl") + ) )(texture, target, internalformat, buffer); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -575977,8 +586464,11 @@ void IGL.TextureBufferRange( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureBufferRange", "opengl") + (delegate* unmanaged)( + _slots[2617] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2617] = nativeContext.LoadFunction("glTextureBufferRange", "opengl") + ) )(texture, internalformat, buffer, offset, size); [SupportedApiProfile( @@ -576041,8 +586531,11 @@ void IGL.TextureBufferRangeEXT( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureBufferRangeEXT", "opengl") + (delegate* unmanaged)( + _slots[2618] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2618] = nativeContext.LoadFunction("glTextureBufferRangeEXT", "opengl") + ) )(texture, target, internalformat, buffer, offset, size); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -576098,8 +586591,11 @@ void IGL.TextureColorMaskSGIS( [NativeTypeName("GLboolean")] uint alpha ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureColorMaskSGIS", "opengl") + (delegate* unmanaged)( + _slots[2619] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2619] = nativeContext.LoadFunction("glTextureColorMaskSGIS", "opengl") + ) )(red, green, blue, alpha); [SupportedApiProfile("gl", ["GL_SGIS_texture_color_mask"])] @@ -576143,8 +586639,14 @@ void IGL.TextureFoveationParametersQCOM( [NativeTypeName("GLfloat")] float foveaArea ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureFoveationParametersQCOM", "opengl") + (delegate* unmanaged)( + _slots[2620] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2620] = nativeContext.LoadFunction( + "glTextureFoveationParametersQCOM", + "opengl" + ) + ) )(texture, layer, focalPoint, focalX, focalY, gainX, gainY, foveaArea); [SupportedApiProfile("gles2", ["GL_QCOM_texture_foveated"])] @@ -576184,8 +586686,11 @@ void IGL.TextureImage1DEXT( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[2621] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2621] = nativeContext.LoadFunction("glTextureImage1DEXT", "opengl") + ) )(texture, target, level, internalformat, width, border, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -576286,8 +586791,11 @@ void IGL.TextureImage2DEXT( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[2622] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2622] = nativeContext.LoadFunction("glTextureImage2DEXT", "opengl") + ) )(texture, target, level, internalformat, width, height, border, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -576392,8 +586900,14 @@ void IGL.TextureImage2DMultisampleCoverageNV( [NativeTypeName("GLboolean")] uint fixedSampleLocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureImage2DMultisampleCoverageNV", "opengl") + (delegate* unmanaged)( + _slots[2623] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2623] = nativeContext.LoadFunction( + "glTextureImage2DMultisampleCoverageNV", + "opengl" + ) + ) )( texture, target, @@ -576487,8 +587001,14 @@ void IGL.TextureImage2DMultisampleNV( [NativeTypeName("GLboolean")] uint fixedSampleLocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureImage2DMultisampleNV", "opengl") + (delegate* unmanaged)( + _slots[2624] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2624] = nativeContext.LoadFunction( + "glTextureImage2DMultisampleNV", + "opengl" + ) + ) )(texture, target, samples, internalFormat, width, height, fixedSampleLocations); [SupportedApiProfile("gl", ["GL_NV_texture_multisample"])] @@ -576583,8 +587103,11 @@ void IGL.TextureImage3DEXT( uint, uint, void*, - void>) - nativeContext.LoadFunction("glTextureImage3DEXT", "opengl") + void>)( + _slots[2625] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2625] = nativeContext.LoadFunction("glTextureImage3DEXT", "opengl") + ) )( texture, target, @@ -576708,8 +587231,14 @@ void IGL.TextureImage3DMultisampleCoverageNV( [NativeTypeName("GLboolean")] uint fixedSampleLocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureImage3DMultisampleCoverageNV", "opengl") + (delegate* unmanaged)( + _slots[2626] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2626] = nativeContext.LoadFunction( + "glTextureImage3DMultisampleCoverageNV", + "opengl" + ) + ) )( texture, target, @@ -576811,8 +587340,14 @@ void IGL.TextureImage3DMultisampleNV( [NativeTypeName("GLboolean")] uint fixedSampleLocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureImage3DMultisampleNV", "opengl") + (delegate* unmanaged)( + _slots[2627] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2627] = nativeContext.LoadFunction( + "glTextureImage3DMultisampleNV", + "opengl" + ) + ) )(texture, target, samples, internalFormat, width, height, depth, fixedSampleLocations); [SupportedApiProfile("gl", ["GL_NV_texture_multisample"])] @@ -576889,8 +587424,11 @@ public static void TextureImage3DMultisampleNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TextureLightEXT([NativeTypeName("GLenum")] uint pname) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureLightEXT", "opengl") + (delegate* unmanaged)( + _slots[2628] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2628] = nativeContext.LoadFunction("glTextureLightEXT", "opengl") + ) )(pname); [SupportedApiProfile("gl", ["GL_EXT_light_texture"])] @@ -576918,8 +587456,11 @@ void IGL.TextureMaterialEXT( [NativeTypeName("GLenum")] uint mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureMaterialEXT", "opengl") + (delegate* unmanaged)( + _slots[2629] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2629] = nativeContext.LoadFunction("glTextureMaterialEXT", "opengl") + ) )(face, mode); [SupportedApiProfile("gl", ["GL_EXT_light_texture"])] @@ -576948,8 +587489,11 @@ public static void TextureMaterialEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.TextureNormalEXT([NativeTypeName("GLenum")] uint mode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureNormalEXT", "opengl") + (delegate* unmanaged)( + _slots[2630] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2630] = nativeContext.LoadFunction("glTextureNormalEXT", "opengl") + ) )(mode); [SupportedApiProfile("gl", ["GL_EXT_texture_perturb_normal"])] @@ -576984,8 +587528,14 @@ void IGL.TexturePageCommitmentEXT( [NativeTypeName("GLboolean")] uint commit ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTexturePageCommitmentEXT", "opengl") + (delegate* unmanaged)( + _slots[2631] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2631] = nativeContext.LoadFunction( + "glTexturePageCommitmentEXT", + "opengl" + ) + ) )(texture, level, xoffset, yoffset, zoffset, width, height, depth, commit); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -577096,8 +587646,14 @@ void IGL.TexturePageCommitmentMemNV( uint, ulong, uint, - void>) - nativeContext.LoadFunction("glTexturePageCommitmentMemNV", "opengl") + void>)( + _slots[2632] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2632] = nativeContext.LoadFunction( + "glTexturePageCommitmentMemNV", + "opengl" + ) + ) )( texture, layer, @@ -577219,8 +587775,11 @@ void IGL.TextureParameter( [NativeTypeName("GLfloat")] float param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureParameterf", "opengl") + (delegate* unmanaged)( + _slots[2633] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2633] = nativeContext.LoadFunction("glTextureParameterf", "opengl") + ) )(texture, pname, param2); [SupportedApiProfile( @@ -577275,8 +587834,11 @@ void IGL.TextureParameterEXT( [NativeTypeName("GLfloat")] float param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureParameterfEXT", "opengl") + (delegate* unmanaged)( + _slots[2634] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2634] = nativeContext.LoadFunction("glTextureParameterfEXT", "opengl") + ) )(texture, target, pname, param3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -577317,8 +587879,11 @@ void IGL.TextureParameter( [NativeTypeName("const GLfloat *")] float* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureParameterfv", "opengl") + (delegate* unmanaged)( + _slots[2635] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2635] = nativeContext.LoadFunction("glTextureParameterfv", "opengl") + ) )(texture, pname, param2); [SupportedApiProfile( @@ -577379,8 +587944,11 @@ void IGL.TextureParameterEXT( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureParameterfvEXT", "opengl") + (delegate* unmanaged)( + _slots[2636] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2636] = nativeContext.LoadFunction("glTextureParameterfvEXT", "opengl") + ) )(texture, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -577427,8 +587995,11 @@ void IGL.TextureParameter( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureParameteri", "opengl") + (delegate* unmanaged)( + _slots[2637] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2637] = nativeContext.LoadFunction("glTextureParameteri", "opengl") + ) )(texture, pname, param2); [SupportedApiProfile( @@ -577483,8 +588054,11 @@ void IGL.TextureParameterEXT( [NativeTypeName("GLint")] int param3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureParameteriEXT", "opengl") + (delegate* unmanaged)( + _slots[2638] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2638] = nativeContext.LoadFunction("glTextureParameteriEXT", "opengl") + ) )(texture, target, pname, param3); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -577525,8 +588099,11 @@ void IGL.TextureParameterI( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureParameterIiv", "opengl") + (delegate* unmanaged)( + _slots[2639] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2639] = nativeContext.LoadFunction("glTextureParameterIiv", "opengl") + ) )(texture, pname, @params); [SupportedApiProfile( @@ -577587,8 +588164,14 @@ void IGL.TextureParameterIEXT( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureParameterIivEXT", "opengl") + (delegate* unmanaged)( + _slots[2640] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2640] = nativeContext.LoadFunction( + "glTextureParameterIivEXT", + "opengl" + ) + ) )(texture, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -577635,8 +588218,11 @@ void IGL.TextureParameterI( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureParameterIuiv", "opengl") + (delegate* unmanaged)( + _slots[2641] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2641] = nativeContext.LoadFunction("glTextureParameterIuiv", "opengl") + ) )(texture, pname, @params); [SupportedApiProfile( @@ -577697,8 +588283,14 @@ void IGL.TextureParameterIEXT( [NativeTypeName("const GLuint *")] uint* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureParameterIuivEXT", "opengl") + (delegate* unmanaged)( + _slots[2642] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2642] = nativeContext.LoadFunction( + "glTextureParameterIuivEXT", + "opengl" + ) + ) )(texture, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -577745,8 +588337,11 @@ void IGL.TextureParameter( [NativeTypeName("const GLint *")] int* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureParameteriv", "opengl") + (delegate* unmanaged)( + _slots[2643] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2643] = nativeContext.LoadFunction("glTextureParameteriv", "opengl") + ) )(texture, pname, param2); [SupportedApiProfile( @@ -577807,8 +588402,11 @@ void IGL.TextureParameterEXT( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureParameterivEXT", "opengl") + (delegate* unmanaged)( + _slots[2644] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2644] = nativeContext.LoadFunction("glTextureParameterivEXT", "opengl") + ) )(texture, target, pname, @params); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -577855,8 +588453,11 @@ void IGL.TextureRangeApple( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureRangeAPPLE", "opengl") + (delegate* unmanaged)( + _slots[2645] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2645] = nativeContext.LoadFunction("glTextureRangeAPPLE", "opengl") + ) )(target, length, pointer); [SupportedApiProfile("gl", ["GL_APPLE_texture_range"])] @@ -577898,8 +588499,14 @@ void IGL.TextureRenderbufferEXT( [NativeTypeName("GLuint")] uint renderbuffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureRenderbufferEXT", "opengl") + (delegate* unmanaged)( + _slots[2646] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2646] = nativeContext.LoadFunction( + "glTextureRenderbufferEXT", + "opengl" + ) + ) )(texture, target, renderbuffer); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -577938,8 +588545,11 @@ void IGL.TextureStorage1D( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorage1D", "opengl") + (delegate* unmanaged)( + _slots[2647] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2647] = nativeContext.LoadFunction("glTextureStorage1D", "opengl") + ) )(texture, levels, internalformat, width); [SupportedApiProfile( @@ -577998,8 +588608,11 @@ void IGL.TextureStorage1DEXT( [NativeTypeName("GLsizei")] uint width ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[2648] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2648] = nativeContext.LoadFunction("glTextureStorage1DEXT", "opengl") + ) )(texture, target, levels, internalformat, width); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_texture_storage"])] @@ -578049,8 +588662,11 @@ void IGL.TextureStorage2D( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorage2D", "opengl") + (delegate* unmanaged)( + _slots[2649] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2649] = nativeContext.LoadFunction("glTextureStorage2D", "opengl") + ) )(texture, levels, internalformat, width, height); [SupportedApiProfile( @@ -578113,8 +588729,11 @@ void IGL.TextureStorage2DEXT( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[2650] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2650] = nativeContext.LoadFunction("glTextureStorage2DEXT", "opengl") + ) )(texture, target, levels, internalformat, width, height); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_texture_storage"])] @@ -578176,8 +588795,14 @@ void IGL.TextureStorage2DMultisample( [NativeTypeName("GLboolean")] uint fixedsamplelocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorage2DMultisample", "opengl") + (delegate* unmanaged)( + _slots[2651] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2651] = nativeContext.LoadFunction( + "glTextureStorage2DMultisample", + "opengl" + ) + ) )(texture, samples, internalformat, width, height, fixedsamplelocations); [SupportedApiProfile( @@ -578268,8 +588893,14 @@ void IGL.TextureStorage2DMultisampleEXT( [NativeTypeName("GLboolean")] uint fixedsamplelocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorage2DMultisampleEXT", "opengl") + (delegate* unmanaged)( + _slots[2652] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2652] = nativeContext.LoadFunction( + "glTextureStorage2DMultisampleEXT", + "opengl" + ) + ) )(texture, target, samples, internalformat, width, height, fixedsamplelocations); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -578349,8 +588980,11 @@ void IGL.TextureStorage3D( [NativeTypeName("GLsizei")] uint depth ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorage3D", "opengl") + (delegate* unmanaged)( + _slots[2653] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2653] = nativeContext.LoadFunction("glTextureStorage3D", "opengl") + ) )(texture, levels, internalformat, width, height, depth); [SupportedApiProfile( @@ -578417,8 +589051,11 @@ void IGL.TextureStorage3DEXT( [NativeTypeName("GLsizei")] uint depth ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorage3DEXT", "opengl") + (delegate* unmanaged)( + _slots[2654] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2654] = nativeContext.LoadFunction("glTextureStorage3DEXT", "opengl") + ) )(texture, target, levels, internalformat, width, height, depth); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access", "GL_EXT_texture_storage"])] @@ -578503,8 +589140,14 @@ void IGL.TextureStorage3DMultisample( [NativeTypeName("GLboolean")] uint fixedsamplelocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorage3DMultisample", "opengl") + (delegate* unmanaged)( + _slots[2655] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2655] = nativeContext.LoadFunction( + "glTextureStorage3DMultisample", + "opengl" + ) + ) )(texture, samples, internalformat, width, height, depth, fixedsamplelocations); [SupportedApiProfile( @@ -578602,8 +589245,14 @@ void IGL.TextureStorage3DMultisampleEXT( [NativeTypeName("GLboolean")] uint fixedsamplelocations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorage3DMultisampleEXT", "opengl") + (delegate* unmanaged)( + _slots[2656] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2656] = nativeContext.LoadFunction( + "glTextureStorage3DMultisampleEXT", + "opengl" + ) + ) )(texture, target, samples, internalformat, width, height, depth, fixedsamplelocations); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -578689,8 +589338,14 @@ void IGL.TextureStorageMem1DEXT( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorageMem1DEXT", "opengl") + (delegate* unmanaged)( + _slots[2657] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2657] = nativeContext.LoadFunction( + "glTextureStorageMem1DEXT", + "opengl" + ) + ) )(texture, levels, internalFormat, width, memory, offset); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -578747,8 +589402,14 @@ void IGL.TextureStorageMem2DEXT( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorageMem2DEXT", "opengl") + (delegate* unmanaged)( + _slots[2658] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2658] = nativeContext.LoadFunction( + "glTextureStorageMem2DEXT", + "opengl" + ) + ) )(texture, levels, internalFormat, width, height, memory, offset); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -578830,8 +589491,14 @@ void IGL.TextureStorageMem2DMultisampleEXT( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorageMem2DMultisampleEXT", "opengl") + (delegate* unmanaged)( + _slots[2659] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2659] = nativeContext.LoadFunction( + "glTextureStorageMem2DMultisampleEXT", + "opengl" + ) + ) )(texture, samples, internalFormat, width, height, fixedSampleLocations, memory, offset); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -578919,8 +589586,14 @@ void IGL.TextureStorageMem3DEXT( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorageMem3DEXT", "opengl") + (delegate* unmanaged)( + _slots[2660] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2660] = nativeContext.LoadFunction( + "glTextureStorageMem3DEXT", + "opengl" + ) + ) )(texture, levels, internalFormat, width, height, depth, memory, offset); [SupportedApiProfile("gl", ["GL_EXT_memory_object"])] @@ -579009,8 +589682,14 @@ void IGL.TextureStorageMem3DMultisampleEXT( [NativeTypeName("GLuint64")] ulong offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorageMem3DMultisampleEXT", "opengl") + (delegate* unmanaged)( + _slots[2661] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2661] = nativeContext.LoadFunction( + "glTextureStorageMem3DMultisampleEXT", + "opengl" + ) + ) )( texture, samples, @@ -579114,8 +589793,14 @@ void IGL.TextureStorageSparseAMD( [NativeTypeName("GLbitfield")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureStorageSparseAMD", "opengl") + (delegate* unmanaged)( + _slots[2662] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2662] = nativeContext.LoadFunction( + "glTextureStorageSparseAMD", + "opengl" + ) + ) )(texture, target, internalFormat, width, height, depth, layers, flags); [SupportedApiProfile("gl", ["GL_AMD_sparse_texture"])] @@ -579200,8 +589885,11 @@ void IGL.TextureSubImage1D( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureSubImage1D", "opengl") + (delegate* unmanaged)( + _slots[2663] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2663] = nativeContext.LoadFunction("glTextureSubImage1D", "opengl") + ) )(texture, level, xoffset, width, format, type, pixels); [SupportedApiProfile( @@ -579286,8 +589974,11 @@ void IGL.TextureSubImage1DEXT( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureSubImage1DEXT", "opengl") + (delegate* unmanaged)( + _slots[2664] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2664] = nativeContext.LoadFunction("glTextureSubImage1DEXT", "opengl") + ) )(texture, target, level, xoffset, width, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -579381,8 +590072,11 @@ void IGL.TextureSubImage2D( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureSubImage2D", "opengl") + (delegate* unmanaged)( + _slots[2665] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2665] = nativeContext.LoadFunction("glTextureSubImage2D", "opengl") + ) )(texture, level, xoffset, yoffset, width, height, format, type, pixels); [SupportedApiProfile( @@ -579499,8 +590193,11 @@ void IGL.TextureSubImage2DEXT( [NativeTypeName("const void *")] void* pixels ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureSubImage2DEXT", "opengl") + (delegate* unmanaged)( + _slots[2666] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2666] = nativeContext.LoadFunction("glTextureSubImage2DEXT", "opengl") + ) )(texture, target, level, xoffset, yoffset, width, height, format, type, pixels); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -579620,8 +590317,11 @@ void IGL.TextureSubImage3D( uint, uint, void*, - void>) - nativeContext.LoadFunction("glTextureSubImage3D", "opengl") + void>)( + _slots[2667] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2667] = nativeContext.LoadFunction("glTextureSubImage3D", "opengl") + ) )(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); [SupportedApiProfile( @@ -579765,8 +590465,11 @@ void IGL.TextureSubImage3DEXT( uint, uint, void*, - void>) - nativeContext.LoadFunction("glTextureSubImage3DEXT", "opengl") + void>)( + _slots[2668] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2668] = nativeContext.LoadFunction("glTextureSubImage3DEXT", "opengl") + ) )( texture, target, @@ -579896,8 +590599,11 @@ void IGL.TextureView( [NativeTypeName("GLuint")] uint numlayers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureView", "opengl") + (delegate* unmanaged)( + _slots[2669] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2669] = nativeContext.LoadFunction("glTextureView", "opengl") + ) )(texture, target, origtexture, internalformat, minlevel, numlevels, minlayer, numlayers); [SupportedApiProfile( @@ -580025,8 +590731,11 @@ void IGL.TextureViewEXT( [NativeTypeName("GLuint")] uint numlayers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureViewEXT", "opengl") + (delegate* unmanaged)( + _slots[2670] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2670] = nativeContext.LoadFunction("glTextureViewEXT", "opengl") + ) )(texture, target, origtexture, internalformat, minlevel, numlevels, minlayer, numlayers); [SupportedApiProfile("gles2", ["GL_EXT_texture_view"])] @@ -580112,8 +590821,11 @@ void IGL.TextureViewOES( [NativeTypeName("GLuint")] uint numlayers ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTextureViewOES", "opengl") + (delegate* unmanaged)( + _slots[2671] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2671] = nativeContext.LoadFunction("glTextureViewOES", "opengl") + ) )(texture, target, origtexture, internalformat, minlevel, numlevels, minlayer, numlayers); [SupportedApiProfile("gles2", ["GL_OES_texture_view"])] @@ -580195,8 +590907,11 @@ void IGL.TrackMatrixNV( [NativeTypeName("GLenum")] uint transform ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTrackMatrixNV", "opengl") + (delegate* unmanaged)( + _slots[2672] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2672] = nativeContext.LoadFunction("glTrackMatrixNV", "opengl") + ) )(target, address, matrix, transform); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -580235,8 +590950,14 @@ void IGL.TransformFeedbackAttribNV( [NativeTypeName("GLenum")] uint bufferMode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTransformFeedbackAttribsNV", "opengl") + (delegate* unmanaged)( + _slots[2673] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2673] = nativeContext.LoadFunction( + "glTransformFeedbackAttribsNV", + "opengl" + ) + ) )(count, attribs, bufferMode); [SupportedApiProfile("gl", ["GL_NV_transform_feedback"])] @@ -580293,8 +591014,14 @@ void IGL.TransformFeedbackBufferBase( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTransformFeedbackBufferBase", "opengl") + (delegate* unmanaged)( + _slots[2674] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2674] = nativeContext.LoadFunction( + "glTransformFeedbackBufferBase", + "opengl" + ) + ) )(xfb, index, buffer); [SupportedApiProfile( @@ -580324,8 +591051,14 @@ void IGL.TransformFeedbackBufferRange( [NativeTypeName("GLsizeiptr")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTransformFeedbackBufferRange", "opengl") + (delegate* unmanaged)( + _slots[2675] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2675] = nativeContext.LoadFunction( + "glTransformFeedbackBufferRange", + "opengl" + ) + ) )(xfb, index, buffer, offset, size); [SupportedApiProfile( @@ -580357,8 +591090,14 @@ void IGL.TransformFeedbackStreamAttribNV( [NativeTypeName("GLenum")] uint bufferMode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTransformFeedbackStreamAttribsNV", "opengl") + (delegate* unmanaged)( + _slots[2676] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2676] = nativeContext.LoadFunction( + "glTransformFeedbackStreamAttribsNV", + "opengl" + ) + ) )(count, attribs, nbuffers, bufstreams, bufferMode); [SupportedApiProfile("gl", ["GL_NV_transform_feedback"])] @@ -580489,8 +591228,14 @@ void IGL.TransformFeedbackVaryings( [NativeTypeName("GLenum")] uint bufferMode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTransformFeedbackVaryings", "opengl") + (delegate* unmanaged)( + _slots[2677] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2677] = nativeContext.LoadFunction( + "glTransformFeedbackVaryings", + "opengl" + ) + ) )(program, count, varyings, bufferMode); [SupportedApiProfile( @@ -580602,8 +591347,14 @@ void IGL.TransformFeedbackVaryingsEXT( [NativeTypeName("GLenum")] uint bufferMode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTransformFeedbackVaryingsEXT", "opengl") + (delegate* unmanaged)( + _slots[2678] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2678] = nativeContext.LoadFunction( + "glTransformFeedbackVaryingsEXT", + "opengl" + ) + ) )(program, count, varyings, bufferMode); [SupportedApiProfile("gl", ["GL_EXT_transform_feedback"])] @@ -580682,8 +591433,14 @@ void IGL.TransformFeedbackVaryingsNV( [NativeTypeName("GLenum")] uint bufferMode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTransformFeedbackVaryingsNV", "opengl") + (delegate* unmanaged)( + _slots[2679] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2679] = nativeContext.LoadFunction( + "glTransformFeedbackVaryingsNV", + "opengl" + ) + ) )(program, count, locations, bufferMode); [SupportedApiProfile("gl", ["GL_NV_transform_feedback"])] @@ -580857,8 +591614,11 @@ void IGL.TransformPathNV( [NativeTypeName("const GLfloat *")] float* transformValues ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTransformPathNV", "opengl") + (delegate* unmanaged)( + _slots[2680] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2680] = nativeContext.LoadFunction("glTransformPathNV", "opengl") + ) )(resultPath, srcPath, transformType, transformValues); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -580912,8 +591672,11 @@ void IGL.Translate( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTranslated", "opengl") + (delegate* unmanaged)( + _slots[2681] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2681] = nativeContext.LoadFunction("glTranslated", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -580956,8 +591719,11 @@ void IGL.Translate( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTranslatef", "opengl") + (delegate* unmanaged)( + _slots[2682] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2682] = nativeContext.LoadFunction("glTranslatef", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -581001,8 +591767,11 @@ void IGL.Translatex( [NativeTypeName("GLfixed")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTranslatex", "opengl") + (delegate* unmanaged)( + _slots[2683] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2683] = nativeContext.LoadFunction("glTranslatex", "opengl") + ) )(x, y, z); [SupportedApiProfile("gles1", ["GL_VERSION_ES_CM_1_0"], MinVersion = "1.0")] @@ -581021,8 +591790,11 @@ void IGL.TranslatexOES( [NativeTypeName("GLfixed")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glTranslatexOES", "opengl") + (delegate* unmanaged)( + _slots[2684] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2684] = nativeContext.LoadFunction("glTranslatexOES", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -581041,8 +591813,11 @@ void IGL.Uniform1( [NativeTypeName("GLdouble")] double x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1d", "opengl") + (delegate* unmanaged)( + _slots[2685] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2685] = nativeContext.LoadFunction("glUniform1d", "opengl") + ) )(location, x); [SupportedApiProfile( @@ -581087,8 +591862,11 @@ void IGL.Uniform1( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1dv", "opengl") + (delegate* unmanaged)( + _slots[2686] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2686] = nativeContext.LoadFunction("glUniform1dv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -581183,8 +591961,11 @@ void IGL.Uniform1( [NativeTypeName("GLfloat")] float v0 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1f", "opengl") + (delegate* unmanaged)( + _slots[2687] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2687] = nativeContext.LoadFunction("glUniform1f", "opengl") + ) )(location, v0); [SupportedApiProfile( @@ -581243,8 +592024,11 @@ void IGL.Uniform1ARB( [NativeTypeName("GLfloat")] float v0 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1fARB", "opengl") + (delegate* unmanaged)( + _slots[2688] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2688] = nativeContext.LoadFunction("glUniform1fARB", "opengl") + ) )(location, v0); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -581262,8 +592046,11 @@ void IGL.Uniform1( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1fv", "opengl") + (delegate* unmanaged)( + _slots[2689] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2689] = nativeContext.LoadFunction("glUniform1fv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -581389,8 +592176,11 @@ void IGL.Uniform1ARB( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1fvARB", "opengl") + (delegate* unmanaged)( + _slots[2690] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2690] = nativeContext.LoadFunction("glUniform1fvARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -581427,10 +592217,13 @@ public static void Uniform1ARB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Uniform1([NativeTypeName("GLint")] int location, [NativeTypeName("GLint")] int v0) => - ((delegate* unmanaged)nativeContext.LoadFunction("glUniform1i", "opengl"))( - location, - v0 - ); + ( + (delegate* unmanaged)( + _slots[2691] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2691] = nativeContext.LoadFunction("glUniform1i", "opengl") + ) + )(location, v0); [SupportedApiProfile( "gl", @@ -581488,8 +592281,11 @@ void IGL.Uniform1ARB( [NativeTypeName("GLint64")] long x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1i64ARB", "opengl") + (delegate* unmanaged)( + _slots[2692] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2692] = nativeContext.LoadFunction("glUniform1i64ARB", "opengl") + ) )(location, x); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -581507,8 +592303,11 @@ void IGL.Uniform1NV( [NativeTypeName("GLint64EXT")] long x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1i64NV", "opengl") + (delegate* unmanaged)( + _slots[2693] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2693] = nativeContext.LoadFunction("glUniform1i64NV", "opengl") + ) )(location, x); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -581528,8 +592327,11 @@ void IGL.Uniform1ARB( [NativeTypeName("const GLint64 *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1i64vARB", "opengl") + (delegate* unmanaged)( + _slots[2694] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2694] = nativeContext.LoadFunction("glUniform1i64vARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -581573,8 +592375,11 @@ void IGL.Uniform1NV( [NativeTypeName("const GLint64EXT *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1i64vNV", "opengl") + (delegate* unmanaged)( + _slots[2695] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2695] = nativeContext.LoadFunction("glUniform1i64vNV", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -581619,8 +592424,11 @@ void IGL.Uniform1ARB( [NativeTypeName("GLint")] int v0 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1iARB", "opengl") + (delegate* unmanaged)( + _slots[2696] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2696] = nativeContext.LoadFunction("glUniform1iARB", "opengl") + ) )(location, v0); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -581638,8 +592446,11 @@ void IGL.Uniform1( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1iv", "opengl") + (delegate* unmanaged)( + _slots[2697] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2697] = nativeContext.LoadFunction("glUniform1iv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -581765,8 +592576,11 @@ void IGL.Uniform1ARB( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1ivARB", "opengl") + (delegate* unmanaged)( + _slots[2698] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2698] = nativeContext.LoadFunction("glUniform1ivARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -581804,8 +592618,11 @@ public static void Uniform1ARB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Uniform1([NativeTypeName("GLint")] int location, [NativeTypeName("GLuint")] uint v0) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1ui", "opengl") + (delegate* unmanaged)( + _slots[2699] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2699] = nativeContext.LoadFunction("glUniform1ui", "opengl") + ) )(location, v0); [SupportedApiProfile( @@ -581855,8 +592672,11 @@ void IGL.Uniform1ARB( [NativeTypeName("GLuint64")] ulong x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1ui64ARB", "opengl") + (delegate* unmanaged)( + _slots[2700] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2700] = nativeContext.LoadFunction("glUniform1ui64ARB", "opengl") + ) )(location, x); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -581874,8 +592694,11 @@ void IGL.Uniform1NV( [NativeTypeName("GLuint64EXT")] ulong x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1ui64NV", "opengl") + (delegate* unmanaged)( + _slots[2701] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2701] = nativeContext.LoadFunction("glUniform1ui64NV", "opengl") + ) )(location, x); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -581895,8 +592718,11 @@ void IGL.Uniform1ARB( [NativeTypeName("const GLuint64 *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1ui64vARB", "opengl") + (delegate* unmanaged)( + _slots[2702] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2702] = nativeContext.LoadFunction("glUniform1ui64vARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -581940,8 +592766,11 @@ void IGL.Uniform1NV( [NativeTypeName("const GLuint64EXT *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1ui64vNV", "opengl") + (delegate* unmanaged)( + _slots[2703] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2703] = nativeContext.LoadFunction("glUniform1ui64vNV", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -581986,8 +592815,11 @@ void IGL.Uniform1EXT( [NativeTypeName("GLuint")] uint v0 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1uiEXT", "opengl") + (delegate* unmanaged)( + _slots[2704] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2704] = nativeContext.LoadFunction("glUniform1uiEXT", "opengl") + ) )(location, v0); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4"])] @@ -582005,8 +592837,11 @@ void IGL.Uniform1( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1uiv", "opengl") + (delegate* unmanaged)( + _slots[2705] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2705] = nativeContext.LoadFunction("glUniform1uiv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -582114,8 +592949,11 @@ void IGL.Uniform1EXT( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform1uivEXT", "opengl") + (delegate* unmanaged)( + _slots[2706] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2706] = nativeContext.LoadFunction("glUniform1uivEXT", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4"])] @@ -582157,8 +592995,11 @@ void IGL.Uniform2( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2d", "opengl") + (delegate* unmanaged)( + _slots[2707] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2707] = nativeContext.LoadFunction("glUniform2d", "opengl") + ) )(location, x, y); [SupportedApiProfile( @@ -582204,8 +593045,11 @@ void IGL.Uniform2( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2dv", "opengl") + (delegate* unmanaged)( + _slots[2708] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2708] = nativeContext.LoadFunction("glUniform2dv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -582301,8 +593145,11 @@ void IGL.Uniform2( [NativeTypeName("GLfloat")] float v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2f", "opengl") + (delegate* unmanaged)( + _slots[2709] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2709] = nativeContext.LoadFunction("glUniform2f", "opengl") + ) )(location, v0, v1); [SupportedApiProfile( @@ -582363,8 +593210,11 @@ void IGL.Uniform2ARB( [NativeTypeName("GLfloat")] float v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2fARB", "opengl") + (delegate* unmanaged)( + _slots[2710] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2710] = nativeContext.LoadFunction("glUniform2fARB", "opengl") + ) )(location, v0, v1); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -582383,8 +593233,11 @@ void IGL.Uniform2( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2fv", "opengl") + (delegate* unmanaged)( + _slots[2711] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2711] = nativeContext.LoadFunction("glUniform2fv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -582510,8 +593363,11 @@ void IGL.Uniform2ARB( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2fvARB", "opengl") + (delegate* unmanaged)( + _slots[2712] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2712] = nativeContext.LoadFunction("glUniform2fvARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -582553,8 +593409,11 @@ void IGL.Uniform2( [NativeTypeName("GLint")] int v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2i", "opengl") + (delegate* unmanaged)( + _slots[2713] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2713] = nativeContext.LoadFunction("glUniform2i", "opengl") + ) )(location, v0, v1); [SupportedApiProfile( @@ -582615,8 +593474,11 @@ void IGL.Uniform2ARB( [NativeTypeName("GLint64")] long y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2i64ARB", "opengl") + (delegate* unmanaged)( + _slots[2714] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2714] = nativeContext.LoadFunction("glUniform2i64ARB", "opengl") + ) )(location, x, y); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -582636,8 +593498,11 @@ void IGL.Uniform2NV( [NativeTypeName("GLint64EXT")] long y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2i64NV", "opengl") + (delegate* unmanaged)( + _slots[2715] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2715] = nativeContext.LoadFunction("glUniform2i64NV", "opengl") + ) )(location, x, y); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -582658,8 +593523,11 @@ void IGL.Uniform2ARB( [NativeTypeName("const GLint64 *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2i64vARB", "opengl") + (delegate* unmanaged)( + _slots[2716] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2716] = nativeContext.LoadFunction("glUniform2i64vARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -582703,8 +593571,11 @@ void IGL.Uniform2NV( [NativeTypeName("const GLint64EXT *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2i64vNV", "opengl") + (delegate* unmanaged)( + _slots[2717] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2717] = nativeContext.LoadFunction("glUniform2i64vNV", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -582750,8 +593621,11 @@ void IGL.Uniform2ARB( [NativeTypeName("GLint")] int v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2iARB", "opengl") + (delegate* unmanaged)( + _slots[2718] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2718] = nativeContext.LoadFunction("glUniform2iARB", "opengl") + ) )(location, v0, v1); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -582770,8 +593644,11 @@ void IGL.Uniform2( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2iv", "opengl") + (delegate* unmanaged)( + _slots[2719] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2719] = nativeContext.LoadFunction("glUniform2iv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -582897,8 +593774,11 @@ void IGL.Uniform2ARB( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2ivARB", "opengl") + (delegate* unmanaged)( + _slots[2720] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2720] = nativeContext.LoadFunction("glUniform2ivARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -582940,8 +593820,11 @@ void IGL.Uniform2( [NativeTypeName("GLuint")] uint v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2ui", "opengl") + (delegate* unmanaged)( + _slots[2721] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2721] = nativeContext.LoadFunction("glUniform2ui", "opengl") + ) )(location, v0, v1); [SupportedApiProfile( @@ -582993,8 +593876,11 @@ void IGL.Uniform2ARB( [NativeTypeName("GLuint64")] ulong y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2ui64ARB", "opengl") + (delegate* unmanaged)( + _slots[2722] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2722] = nativeContext.LoadFunction("glUniform2ui64ARB", "opengl") + ) )(location, x, y); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -583014,8 +593900,11 @@ void IGL.Uniform2NV( [NativeTypeName("GLuint64EXT")] ulong y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2ui64NV", "opengl") + (delegate* unmanaged)( + _slots[2723] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2723] = nativeContext.LoadFunction("glUniform2ui64NV", "opengl") + ) )(location, x, y); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -583036,8 +593925,11 @@ void IGL.Uniform2ARB( [NativeTypeName("const GLuint64 *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2ui64vARB", "opengl") + (delegate* unmanaged)( + _slots[2724] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2724] = nativeContext.LoadFunction("glUniform2ui64vARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -583081,8 +593973,11 @@ void IGL.Uniform2NV( [NativeTypeName("const GLuint64EXT *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2ui64vNV", "opengl") + (delegate* unmanaged)( + _slots[2725] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2725] = nativeContext.LoadFunction("glUniform2ui64vNV", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -583128,8 +594023,11 @@ void IGL.Uniform2EXT( [NativeTypeName("GLuint")] uint v1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2uiEXT", "opengl") + (delegate* unmanaged)( + _slots[2726] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2726] = nativeContext.LoadFunction("glUniform2uiEXT", "opengl") + ) )(location, v0, v1); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4"])] @@ -583148,8 +594046,11 @@ void IGL.Uniform2( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2uiv", "opengl") + (delegate* unmanaged)( + _slots[2727] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2727] = nativeContext.LoadFunction("glUniform2uiv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -583257,8 +594158,11 @@ void IGL.Uniform2EXT( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform2uivEXT", "opengl") + (delegate* unmanaged)( + _slots[2728] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2728] = nativeContext.LoadFunction("glUniform2uivEXT", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4"])] @@ -583301,8 +594205,11 @@ void IGL.Uniform3( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3d", "opengl") + (delegate* unmanaged)( + _slots[2729] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2729] = nativeContext.LoadFunction("glUniform3d", "opengl") + ) )(location, x, y, z); [SupportedApiProfile( @@ -583349,8 +594256,11 @@ void IGL.Uniform3( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3dv", "opengl") + (delegate* unmanaged)( + _slots[2730] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2730] = nativeContext.LoadFunction("glUniform3dv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -583447,8 +594357,11 @@ void IGL.Uniform3( [NativeTypeName("GLfloat")] float v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3f", "opengl") + (delegate* unmanaged)( + _slots[2731] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2731] = nativeContext.LoadFunction("glUniform3f", "opengl") + ) )(location, v0, v1, v2); [SupportedApiProfile( @@ -583511,8 +594424,11 @@ void IGL.Uniform3ARB( [NativeTypeName("GLfloat")] float v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3fARB", "opengl") + (delegate* unmanaged)( + _slots[2732] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2732] = nativeContext.LoadFunction("glUniform3fARB", "opengl") + ) )(location, v0, v1, v2); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -583532,8 +594448,11 @@ void IGL.Uniform3( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3fv", "opengl") + (delegate* unmanaged)( + _slots[2733] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2733] = nativeContext.LoadFunction("glUniform3fv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -583659,8 +594578,11 @@ void IGL.Uniform3ARB( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3fvARB", "opengl") + (delegate* unmanaged)( + _slots[2734] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2734] = nativeContext.LoadFunction("glUniform3fvARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -583703,8 +594625,11 @@ void IGL.Uniform3( [NativeTypeName("GLint")] int v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3i", "opengl") + (delegate* unmanaged)( + _slots[2735] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2735] = nativeContext.LoadFunction("glUniform3i", "opengl") + ) )(location, v0, v1, v2); [SupportedApiProfile( @@ -583767,8 +594692,11 @@ void IGL.Uniform3ARB( [NativeTypeName("GLint64")] long z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3i64ARB", "opengl") + (delegate* unmanaged)( + _slots[2736] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2736] = nativeContext.LoadFunction("glUniform3i64ARB", "opengl") + ) )(location, x, y, z); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -583790,8 +594718,11 @@ void IGL.Uniform3NV( [NativeTypeName("GLint64EXT")] long z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3i64NV", "opengl") + (delegate* unmanaged)( + _slots[2737] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2737] = nativeContext.LoadFunction("glUniform3i64NV", "opengl") + ) )(location, x, y, z); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -583813,8 +594744,11 @@ void IGL.Uniform3ARB( [NativeTypeName("const GLint64 *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3i64vARB", "opengl") + (delegate* unmanaged)( + _slots[2738] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2738] = nativeContext.LoadFunction("glUniform3i64vARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -583858,8 +594792,11 @@ void IGL.Uniform3NV( [NativeTypeName("const GLint64EXT *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3i64vNV", "opengl") + (delegate* unmanaged)( + _slots[2739] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2739] = nativeContext.LoadFunction("glUniform3i64vNV", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -583906,8 +594843,11 @@ void IGL.Uniform3ARB( [NativeTypeName("GLint")] int v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3iARB", "opengl") + (delegate* unmanaged)( + _slots[2740] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2740] = nativeContext.LoadFunction("glUniform3iARB", "opengl") + ) )(location, v0, v1, v2); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -583927,8 +594867,11 @@ void IGL.Uniform3( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3iv", "opengl") + (delegate* unmanaged)( + _slots[2741] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2741] = nativeContext.LoadFunction("glUniform3iv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -584054,8 +594997,11 @@ void IGL.Uniform3ARB( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3ivARB", "opengl") + (delegate* unmanaged)( + _slots[2742] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2742] = nativeContext.LoadFunction("glUniform3ivARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -584098,8 +595044,11 @@ void IGL.Uniform3( [NativeTypeName("GLuint")] uint v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3ui", "opengl") + (delegate* unmanaged)( + _slots[2743] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2743] = nativeContext.LoadFunction("glUniform3ui", "opengl") + ) )(location, v0, v1, v2); [SupportedApiProfile( @@ -584153,8 +595102,11 @@ void IGL.Uniform3ARB( [NativeTypeName("GLuint64")] ulong z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3ui64ARB", "opengl") + (delegate* unmanaged)( + _slots[2744] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2744] = nativeContext.LoadFunction("glUniform3ui64ARB", "opengl") + ) )(location, x, y, z); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -584176,8 +595128,11 @@ void IGL.Uniform3NV( [NativeTypeName("GLuint64EXT")] ulong z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3ui64NV", "opengl") + (delegate* unmanaged)( + _slots[2745] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2745] = nativeContext.LoadFunction("glUniform3ui64NV", "opengl") + ) )(location, x, y, z); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -584199,8 +595154,11 @@ void IGL.Uniform3ARB( [NativeTypeName("const GLuint64 *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3ui64vARB", "opengl") + (delegate* unmanaged)( + _slots[2746] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2746] = nativeContext.LoadFunction("glUniform3ui64vARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -584244,8 +595202,11 @@ void IGL.Uniform3NV( [NativeTypeName("const GLuint64EXT *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3ui64vNV", "opengl") + (delegate* unmanaged)( + _slots[2747] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2747] = nativeContext.LoadFunction("glUniform3ui64vNV", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -584292,8 +595253,11 @@ void IGL.Uniform3EXT( [NativeTypeName("GLuint")] uint v2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3uiEXT", "opengl") + (delegate* unmanaged)( + _slots[2748] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2748] = nativeContext.LoadFunction("glUniform3uiEXT", "opengl") + ) )(location, v0, v1, v2); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4"])] @@ -584313,8 +595277,11 @@ void IGL.Uniform3( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3uiv", "opengl") + (delegate* unmanaged)( + _slots[2749] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2749] = nativeContext.LoadFunction("glUniform3uiv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -584422,8 +595389,11 @@ void IGL.Uniform3EXT( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform3uivEXT", "opengl") + (delegate* unmanaged)( + _slots[2750] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2750] = nativeContext.LoadFunction("glUniform3uivEXT", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4"])] @@ -584467,8 +595437,11 @@ void IGL.Uniform4( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4d", "opengl") + (delegate* unmanaged)( + _slots[2751] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2751] = nativeContext.LoadFunction("glUniform4d", "opengl") + ) )(location, x, y, z, w); [SupportedApiProfile( @@ -584516,8 +595489,11 @@ void IGL.Uniform4( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4dv", "opengl") + (delegate* unmanaged)( + _slots[2752] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2752] = nativeContext.LoadFunction("glUniform4dv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -584615,8 +595591,11 @@ void IGL.Uniform4( [NativeTypeName("GLfloat")] float v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4f", "opengl") + (delegate* unmanaged)( + _slots[2753] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2753] = nativeContext.LoadFunction("glUniform4f", "opengl") + ) )(location, v0, v1, v2, v3); [SupportedApiProfile( @@ -584681,8 +595660,11 @@ void IGL.Uniform4ARB( [NativeTypeName("GLfloat")] float v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4fARB", "opengl") + (delegate* unmanaged)( + _slots[2754] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2754] = nativeContext.LoadFunction("glUniform4fARB", "opengl") + ) )(location, v0, v1, v2, v3); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -584703,8 +595685,11 @@ void IGL.Uniform4( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4fv", "opengl") + (delegate* unmanaged)( + _slots[2755] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2755] = nativeContext.LoadFunction("glUniform4fv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -584830,8 +595815,11 @@ void IGL.Uniform4ARB( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4fvARB", "opengl") + (delegate* unmanaged)( + _slots[2756] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2756] = nativeContext.LoadFunction("glUniform4fvARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -584875,8 +595863,11 @@ void IGL.Uniform4( [NativeTypeName("GLint")] int v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4i", "opengl") + (delegate* unmanaged)( + _slots[2757] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2757] = nativeContext.LoadFunction("glUniform4i", "opengl") + ) )(location, v0, v1, v2, v3); [SupportedApiProfile( @@ -584941,8 +595932,11 @@ void IGL.Uniform4ARB( [NativeTypeName("GLint64")] long w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4i64ARB", "opengl") + (delegate* unmanaged)( + _slots[2758] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2758] = nativeContext.LoadFunction("glUniform4i64ARB", "opengl") + ) )(location, x, y, z, w); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -584966,8 +595960,11 @@ void IGL.Uniform4NV( [NativeTypeName("GLint64EXT")] long w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4i64NV", "opengl") + (delegate* unmanaged)( + _slots[2759] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2759] = nativeContext.LoadFunction("glUniform4i64NV", "opengl") + ) )(location, x, y, z, w); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -584990,8 +595987,11 @@ void IGL.Uniform4ARB( [NativeTypeName("const GLint64 *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4i64vARB", "opengl") + (delegate* unmanaged)( + _slots[2760] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2760] = nativeContext.LoadFunction("glUniform4i64vARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -585035,8 +596035,11 @@ void IGL.Uniform4NV( [NativeTypeName("const GLint64EXT *")] long* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4i64vNV", "opengl") + (delegate* unmanaged)( + _slots[2761] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2761] = nativeContext.LoadFunction("glUniform4i64vNV", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -585084,8 +596087,11 @@ void IGL.Uniform4ARB( [NativeTypeName("GLint")] int v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4iARB", "opengl") + (delegate* unmanaged)( + _slots[2762] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2762] = nativeContext.LoadFunction("glUniform4iARB", "opengl") + ) )(location, v0, v1, v2, v3); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -585106,8 +596112,11 @@ void IGL.Uniform4( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4iv", "opengl") + (delegate* unmanaged)( + _slots[2763] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2763] = nativeContext.LoadFunction("glUniform4iv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -585233,8 +596242,11 @@ void IGL.Uniform4ARB( [NativeTypeName("const GLint *")] int* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4ivARB", "opengl") + (delegate* unmanaged)( + _slots[2764] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2764] = nativeContext.LoadFunction("glUniform4ivARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -585278,8 +596290,11 @@ void IGL.Uniform4( [NativeTypeName("GLuint")] uint v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4ui", "opengl") + (delegate* unmanaged)( + _slots[2765] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2765] = nativeContext.LoadFunction("glUniform4ui", "opengl") + ) )(location, v0, v1, v2, v3); [SupportedApiProfile( @@ -585335,8 +596350,11 @@ void IGL.Uniform4ARB( [NativeTypeName("GLuint64")] ulong w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4ui64ARB", "opengl") + (delegate* unmanaged)( + _slots[2766] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2766] = nativeContext.LoadFunction("glUniform4ui64ARB", "opengl") + ) )(location, x, y, z, w); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -585360,8 +596378,11 @@ void IGL.Uniform4NV( [NativeTypeName("GLuint64EXT")] ulong w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4ui64NV", "opengl") + (delegate* unmanaged)( + _slots[2767] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2767] = nativeContext.LoadFunction("glUniform4ui64NV", "opengl") + ) )(location, x, y, z, w); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -585384,8 +596405,11 @@ void IGL.Uniform4ARB( [NativeTypeName("const GLuint64 *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4ui64vARB", "opengl") + (delegate* unmanaged)( + _slots[2768] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2768] = nativeContext.LoadFunction("glUniform4ui64vARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_gpu_shader_int64"])] @@ -585429,8 +596453,11 @@ void IGL.Uniform4NV( [NativeTypeName("const GLuint64EXT *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4ui64vNV", "opengl") + (delegate* unmanaged)( + _slots[2769] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2769] = nativeContext.LoadFunction("glUniform4ui64vNV", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_AMD_gpu_shader_int64", "GL_NV_gpu_shader5"])] @@ -585478,8 +596505,11 @@ void IGL.Uniform4EXT( [NativeTypeName("GLuint")] uint v3 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4uiEXT", "opengl") + (delegate* unmanaged)( + _slots[2770] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2770] = nativeContext.LoadFunction("glUniform4uiEXT", "opengl") + ) )(location, v0, v1, v2, v3); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4"])] @@ -585500,8 +596530,11 @@ void IGL.Uniform4( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4uiv", "opengl") + (delegate* unmanaged)( + _slots[2771] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2771] = nativeContext.LoadFunction("glUniform4uiv", "opengl") + ) )(location, count, value); [SupportedApiProfile( @@ -585609,8 +596642,11 @@ void IGL.Uniform4EXT( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniform4uivEXT", "opengl") + (delegate* unmanaged)( + _slots[2772] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2772] = nativeContext.LoadFunction("glUniform4uivEXT", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4"])] @@ -585652,8 +596688,11 @@ void IGL.UniformBlockBinding( [NativeTypeName("GLuint")] uint uniformBlockBinding ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformBlockBinding", "opengl") + (delegate* unmanaged)( + _slots[2773] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2773] = nativeContext.LoadFunction("glUniformBlockBinding", "opengl") + ) )(program, uniformBlockIndex, uniformBlockBinding); [SupportedApiProfile( @@ -585705,8 +596744,11 @@ void IGL.UniformBufferEXT( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformBufferEXT", "opengl") + (delegate* unmanaged)( + _slots[2774] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2774] = nativeContext.LoadFunction("glUniformBufferEXT", "opengl") + ) )(program, location, buffer); [SupportedApiProfile("gl", ["GL_EXT_bindable_uniform"])] @@ -585724,8 +596766,11 @@ void IGL.UniformHandleARB( [NativeTypeName("GLuint64")] ulong value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformHandleui64ARB", "opengl") + (delegate* unmanaged)( + _slots[2775] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2775] = nativeContext.LoadFunction("glUniformHandleui64ARB", "opengl") + ) )(location, value); [SupportedApiProfile("gl", ["GL_ARB_bindless_texture"])] @@ -585743,8 +596788,11 @@ void IGL.UniformHandleIMG( [NativeTypeName("GLuint64")] ulong value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformHandleui64IMG", "opengl") + (delegate* unmanaged)( + _slots[2776] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2776] = nativeContext.LoadFunction("glUniformHandleui64IMG", "opengl") + ) )(location, value); [SupportedApiProfile("gles2", ["GL_IMG_bindless_texture"])] @@ -585761,8 +596809,11 @@ void IGL.UniformHandleNV( [NativeTypeName("GLuint64")] ulong value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformHandleui64NV", "opengl") + (delegate* unmanaged)( + _slots[2777] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2777] = nativeContext.LoadFunction("glUniformHandleui64NV", "opengl") + ) )(location, value); [SupportedApiProfile("gl", ["GL_NV_bindless_texture"])] @@ -585782,8 +596833,11 @@ void IGL.UniformHandleui64VARB( [NativeTypeName("const GLuint64 *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformHandleui64vARB", "opengl") + (delegate* unmanaged)( + _slots[2778] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2778] = nativeContext.LoadFunction("glUniformHandleui64vARB", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_ARB_bindless_texture"])] @@ -585843,8 +596897,11 @@ void IGL.UniformHandleui64VIMG( [NativeTypeName("const GLuint64 *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformHandleui64vIMG", "opengl") + (delegate* unmanaged)( + _slots[2779] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2779] = nativeContext.LoadFunction("glUniformHandleui64vIMG", "opengl") + ) )(location, count, value); [SupportedApiProfile("gles2", ["GL_IMG_bindless_texture"])] @@ -585901,8 +596958,11 @@ void IGL.UniformHandleui64VNV( [NativeTypeName("const GLuint64 *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformHandleui64vNV", "opengl") + (delegate* unmanaged)( + _slots[2780] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2780] = nativeContext.LoadFunction("glUniformHandleui64vNV", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_NV_bindless_texture"])] @@ -585966,8 +597026,11 @@ void IGL.UniformMatrix2( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix2dv", "opengl") + (delegate* unmanaged)( + _slots[2781] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2781] = nativeContext.LoadFunction("glUniformMatrix2dv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -586067,8 +597130,11 @@ void IGL.UniformMatrix2( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix2fv", "opengl") + (delegate* unmanaged)( + _slots[2782] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2782] = nativeContext.LoadFunction("glUniformMatrix2fv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -586198,8 +597264,11 @@ void IGL.UniformMatrix2ARB( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix2fvARB", "opengl") + (delegate* unmanaged)( + _slots[2783] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2783] = nativeContext.LoadFunction("glUniformMatrix2fvARB", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -586245,8 +597314,11 @@ void IGL.UniformMatrix2X3( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix2x3dv", "opengl") + (delegate* unmanaged)( + _slots[2784] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2784] = nativeContext.LoadFunction("glUniformMatrix2x3dv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -586346,8 +597418,11 @@ void IGL.UniformMatrix2X3( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix2x3fv", "opengl") + (delegate* unmanaged)( + _slots[2785] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2785] = nativeContext.LoadFunction("glUniformMatrix2x3fv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -586463,8 +597538,11 @@ void IGL.UniformMatrix2X3NV( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix2x3fvNV", "opengl") + (delegate* unmanaged)( + _slots[2786] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2786] = nativeContext.LoadFunction("glUniformMatrix2x3fvNV", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile("gles2", ["GL_NV_non_square_matrices"])] @@ -586510,8 +597588,11 @@ void IGL.UniformMatrix2X4( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix2x4dv", "opengl") + (delegate* unmanaged)( + _slots[2787] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2787] = nativeContext.LoadFunction("glUniformMatrix2x4dv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -586611,8 +597692,11 @@ void IGL.UniformMatrix2X4( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix2x4fv", "opengl") + (delegate* unmanaged)( + _slots[2788] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2788] = nativeContext.LoadFunction("glUniformMatrix2x4fv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -586728,8 +597812,11 @@ void IGL.UniformMatrix2X4NV( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix2x4fvNV", "opengl") + (delegate* unmanaged)( + _slots[2789] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2789] = nativeContext.LoadFunction("glUniformMatrix2x4fvNV", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile("gles2", ["GL_NV_non_square_matrices"])] @@ -586775,8 +597862,11 @@ void IGL.UniformMatrix3( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix3dv", "opengl") + (delegate* unmanaged)( + _slots[2790] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2790] = nativeContext.LoadFunction("glUniformMatrix3dv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -586876,8 +597966,11 @@ void IGL.UniformMatrix3( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix3fv", "opengl") + (delegate* unmanaged)( + _slots[2791] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2791] = nativeContext.LoadFunction("glUniformMatrix3fv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -587007,8 +598100,11 @@ void IGL.UniformMatrix3ARB( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix3fvARB", "opengl") + (delegate* unmanaged)( + _slots[2792] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2792] = nativeContext.LoadFunction("glUniformMatrix3fvARB", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -587054,8 +598150,11 @@ void IGL.UniformMatrix3X2( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix3x2dv", "opengl") + (delegate* unmanaged)( + _slots[2793] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2793] = nativeContext.LoadFunction("glUniformMatrix3x2dv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -587155,8 +598254,11 @@ void IGL.UniformMatrix3X2( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix3x2fv", "opengl") + (delegate* unmanaged)( + _slots[2794] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2794] = nativeContext.LoadFunction("glUniformMatrix3x2fv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -587272,8 +598374,11 @@ void IGL.UniformMatrix3X2NV( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix3x2fvNV", "opengl") + (delegate* unmanaged)( + _slots[2795] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2795] = nativeContext.LoadFunction("glUniformMatrix3x2fvNV", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile("gles2", ["GL_NV_non_square_matrices"])] @@ -587319,8 +598424,11 @@ void IGL.UniformMatrix3X4( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix3x4dv", "opengl") + (delegate* unmanaged)( + _slots[2796] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2796] = nativeContext.LoadFunction("glUniformMatrix3x4dv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -587420,8 +598528,11 @@ void IGL.UniformMatrix3X4( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix3x4fv", "opengl") + (delegate* unmanaged)( + _slots[2797] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2797] = nativeContext.LoadFunction("glUniformMatrix3x4fv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -587537,8 +598648,11 @@ void IGL.UniformMatrix3X4NV( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix3x4fvNV", "opengl") + (delegate* unmanaged)( + _slots[2798] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2798] = nativeContext.LoadFunction("glUniformMatrix3x4fvNV", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile("gles2", ["GL_NV_non_square_matrices"])] @@ -587584,8 +598698,11 @@ void IGL.UniformMatrix4( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix4dv", "opengl") + (delegate* unmanaged)( + _slots[2799] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2799] = nativeContext.LoadFunction("glUniformMatrix4dv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -587685,8 +598802,11 @@ void IGL.UniformMatrix4( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix4fv", "opengl") + (delegate* unmanaged)( + _slots[2800] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2800] = nativeContext.LoadFunction("glUniformMatrix4fv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -587816,8 +598936,11 @@ void IGL.UniformMatrix4ARB( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix4fvARB", "opengl") + (delegate* unmanaged)( + _slots[2801] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2801] = nativeContext.LoadFunction("glUniformMatrix4fvARB", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -587863,8 +598986,11 @@ void IGL.UniformMatrix4X2( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix4x2dv", "opengl") + (delegate* unmanaged)( + _slots[2802] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2802] = nativeContext.LoadFunction("glUniformMatrix4x2dv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -587964,8 +599090,11 @@ void IGL.UniformMatrix4X2( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix4x2fv", "opengl") + (delegate* unmanaged)( + _slots[2803] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2803] = nativeContext.LoadFunction("glUniformMatrix4x2fv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -588081,8 +599210,11 @@ void IGL.UniformMatrix4X2NV( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix4x2fvNV", "opengl") + (delegate* unmanaged)( + _slots[2804] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2804] = nativeContext.LoadFunction("glUniformMatrix4x2fvNV", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile("gles2", ["GL_NV_non_square_matrices"])] @@ -588128,8 +599260,11 @@ void IGL.UniformMatrix4X3( [NativeTypeName("const GLdouble *")] double* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix4x3dv", "opengl") + (delegate* unmanaged)( + _slots[2805] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2805] = nativeContext.LoadFunction("glUniformMatrix4x3dv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -588229,8 +599364,11 @@ void IGL.UniformMatrix4X3( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix4x3fv", "opengl") + (delegate* unmanaged)( + _slots[2806] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2806] = nativeContext.LoadFunction("glUniformMatrix4x3fv", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile( @@ -588346,8 +599484,11 @@ void IGL.UniformMatrix4X3NV( [NativeTypeName("const GLfloat *")] float* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformMatrix4x3fvNV", "opengl") + (delegate* unmanaged)( + _slots[2807] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2807] = nativeContext.LoadFunction("glUniformMatrix4x3fvNV", "opengl") + ) )(location, count, transpose, value); [SupportedApiProfile("gles2", ["GL_NV_non_square_matrices"])] @@ -588392,8 +599533,11 @@ void IGL.UniformSubroutines( [NativeTypeName("const GLuint *")] uint* indices ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformSubroutinesuiv", "opengl") + (delegate* unmanaged)( + _slots[2808] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2808] = nativeContext.LoadFunction("glUniformSubroutinesuiv", "opengl") + ) )(shadertype, count, indices); [SupportedApiProfile( @@ -588530,8 +599674,11 @@ void IGL.UniformNV( [NativeTypeName("GLuint64EXT")] ulong value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformui64NV", "opengl") + (delegate* unmanaged)( + _slots[2809] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2809] = nativeContext.LoadFunction("glUniformui64NV", "opengl") + ) )(location, value); [SupportedApiProfile("gl", ["GL_NV_shader_buffer_load"])] @@ -588550,8 +599697,11 @@ void IGL.UniformNV( [NativeTypeName("const GLuint64EXT *")] ulong* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUniformui64vNV", "opengl") + (delegate* unmanaged)( + _slots[2810] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2810] = nativeContext.LoadFunction("glUniformui64vNV", "opengl") + ) )(location, count, value); [SupportedApiProfile("gl", ["GL_NV_shader_buffer_load"])] @@ -588590,7 +599740,13 @@ public static void UniformNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.UnlockArraysEXT() => - ((delegate* unmanaged)nativeContext.LoadFunction("glUnlockArraysEXT", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[2811] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2811] = nativeContext.LoadFunction("glUnlockArraysEXT", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_EXT_compiled_vertex_array"])] [NativeFunction("opengl", EntryPoint = "glUnlockArraysEXT")] @@ -588599,9 +599755,13 @@ void IGL.UnlockArraysEXT() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.UnmapBuffer([NativeTypeName("GLenum")] uint target) => - ((delegate* unmanaged)nativeContext.LoadFunction("glUnmapBuffer", "opengl"))( - target - ); + ( + (delegate* unmanaged)( + _slots[2812] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2812] = nativeContext.LoadFunction("glUnmapBuffer", "opengl") + ) + )(target); [return: NativeTypeName("GLboolean")] [SupportedApiProfile( @@ -588704,9 +599864,13 @@ public static MaybeBool UnmapBuffer( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.UnmapBufferARB([NativeTypeName("GLenum")] uint target) => - ((delegate* unmanaged)nativeContext.LoadFunction("glUnmapBufferARB", "opengl"))( - target - ); + ( + (delegate* unmanaged)( + _slots[2813] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2813] = nativeContext.LoadFunction("glUnmapBufferARB", "opengl") + ) + )(target); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gl", ["GL_ARB_vertex_buffer_object"])] @@ -588744,9 +599908,13 @@ public static MaybeBool UnmapBufferOES([NativeTypeName("GLenum")] uint tar [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.UnmapBufferOESRaw([NativeTypeName("GLenum")] uint target) => - ((delegate* unmanaged)nativeContext.LoadFunction("glUnmapBufferOES", "opengl"))( - target - ); + ( + (delegate* unmanaged)( + _slots[2814] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2814] = nativeContext.LoadFunction("glUnmapBufferOES", "opengl") + ) + )(target); [return: NativeTypeName("GLboolean")] [SupportedApiProfile("gles2", ["GL_OES_mapbuffer"])] @@ -588793,8 +599961,11 @@ public static MaybeBool UnmapNamedBufferEXT([NativeTypeName("GLuint")] uin [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.UnmapNamedBufferEXTRaw([NativeTypeName("GLuint")] uint buffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUnmapNamedBufferEXT", "opengl") + (delegate* unmanaged)( + _slots[2816] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2816] = nativeContext.LoadFunction("glUnmapNamedBufferEXT", "opengl") + ) )(buffer); [return: NativeTypeName("GLboolean")] @@ -588808,8 +599979,11 @@ public static uint UnmapNamedBufferEXTRaw([NativeTypeName("GLuint")] uint buffer [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.UnmapNamedBufferRaw([NativeTypeName("GLuint")] uint buffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUnmapNamedBuffer", "opengl") + (delegate* unmanaged)( + _slots[2815] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2815] = nativeContext.LoadFunction("glUnmapNamedBuffer", "opengl") + ) )(buffer); [return: NativeTypeName("GLboolean")] @@ -588831,8 +600005,11 @@ public static uint UnmapNamedBufferRaw([NativeTypeName("GLuint")] uint buffer) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.UnmapObjectBufferATI([NativeTypeName("GLuint")] uint buffer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUnmapObjectBufferATI", "opengl") + (delegate* unmanaged)( + _slots[2817] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2817] = nativeContext.LoadFunction("glUnmapObjectBufferATI", "opengl") + ) )(buffer); [SupportedApiProfile("gl", ["GL_ATI_map_object_buffer"])] @@ -588847,8 +600024,11 @@ void IGL.UnmapTexture2DIntel( [NativeTypeName("GLint")] int level ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUnmapTexture2DINTEL", "opengl") + (delegate* unmanaged)( + _slots[2818] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2818] = nativeContext.LoadFunction("glUnmapTexture2DINTEL", "opengl") + ) )(texture, level); [SupportedApiProfile("gl", ["GL_INTEL_map_texture"])] @@ -588868,8 +600048,11 @@ void IGL.UpdateObjectBufferATI( [NativeTypeName("GLenum")] uint preserve ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUpdateObjectBufferATI", "opengl") + (delegate* unmanaged)( + _slots[2819] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2819] = nativeContext.LoadFunction("glUpdateObjectBufferATI", "opengl") + ) )(buffer, offset, size, pointer, preserve); [SupportedApiProfile("gl", ["GL_ATI_vertex_array_object"])] @@ -588913,8 +600096,11 @@ public static void UpdateObjectBufferATI( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.UploadGpuMaskNVX([NativeTypeName("GLbitfield")] uint mask) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUploadGpuMaskNVX", "opengl") + (delegate* unmanaged)( + _slots[2820] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2820] = nativeContext.LoadFunction("glUploadGpuMaskNVX", "opengl") + ) )(mask); [SupportedApiProfile("gl", ["GL_NVX_gpu_multicast2"])] @@ -588925,9 +600111,13 @@ public static void UploadGpuMaskNVX([NativeTypeName("GLbitfield")] uint mask) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.UseProgram([NativeTypeName("GLuint")] uint program) => - ((delegate* unmanaged)nativeContext.LoadFunction("glUseProgram", "opengl"))( - program - ); + ( + (delegate* unmanaged)( + _slots[2821] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2821] = nativeContext.LoadFunction("glUseProgram", "opengl") + ) + )(program); [SupportedApiProfile( "gl", @@ -588980,8 +600170,11 @@ public static void UseProgram([NativeTypeName("GLuint")] uint program) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.UseProgramObjectARB([NativeTypeName("GLhandleARB")] uint programObj) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUseProgramObjectARB", "opengl") + (delegate* unmanaged)( + _slots[2822] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2822] = nativeContext.LoadFunction("glUseProgramObjectARB", "opengl") + ) )(programObj); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -588997,8 +600190,11 @@ void IGL.UseProgramStages( [NativeTypeName("GLuint")] uint program ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUseProgramStages", "opengl") + (delegate* unmanaged)( + _slots[2823] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2823] = nativeContext.LoadFunction("glUseProgramStages", "opengl") + ) )(pipeline, stages, program); [SupportedApiProfile( @@ -589084,8 +600280,11 @@ void IGL.UseProgramStagesEXT( [NativeTypeName("GLuint")] uint program ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUseProgramStagesEXT", "opengl") + (delegate* unmanaged)( + _slots[2824] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2824] = nativeContext.LoadFunction("glUseProgramStagesEXT", "opengl") + ) )(pipeline, stages, program); [SupportedApiProfile("gles2", ["GL_EXT_separate_shader_objects"])] @@ -589120,8 +600319,11 @@ void IGL.UseShaderProgramEXT( [NativeTypeName("GLuint")] uint program ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glUseShaderProgramEXT", "opengl") + (delegate* unmanaged)( + _slots[2825] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2825] = nativeContext.LoadFunction("glUseShaderProgramEXT", "opengl") + ) )(type, program); [SupportedApiProfile("gl", ["GL_EXT_separate_shader_objects"])] @@ -589136,8 +600338,11 @@ public static void UseShaderProgramEXT( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ValidateProgram([NativeTypeName("GLuint")] uint program) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glValidateProgram", "opengl") + (delegate* unmanaged)( + _slots[2826] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2826] = nativeContext.LoadFunction("glValidateProgram", "opengl") + ) )(program); [SupportedApiProfile( @@ -589191,8 +600396,11 @@ public static void ValidateProgram([NativeTypeName("GLuint")] uint program) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ValidateProgramARB([NativeTypeName("GLhandleARB")] uint programObj) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glValidateProgramARB", "opengl") + (delegate* unmanaged)( + _slots[2827] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2827] = nativeContext.LoadFunction("glValidateProgramARB", "opengl") + ) )(programObj); [SupportedApiProfile("gl", ["GL_ARB_shader_objects"])] @@ -589204,8 +600412,14 @@ public static void ValidateProgramARB([NativeTypeName("GLhandleARB")] uint progr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ValidateProgramPipeline([NativeTypeName("GLuint")] uint pipeline) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glValidateProgramPipeline", "opengl") + (delegate* unmanaged)( + _slots[2828] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2828] = nativeContext.LoadFunction( + "glValidateProgramPipeline", + "opengl" + ) + ) )(pipeline); [SupportedApiProfile( @@ -589242,8 +600456,14 @@ public static void ValidateProgramPipeline([NativeTypeName("GLuint")] uint pipel [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.ValidateProgramPipelineEXT([NativeTypeName("GLuint")] uint pipeline) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glValidateProgramPipelineEXT", "opengl") + (delegate* unmanaged)( + _slots[2829] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2829] = nativeContext.LoadFunction( + "glValidateProgramPipelineEXT", + "opengl" + ) + ) )(pipeline); [SupportedApiProfile("gles2", ["GL_EXT_separate_shader_objects"])] @@ -589261,8 +600481,11 @@ void IGL.VariantArrayObjectATI( [NativeTypeName("GLuint")] uint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVariantArrayObjectATI", "opengl") + (delegate* unmanaged)( + _slots[2830] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2830] = nativeContext.LoadFunction("glVariantArrayObjectATI", "opengl") + ) )(id, type, stride, buffer, offset); [SupportedApiProfile("gl", ["GL_ATI_vertex_array_object"])] @@ -589303,8 +600526,11 @@ void IGL.VariantEXT( [NativeTypeName("const GLbyte *")] sbyte* addr ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVariantbvEXT", "opengl") + (delegate* unmanaged)( + _slots[2831] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2831] = nativeContext.LoadFunction("glVariantbvEXT", "opengl") + ) )(id, addr); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -589353,8 +600579,11 @@ void IGL.VariantEXT( [NativeTypeName("const GLdouble *")] double* addr ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVariantdvEXT", "opengl") + (delegate* unmanaged)( + _slots[2832] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2832] = nativeContext.LoadFunction("glVariantdvEXT", "opengl") + ) )(id, addr); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -589403,8 +600632,11 @@ void IGL.VariantEXT( [NativeTypeName("const GLfloat *")] float* addr ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVariantfvEXT", "opengl") + (delegate* unmanaged)( + _slots[2833] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2833] = nativeContext.LoadFunction("glVariantfvEXT", "opengl") + ) )(id, addr); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -589453,8 +600685,11 @@ void IGL.VariantEXT( [NativeTypeName("const GLint *")] int* addr ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVariantivEXT", "opengl") + (delegate* unmanaged)( + _slots[2834] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2834] = nativeContext.LoadFunction("glVariantivEXT", "opengl") + ) )(id, addr); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -589505,8 +600740,11 @@ void IGL.VariantPointerEXT( [NativeTypeName("const void *")] void* addr ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVariantPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[2835] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2835] = nativeContext.LoadFunction("glVariantPointerEXT", "opengl") + ) )(id, type, stride, addr); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -589550,8 +600788,11 @@ void IGL.VariantEXT( [NativeTypeName("const GLshort *")] short* addr ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVariantsvEXT", "opengl") + (delegate* unmanaged)( + _slots[2836] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2836] = nativeContext.LoadFunction("glVariantsvEXT", "opengl") + ) )(id, addr); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -589600,8 +600841,11 @@ void IGL.VariantEXT( [NativeTypeName("const GLubyte *")] byte* addr ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVariantubvEXT", "opengl") + (delegate* unmanaged)( + _slots[2837] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2837] = nativeContext.LoadFunction("glVariantubvEXT", "opengl") + ) )(id, addr); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -589650,8 +600894,11 @@ void IGL.VariantEXT( [NativeTypeName("const GLuint *")] uint* addr ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVariantuivEXT", "opengl") + (delegate* unmanaged)( + _slots[2838] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2838] = nativeContext.LoadFunction("glVariantuivEXT", "opengl") + ) )(id, addr); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -589700,8 +600947,11 @@ void IGL.VariantEXT( [NativeTypeName("const GLushort *")] ushort* addr ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVariantusvEXT", "opengl") + (delegate* unmanaged)( + _slots[2839] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2839] = nativeContext.LoadFunction("glVariantusvEXT", "opengl") + ) )(id, addr); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] @@ -589746,7 +600996,13 @@ public static void VariantEXT([NativeTypeName("const GLushort *")] ushort addr) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.VdpauFinNV() => - ((delegate* unmanaged)nativeContext.LoadFunction("glVDPAUFiniNV", "opengl"))(); + ( + (delegate* unmanaged)( + _slots[2840] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2840] = nativeContext.LoadFunction("glVDPAUFiniNV", "opengl") + ) + )(); [SupportedApiProfile("gl", ["GL_NV_vdpau_interop"])] [NativeFunction("opengl", EntryPoint = "glVDPAUFiniNV")] @@ -589762,8 +601018,11 @@ void IGL.VdpauGetSurfaceNV( [NativeTypeName("GLint *")] int* values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVDPAUGetSurfaceivNV", "opengl") + (delegate* unmanaged)( + _slots[2841] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2841] = nativeContext.LoadFunction("glVDPAUGetSurfaceivNV", "opengl") + ) )(surface, pname, count, length, values); [SupportedApiProfile("gl", ["GL_NV_vdpau_interop"])] @@ -589836,8 +601095,11 @@ void IGL.VdpauInitNV( [NativeTypeName("const void *")] void* getProcAddress ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVDPAUInitNV", "opengl") + (delegate* unmanaged)( + _slots[2842] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2842] = nativeContext.LoadFunction("glVDPAUInitNV", "opengl") + ) )(vdpDevice, getProcAddress); [SupportedApiProfile("gl", ["GL_NV_vdpau_interop"])] @@ -589886,8 +601148,11 @@ public static MaybeBool VdpauIsSurfaceNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint IGL.VdpauIsSurfaceNVRaw([NativeTypeName("GLvdpauSurfaceNV")] nint surface) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVDPAUIsSurfaceNV", "opengl") + (delegate* unmanaged)( + _slots[2843] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2843] = nativeContext.LoadFunction("glVDPAUIsSurfaceNV", "opengl") + ) )(surface); [return: NativeTypeName("GLboolean")] @@ -589903,8 +601168,11 @@ void IGL.VdpauMapSurfacesNV( [NativeTypeName("const GLvdpauSurfaceNV *")] nint* surfaces ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVDPAUMapSurfacesNV", "opengl") + (delegate* unmanaged)( + _slots[2844] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2844] = nativeContext.LoadFunction("glVDPAUMapSurfacesNV", "opengl") + ) )(numSurfaces, surfaces); [SupportedApiProfile("gl", ["GL_NV_vdpau_interop"])] @@ -589956,8 +601224,14 @@ nint IGL.VdpauRegisterOutputSurfaceNV( [NativeTypeName("const GLuint *")] uint* textureNames ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVDPAURegisterOutputSurfaceNV", "opengl") + (delegate* unmanaged)( + _slots[2845] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2845] = nativeContext.LoadFunction( + "glVDPAURegisterOutputSurfaceNV", + "opengl" + ) + ) )(vdpSurface, target, numTextureNames, textureNames); [return: NativeTypeName("GLvdpauSurfaceNV")] @@ -590012,8 +601286,14 @@ nint IGL.VdpauRegisterVideoSurfaceNV( [NativeTypeName("const GLuint *")] uint* textureNames ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVDPAURegisterVideoSurfaceNV", "opengl") + (delegate* unmanaged)( + _slots[2846] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2846] = nativeContext.LoadFunction( + "glVDPAURegisterVideoSurfaceNV", + "opengl" + ) + ) )(vdpSurface, target, numTextureNames, textureNames); [return: NativeTypeName("GLvdpauSurfaceNV")] @@ -590069,11 +601349,14 @@ nint IGL.VdpauRegisterVideoSurfaceWithPictureStructureNV( [NativeTypeName("GLboolean")] uint isFrameStructure ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction( - "glVDPAURegisterVideoSurfaceWithPictureStructureNV", - "opengl" - ) + (delegate* unmanaged)( + _slots[2847] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2847] = nativeContext.LoadFunction( + "glVDPAURegisterVideoSurfaceWithPictureStructureNV", + "opengl" + ) + ) )(vdpSurface, target, numTextureNames, textureNames, isFrameStructure); [return: NativeTypeName("GLvdpauSurfaceNV")] @@ -590144,8 +601427,11 @@ void IGL.VdpauSurfaceAccessNV( [NativeTypeName("GLenum")] uint access ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVDPAUSurfaceAccessNV", "opengl") + (delegate* unmanaged)( + _slots[2848] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2848] = nativeContext.LoadFunction("glVDPAUSurfaceAccessNV", "opengl") + ) )(surface, access); [SupportedApiProfile("gl", ["GL_NV_vdpau_interop"])] @@ -590162,8 +601448,11 @@ void IGL.VdpauUnmapSurfacesNV( [NativeTypeName("const GLvdpauSurfaceNV *")] nint* surfaces ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVDPAUUnmapSurfacesNV", "opengl") + (delegate* unmanaged)( + _slots[2849] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2849] = nativeContext.LoadFunction("glVDPAUUnmapSurfacesNV", "opengl") + ) )(numSurface, surfaces); [SupportedApiProfile("gl", ["GL_NV_vdpau_interop"])] @@ -590210,8 +601499,14 @@ public static void VdpauUnmapSurfacesNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.VdpauUnregisterSurfaceNV([NativeTypeName("GLvdpauSurfaceNV")] nint surface) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVDPAUUnregisterSurfaceNV", "opengl") + (delegate* unmanaged)( + _slots[2850] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2850] = nativeContext.LoadFunction( + "glVDPAUUnregisterSurfaceNV", + "opengl" + ) + ) )(surface); [SupportedApiProfile("gl", ["GL_NV_vdpau_interop"])] @@ -590224,8 +601519,11 @@ public static void VdpauUnregisterSurfaceNV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex2OES([NativeTypeName("GLbyte")] sbyte x, [NativeTypeName("GLbyte")] sbyte y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex2bOES", "opengl") + (delegate* unmanaged)( + _slots[2851] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2851] = nativeContext.LoadFunction("glVertex2bOES", "opengl") + ) )(x, y); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -590238,9 +601536,13 @@ public static void Vertex2OES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex2OES([NativeTypeName("const GLbyte *")] sbyte* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex2bvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[2852] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2852] = nativeContext.LoadFunction("glVertex2bvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] [NativeFunction("opengl", EntryPoint = "glVertex2bvOES")] @@ -590270,8 +601572,11 @@ void IGL.Vertex2( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex2d", "opengl") + (delegate* unmanaged)( + _slots[2853] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2853] = nativeContext.LoadFunction("glVertex2d", "opengl") + ) )(x, y); [SupportedApiProfile( @@ -590308,9 +601613,13 @@ public static void Vertex2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex2([NativeTypeName("const GLdouble *")] double* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex2dv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2854] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2854] = nativeContext.LoadFunction("glVertex2dv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -590385,8 +601694,11 @@ public static void Vertex2([NativeTypeName("const GLdouble *")] Ref v) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex2([NativeTypeName("GLfloat")] float x, [NativeTypeName("GLfloat")] float y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex2f", "opengl") + (delegate* unmanaged)( + _slots[2855] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2855] = nativeContext.LoadFunction("glVertex2f", "opengl") + ) )(x, y); [SupportedApiProfile( @@ -590423,7 +601735,13 @@ public static void Vertex2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex2([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex2fv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2856] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2856] = nativeContext.LoadFunction("glVertex2fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -590501,8 +601819,11 @@ void IGL.Vertex2NV( [NativeTypeName("GLhalfNV")] ushort y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex2hNV", "opengl") + (delegate* unmanaged)( + _slots[2857] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2857] = nativeContext.LoadFunction("glVertex2hNV", "opengl") + ) )(x, y); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -590515,9 +601836,13 @@ public static void Vertex2NV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex2NV([NativeTypeName("const GLhalfNV *")] ushort* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex2hvNV", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2858] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2858] = nativeContext.LoadFunction("glVertex2hvNV", "opengl") + ) + )(v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] [NativeFunction("opengl", EntryPoint = "glVertex2hvNV")] @@ -590543,10 +601868,13 @@ public static void Vertex2NV([NativeTypeName("const GLhalfNV *")] Ref v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex2([NativeTypeName("GLint")] int x, [NativeTypeName("GLint")] int y) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex2i", "opengl"))( - x, - y - ); + ( + (delegate* unmanaged)( + _slots[2859] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2859] = nativeContext.LoadFunction("glVertex2i", "opengl") + ) + )(x, y); [SupportedApiProfile( "gl", @@ -590580,7 +601908,13 @@ public static void Vertex2([NativeTypeName("GLint")] int x, [NativeTypeName("GLi [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex2([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex2iv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2860] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2860] = nativeContext.LoadFunction("glVertex2iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -590654,8 +601988,11 @@ public static void Vertex2([NativeTypeName("const GLint *")] Ref v) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex2([NativeTypeName("GLshort")] short x, [NativeTypeName("GLshort")] short y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex2s", "opengl") + (delegate* unmanaged)( + _slots[2861] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2861] = nativeContext.LoadFunction("glVertex2s", "opengl") + ) )(x, y); [SupportedApiProfile( @@ -590692,7 +602029,13 @@ public static void Vertex2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex2([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex2sv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2862] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2862] = nativeContext.LoadFunction("glVertex2sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -590766,7 +602109,13 @@ public static void Vertex2([NativeTypeName("const GLshort *")] Ref v) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex2XOES([NativeTypeName("GLfixed")] int x) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex2xOES", "opengl"))(x); + ( + (delegate* unmanaged)( + _slots[2863] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2863] = nativeContext.LoadFunction("glVertex2xOES", "opengl") + ) + )(x); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glVertex2xOES")] @@ -590775,9 +602124,13 @@ void IGL.Vertex2XOES([NativeTypeName("GLfixed")] int x) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex2XOES([NativeTypeName("const GLfixed *")] int* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex2xvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[2864] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2864] = nativeContext.LoadFunction("glVertex2xvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glVertex2xvOES")] @@ -590808,8 +602161,11 @@ void IGL.Vertex3OES( [NativeTypeName("GLbyte")] sbyte z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex3bOES", "opengl") + (delegate* unmanaged)( + _slots[2865] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2865] = nativeContext.LoadFunction("glVertex3bOES", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -590823,9 +602179,13 @@ public static void Vertex3OES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex3OES([NativeTypeName("const GLbyte *")] sbyte* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex3bvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[2866] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2866] = nativeContext.LoadFunction("glVertex3bvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] [NativeFunction("opengl", EntryPoint = "glVertex3bvOES")] @@ -590856,8 +602216,11 @@ void IGL.Vertex3( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex3d", "opengl") + (delegate* unmanaged)( + _slots[2867] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2867] = nativeContext.LoadFunction("glVertex3d", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -590895,9 +602258,13 @@ public static void Vertex3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex3([NativeTypeName("const GLdouble *")] double* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex3dv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2868] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2868] = nativeContext.LoadFunction("glVertex3dv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -590976,8 +602343,11 @@ void IGL.Vertex3( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex3f", "opengl") + (delegate* unmanaged)( + _slots[2869] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2869] = nativeContext.LoadFunction("glVertex3f", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -591015,7 +602385,13 @@ public static void Vertex3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex3([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex3fv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2870] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2870] = nativeContext.LoadFunction("glVertex3fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -591094,8 +602470,11 @@ void IGL.Vertex3NV( [NativeTypeName("GLhalfNV")] ushort z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex3hNV", "opengl") + (delegate* unmanaged)( + _slots[2871] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2871] = nativeContext.LoadFunction("glVertex3hNV", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -591109,9 +602488,13 @@ public static void Vertex3NV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex3NV([NativeTypeName("const GLhalfNV *")] ushort* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex3hvNV", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2872] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2872] = nativeContext.LoadFunction("glVertex3hvNV", "opengl") + ) + )(v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] [NativeFunction("opengl", EntryPoint = "glVertex3hvNV")] @@ -591142,8 +602525,11 @@ void IGL.Vertex3( [NativeTypeName("GLint")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex3i", "opengl") + (delegate* unmanaged)( + _slots[2873] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2873] = nativeContext.LoadFunction("glVertex3i", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -591181,7 +602567,13 @@ public static void Vertex3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex3([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex3iv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2874] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2874] = nativeContext.LoadFunction("glVertex3iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -591259,8 +602651,11 @@ void IGL.Vertex3( [NativeTypeName("GLshort")] short z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex3s", "opengl") + (delegate* unmanaged)( + _slots[2875] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2875] = nativeContext.LoadFunction("glVertex3s", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -591298,7 +602693,13 @@ public static void Vertex3( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex3([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex3sv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2876] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2876] = nativeContext.LoadFunction("glVertex3sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -591373,8 +602774,11 @@ public static void Vertex3([NativeTypeName("const GLshort *")] Ref v) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex3XOES([NativeTypeName("GLfixed")] int x, [NativeTypeName("GLfixed")] int y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex3xOES", "opengl") + (delegate* unmanaged)( + _slots[2877] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2877] = nativeContext.LoadFunction("glVertex3xOES", "opengl") + ) )(x, y); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -591387,9 +602791,13 @@ public static void Vertex3XOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex3XOES([NativeTypeName("const GLfixed *")] int* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex3xvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[2878] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2878] = nativeContext.LoadFunction("glVertex3xvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glVertex3xvOES")] @@ -591421,8 +602829,11 @@ void IGL.Vertex4OES( [NativeTypeName("GLbyte")] sbyte w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex4bOES", "opengl") + (delegate* unmanaged)( + _slots[2879] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2879] = nativeContext.LoadFunction("glVertex4bOES", "opengl") + ) )(x, y, z, w); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] @@ -591437,9 +602848,13 @@ public static void Vertex4OES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex4OES([NativeTypeName("const GLbyte *")] sbyte* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex4bvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[2880] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2880] = nativeContext.LoadFunction("glVertex4bvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gl", ["GL_OES_byte_coordinates"])] [NativeFunction("opengl", EntryPoint = "glVertex4bvOES")] @@ -591471,8 +602886,11 @@ void IGL.Vertex4( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex4d", "opengl") + (delegate* unmanaged)( + _slots[2881] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2881] = nativeContext.LoadFunction("glVertex4d", "opengl") + ) )(x, y, z, w); [SupportedApiProfile( @@ -591511,9 +602929,13 @@ public static void Vertex4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex4([NativeTypeName("const GLdouble *")] double* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex4dv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2882] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2882] = nativeContext.LoadFunction("glVertex4dv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -591593,8 +603015,11 @@ void IGL.Vertex4( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex4f", "opengl") + (delegate* unmanaged)( + _slots[2883] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2883] = nativeContext.LoadFunction("glVertex4f", "opengl") + ) )(x, y, z, w); [SupportedApiProfile( @@ -591633,7 +603058,13 @@ public static void Vertex4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex4([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex4fv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2884] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2884] = nativeContext.LoadFunction("glVertex4fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -591713,8 +603144,11 @@ void IGL.Vertex4NV( [NativeTypeName("GLhalfNV")] ushort w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex4hNV", "opengl") + (delegate* unmanaged)( + _slots[2885] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2885] = nativeContext.LoadFunction("glVertex4hNV", "opengl") + ) )(x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -591729,9 +603163,13 @@ public static void Vertex4NV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex4NV([NativeTypeName("const GLhalfNV *")] ushort* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex4hvNV", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[2886] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2886] = nativeContext.LoadFunction("glVertex4hvNV", "opengl") + ) + )(v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] [NativeFunction("opengl", EntryPoint = "glVertex4hvNV")] @@ -591763,8 +603201,11 @@ void IGL.Vertex4( [NativeTypeName("GLint")] int w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex4i", "opengl") + (delegate* unmanaged)( + _slots[2887] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2887] = nativeContext.LoadFunction("glVertex4i", "opengl") + ) )(x, y, z, w); [SupportedApiProfile( @@ -591803,7 +603244,13 @@ public static void Vertex4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex4([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex4iv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2888] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2888] = nativeContext.LoadFunction("glVertex4iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -591882,8 +603329,11 @@ void IGL.Vertex4( [NativeTypeName("GLshort")] short w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex4s", "opengl") + (delegate* unmanaged)( + _slots[2889] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2889] = nativeContext.LoadFunction("glVertex4s", "opengl") + ) )(x, y, z, w); [SupportedApiProfile( @@ -591922,7 +603372,13 @@ public static void Vertex4( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex4([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex4sv", "opengl"))(v); + ( + (delegate* unmanaged)( + _slots[2890] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2890] = nativeContext.LoadFunction("glVertex4sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -592001,8 +603457,11 @@ void IGL.Vertex4XOES( [NativeTypeName("GLfixed")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertex4xOES", "opengl") + (delegate* unmanaged)( + _slots[2891] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2891] = nativeContext.LoadFunction("glVertex4xOES", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] @@ -592016,9 +603475,13 @@ public static void Vertex4XOES( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.Vertex4XOES([NativeTypeName("const GLfixed *")] int* coords) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertex4xvOES", "opengl"))( - coords - ); + ( + (delegate* unmanaged)( + _slots[2892] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2892] = nativeContext.LoadFunction("glVertex4xvOES", "opengl") + ) + )(coords); [SupportedApiProfile("gl", ["GL_OES_fixed_point"])] [NativeFunction("opengl", EntryPoint = "glVertex4xvOES")] @@ -592049,8 +603512,14 @@ void IGL.VertexArrayAttribBinding( [NativeTypeName("GLuint")] uint bindingindex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayAttribBinding", "opengl") + (delegate* unmanaged)( + _slots[2893] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2893] = nativeContext.LoadFunction( + "glVertexArrayAttribBinding", + "opengl" + ) + ) )(vaobj, attribindex, bindingindex); [SupportedApiProfile( @@ -592081,8 +603550,14 @@ void IGL.VertexArrayAttribFormat( [NativeTypeName("GLuint")] uint relativeoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayAttribFormat", "opengl") + (delegate* unmanaged)( + _slots[2894] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2894] = nativeContext.LoadFunction( + "glVertexArrayAttribFormat", + "opengl" + ) + ) )(vaobj, attribindex, size, type, normalized, relativeoffset); [SupportedApiProfile( @@ -592171,8 +603646,14 @@ void IGL.VertexArrayAttribIFormat( [NativeTypeName("GLuint")] uint relativeoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayAttribIFormat", "opengl") + (delegate* unmanaged)( + _slots[2895] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2895] = nativeContext.LoadFunction( + "glVertexArrayAttribIFormat", + "opengl" + ) + ) )(vaobj, attribindex, size, type, relativeoffset); [SupportedApiProfile( @@ -592234,8 +603715,14 @@ void IGL.VertexArrayAttribLFormat( [NativeTypeName("GLuint")] uint relativeoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayAttribLFormat", "opengl") + (delegate* unmanaged)( + _slots[2896] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2896] = nativeContext.LoadFunction( + "glVertexArrayAttribLFormat", + "opengl" + ) + ) )(vaobj, attribindex, size, type, relativeoffset); [SupportedApiProfile( @@ -592295,8 +603782,14 @@ void IGL.VertexArrayBindingDivisor( [NativeTypeName("GLuint")] uint divisor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayBindingDivisor", "opengl") + (delegate* unmanaged)( + _slots[2897] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2897] = nativeContext.LoadFunction( + "glVertexArrayBindingDivisor", + "opengl" + ) + ) )(vaobj, bindingindex, divisor); [SupportedApiProfile( @@ -592326,8 +603819,14 @@ void IGL.VertexArrayBindVertexBufferEXT( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayBindVertexBufferEXT", "opengl") + (delegate* unmanaged)( + _slots[2898] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2898] = nativeContext.LoadFunction( + "glVertexArrayBindVertexBufferEXT", + "opengl" + ) + ) )(vaobj, bindingindex, buffer, offset, stride); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -592352,8 +603851,14 @@ void IGL.VertexArrayColorOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayColorOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[2899] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2899] = nativeContext.LoadFunction( + "glVertexArrayColorOffsetEXT", + "opengl" + ) + ) )(vaobj, buffer, size, type, stride, offset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -592401,8 +603906,14 @@ void IGL.VertexArrayEdgeFlagOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayEdgeFlagOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[2900] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2900] = nativeContext.LoadFunction( + "glVertexArrayEdgeFlagOffsetEXT", + "opengl" + ) + ) )(vaobj, buffer, stride, offset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -592422,8 +603933,14 @@ void IGL.VertexArrayElementBuffer( [NativeTypeName("GLuint")] uint buffer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayElementBuffer", "opengl") + (delegate* unmanaged)( + _slots[2901] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2901] = nativeContext.LoadFunction( + "glVertexArrayElementBuffer", + "opengl" + ) + ) )(vaobj, buffer); [SupportedApiProfile( @@ -592452,8 +603969,14 @@ void IGL.VertexArrayFogCoordOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayFogCoordOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[2902] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2902] = nativeContext.LoadFunction( + "glVertexArrayFogCoordOffsetEXT", + "opengl" + ) + ) )(vaobj, buffer, type, stride, offset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -592499,8 +604022,14 @@ void IGL.VertexArrayIndexOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayIndexOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[2903] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2903] = nativeContext.LoadFunction( + "glVertexArrayIndexOffsetEXT", + "opengl" + ) + ) )(vaobj, buffer, type, stride, offset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -592548,8 +604077,14 @@ void IGL.VertexArrayMultiTexCoordOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayMultiTexCoordOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[2904] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2904] = nativeContext.LoadFunction( + "glVertexArrayMultiTexCoordOffsetEXT", + "opengl" + ) + ) )(vaobj, buffer, texunit, size, type, stride, offset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -592628,8 +604163,14 @@ void IGL.VertexArrayNormalOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayNormalOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[2905] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2905] = nativeContext.LoadFunction( + "glVertexArrayNormalOffsetEXT", + "opengl" + ) + ) )(vaobj, buffer, type, stride, offset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -592672,8 +604213,14 @@ void IGL.VertexArrayParameterApple( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayParameteriAPPLE", "opengl") + (delegate* unmanaged)( + _slots[2906] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2906] = nativeContext.LoadFunction( + "glVertexArrayParameteriAPPLE", + "opengl" + ) + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_APPLE_vertex_array_range"])] @@ -592702,8 +604249,11 @@ public static void VertexArrayParameterApple( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.VertexArrayRangeApple([NativeTypeName("GLsizei")] uint length, void* pointer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayRangeAPPLE", "opengl") + (delegate* unmanaged)( + _slots[2907] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2907] = nativeContext.LoadFunction("glVertexArrayRangeAPPLE", "opengl") + ) )(length, pointer); [SupportedApiProfile("gl", ["GL_APPLE_vertex_array_range"])] @@ -592738,8 +604288,11 @@ void IGL.VertexArrayRangeNV( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayRangeNV", "opengl") + (delegate* unmanaged)( + _slots[2908] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2908] = nativeContext.LoadFunction("glVertexArrayRangeNV", "opengl") + ) )(length, pointer); [SupportedApiProfile("gl", ["GL_NV_vertex_array_range"])] @@ -592781,8 +604334,14 @@ void IGL.VertexArraySecondaryColorOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArraySecondaryColorOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[2909] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2909] = nativeContext.LoadFunction( + "glVertexArraySecondaryColorOffsetEXT", + "opengl" + ) + ) )(vaobj, buffer, size, type, stride, offset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -592840,8 +604399,14 @@ void IGL.VertexArrayTexCoordOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayTexCoordOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[2910] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2910] = nativeContext.LoadFunction( + "glVertexArrayTexCoordOffsetEXT", + "opengl" + ) + ) )(vaobj, buffer, size, type, stride, offset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -592888,8 +604453,14 @@ void IGL.VertexArrayVertexAttribBindingEXT( [NativeTypeName("GLuint")] uint bindingindex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayVertexAttribBindingEXT", "opengl") + (delegate* unmanaged)( + _slots[2911] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2911] = nativeContext.LoadFunction( + "glVertexArrayVertexAttribBindingEXT", + "opengl" + ) + ) )(vaobj, attribindex, bindingindex); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -592909,8 +604480,14 @@ void IGL.VertexArrayVertexAttribDivisorEXT( [NativeTypeName("GLuint")] uint divisor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayVertexAttribDivisorEXT", "opengl") + (delegate* unmanaged)( + _slots[2912] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2912] = nativeContext.LoadFunction( + "glVertexArrayVertexAttribDivisorEXT", + "opengl" + ) + ) )(vaobj, index, divisor); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -592933,8 +604510,14 @@ void IGL.VertexArrayVertexAttribFormatEXT( [NativeTypeName("GLuint")] uint relativeoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayVertexAttribFormatEXT", "opengl") + (delegate* unmanaged)( + _slots[2913] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2913] = nativeContext.LoadFunction( + "glVertexArrayVertexAttribFormatEXT", + "opengl" + ) + ) )(vaobj, attribindex, size, type, normalized, relativeoffset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -593007,8 +604590,14 @@ void IGL.VertexArrayVertexAttribIFormatEXT( [NativeTypeName("GLuint")] uint relativeoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayVertexAttribIFormatEXT", "opengl") + (delegate* unmanaged)( + _slots[2914] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2914] = nativeContext.LoadFunction( + "glVertexArrayVertexAttribIFormatEXT", + "opengl" + ) + ) )(vaobj, attribindex, size, type, relativeoffset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -593077,8 +604666,14 @@ void IGL.VertexArrayVertexAttribIOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayVertexAttribIOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[2915] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2915] = nativeContext.LoadFunction( + "glVertexArrayVertexAttribIOffsetEXT", + "opengl" + ) + ) )(vaobj, buffer, index, size, type, stride, offset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -593157,8 +604752,14 @@ void IGL.VertexArrayVertexAttribLFormatEXT( [NativeTypeName("GLuint")] uint relativeoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayVertexAttribLFormatEXT", "opengl") + (delegate* unmanaged)( + _slots[2916] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2916] = nativeContext.LoadFunction( + "glVertexArrayVertexAttribLFormatEXT", + "opengl" + ) + ) )(vaobj, attribindex, size, type, relativeoffset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -593227,8 +604828,14 @@ void IGL.VertexArrayVertexAttribLOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayVertexAttribLOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[2917] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2917] = nativeContext.LoadFunction( + "glVertexArrayVertexAttribLOffsetEXT", + "opengl" + ) + ) )(vaobj, buffer, index, size, type, stride, offset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -593310,8 +604917,14 @@ void IGL.VertexArrayVertexAttribOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayVertexAttribOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[2918] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2918] = nativeContext.LoadFunction( + "glVertexArrayVertexAttribOffsetEXT", + "opengl" + ) + ) )(vaobj, buffer, index, size, type, normalized, stride, offset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -593394,8 +605007,14 @@ void IGL.VertexArrayVertexBindingDivisorEXT( [NativeTypeName("GLuint")] uint divisor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayVertexBindingDivisorEXT", "opengl") + (delegate* unmanaged)( + _slots[2919] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2919] = nativeContext.LoadFunction( + "glVertexArrayVertexBindingDivisorEXT", + "opengl" + ) + ) )(vaobj, bindingindex, divisor); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -593417,8 +605036,14 @@ void IGL.VertexArrayVertexBuffer( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayVertexBuffer", "opengl") + (delegate* unmanaged)( + _slots[2920] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2920] = nativeContext.LoadFunction( + "glVertexArrayVertexBuffer", + "opengl" + ) + ) )(vaobj, bindingindex, buffer, offset, stride); [SupportedApiProfile( @@ -593451,8 +605076,14 @@ void IGL.VertexArrayVertexBuffers( [NativeTypeName("const GLsizei *")] uint* strides ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayVertexBuffers", "opengl") + (delegate* unmanaged)( + _slots[2921] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2921] = nativeContext.LoadFunction( + "glVertexArrayVertexBuffers", + "opengl" + ) + ) )(vaobj, first, count, buffers, offsets, strides); [SupportedApiProfile( @@ -593533,8 +605164,14 @@ void IGL.VertexArrayVertexOffsetEXT( [NativeTypeName("GLintptr")] nint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexArrayVertexOffsetEXT", "opengl") + (delegate* unmanaged)( + _slots[2922] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2922] = nativeContext.LoadFunction( + "glVertexArrayVertexOffsetEXT", + "opengl" + ) + ) )(vaobj, buffer, size, type, stride, offset); [SupportedApiProfile("gl", ["GL_EXT_direct_state_access"])] @@ -593580,8 +605217,11 @@ void IGL.VertexAttrib1D( [NativeTypeName("GLdouble")] double x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1d", "opengl") + (delegate* unmanaged)( + _slots[2923] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2923] = nativeContext.LoadFunction("glVertexAttrib1d", "opengl") + ) )(index, x); [SupportedApiProfile( @@ -593635,8 +605275,11 @@ void IGL.VertexAttrib1DARB( [NativeTypeName("GLdouble")] double x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1dARB", "opengl") + (delegate* unmanaged)( + _slots[2924] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2924] = nativeContext.LoadFunction("glVertexAttrib1dARB", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -593653,8 +605296,11 @@ void IGL.VertexAttrib1DNV( [NativeTypeName("GLdouble")] double x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1dNV", "opengl") + (delegate* unmanaged)( + _slots[2925] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2925] = nativeContext.LoadFunction("glVertexAttrib1dNV", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -593671,8 +605317,11 @@ void IGL.VertexAttrib1Dv( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1dv", "opengl") + (delegate* unmanaged)( + _slots[2926] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2926] = nativeContext.LoadFunction("glVertexAttrib1dv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -593836,8 +605485,11 @@ void IGL.VertexAttrib1DvARB( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1dvARB", "opengl") + (delegate* unmanaged)( + _slots[2927] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2927] = nativeContext.LoadFunction("glVertexAttrib1dvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -593890,8 +605542,11 @@ void IGL.VertexAttrib1DvNV( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1dvNV", "opengl") + (delegate* unmanaged)( + _slots[2928] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2928] = nativeContext.LoadFunction("glVertexAttrib1dvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -593944,8 +605599,11 @@ void IGL.VertexAttrib1F( [NativeTypeName("GLfloat")] float x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1f", "opengl") + (delegate* unmanaged)( + _slots[2929] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2929] = nativeContext.LoadFunction("glVertexAttrib1f", "opengl") + ) )(index, x); [SupportedApiProfile( @@ -594004,8 +605662,11 @@ void IGL.VertexAttrib1FARB( [NativeTypeName("GLfloat")] float x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1fARB", "opengl") + (delegate* unmanaged)( + _slots[2930] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2930] = nativeContext.LoadFunction("glVertexAttrib1fARB", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -594022,8 +605683,11 @@ void IGL.VertexAttrib1FNV( [NativeTypeName("GLfloat")] float x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1fNV", "opengl") + (delegate* unmanaged)( + _slots[2931] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2931] = nativeContext.LoadFunction("glVertexAttrib1fNV", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -594040,8 +605704,11 @@ void IGL.VertexAttrib1Fv( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1fv", "opengl") + (delegate* unmanaged)( + _slots[2932] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2932] = nativeContext.LoadFunction("glVertexAttrib1fv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -594220,8 +605887,11 @@ void IGL.VertexAttrib1FvARB( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1fvARB", "opengl") + (delegate* unmanaged)( + _slots[2933] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2933] = nativeContext.LoadFunction("glVertexAttrib1fvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -594274,8 +605944,11 @@ void IGL.VertexAttrib1FvNV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1fvNV", "opengl") + (delegate* unmanaged)( + _slots[2934] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2934] = nativeContext.LoadFunction("glVertexAttrib1fvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -594328,8 +606001,11 @@ void IGL.VertexAttrib1HNV( [NativeTypeName("GLhalfNV")] ushort x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1hNV", "opengl") + (delegate* unmanaged)( + _slots[2935] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2935] = nativeContext.LoadFunction("glVertexAttrib1hNV", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -594346,8 +606022,11 @@ void IGL.VertexAttrib1HvNV( [NativeTypeName("const GLhalfNV *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1hvNV", "opengl") + (delegate* unmanaged)( + _slots[2936] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2936] = nativeContext.LoadFunction("glVertexAttrib1hvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -594400,8 +606079,11 @@ void IGL.VertexAttrib1S( [NativeTypeName("GLshort")] short x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1s", "opengl") + (delegate* unmanaged)( + _slots[2937] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2937] = nativeContext.LoadFunction("glVertexAttrib1s", "opengl") + ) )(index, x); [SupportedApiProfile( @@ -594455,8 +606137,11 @@ void IGL.VertexAttrib1SARB( [NativeTypeName("GLshort")] short x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1sARB", "opengl") + (delegate* unmanaged)( + _slots[2938] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2938] = nativeContext.LoadFunction("glVertexAttrib1sARB", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -594473,8 +606158,11 @@ void IGL.VertexAttrib1SNV( [NativeTypeName("GLshort")] short x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1sNV", "opengl") + (delegate* unmanaged)( + _slots[2939] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2939] = nativeContext.LoadFunction("glVertexAttrib1sNV", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -594491,8 +606179,11 @@ void IGL.VertexAttrib1Sv( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1sv", "opengl") + (delegate* unmanaged)( + _slots[2940] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2940] = nativeContext.LoadFunction("glVertexAttrib1sv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -594656,8 +606347,11 @@ void IGL.VertexAttrib1SvARB( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1svARB", "opengl") + (delegate* unmanaged)( + _slots[2941] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2941] = nativeContext.LoadFunction("glVertexAttrib1svARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -594710,8 +606404,11 @@ void IGL.VertexAttrib1SvNV( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib1svNV", "opengl") + (delegate* unmanaged)( + _slots[2942] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2942] = nativeContext.LoadFunction("glVertexAttrib1svNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -594765,8 +606462,11 @@ void IGL.VertexAttrib2( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2d", "opengl") + (delegate* unmanaged)( + _slots[2943] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2943] = nativeContext.LoadFunction("glVertexAttrib2d", "opengl") + ) )(index, x, y); [SupportedApiProfile( @@ -594822,8 +606522,11 @@ void IGL.VertexAttrib2ARB( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2dARB", "opengl") + (delegate* unmanaged)( + _slots[2944] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2944] = nativeContext.LoadFunction("glVertexAttrib2dARB", "opengl") + ) )(index, x, y); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -594842,8 +606545,11 @@ void IGL.VertexAttrib2NV( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2dNV", "opengl") + (delegate* unmanaged)( + _slots[2945] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2945] = nativeContext.LoadFunction("glVertexAttrib2dNV", "opengl") + ) )(index, x, y); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -594861,8 +606567,11 @@ void IGL.VertexAttrib2( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2dv", "opengl") + (delegate* unmanaged)( + _slots[2946] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2946] = nativeContext.LoadFunction("glVertexAttrib2dv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -594974,8 +606683,11 @@ void IGL.VertexAttrib2ARB( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2dvARB", "opengl") + (delegate* unmanaged)( + _slots[2947] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2947] = nativeContext.LoadFunction("glVertexAttrib2dvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -595013,8 +606725,11 @@ void IGL.VertexAttrib2NV( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2dvNV", "opengl") + (delegate* unmanaged)( + _slots[2948] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2948] = nativeContext.LoadFunction("glVertexAttrib2dvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -595053,8 +606768,11 @@ void IGL.VertexAttrib2( [NativeTypeName("GLfloat")] float y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2f", "opengl") + (delegate* unmanaged)( + _slots[2949] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2949] = nativeContext.LoadFunction("glVertexAttrib2f", "opengl") + ) )(index, x, y); [SupportedApiProfile( @@ -595115,8 +606833,11 @@ void IGL.VertexAttrib2ARB( [NativeTypeName("GLfloat")] float y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2fARB", "opengl") + (delegate* unmanaged)( + _slots[2950] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2950] = nativeContext.LoadFunction("glVertexAttrib2fARB", "opengl") + ) )(index, x, y); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -595135,8 +606856,11 @@ void IGL.VertexAttrib2NV( [NativeTypeName("GLfloat")] float y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2fNV", "opengl") + (delegate* unmanaged)( + _slots[2951] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2951] = nativeContext.LoadFunction("glVertexAttrib2fNV", "opengl") + ) )(index, x, y); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -595154,8 +606878,11 @@ void IGL.VertexAttrib2( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2fv", "opengl") + (delegate* unmanaged)( + _slots[2952] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2952] = nativeContext.LoadFunction("glVertexAttrib2fv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -595277,8 +607004,11 @@ void IGL.VertexAttrib2ARB( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2fvARB", "opengl") + (delegate* unmanaged)( + _slots[2953] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2953] = nativeContext.LoadFunction("glVertexAttrib2fvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -595316,8 +607046,11 @@ void IGL.VertexAttrib2NV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2fvNV", "opengl") + (delegate* unmanaged)( + _slots[2954] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2954] = nativeContext.LoadFunction("glVertexAttrib2fvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -595356,8 +607089,11 @@ void IGL.VertexAttrib2NV( [NativeTypeName("GLhalfNV")] ushort y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2hNV", "opengl") + (delegate* unmanaged)( + _slots[2955] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2955] = nativeContext.LoadFunction("glVertexAttrib2hNV", "opengl") + ) )(index, x, y); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -595375,8 +607111,11 @@ void IGL.VertexAttrib2NV( [NativeTypeName("const GLhalfNV *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2hvNV", "opengl") + (delegate* unmanaged)( + _slots[2956] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2956] = nativeContext.LoadFunction("glVertexAttrib2hvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -595415,8 +607154,11 @@ void IGL.VertexAttrib2( [NativeTypeName("GLshort")] short y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2s", "opengl") + (delegate* unmanaged)( + _slots[2957] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2957] = nativeContext.LoadFunction("glVertexAttrib2s", "opengl") + ) )(index, x, y); [SupportedApiProfile( @@ -595472,8 +607214,11 @@ void IGL.VertexAttrib2ARB( [NativeTypeName("GLshort")] short y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2sARB", "opengl") + (delegate* unmanaged)( + _slots[2958] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2958] = nativeContext.LoadFunction("glVertexAttrib2sARB", "opengl") + ) )(index, x, y); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -595492,8 +607237,11 @@ void IGL.VertexAttrib2NV( [NativeTypeName("GLshort")] short y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2sNV", "opengl") + (delegate* unmanaged)( + _slots[2959] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2959] = nativeContext.LoadFunction("glVertexAttrib2sNV", "opengl") + ) )(index, x, y); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -595511,8 +607259,11 @@ void IGL.VertexAttrib2( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2sv", "opengl") + (delegate* unmanaged)( + _slots[2960] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2960] = nativeContext.LoadFunction("glVertexAttrib2sv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -595624,8 +607375,11 @@ void IGL.VertexAttrib2ARB( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2svARB", "opengl") + (delegate* unmanaged)( + _slots[2961] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2961] = nativeContext.LoadFunction("glVertexAttrib2svARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -595663,8 +607417,11 @@ void IGL.VertexAttrib2NV( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib2svNV", "opengl") + (delegate* unmanaged)( + _slots[2962] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2962] = nativeContext.LoadFunction("glVertexAttrib2svNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -595704,8 +607461,11 @@ void IGL.VertexAttrib3( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3d", "opengl") + (delegate* unmanaged)( + _slots[2963] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2963] = nativeContext.LoadFunction("glVertexAttrib3d", "opengl") + ) )(index, x, y, z); [SupportedApiProfile( @@ -595763,8 +607523,11 @@ void IGL.VertexAttrib3ARB( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3dARB", "opengl") + (delegate* unmanaged)( + _slots[2964] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2964] = nativeContext.LoadFunction("glVertexAttrib3dARB", "opengl") + ) )(index, x, y, z); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -595785,8 +607548,11 @@ void IGL.VertexAttrib3NV( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3dNV", "opengl") + (delegate* unmanaged)( + _slots[2965] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2965] = nativeContext.LoadFunction("glVertexAttrib3dNV", "opengl") + ) )(index, x, y, z); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -595805,8 +607571,11 @@ void IGL.VertexAttrib3( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3dv", "opengl") + (delegate* unmanaged)( + _slots[2966] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2966] = nativeContext.LoadFunction("glVertexAttrib3dv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -595918,8 +607687,11 @@ void IGL.VertexAttrib3ARB( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3dvARB", "opengl") + (delegate* unmanaged)( + _slots[2967] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2967] = nativeContext.LoadFunction("glVertexAttrib3dvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -595957,8 +607729,11 @@ void IGL.VertexAttrib3NV( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3dvNV", "opengl") + (delegate* unmanaged)( + _slots[2968] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2968] = nativeContext.LoadFunction("glVertexAttrib3dvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -595998,8 +607773,11 @@ void IGL.VertexAttrib3( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3f", "opengl") + (delegate* unmanaged)( + _slots[2969] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2969] = nativeContext.LoadFunction("glVertexAttrib3f", "opengl") + ) )(index, x, y, z); [SupportedApiProfile( @@ -596062,8 +607840,11 @@ void IGL.VertexAttrib3ARB( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3fARB", "opengl") + (delegate* unmanaged)( + _slots[2970] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2970] = nativeContext.LoadFunction("glVertexAttrib3fARB", "opengl") + ) )(index, x, y, z); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -596084,8 +607865,11 @@ void IGL.VertexAttrib3NV( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3fNV", "opengl") + (delegate* unmanaged)( + _slots[2971] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2971] = nativeContext.LoadFunction("glVertexAttrib3fNV", "opengl") + ) )(index, x, y, z); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -596104,8 +607888,11 @@ void IGL.VertexAttrib3( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3fv", "opengl") + (delegate* unmanaged)( + _slots[2972] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2972] = nativeContext.LoadFunction("glVertexAttrib3fv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -596227,8 +608014,11 @@ void IGL.VertexAttrib3ARB( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3fvARB", "opengl") + (delegate* unmanaged)( + _slots[2973] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2973] = nativeContext.LoadFunction("glVertexAttrib3fvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -596266,8 +608056,11 @@ void IGL.VertexAttrib3NV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3fvNV", "opengl") + (delegate* unmanaged)( + _slots[2974] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2974] = nativeContext.LoadFunction("glVertexAttrib3fvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -596307,8 +608100,11 @@ void IGL.VertexAttrib3NV( [NativeTypeName("GLhalfNV")] ushort z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3hNV", "opengl") + (delegate* unmanaged)( + _slots[2975] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2975] = nativeContext.LoadFunction("glVertexAttrib3hNV", "opengl") + ) )(index, x, y, z); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -596327,8 +608123,11 @@ void IGL.VertexAttrib3NV( [NativeTypeName("const GLhalfNV *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3hvNV", "opengl") + (delegate* unmanaged)( + _slots[2976] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2976] = nativeContext.LoadFunction("glVertexAttrib3hvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -596368,8 +608167,11 @@ void IGL.VertexAttrib3( [NativeTypeName("GLshort")] short z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3s", "opengl") + (delegate* unmanaged)( + _slots[2977] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2977] = nativeContext.LoadFunction("glVertexAttrib3s", "opengl") + ) )(index, x, y, z); [SupportedApiProfile( @@ -596427,8 +608229,11 @@ void IGL.VertexAttrib3ARB( [NativeTypeName("GLshort")] short z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3sARB", "opengl") + (delegate* unmanaged)( + _slots[2978] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2978] = nativeContext.LoadFunction("glVertexAttrib3sARB", "opengl") + ) )(index, x, y, z); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -596449,8 +608254,11 @@ void IGL.VertexAttrib3NV( [NativeTypeName("GLshort")] short z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3sNV", "opengl") + (delegate* unmanaged)( + _slots[2979] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2979] = nativeContext.LoadFunction("glVertexAttrib3sNV", "opengl") + ) )(index, x, y, z); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -596469,8 +608277,11 @@ void IGL.VertexAttrib3( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3sv", "opengl") + (delegate* unmanaged)( + _slots[2980] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2980] = nativeContext.LoadFunction("glVertexAttrib3sv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -596582,8 +608393,11 @@ void IGL.VertexAttrib3ARB( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3svARB", "opengl") + (delegate* unmanaged)( + _slots[2981] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2981] = nativeContext.LoadFunction("glVertexAttrib3svARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -596621,8 +608435,11 @@ void IGL.VertexAttrib3NV( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib3svNV", "opengl") + (delegate* unmanaged)( + _slots[2982] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2982] = nativeContext.LoadFunction("glVertexAttrib3svNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -596660,8 +608477,11 @@ void IGL.VertexAttrib4( [NativeTypeName("const GLbyte *")] sbyte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4bv", "opengl") + (delegate* unmanaged)( + _slots[2983] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2983] = nativeContext.LoadFunction("glVertexAttrib4bv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -596773,8 +608593,11 @@ void IGL.VertexAttrib4ARB( [NativeTypeName("const GLbyte *")] sbyte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4bvARB", "opengl") + (delegate* unmanaged)( + _slots[2984] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2984] = nativeContext.LoadFunction("glVertexAttrib4bvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -596815,8 +608638,11 @@ void IGL.VertexAttrib4( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4d", "opengl") + (delegate* unmanaged)( + _slots[2985] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2985] = nativeContext.LoadFunction("glVertexAttrib4d", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile( @@ -596876,8 +608702,11 @@ void IGL.VertexAttrib4ARB( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4dARB", "opengl") + (delegate* unmanaged)( + _slots[2986] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2986] = nativeContext.LoadFunction("glVertexAttrib4dARB", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -596900,8 +608729,11 @@ void IGL.VertexAttrib4NV( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4dNV", "opengl") + (delegate* unmanaged)( + _slots[2987] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2987] = nativeContext.LoadFunction("glVertexAttrib4dNV", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -596921,8 +608753,11 @@ void IGL.VertexAttrib4( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4dv", "opengl") + (delegate* unmanaged)( + _slots[2988] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2988] = nativeContext.LoadFunction("glVertexAttrib4dv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -597034,8 +608869,11 @@ void IGL.VertexAttrib4ARB( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4dvARB", "opengl") + (delegate* unmanaged)( + _slots[2989] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2989] = nativeContext.LoadFunction("glVertexAttrib4dvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -597073,8 +608911,11 @@ void IGL.VertexAttrib4NV( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4dvNV", "opengl") + (delegate* unmanaged)( + _slots[2990] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2990] = nativeContext.LoadFunction("glVertexAttrib4dvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -597115,8 +608956,11 @@ void IGL.VertexAttrib4( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4f", "opengl") + (delegate* unmanaged)( + _slots[2991] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2991] = nativeContext.LoadFunction("glVertexAttrib4f", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile( @@ -597181,8 +609025,11 @@ void IGL.VertexAttrib4ARB( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4fARB", "opengl") + (delegate* unmanaged)( + _slots[2992] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2992] = nativeContext.LoadFunction("glVertexAttrib4fARB", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -597205,8 +609052,11 @@ void IGL.VertexAttrib4NV( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4fNV", "opengl") + (delegate* unmanaged)( + _slots[2993] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2993] = nativeContext.LoadFunction("glVertexAttrib4fNV", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -597226,8 +609076,11 @@ void IGL.VertexAttrib4( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4fv", "opengl") + (delegate* unmanaged)( + _slots[2994] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2994] = nativeContext.LoadFunction("glVertexAttrib4fv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -597349,8 +609202,11 @@ void IGL.VertexAttrib4ARB( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4fvARB", "opengl") + (delegate* unmanaged)( + _slots[2995] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2995] = nativeContext.LoadFunction("glVertexAttrib4fvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -597388,8 +609244,11 @@ void IGL.VertexAttrib4NV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4fvNV", "opengl") + (delegate* unmanaged)( + _slots[2996] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2996] = nativeContext.LoadFunction("glVertexAttrib4fvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -597430,8 +609289,11 @@ void IGL.VertexAttrib4NV( [NativeTypeName("GLhalfNV")] ushort w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4hNV", "opengl") + (delegate* unmanaged)( + _slots[2997] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2997] = nativeContext.LoadFunction("glVertexAttrib4hNV", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -597451,8 +609313,11 @@ void IGL.VertexAttrib4NV( [NativeTypeName("const GLhalfNV *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4hvNV", "opengl") + (delegate* unmanaged)( + _slots[2998] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2998] = nativeContext.LoadFunction("glVertexAttrib4hvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -597490,8 +609355,11 @@ void IGL.VertexAttrib4( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4iv", "opengl") + (delegate* unmanaged)( + _slots[2999] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2999] = nativeContext.LoadFunction("glVertexAttrib4iv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -597603,8 +609471,11 @@ void IGL.VertexAttrib4ARB( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4ivARB", "opengl") + (delegate* unmanaged)( + _slots[3000] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3000] = nativeContext.LoadFunction("glVertexAttrib4ivARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -597642,8 +609513,11 @@ void IGL.VertexAttrib4N( [NativeTypeName("const GLbyte *")] sbyte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4Nbv", "opengl") + (delegate* unmanaged)( + _slots[3001] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3001] = nativeContext.LoadFunction("glVertexAttrib4Nbv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -597755,8 +609629,11 @@ void IGL.VertexAttrib4NARB( [NativeTypeName("const GLbyte *")] sbyte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4NbvARB", "opengl") + (delegate* unmanaged)( + _slots[3002] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3002] = nativeContext.LoadFunction("glVertexAttrib4NbvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -597794,8 +609671,11 @@ void IGL.VertexAttrib4N( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4Niv", "opengl") + (delegate* unmanaged)( + _slots[3003] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3003] = nativeContext.LoadFunction("glVertexAttrib4Niv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -597907,8 +609787,11 @@ void IGL.VertexAttrib4NARB( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4NivARB", "opengl") + (delegate* unmanaged)( + _slots[3004] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3004] = nativeContext.LoadFunction("glVertexAttrib4NivARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -597946,8 +609829,11 @@ void IGL.VertexAttrib4N( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4Nsv", "opengl") + (delegate* unmanaged)( + _slots[3005] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3005] = nativeContext.LoadFunction("glVertexAttrib4Nsv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -598059,8 +609945,11 @@ void IGL.VertexAttrib4NARB( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4NsvARB", "opengl") + (delegate* unmanaged)( + _slots[3006] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3006] = nativeContext.LoadFunction("glVertexAttrib4NsvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -598101,8 +609990,11 @@ void IGL.VertexAttrib4N( [NativeTypeName("GLubyte")] byte w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4Nub", "opengl") + (delegate* unmanaged)( + _slots[3007] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3007] = nativeContext.LoadFunction("glVertexAttrib4Nub", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile( @@ -598162,8 +610054,11 @@ void IGL.VertexAttrib4NARB( [NativeTypeName("GLubyte")] byte w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4NubARB", "opengl") + (delegate* unmanaged)( + _slots[3008] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3008] = nativeContext.LoadFunction("glVertexAttrib4NubARB", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -598183,8 +610078,11 @@ void IGL.VertexAttrib4N( [NativeTypeName("const GLubyte *")] byte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4Nubv", "opengl") + (delegate* unmanaged)( + _slots[3009] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3009] = nativeContext.LoadFunction("glVertexAttrib4Nubv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -598296,8 +610194,11 @@ void IGL.VertexAttrib4NARB( [NativeTypeName("const GLubyte *")] byte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4NubvARB", "opengl") + (delegate* unmanaged)( + _slots[3010] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3010] = nativeContext.LoadFunction("glVertexAttrib4NubvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -598335,8 +610236,11 @@ void IGL.VertexAttrib4N( [NativeTypeName("const GLuint *")] uint* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4Nuiv", "opengl") + (delegate* unmanaged)( + _slots[3011] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3011] = nativeContext.LoadFunction("glVertexAttrib4Nuiv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -598448,8 +610352,11 @@ void IGL.VertexAttrib4NARB( [NativeTypeName("const GLuint *")] uint* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4NuivARB", "opengl") + (delegate* unmanaged)( + _slots[3012] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3012] = nativeContext.LoadFunction("glVertexAttrib4NuivARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -598487,8 +610394,11 @@ void IGL.VertexAttrib4N( [NativeTypeName("const GLushort *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4Nusv", "opengl") + (delegate* unmanaged)( + _slots[3013] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3013] = nativeContext.LoadFunction("glVertexAttrib4Nusv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -598600,8 +610510,11 @@ void IGL.VertexAttrib4NARB( [NativeTypeName("const GLushort *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4NusvARB", "opengl") + (delegate* unmanaged)( + _slots[3014] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3014] = nativeContext.LoadFunction("glVertexAttrib4NusvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -598642,8 +610555,11 @@ void IGL.VertexAttrib4( [NativeTypeName("GLshort")] short w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4s", "opengl") + (delegate* unmanaged)( + _slots[3015] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3015] = nativeContext.LoadFunction("glVertexAttrib4s", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile( @@ -598703,8 +610619,11 @@ void IGL.VertexAttrib4ARB( [NativeTypeName("GLshort")] short w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4sARB", "opengl") + (delegate* unmanaged)( + _slots[3016] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3016] = nativeContext.LoadFunction("glVertexAttrib4sARB", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -598727,8 +610646,11 @@ void IGL.VertexAttrib4NV( [NativeTypeName("GLshort")] short w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4sNV", "opengl") + (delegate* unmanaged)( + _slots[3017] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3017] = nativeContext.LoadFunction("glVertexAttrib4sNV", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -598748,8 +610670,11 @@ void IGL.VertexAttrib4( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4sv", "opengl") + (delegate* unmanaged)( + _slots[3018] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3018] = nativeContext.LoadFunction("glVertexAttrib4sv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -598861,8 +610786,11 @@ void IGL.VertexAttrib4ARB( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4svARB", "opengl") + (delegate* unmanaged)( + _slots[3019] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3019] = nativeContext.LoadFunction("glVertexAttrib4svARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -598900,8 +610828,11 @@ void IGL.VertexAttrib4NV( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4svNV", "opengl") + (delegate* unmanaged)( + _slots[3020] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3020] = nativeContext.LoadFunction("glVertexAttrib4svNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -598942,8 +610873,11 @@ void IGL.VertexAttrib4NV( [NativeTypeName("GLubyte")] byte w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4ubNV", "opengl") + (delegate* unmanaged)( + _slots[3021] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3021] = nativeContext.LoadFunction("glVertexAttrib4ubNV", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -598963,8 +610897,11 @@ void IGL.VertexAttrib4( [NativeTypeName("const GLubyte *")] byte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4ubv", "opengl") + (delegate* unmanaged)( + _slots[3022] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3022] = nativeContext.LoadFunction("glVertexAttrib4ubv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -599076,8 +611013,11 @@ void IGL.VertexAttrib4ARB( [NativeTypeName("const GLubyte *")] byte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4ubvARB", "opengl") + (delegate* unmanaged)( + _slots[3023] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3023] = nativeContext.LoadFunction("glVertexAttrib4ubvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -599115,8 +611055,11 @@ void IGL.VertexAttrib4NV( [NativeTypeName("const GLubyte *")] byte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4ubvNV", "opengl") + (delegate* unmanaged)( + _slots[3024] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3024] = nativeContext.LoadFunction("glVertexAttrib4ubvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -599154,8 +611097,11 @@ void IGL.VertexAttrib4( [NativeTypeName("const GLuint *")] uint* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4uiv", "opengl") + (delegate* unmanaged)( + _slots[3025] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3025] = nativeContext.LoadFunction("glVertexAttrib4uiv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -599267,8 +611213,11 @@ void IGL.VertexAttrib4ARB( [NativeTypeName("const GLuint *")] uint* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4uivARB", "opengl") + (delegate* unmanaged)( + _slots[3026] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3026] = nativeContext.LoadFunction("glVertexAttrib4uivARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -599306,8 +611255,11 @@ void IGL.VertexAttrib4( [NativeTypeName("const GLushort *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4usv", "opengl") + (delegate* unmanaged)( + _slots[3027] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3027] = nativeContext.LoadFunction("glVertexAttrib4usv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -599419,8 +611371,11 @@ void IGL.VertexAttrib4ARB( [NativeTypeName("const GLushort *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttrib4usvARB", "opengl") + (delegate* unmanaged)( + _slots[3028] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3028] = nativeContext.LoadFunction("glVertexAttrib4usvARB", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -599463,8 +611418,14 @@ void IGL.VertexAttribArrayObjectATI( [NativeTypeName("GLuint")] uint offset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribArrayObjectATI", "opengl") + (delegate* unmanaged)( + _slots[3029] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3029] = nativeContext.LoadFunction( + "glVertexAttribArrayObjectATI", + "opengl" + ) + ) )(index, size, type, normalized, stride, buffer, offset); [SupportedApiProfile("gl", ["GL_ATI_vertex_attrib_array_object"])] @@ -599538,8 +611499,11 @@ void IGL.VertexAttribBinding( [NativeTypeName("GLuint")] uint bindingindex ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribBinding", "opengl") + (delegate* unmanaged)( + _slots[3030] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3030] = nativeContext.LoadFunction("glVertexAttribBinding", "opengl") + ) )(attribindex, bindingindex); [SupportedApiProfile( @@ -599577,8 +611541,11 @@ void IGL.VertexAttribDivisor( [NativeTypeName("GLuint")] uint divisor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribDivisor", "opengl") + (delegate* unmanaged)( + _slots[3031] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3031] = nativeContext.LoadFunction("glVertexAttribDivisor", "opengl") + ) )(index, divisor); [SupportedApiProfile( @@ -599622,8 +611589,14 @@ void IGL.VertexAttribDivisorAngle( [NativeTypeName("GLuint")] uint divisor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribDivisorANGLE", "opengl") + (delegate* unmanaged)( + _slots[3032] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3032] = nativeContext.LoadFunction( + "glVertexAttribDivisorANGLE", + "opengl" + ) + ) )(index, divisor); [SupportedApiProfile("gles2", ["GL_ANGLE_instanced_arrays"])] @@ -599640,8 +611613,14 @@ void IGL.VertexAttribDivisorARB( [NativeTypeName("GLuint")] uint divisor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribDivisorARB", "opengl") + (delegate* unmanaged)( + _slots[3033] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3033] = nativeContext.LoadFunction( + "glVertexAttribDivisorARB", + "opengl" + ) + ) )(index, divisor); [SupportedApiProfile("gl", ["GL_ARB_instanced_arrays"])] @@ -599659,8 +611638,14 @@ void IGL.VertexAttribDivisorEXT( [NativeTypeName("GLuint")] uint divisor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribDivisorEXT", "opengl") + (delegate* unmanaged)( + _slots[3034] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3034] = nativeContext.LoadFunction( + "glVertexAttribDivisorEXT", + "opengl" + ) + ) )(index, divisor); [SupportedApiProfile("gles2", ["GL_EXT_instanced_arrays"])] @@ -599677,8 +611662,11 @@ void IGL.VertexAttribDivisorNV( [NativeTypeName("GLuint")] uint divisor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribDivisorNV", "opengl") + (delegate* unmanaged)( + _slots[3035] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3035] = nativeContext.LoadFunction("glVertexAttribDivisorNV", "opengl") + ) )(index, divisor); [SupportedApiProfile("gles2", ["GL_NV_instanced_arrays"])] @@ -599698,8 +611686,11 @@ void IGL.VertexAttribFormat( [NativeTypeName("GLuint")] uint relativeoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribFormat", "opengl") + (delegate* unmanaged)( + _slots[3036] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3036] = nativeContext.LoadFunction("glVertexAttribFormat", "opengl") + ) )(attribindex, size, type, normalized, relativeoffset); [SupportedApiProfile( @@ -599792,8 +611783,11 @@ void IGL.VertexAttribFormatNV( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribFormatNV", "opengl") + (delegate* unmanaged)( + _slots[3037] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3037] = nativeContext.LoadFunction("glVertexAttribFormatNV", "opengl") + ) )(index, size, type, normalized, stride); [SupportedApiProfile("gl", ["GL_NV_vertex_buffer_unified_memory"])] @@ -599836,8 +611830,11 @@ void IGL.VertexAttribI1( [NativeTypeName("GLint")] int x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI1i", "opengl") + (delegate* unmanaged)( + _slots[3038] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3038] = nativeContext.LoadFunction("glVertexAttribI1i", "opengl") + ) )(index, x); [SupportedApiProfile( @@ -599887,8 +611884,11 @@ void IGL.VertexAttribI1EXT( [NativeTypeName("GLint")] int x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI1iEXT", "opengl") + (delegate* unmanaged)( + _slots[3039] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3039] = nativeContext.LoadFunction("glVertexAttribI1iEXT", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -599905,8 +611905,11 @@ void IGL.VertexAttribI1Iv( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI1iv", "opengl") + (delegate* unmanaged)( + _slots[3040] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3040] = nativeContext.LoadFunction("glVertexAttribI1iv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -600058,8 +612061,11 @@ void IGL.VertexAttribI1IvEXT( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI1ivEXT", "opengl") + (delegate* unmanaged)( + _slots[3041] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3041] = nativeContext.LoadFunction("glVertexAttribI1ivEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -600112,8 +612118,11 @@ void IGL.VertexAttribI1Ui( [NativeTypeName("GLuint")] uint x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI1ui", "opengl") + (delegate* unmanaged)( + _slots[3042] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3042] = nativeContext.LoadFunction("glVertexAttribI1ui", "opengl") + ) )(index, x); [SupportedApiProfile( @@ -600163,8 +612172,11 @@ void IGL.VertexAttribI1UiEXT( [NativeTypeName("GLuint")] uint x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI1uiEXT", "opengl") + (delegate* unmanaged)( + _slots[3043] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3043] = nativeContext.LoadFunction("glVertexAttribI1uiEXT", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -600181,8 +612193,11 @@ void IGL.VertexAttribI1Uiv( [NativeTypeName("const GLuint *")] uint* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI1uiv", "opengl") + (delegate* unmanaged)( + _slots[3044] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3044] = nativeContext.LoadFunction("glVertexAttribI1uiv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -600334,8 +612349,11 @@ void IGL.VertexAttribI1UivEXT( [NativeTypeName("const GLuint *")] uint* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI1uivEXT", "opengl") + (delegate* unmanaged)( + _slots[3045] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3045] = nativeContext.LoadFunction("glVertexAttribI1uivEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -600389,8 +612407,11 @@ void IGL.VertexAttribI2( [NativeTypeName("GLint")] int y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI2i", "opengl") + (delegate* unmanaged)( + _slots[3046] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3046] = nativeContext.LoadFunction("glVertexAttribI2i", "opengl") + ) )(index, x, y); [SupportedApiProfile( @@ -600442,8 +612463,11 @@ void IGL.VertexAttribI2EXT( [NativeTypeName("GLint")] int y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI2iEXT", "opengl") + (delegate* unmanaged)( + _slots[3047] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3047] = nativeContext.LoadFunction("glVertexAttribI2iEXT", "opengl") + ) )(index, x, y); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -600461,8 +612485,11 @@ void IGL.VertexAttribI2( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI2iv", "opengl") + (delegate* unmanaged)( + _slots[3048] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3048] = nativeContext.LoadFunction("glVertexAttribI2iv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -600566,8 +612593,11 @@ void IGL.VertexAttribI2EXT( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI2ivEXT", "opengl") + (delegate* unmanaged)( + _slots[3049] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3049] = nativeContext.LoadFunction("glVertexAttribI2ivEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -600606,8 +612636,11 @@ void IGL.VertexAttribI2( [NativeTypeName("GLuint")] uint y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI2ui", "opengl") + (delegate* unmanaged)( + _slots[3050] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3050] = nativeContext.LoadFunction("glVertexAttribI2ui", "opengl") + ) )(index, x, y); [SupportedApiProfile( @@ -600659,8 +612692,11 @@ void IGL.VertexAttribI2EXT( [NativeTypeName("GLuint")] uint y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI2uiEXT", "opengl") + (delegate* unmanaged)( + _slots[3051] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3051] = nativeContext.LoadFunction("glVertexAttribI2uiEXT", "opengl") + ) )(index, x, y); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -600678,8 +612714,11 @@ void IGL.VertexAttribI2( [NativeTypeName("const GLuint *")] uint* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI2uiv", "opengl") + (delegate* unmanaged)( + _slots[3052] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3052] = nativeContext.LoadFunction("glVertexAttribI2uiv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -600783,8 +612822,11 @@ void IGL.VertexAttribI2EXT( [NativeTypeName("const GLuint *")] uint* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI2uivEXT", "opengl") + (delegate* unmanaged)( + _slots[3053] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3053] = nativeContext.LoadFunction("glVertexAttribI2uivEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -600824,8 +612866,11 @@ void IGL.VertexAttribI3( [NativeTypeName("GLint")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI3i", "opengl") + (delegate* unmanaged)( + _slots[3054] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3054] = nativeContext.LoadFunction("glVertexAttribI3i", "opengl") + ) )(index, x, y, z); [SupportedApiProfile( @@ -600879,8 +612924,11 @@ void IGL.VertexAttribI3EXT( [NativeTypeName("GLint")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI3iEXT", "opengl") + (delegate* unmanaged)( + _slots[3055] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3055] = nativeContext.LoadFunction("glVertexAttribI3iEXT", "opengl") + ) )(index, x, y, z); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -600899,8 +612947,11 @@ void IGL.VertexAttribI3( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI3iv", "opengl") + (delegate* unmanaged)( + _slots[3056] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3056] = nativeContext.LoadFunction("glVertexAttribI3iv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -601004,8 +613055,11 @@ void IGL.VertexAttribI3EXT( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI3ivEXT", "opengl") + (delegate* unmanaged)( + _slots[3057] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3057] = nativeContext.LoadFunction("glVertexAttribI3ivEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -601045,8 +613099,11 @@ void IGL.VertexAttribI3( [NativeTypeName("GLuint")] uint z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI3ui", "opengl") + (delegate* unmanaged)( + _slots[3058] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3058] = nativeContext.LoadFunction("glVertexAttribI3ui", "opengl") + ) )(index, x, y, z); [SupportedApiProfile( @@ -601100,8 +613157,11 @@ void IGL.VertexAttribI3EXT( [NativeTypeName("GLuint")] uint z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI3uiEXT", "opengl") + (delegate* unmanaged)( + _slots[3059] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3059] = nativeContext.LoadFunction("glVertexAttribI3uiEXT", "opengl") + ) )(index, x, y, z); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -601120,8 +613180,11 @@ void IGL.VertexAttribI3( [NativeTypeName("const GLuint *")] uint* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI3uiv", "opengl") + (delegate* unmanaged)( + _slots[3060] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3060] = nativeContext.LoadFunction("glVertexAttribI3uiv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -601225,8 +613288,11 @@ void IGL.VertexAttribI3EXT( [NativeTypeName("const GLuint *")] uint* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI3uivEXT", "opengl") + (delegate* unmanaged)( + _slots[3061] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3061] = nativeContext.LoadFunction("glVertexAttribI3uivEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -601264,8 +613330,11 @@ void IGL.VertexAttribI4( [NativeTypeName("const GLbyte *")] sbyte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4bv", "opengl") + (delegate* unmanaged)( + _slots[3062] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3062] = nativeContext.LoadFunction("glVertexAttribI4bv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -601369,8 +613438,11 @@ void IGL.VertexAttribI4EXT( [NativeTypeName("const GLbyte *")] sbyte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4bvEXT", "opengl") + (delegate* unmanaged)( + _slots[3063] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3063] = nativeContext.LoadFunction("glVertexAttribI4bvEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -601411,8 +613483,11 @@ void IGL.VertexAttribI4( [NativeTypeName("GLint")] int w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4i", "opengl") + (delegate* unmanaged)( + _slots[3064] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3064] = nativeContext.LoadFunction("glVertexAttribI4i", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile( @@ -601468,8 +613543,11 @@ void IGL.VertexAttribI4EXT( [NativeTypeName("GLint")] int w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4iEXT", "opengl") + (delegate* unmanaged)( + _slots[3065] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3065] = nativeContext.LoadFunction("glVertexAttribI4iEXT", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -601489,8 +613567,11 @@ void IGL.VertexAttribI4( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4iv", "opengl") + (delegate* unmanaged)( + _slots[3066] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3066] = nativeContext.LoadFunction("glVertexAttribI4iv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -601594,8 +613675,11 @@ void IGL.VertexAttribI4EXT( [NativeTypeName("const GLint *")] int* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4ivEXT", "opengl") + (delegate* unmanaged)( + _slots[3067] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3067] = nativeContext.LoadFunction("glVertexAttribI4ivEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -601633,8 +613717,11 @@ void IGL.VertexAttribI4( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4sv", "opengl") + (delegate* unmanaged)( + _slots[3068] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3068] = nativeContext.LoadFunction("glVertexAttribI4sv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -601738,8 +613825,11 @@ void IGL.VertexAttribI4EXT( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4svEXT", "opengl") + (delegate* unmanaged)( + _slots[3069] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3069] = nativeContext.LoadFunction("glVertexAttribI4svEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -601777,8 +613867,11 @@ void IGL.VertexAttribI4( [NativeTypeName("const GLubyte *")] byte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4ubv", "opengl") + (delegate* unmanaged)( + _slots[3070] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3070] = nativeContext.LoadFunction("glVertexAttribI4ubv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -601882,8 +613975,11 @@ void IGL.VertexAttribI4EXT( [NativeTypeName("const GLubyte *")] byte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4ubvEXT", "opengl") + (delegate* unmanaged)( + _slots[3071] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3071] = nativeContext.LoadFunction("glVertexAttribI4ubvEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -601924,8 +614020,11 @@ void IGL.VertexAttribI4( [NativeTypeName("GLuint")] uint w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4ui", "opengl") + (delegate* unmanaged)( + _slots[3072] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3072] = nativeContext.LoadFunction("glVertexAttribI4ui", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile( @@ -601981,8 +614080,11 @@ void IGL.VertexAttribI4EXT( [NativeTypeName("GLuint")] uint w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4uiEXT", "opengl") + (delegate* unmanaged)( + _slots[3073] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3073] = nativeContext.LoadFunction("glVertexAttribI4uiEXT", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -602002,8 +614104,11 @@ void IGL.VertexAttribI4( [NativeTypeName("const GLuint *")] uint* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4uiv", "opengl") + (delegate* unmanaged)( + _slots[3074] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3074] = nativeContext.LoadFunction("glVertexAttribI4uiv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -602107,8 +614212,11 @@ void IGL.VertexAttribI4EXT( [NativeTypeName("const GLuint *")] uint* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4uivEXT", "opengl") + (delegate* unmanaged)( + _slots[3075] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3075] = nativeContext.LoadFunction("glVertexAttribI4uivEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -602146,8 +614254,11 @@ void IGL.VertexAttribI4( [NativeTypeName("const GLushort *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4usv", "opengl") + (delegate* unmanaged)( + _slots[3076] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3076] = nativeContext.LoadFunction("glVertexAttribI4usv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -602251,8 +614362,11 @@ void IGL.VertexAttribI4EXT( [NativeTypeName("const GLushort *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribI4usvEXT", "opengl") + (delegate* unmanaged)( + _slots[3077] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3077] = nativeContext.LoadFunction("glVertexAttribI4usvEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -602292,8 +614406,11 @@ void IGL.VertexAttribIFormat( [NativeTypeName("GLuint")] uint relativeoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribIFormat", "opengl") + (delegate* unmanaged)( + _slots[3078] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3078] = nativeContext.LoadFunction("glVertexAttribIFormat", "opengl") + ) )(attribindex, size, type, relativeoffset); [SupportedApiProfile( @@ -602375,8 +614492,11 @@ void IGL.VertexAttribIFormatNV( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribIFormatNV", "opengl") + (delegate* unmanaged)( + _slots[3079] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3079] = nativeContext.LoadFunction("glVertexAttribIFormatNV", "opengl") + ) )(index, size, type, stride); [SupportedApiProfile("gl", ["GL_NV_vertex_buffer_unified_memory"])] @@ -602419,8 +614539,11 @@ void IGL.VertexAttribIPointer( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribIPointer", "opengl") + (delegate* unmanaged)( + _slots[3080] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3080] = nativeContext.LoadFunction("glVertexAttribIPointer", "opengl") + ) )(index, size, type, stride, pointer); [SupportedApiProfile( @@ -602536,8 +614659,14 @@ void IGL.VertexAttribIPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribIPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[3081] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3081] = nativeContext.LoadFunction( + "glVertexAttribIPointerEXT", + "opengl" + ) + ) )(index, size, type, stride, pointer); [SupportedApiProfile("gl", ["GL_EXT_gpu_shader4", "GL_NV_vertex_program4"])] @@ -602584,8 +614713,11 @@ void IGL.VertexAttribL1( [NativeTypeName("GLdouble")] double x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL1d", "opengl") + (delegate* unmanaged)( + _slots[3082] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3082] = nativeContext.LoadFunction("glVertexAttribL1d", "opengl") + ) )(index, x); [SupportedApiProfile( @@ -602627,8 +614759,11 @@ void IGL.VertexAttribL1EXT( [NativeTypeName("GLdouble")] double x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL1dEXT", "opengl") + (delegate* unmanaged)( + _slots[3083] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3083] = nativeContext.LoadFunction("glVertexAttribL1dEXT", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_EXT_vertex_attrib_64bit"])] @@ -602645,8 +614780,11 @@ void IGL.VertexAttribL1Dv( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL1dv", "opengl") + (delegate* unmanaged)( + _slots[3084] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3084] = nativeContext.LoadFunction("glVertexAttribL1dv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -602774,8 +614912,11 @@ void IGL.VertexAttribL1DvEXT( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL1dvEXT", "opengl") + (delegate* unmanaged)( + _slots[3085] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3085] = nativeContext.LoadFunction("glVertexAttribL1dvEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_vertex_attrib_64bit"])] @@ -602828,8 +614969,11 @@ void IGL.VertexAttribL1NV( [NativeTypeName("GLint64EXT")] long x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL1i64NV", "opengl") + (delegate* unmanaged)( + _slots[3086] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3086] = nativeContext.LoadFunction("glVertexAttribL1i64NV", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -602847,8 +614991,11 @@ void IGL.VertexAttribL1I64VNV( [NativeTypeName("const GLint64EXT *")] long* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL1i64vNV", "opengl") + (delegate* unmanaged)( + _slots[3087] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3087] = nativeContext.LoadFunction("glVertexAttribL1i64vNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -602904,8 +615051,11 @@ void IGL.VertexAttribL1ARB( [NativeTypeName("GLuint64EXT")] ulong x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL1ui64ARB", "opengl") + (delegate* unmanaged)( + _slots[3088] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3088] = nativeContext.LoadFunction("glVertexAttribL1ui64ARB", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_ARB_bindless_texture"])] @@ -602923,8 +615073,11 @@ void IGL.VertexAttribL1Ui64NV( [NativeTypeName("GLuint64EXT")] ulong x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL1ui64NV", "opengl") + (delegate* unmanaged)( + _slots[3089] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3089] = nativeContext.LoadFunction("glVertexAttribL1ui64NV", "opengl") + ) )(index, x); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -602942,8 +615095,14 @@ void IGL.VertexAttribL1ARB( [NativeTypeName("const GLuint64EXT *")] ulong* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL1ui64vARB", "opengl") + (delegate* unmanaged)( + _slots[3090] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3090] = nativeContext.LoadFunction( + "glVertexAttribL1ui64vARB", + "opengl" + ) + ) )(index, v); [SupportedApiProfile("gl", ["GL_ARB_bindless_texture"])] @@ -602983,8 +615142,11 @@ void IGL.VertexAttribL1Ui64VNV( [NativeTypeName("const GLuint64EXT *")] ulong* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL1ui64vNV", "opengl") + (delegate* unmanaged)( + _slots[3091] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3091] = nativeContext.LoadFunction("glVertexAttribL1ui64vNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -603041,8 +615203,11 @@ void IGL.VertexAttribL2( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL2d", "opengl") + (delegate* unmanaged)( + _slots[3092] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3092] = nativeContext.LoadFunction("glVertexAttribL2d", "opengl") + ) )(index, x, y); [SupportedApiProfile( @@ -603086,8 +615251,11 @@ void IGL.VertexAttribL2EXT( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL2dEXT", "opengl") + (delegate* unmanaged)( + _slots[3093] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3093] = nativeContext.LoadFunction("glVertexAttribL2dEXT", "opengl") + ) )(index, x, y); [SupportedApiProfile("gl", ["GL_EXT_vertex_attrib_64bit"])] @@ -603105,8 +615273,11 @@ void IGL.VertexAttribL2( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL2dv", "opengl") + (delegate* unmanaged)( + _slots[3094] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3094] = nativeContext.LoadFunction("glVertexAttribL2dv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -603194,8 +615365,11 @@ void IGL.VertexAttribL2EXT( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL2dvEXT", "opengl") + (delegate* unmanaged)( + _slots[3095] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3095] = nativeContext.LoadFunction("glVertexAttribL2dvEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_vertex_attrib_64bit"])] @@ -603234,8 +615408,11 @@ void IGL.VertexAttribL2NV( [NativeTypeName("GLint64EXT")] long y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL2i64NV", "opengl") + (delegate* unmanaged)( + _slots[3096] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3096] = nativeContext.LoadFunction("glVertexAttribL2i64NV", "opengl") + ) )(index, x, y); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -603254,8 +615431,11 @@ void IGL.VertexAttribL2NV( [NativeTypeName("const GLint64EXT *")] long* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL2i64vNV", "opengl") + (delegate* unmanaged)( + _slots[3097] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3097] = nativeContext.LoadFunction("glVertexAttribL2i64vNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -603296,8 +615476,11 @@ void IGL.VertexAttribL2NV( [NativeTypeName("GLuint64EXT")] ulong y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL2ui64NV", "opengl") + (delegate* unmanaged)( + _slots[3098] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3098] = nativeContext.LoadFunction("glVertexAttribL2ui64NV", "opengl") + ) )(index, x, y); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -603316,8 +615499,11 @@ void IGL.VertexAttribL2NV( [NativeTypeName("const GLuint64EXT *")] ulong* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL2ui64vNV", "opengl") + (delegate* unmanaged)( + _slots[3099] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3099] = nativeContext.LoadFunction("glVertexAttribL2ui64vNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -603359,8 +615545,11 @@ void IGL.VertexAttribL3( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL3d", "opengl") + (delegate* unmanaged)( + _slots[3100] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3100] = nativeContext.LoadFunction("glVertexAttribL3d", "opengl") + ) )(index, x, y, z); [SupportedApiProfile( @@ -603406,8 +615595,11 @@ void IGL.VertexAttribL3EXT( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL3dEXT", "opengl") + (delegate* unmanaged)( + _slots[3101] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3101] = nativeContext.LoadFunction("glVertexAttribL3dEXT", "opengl") + ) )(index, x, y, z); [SupportedApiProfile("gl", ["GL_EXT_vertex_attrib_64bit"])] @@ -603426,8 +615618,11 @@ void IGL.VertexAttribL3( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL3dv", "opengl") + (delegate* unmanaged)( + _slots[3102] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3102] = nativeContext.LoadFunction("glVertexAttribL3dv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -603515,8 +615710,11 @@ void IGL.VertexAttribL3EXT( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL3dvEXT", "opengl") + (delegate* unmanaged)( + _slots[3103] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3103] = nativeContext.LoadFunction("glVertexAttribL3dvEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_vertex_attrib_64bit"])] @@ -603556,8 +615754,11 @@ void IGL.VertexAttribL3NV( [NativeTypeName("GLint64EXT")] long z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL3i64NV", "opengl") + (delegate* unmanaged)( + _slots[3104] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3104] = nativeContext.LoadFunction("glVertexAttribL3i64NV", "opengl") + ) )(index, x, y, z); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -603577,8 +615778,11 @@ void IGL.VertexAttribL3NV( [NativeTypeName("const GLint64EXT *")] long* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL3i64vNV", "opengl") + (delegate* unmanaged)( + _slots[3105] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3105] = nativeContext.LoadFunction("glVertexAttribL3i64vNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -603620,8 +615824,11 @@ void IGL.VertexAttribL3NV( [NativeTypeName("GLuint64EXT")] ulong z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL3ui64NV", "opengl") + (delegate* unmanaged)( + _slots[3106] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3106] = nativeContext.LoadFunction("glVertexAttribL3ui64NV", "opengl") + ) )(index, x, y, z); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -603641,8 +615848,11 @@ void IGL.VertexAttribL3NV( [NativeTypeName("const GLuint64EXT *")] ulong* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL3ui64vNV", "opengl") + (delegate* unmanaged)( + _slots[3107] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3107] = nativeContext.LoadFunction("glVertexAttribL3ui64vNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -603685,8 +615895,11 @@ void IGL.VertexAttribL4( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL4d", "opengl") + (delegate* unmanaged)( + _slots[3108] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3108] = nativeContext.LoadFunction("glVertexAttribL4d", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile( @@ -603734,8 +615947,11 @@ void IGL.VertexAttribL4EXT( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL4dEXT", "opengl") + (delegate* unmanaged)( + _slots[3109] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3109] = nativeContext.LoadFunction("glVertexAttribL4dEXT", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_EXT_vertex_attrib_64bit"])] @@ -603755,8 +615971,11 @@ void IGL.VertexAttribL4( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL4dv", "opengl") + (delegate* unmanaged)( + _slots[3110] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3110] = nativeContext.LoadFunction("glVertexAttribL4dv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -603844,8 +616063,11 @@ void IGL.VertexAttribL4EXT( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL4dvEXT", "opengl") + (delegate* unmanaged)( + _slots[3111] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3111] = nativeContext.LoadFunction("glVertexAttribL4dvEXT", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_EXT_vertex_attrib_64bit"])] @@ -603886,8 +616108,11 @@ void IGL.VertexAttribL4NV( [NativeTypeName("GLint64EXT")] long w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL4i64NV", "opengl") + (delegate* unmanaged)( + _slots[3112] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3112] = nativeContext.LoadFunction("glVertexAttribL4i64NV", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -603908,8 +616133,11 @@ void IGL.VertexAttribL4NV( [NativeTypeName("const GLint64EXT *")] long* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL4i64vNV", "opengl") + (delegate* unmanaged)( + _slots[3113] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3113] = nativeContext.LoadFunction("glVertexAttribL4i64vNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -603952,8 +616180,11 @@ void IGL.VertexAttribL4NV( [NativeTypeName("GLuint64EXT")] ulong w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL4ui64NV", "opengl") + (delegate* unmanaged)( + _slots[3114] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3114] = nativeContext.LoadFunction("glVertexAttribL4ui64NV", "opengl") + ) )(index, x, y, z, w); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -603974,8 +616205,11 @@ void IGL.VertexAttribL4NV( [NativeTypeName("const GLuint64EXT *")] ulong* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribL4ui64vNV", "opengl") + (delegate* unmanaged)( + _slots[3115] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3115] = nativeContext.LoadFunction("glVertexAttribL4ui64vNV", "opengl") + ) )(index, v); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -604017,8 +616251,11 @@ void IGL.VertexAttribLFormat( [NativeTypeName("GLuint")] uint relativeoffset ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribLFormat", "opengl") + (delegate* unmanaged)( + _slots[3116] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3116] = nativeContext.LoadFunction("glVertexAttribLFormat", "opengl") + ) )(attribindex, size, type, relativeoffset); [SupportedApiProfile( @@ -604100,8 +616337,11 @@ void IGL.VertexAttribLFormatNV( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribLFormatNV", "opengl") + (delegate* unmanaged)( + _slots[3117] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3117] = nativeContext.LoadFunction("glVertexAttribLFormatNV", "opengl") + ) )(index, size, type, stride); [SupportedApiProfile("gl", ["GL_NV_vertex_attrib_integer_64bit"])] @@ -604144,8 +616384,11 @@ void IGL.VertexAttribLPointer( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribLPointer", "opengl") + (delegate* unmanaged)( + _slots[3118] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3118] = nativeContext.LoadFunction("glVertexAttribLPointer", "opengl") + ) )(index, size, type, stride, pointer); [SupportedApiProfile( @@ -604245,8 +616488,14 @@ void IGL.VertexAttribLPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribLPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[3119] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3119] = nativeContext.LoadFunction( + "glVertexAttribLPointerEXT", + "opengl" + ) + ) )(index, size, type, stride, pointer); [SupportedApiProfile("gl", ["GL_EXT_vertex_attrib_64bit"])] @@ -604295,8 +616544,11 @@ void IGL.VertexAttribP1( [NativeTypeName("GLuint")] uint value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribP1ui", "opengl") + (delegate* unmanaged)( + _slots[3120] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3120] = nativeContext.LoadFunction("glVertexAttribP1ui", "opengl") + ) )(index, type, normalized, value); [SupportedApiProfile( @@ -604394,8 +616646,11 @@ void IGL.VertexAttribP1Uiv( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribP1uiv", "opengl") + (delegate* unmanaged)( + _slots[3121] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3121] = nativeContext.LoadFunction("glVertexAttribP1uiv", "opengl") + ) )(index, type, normalized, value); [SupportedApiProfile( @@ -604547,8 +616802,11 @@ void IGL.VertexAttribP2( [NativeTypeName("GLuint")] uint value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribP2ui", "opengl") + (delegate* unmanaged)( + _slots[3122] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3122] = nativeContext.LoadFunction("glVertexAttribP2ui", "opengl") + ) )(index, type, normalized, value); [SupportedApiProfile( @@ -604646,8 +616904,11 @@ void IGL.VertexAttribP2Uiv( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribP2uiv", "opengl") + (delegate* unmanaged)( + _slots[3123] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3123] = nativeContext.LoadFunction("glVertexAttribP2uiv", "opengl") + ) )(index, type, normalized, value); [SupportedApiProfile( @@ -604799,8 +617060,11 @@ void IGL.VertexAttribP3( [NativeTypeName("GLuint")] uint value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribP3ui", "opengl") + (delegate* unmanaged)( + _slots[3124] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3124] = nativeContext.LoadFunction("glVertexAttribP3ui", "opengl") + ) )(index, type, normalized, value); [SupportedApiProfile( @@ -604898,8 +617162,11 @@ void IGL.VertexAttribP3Uiv( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribP3uiv", "opengl") + (delegate* unmanaged)( + _slots[3125] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3125] = nativeContext.LoadFunction("glVertexAttribP3uiv", "opengl") + ) )(index, type, normalized, value); [SupportedApiProfile( @@ -605051,8 +617318,11 @@ void IGL.VertexAttribP4( [NativeTypeName("GLuint")] uint value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribP4ui", "opengl") + (delegate* unmanaged)( + _slots[3126] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3126] = nativeContext.LoadFunction("glVertexAttribP4ui", "opengl") + ) )(index, type, normalized, value); [SupportedApiProfile( @@ -605150,8 +617420,11 @@ void IGL.VertexAttribP4Uiv( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribP4uiv", "opengl") + (delegate* unmanaged)( + _slots[3127] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3127] = nativeContext.LoadFunction("glVertexAttribP4uiv", "opengl") + ) )(index, type, normalized, value); [SupportedApiProfile( @@ -605302,8 +617575,14 @@ void IGL.VertexAttribParameterAMD( [NativeTypeName("GLint")] int param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribParameteriAMD", "opengl") + (delegate* unmanaged)( + _slots[3128] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3128] = nativeContext.LoadFunction( + "glVertexAttribParameteriAMD", + "opengl" + ) + ) )(index, pname, param2); [SupportedApiProfile("gl", ["GL_AMD_interleaved_elements"])] @@ -605325,8 +617604,11 @@ void IGL.VertexAttribPointer( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribPointer", "opengl") + (delegate* unmanaged)( + _slots[3129] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3129] = nativeContext.LoadFunction("glVertexAttribPointer", "opengl") + ) )(index, size, type, normalized, stride, pointer); [SupportedApiProfile( @@ -605471,8 +617753,14 @@ void IGL.VertexAttribPointerARB( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribPointerARB", "opengl") + (delegate* unmanaged)( + _slots[3130] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3130] = nativeContext.LoadFunction( + "glVertexAttribPointerARB", + "opengl" + ) + ) )(index, size, type, normalized, stride, pointer); [SupportedApiProfile("gl", ["GL_ARB_vertex_program", "GL_ARB_vertex_shader"])] @@ -605532,8 +617820,11 @@ void IGL.VertexAttribPointerNV( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribPointerNV", "opengl") + (delegate* unmanaged)( + _slots[3131] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3131] = nativeContext.LoadFunction("glVertexAttribPointerNV", "opengl") + ) )(index, fsize, type, stride, pointer); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -605581,8 +617872,11 @@ void IGL.VertexAttribs1NV( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs1dvNV", "opengl") + (delegate* unmanaged)( + _slots[3132] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3132] = nativeContext.LoadFunction("glVertexAttribs1dvNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -605639,8 +617933,11 @@ void IGL.VertexAttribs1NV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs1fvNV", "opengl") + (delegate* unmanaged)( + _slots[3133] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3133] = nativeContext.LoadFunction("glVertexAttribs1fvNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -605697,8 +617994,11 @@ void IGL.VertexAttribs1NV( [NativeTypeName("const GLhalfNV *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs1hvNV", "opengl") + (delegate* unmanaged)( + _slots[3134] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3134] = nativeContext.LoadFunction("glVertexAttribs1hvNV", "opengl") + ) )(index, n, v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -605755,8 +618055,11 @@ void IGL.VertexAttribs1NV( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs1svNV", "opengl") + (delegate* unmanaged)( + _slots[3135] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3135] = nativeContext.LoadFunction("glVertexAttribs1svNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -605813,8 +618116,11 @@ void IGL.VertexAttribs2NV( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs2dvNV", "opengl") + (delegate* unmanaged)( + _slots[3136] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3136] = nativeContext.LoadFunction("glVertexAttribs2dvNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -605856,8 +618162,11 @@ void IGL.VertexAttribs2NV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs2fvNV", "opengl") + (delegate* unmanaged)( + _slots[3137] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3137] = nativeContext.LoadFunction("glVertexAttribs2fvNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -605899,8 +618208,11 @@ void IGL.VertexAttribs2NV( [NativeTypeName("const GLhalfNV *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs2hvNV", "opengl") + (delegate* unmanaged)( + _slots[3138] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3138] = nativeContext.LoadFunction("glVertexAttribs2hvNV", "opengl") + ) )(index, n, v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -605957,8 +618269,11 @@ void IGL.VertexAttribs2NV( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs2svNV", "opengl") + (delegate* unmanaged)( + _slots[3139] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3139] = nativeContext.LoadFunction("glVertexAttribs2svNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -606000,8 +618315,11 @@ void IGL.VertexAttribs3NV( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs3dvNV", "opengl") + (delegate* unmanaged)( + _slots[3140] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3140] = nativeContext.LoadFunction("glVertexAttribs3dvNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -606043,8 +618361,11 @@ void IGL.VertexAttribs3NV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs3fvNV", "opengl") + (delegate* unmanaged)( + _slots[3141] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3141] = nativeContext.LoadFunction("glVertexAttribs3fvNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -606086,8 +618407,11 @@ void IGL.VertexAttribs3NV( [NativeTypeName("const GLhalfNV *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs3hvNV", "opengl") + (delegate* unmanaged)( + _slots[3142] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3142] = nativeContext.LoadFunction("glVertexAttribs3hvNV", "opengl") + ) )(index, n, v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -606144,8 +618468,11 @@ void IGL.VertexAttribs3NV( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs3svNV", "opengl") + (delegate* unmanaged)( + _slots[3143] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3143] = nativeContext.LoadFunction("glVertexAttribs3svNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -606187,8 +618514,11 @@ void IGL.VertexAttribs4NV( [NativeTypeName("const GLdouble *")] double* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs4dvNV", "opengl") + (delegate* unmanaged)( + _slots[3144] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3144] = nativeContext.LoadFunction("glVertexAttribs4dvNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -606230,8 +618560,11 @@ void IGL.VertexAttribs4NV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs4fvNV", "opengl") + (delegate* unmanaged)( + _slots[3145] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3145] = nativeContext.LoadFunction("glVertexAttribs4fvNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -606273,8 +618606,11 @@ void IGL.VertexAttribs4NV( [NativeTypeName("const GLhalfNV *")] ushort* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs4hvNV", "opengl") + (delegate* unmanaged)( + _slots[3146] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3146] = nativeContext.LoadFunction("glVertexAttribs4hvNV", "opengl") + ) )(index, n, v); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -606331,8 +618667,11 @@ void IGL.VertexAttribs4NV( [NativeTypeName("const GLshort *")] short* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs4svNV", "opengl") + (delegate* unmanaged)( + _slots[3147] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3147] = nativeContext.LoadFunction("glVertexAttribs4svNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -606374,8 +618713,11 @@ void IGL.VertexAttribs4NV( [NativeTypeName("const GLubyte *")] byte* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexAttribs4ubvNV", "opengl") + (delegate* unmanaged)( + _slots[3148] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3148] = nativeContext.LoadFunction("glVertexAttribs4ubvNV", "opengl") + ) )(index, count, v); [SupportedApiProfile("gl", ["GL_NV_vertex_program"])] @@ -606416,8 +618758,11 @@ void IGL.VertexBindingDivisor( [NativeTypeName("GLuint")] uint divisor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexBindingDivisor", "opengl") + (delegate* unmanaged)( + _slots[3149] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3149] = nativeContext.LoadFunction("glVertexBindingDivisor", "opengl") + ) )(bindingindex, divisor); [SupportedApiProfile( @@ -606451,9 +618796,13 @@ public static void VertexBindingDivisor( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.VertexBlendARB([NativeTypeName("GLint")] int count) => - ((delegate* unmanaged)nativeContext.LoadFunction("glVertexBlendARB", "opengl"))( - count - ); + ( + (delegate* unmanaged)( + _slots[3150] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3150] = nativeContext.LoadFunction("glVertexBlendARB", "opengl") + ) + )(count); [SupportedApiProfile("gl", ["GL_ARB_vertex_blend"])] [NativeFunction("opengl", EntryPoint = "glVertexBlendARB")] @@ -606467,8 +618816,11 @@ void IGL.VertexBlendEnvATI( [NativeTypeName("GLfloat")] float param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexBlendEnvfATI", "opengl") + (delegate* unmanaged)( + _slots[3151] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3151] = nativeContext.LoadFunction("glVertexBlendEnvfATI", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -606500,8 +618852,11 @@ void IGL.VertexBlendEnvATI( [NativeTypeName("GLint")] int param1 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexBlendEnviATI", "opengl") + (delegate* unmanaged)( + _slots[3152] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3152] = nativeContext.LoadFunction("glVertexBlendEnviATI", "opengl") + ) )(pname, param1); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -606534,8 +618889,11 @@ void IGL.VertexFormatNV( [NativeTypeName("GLsizei")] uint stride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexFormatNV", "opengl") + (delegate* unmanaged)( + _slots[3153] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3153] = nativeContext.LoadFunction("glVertexFormatNV", "opengl") + ) )(size, type, stride); [SupportedApiProfile("gl", ["GL_NV_vertex_buffer_unified_memory"])] @@ -606572,8 +618930,11 @@ void IGL.VertexP2( [NativeTypeName("GLuint")] uint value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexP2ui", "opengl") + (delegate* unmanaged)( + _slots[3154] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3154] = nativeContext.LoadFunction("glVertexP2ui", "opengl") + ) )(type, value); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -606605,8 +618966,11 @@ void IGL.VertexP2Uiv( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexP2uiv", "opengl") + (delegate* unmanaged)( + _slots[3155] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3155] = nativeContext.LoadFunction("glVertexP2uiv", "opengl") + ) )(type, value); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -606659,8 +619023,11 @@ void IGL.VertexP3( [NativeTypeName("GLuint")] uint value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexP3ui", "opengl") + (delegate* unmanaged)( + _slots[3156] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3156] = nativeContext.LoadFunction("glVertexP3ui", "opengl") + ) )(type, value); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -606692,8 +619059,11 @@ void IGL.VertexP3Uiv( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexP3uiv", "opengl") + (delegate* unmanaged)( + _slots[3157] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3157] = nativeContext.LoadFunction("glVertexP3uiv", "opengl") + ) )(type, value); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -606746,8 +619116,11 @@ void IGL.VertexP4( [NativeTypeName("GLuint")] uint value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexP4ui", "opengl") + (delegate* unmanaged)( + _slots[3158] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3158] = nativeContext.LoadFunction("glVertexP4ui", "opengl") + ) )(type, value); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -606779,8 +619152,11 @@ void IGL.VertexP4Uiv( [NativeTypeName("const GLuint *")] uint* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexP4uiv", "opengl") + (delegate* unmanaged)( + _slots[3159] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3159] = nativeContext.LoadFunction("glVertexP4uiv", "opengl") + ) )(type, value); [SupportedApiProfile("gl", ["GL_ARB_vertex_type_2_10_10_10_rev"])] @@ -606835,8 +619211,11 @@ void IGL.VertexPointer( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexPointer", "opengl") + (delegate* unmanaged)( + _slots[3160] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3160] = nativeContext.LoadFunction("glVertexPointer", "opengl") + ) )(size, type, stride, pointer); [SupportedApiProfile( @@ -606931,8 +619310,11 @@ void IGL.VertexPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[3161] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3161] = nativeContext.LoadFunction("glVertexPointerEXT", "opengl") + ) )(size, type, stride, count, pointer); [SupportedApiProfile("gl", ["GL_EXT_vertex_array"])] @@ -606982,8 +619364,11 @@ void IGL.VertexPointerListIBM( [NativeTypeName("GLint")] int ptrstride ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexPointerListIBM", "opengl") + (delegate* unmanaged)( + _slots[3162] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3162] = nativeContext.LoadFunction("glVertexPointerListIBM", "opengl") + ) )(size, type, stride, pointer, ptrstride); [SupportedApiProfile("gl", ["GL_IBM_vertex_array_lists"])] @@ -607053,8 +619438,11 @@ void IGL.VertexPointerIntel( [NativeTypeName("const void **")] void** pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexPointervINTEL", "opengl") + (delegate* unmanaged)( + _slots[3163] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3163] = nativeContext.LoadFunction("glVertexPointervINTEL", "opengl") + ) )(size, type, pointer); [SupportedApiProfile("gl", ["GL_INTEL_parallel_arrays"])] @@ -607095,8 +619483,11 @@ void IGL.VertexStream1DATI( [NativeTypeName("GLdouble")] double x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream1dATI", "opengl") + (delegate* unmanaged)( + _slots[3164] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3164] = nativeContext.LoadFunction("glVertexStream1dATI", "opengl") + ) )(stream, x); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607128,8 +619519,11 @@ void IGL.VertexStream1DvATI( [NativeTypeName("const GLdouble *")] double* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream1dvATI", "opengl") + (delegate* unmanaged)( + _slots[3165] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3165] = nativeContext.LoadFunction("glVertexStream1dvATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607182,8 +619576,11 @@ void IGL.VertexStream1FATI( [NativeTypeName("GLfloat")] float x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream1fATI", "opengl") + (delegate* unmanaged)( + _slots[3166] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3166] = nativeContext.LoadFunction("glVertexStream1fATI", "opengl") + ) )(stream, x); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607215,8 +619612,11 @@ void IGL.VertexStream1FvATI( [NativeTypeName("const GLfloat *")] float* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream1fvATI", "opengl") + (delegate* unmanaged)( + _slots[3167] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3167] = nativeContext.LoadFunction("glVertexStream1fvATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607269,8 +619669,11 @@ void IGL.VertexStream1IATI( [NativeTypeName("GLint")] int x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream1iATI", "opengl") + (delegate* unmanaged)( + _slots[3168] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3168] = nativeContext.LoadFunction("glVertexStream1iATI", "opengl") + ) )(stream, x); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607302,8 +619705,11 @@ void IGL.VertexStream1IvATI( [NativeTypeName("const GLint *")] int* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream1ivATI", "opengl") + (delegate* unmanaged)( + _slots[3169] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3169] = nativeContext.LoadFunction("glVertexStream1ivATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607356,8 +619762,11 @@ void IGL.VertexStream1SATI( [NativeTypeName("GLshort")] short x ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream1sATI", "opengl") + (delegate* unmanaged)( + _slots[3170] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3170] = nativeContext.LoadFunction("glVertexStream1sATI", "opengl") + ) )(stream, x); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607389,8 +619798,11 @@ void IGL.VertexStream1SvATI( [NativeTypeName("const GLshort *")] short* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream1svATI", "opengl") + (delegate* unmanaged)( + _slots[3171] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3171] = nativeContext.LoadFunction("glVertexStream1svATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607444,8 +619856,11 @@ void IGL.VertexStream2ATI( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream2dATI", "opengl") + (delegate* unmanaged)( + _slots[3172] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3172] = nativeContext.LoadFunction("glVertexStream2dATI", "opengl") + ) )(stream, x, y); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607480,8 +619895,11 @@ void IGL.VertexStream2ATI( [NativeTypeName("const GLdouble *")] double* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream2dvATI", "opengl") + (delegate* unmanaged)( + _slots[3173] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3173] = nativeContext.LoadFunction("glVertexStream2dvATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607520,8 +619938,11 @@ void IGL.VertexStream2ATI( [NativeTypeName("GLfloat")] float y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream2fATI", "opengl") + (delegate* unmanaged)( + _slots[3174] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3174] = nativeContext.LoadFunction("glVertexStream2fATI", "opengl") + ) )(stream, x, y); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607556,8 +619977,11 @@ void IGL.VertexStream2ATI( [NativeTypeName("const GLfloat *")] float* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream2fvATI", "opengl") + (delegate* unmanaged)( + _slots[3175] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3175] = nativeContext.LoadFunction("glVertexStream2fvATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607596,8 +620020,11 @@ void IGL.VertexStream2ATI( [NativeTypeName("GLint")] int y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream2iATI", "opengl") + (delegate* unmanaged)( + _slots[3176] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3176] = nativeContext.LoadFunction("glVertexStream2iATI", "opengl") + ) )(stream, x, y); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607632,8 +620059,11 @@ void IGL.VertexStream2ATI( [NativeTypeName("const GLint *")] int* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream2ivATI", "opengl") + (delegate* unmanaged)( + _slots[3177] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3177] = nativeContext.LoadFunction("glVertexStream2ivATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607672,8 +620102,11 @@ void IGL.VertexStream2ATI( [NativeTypeName("GLshort")] short y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream2sATI", "opengl") + (delegate* unmanaged)( + _slots[3178] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3178] = nativeContext.LoadFunction("glVertexStream2sATI", "opengl") + ) )(stream, x, y); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607708,8 +620141,11 @@ void IGL.VertexStream2ATI( [NativeTypeName("const GLshort *")] short* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream2svATI", "opengl") + (delegate* unmanaged)( + _slots[3179] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3179] = nativeContext.LoadFunction("glVertexStream2svATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607749,8 +620185,11 @@ void IGL.VertexStream3ATI( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream3dATI", "opengl") + (delegate* unmanaged)( + _slots[3180] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3180] = nativeContext.LoadFunction("glVertexStream3dATI", "opengl") + ) )(stream, x, y, z); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607788,8 +620227,11 @@ void IGL.VertexStream3ATI( [NativeTypeName("const GLdouble *")] double* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream3dvATI", "opengl") + (delegate* unmanaged)( + _slots[3181] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3181] = nativeContext.LoadFunction("glVertexStream3dvATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607829,8 +620271,11 @@ void IGL.VertexStream3ATI( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream3fATI", "opengl") + (delegate* unmanaged)( + _slots[3182] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3182] = nativeContext.LoadFunction("glVertexStream3fATI", "opengl") + ) )(stream, x, y, z); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607868,8 +620313,11 @@ void IGL.VertexStream3ATI( [NativeTypeName("const GLfloat *")] float* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream3fvATI", "opengl") + (delegate* unmanaged)( + _slots[3183] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3183] = nativeContext.LoadFunction("glVertexStream3fvATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607909,8 +620357,11 @@ void IGL.VertexStream3ATI( [NativeTypeName("GLint")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream3iATI", "opengl") + (delegate* unmanaged)( + _slots[3184] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3184] = nativeContext.LoadFunction("glVertexStream3iATI", "opengl") + ) )(stream, x, y, z); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607948,8 +620399,11 @@ void IGL.VertexStream3ATI( [NativeTypeName("const GLint *")] int* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream3ivATI", "opengl") + (delegate* unmanaged)( + _slots[3185] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3185] = nativeContext.LoadFunction("glVertexStream3ivATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -607989,8 +620443,11 @@ void IGL.VertexStream3ATI( [NativeTypeName("GLshort")] short z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream3sATI", "opengl") + (delegate* unmanaged)( + _slots[3186] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3186] = nativeContext.LoadFunction("glVertexStream3sATI", "opengl") + ) )(stream, x, y, z); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -608028,8 +620485,11 @@ void IGL.VertexStream3ATI( [NativeTypeName("const GLshort *")] short* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream3svATI", "opengl") + (delegate* unmanaged)( + _slots[3187] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3187] = nativeContext.LoadFunction("glVertexStream3svATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -608070,8 +620530,11 @@ void IGL.VertexStream4ATI( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream4dATI", "opengl") + (delegate* unmanaged)( + _slots[3188] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3188] = nativeContext.LoadFunction("glVertexStream4dATI", "opengl") + ) )(stream, x, y, z, w); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -608112,8 +620575,11 @@ void IGL.VertexStream4ATI( [NativeTypeName("const GLdouble *")] double* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream4dvATI", "opengl") + (delegate* unmanaged)( + _slots[3189] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3189] = nativeContext.LoadFunction("glVertexStream4dvATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -608154,8 +620620,11 @@ void IGL.VertexStream4ATI( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream4fATI", "opengl") + (delegate* unmanaged)( + _slots[3190] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3190] = nativeContext.LoadFunction("glVertexStream4fATI", "opengl") + ) )(stream, x, y, z, w); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -608196,8 +620665,11 @@ void IGL.VertexStream4ATI( [NativeTypeName("const GLfloat *")] float* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream4fvATI", "opengl") + (delegate* unmanaged)( + _slots[3191] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3191] = nativeContext.LoadFunction("glVertexStream4fvATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -608238,8 +620710,11 @@ void IGL.VertexStream4ATI( [NativeTypeName("GLint")] int w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream4iATI", "opengl") + (delegate* unmanaged)( + _slots[3192] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3192] = nativeContext.LoadFunction("glVertexStream4iATI", "opengl") + ) )(stream, x, y, z, w); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -608280,8 +620755,11 @@ void IGL.VertexStream4ATI( [NativeTypeName("const GLint *")] int* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream4ivATI", "opengl") + (delegate* unmanaged)( + _slots[3193] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3193] = nativeContext.LoadFunction("glVertexStream4ivATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -608322,8 +620800,11 @@ void IGL.VertexStream4ATI( [NativeTypeName("GLshort")] short w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream4sATI", "opengl") + (delegate* unmanaged)( + _slots[3194] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3194] = nativeContext.LoadFunction("glVertexStream4sATI", "opengl") + ) )(stream, x, y, z, w); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -608364,8 +620845,11 @@ void IGL.VertexStream4ATI( [NativeTypeName("const GLshort *")] short* coords ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexStream4svATI", "opengl") + (delegate* unmanaged)( + _slots[3195] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3195] = nativeContext.LoadFunction("glVertexStream4svATI", "opengl") + ) )(stream, coords); [SupportedApiProfile("gl", ["GL_ATI_vertex_streams"])] @@ -608400,8 +620884,11 @@ public static void VertexStream4ATI( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.VertexWeightEXT([NativeTypeName("GLfloat")] float weight) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexWeightfEXT", "opengl") + (delegate* unmanaged)( + _slots[3196] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3196] = nativeContext.LoadFunction("glVertexWeightfEXT", "opengl") + ) )(weight); [SupportedApiProfile("gl", ["GL_EXT_vertex_weighting"])] @@ -608413,8 +620900,11 @@ public static void VertexWeightEXT([NativeTypeName("GLfloat")] float weight) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.VertexWeightfvEXT([NativeTypeName("const GLfloat *")] float* weight) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexWeightfvEXT", "opengl") + (delegate* unmanaged)( + _slots[3197] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3197] = nativeContext.LoadFunction("glVertexWeightfvEXT", "opengl") + ) )(weight); [SupportedApiProfile("gl", ["GL_EXT_vertex_weighting"])] @@ -608453,8 +620943,11 @@ public static void VertexWeightfvEXT([NativeTypeName("const GLfloat *")] float w [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.VertexWeightNV([NativeTypeName("GLhalfNV")] ushort weight) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexWeighthNV", "opengl") + (delegate* unmanaged)( + _slots[3198] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3198] = nativeContext.LoadFunction("glVertexWeighthNV", "opengl") + ) )(weight); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -608466,8 +620959,11 @@ public static void VertexWeightNV([NativeTypeName("GLhalfNV")] ushort weight) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.VertexWeighthvNV([NativeTypeName("const GLhalfNV *")] ushort* weight) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexWeighthvNV", "opengl") + (delegate* unmanaged)( + _slots[3199] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3199] = nativeContext.LoadFunction("glVertexWeighthvNV", "opengl") + ) )(weight); [SupportedApiProfile("gl", ["GL_NV_half_float"])] @@ -608511,8 +621007,14 @@ void IGL.VertexWeightPointerEXT( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVertexWeightPointerEXT", "opengl") + (delegate* unmanaged)( + _slots[3200] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3200] = nativeContext.LoadFunction( + "glVertexWeightPointerEXT", + "opengl" + ) + ) )(size, type, stride, pointer); [SupportedApiProfile("gl", ["GL_EXT_vertex_weighting"])] @@ -608557,8 +621059,11 @@ uint IGL.VideoCaptureNV( [NativeTypeName("GLuint64EXT *")] ulong* capture_time ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVideoCaptureNV", "opengl") + (delegate* unmanaged)( + _slots[3201] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3201] = nativeContext.LoadFunction("glVideoCaptureNV", "opengl") + ) )(video_capture_slot, sequence_num, capture_time); [return: NativeTypeName("GLenum")] @@ -608609,8 +621114,14 @@ void IGL.VideoCaptureStreamParameterNV( [NativeTypeName("const GLdouble *")] double* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVideoCaptureStreamParameterdvNV", "opengl") + (delegate* unmanaged)( + _slots[3202] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3202] = nativeContext.LoadFunction( + "glVideoCaptureStreamParameterdvNV", + "opengl" + ) + ) )(video_capture_slot, stream, pname, @params); [SupportedApiProfile("gl", ["GL_NV_video_capture"])] @@ -608679,8 +621190,14 @@ void IGL.VideoCaptureStreamParameterNV( [NativeTypeName("const GLfloat *")] float* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVideoCaptureStreamParameterfvNV", "opengl") + (delegate* unmanaged)( + _slots[3203] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3203] = nativeContext.LoadFunction( + "glVideoCaptureStreamParameterfvNV", + "opengl" + ) + ) )(video_capture_slot, stream, pname, @params); [SupportedApiProfile("gl", ["GL_NV_video_capture"])] @@ -608748,8 +621265,14 @@ void IGL.VideoCaptureStreamParameterNV( [NativeTypeName("const GLint *")] int* @params ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glVideoCaptureStreamParameterivNV", "opengl") + (delegate* unmanaged)( + _slots[3204] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3204] = nativeContext.LoadFunction( + "glVideoCaptureStreamParameterivNV", + "opengl" + ) + ) )(video_capture_slot, stream, pname, @params); [SupportedApiProfile("gl", ["GL_NV_video_capture"])] @@ -608817,8 +621340,11 @@ void IGL.Viewport( [NativeTypeName("GLsizei")] uint height ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glViewport", "opengl") + (delegate* unmanaged)( + _slots[3205] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3205] = nativeContext.LoadFunction("glViewport", "opengl") + ) )(x, y, width, height); [SupportedApiProfile( @@ -608893,8 +621419,11 @@ void IGL.ViewportArray( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glViewportArrayv", "opengl") + (delegate* unmanaged)( + _slots[3206] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3206] = nativeContext.LoadFunction("glViewportArrayv", "opengl") + ) )(first, count, v); [SupportedApiProfile( @@ -609026,8 +621555,11 @@ void IGL.ViewportArrayNV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glViewportArrayvNV", "opengl") + (delegate* unmanaged)( + _slots[3207] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3207] = nativeContext.LoadFunction("glViewportArrayvNV", "opengl") + ) )(first, count, v); [SupportedApiProfile("gles2", ["GL_NV_viewport_array"])] @@ -609099,8 +621631,11 @@ void IGL.ViewportArrayOES( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glViewportArrayvOES", "opengl") + (delegate* unmanaged)( + _slots[3208] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3208] = nativeContext.LoadFunction("glViewportArrayvOES", "opengl") + ) )(first, count, v); [SupportedApiProfile("gles2", ["GL_OES_viewport_array"])] @@ -609144,8 +621679,11 @@ void IGL.ViewportIndexed( [NativeTypeName("GLfloat")] float h ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glViewportIndexedf", "opengl") + (delegate* unmanaged)( + _slots[3209] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3209] = nativeContext.LoadFunction("glViewportIndexedf", "opengl") + ) )(index, x, y, w, h); [SupportedApiProfile( @@ -609193,8 +621731,11 @@ void IGL.ViewportIndexedNV( [NativeTypeName("GLfloat")] float h ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glViewportIndexedfNV", "opengl") + (delegate* unmanaged)( + _slots[3210] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3210] = nativeContext.LoadFunction("glViewportIndexedfNV", "opengl") + ) )(index, x, y, w, h); [SupportedApiProfile("gles2", ["GL_NV_viewport_array"])] @@ -609217,8 +621758,11 @@ void IGL.ViewportIndexedOES( [NativeTypeName("GLfloat")] float h ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glViewportIndexedfOES", "opengl") + (delegate* unmanaged)( + _slots[3211] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3211] = nativeContext.LoadFunction("glViewportIndexedfOES", "opengl") + ) )(index, x, y, w, h); [SupportedApiProfile("gles2", ["GL_OES_viewport_array"])] @@ -609238,8 +621782,11 @@ void IGL.ViewportIndexed( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glViewportIndexedfv", "opengl") + (delegate* unmanaged)( + _slots[3212] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3212] = nativeContext.LoadFunction("glViewportIndexedfv", "opengl") + ) )(index, v); [SupportedApiProfile( @@ -609327,8 +621874,11 @@ void IGL.ViewportIndexedNV( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glViewportIndexedfvNV", "opengl") + (delegate* unmanaged)( + _slots[3213] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3213] = nativeContext.LoadFunction("glViewportIndexedfvNV", "opengl") + ) )(index, v); [SupportedApiProfile("gles2", ["GL_NV_viewport_array"])] @@ -609366,8 +621916,11 @@ void IGL.ViewportIndexedOES( [NativeTypeName("const GLfloat *")] float* v ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glViewportIndexedfvOES", "opengl") + (delegate* unmanaged)( + _slots[3214] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3214] = nativeContext.LoadFunction("glViewportIndexedfvOES", "opengl") + ) )(index, v); [SupportedApiProfile("gles2", ["GL_OES_viewport_array"])] @@ -609406,8 +621959,14 @@ void IGL.ViewportPositionWScaleNV( [NativeTypeName("GLfloat")] float ycoeff ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glViewportPositionWScaleNV", "opengl") + (delegate* unmanaged)( + _slots[3215] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3215] = nativeContext.LoadFunction( + "glViewportPositionWScaleNV", + "opengl" + ) + ) )(index, xcoeff, ycoeff); [SupportedApiProfile("gl", ["GL_NV_clip_space_w_scaling"])] @@ -609430,8 +621989,11 @@ void IGL.ViewportSwizzleNV( [NativeTypeName("GLenum")] uint swizzlew ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glViewportSwizzleNV", "opengl") + (delegate* unmanaged)( + _slots[3216] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3216] = nativeContext.LoadFunction("glViewportSwizzleNV", "opengl") + ) )(index, swizzlex, swizzley, swizzlez, swizzlew); [SupportedApiProfile("gl", ["GL_NV_viewport_swizzle"])] @@ -609457,8 +622019,11 @@ void IGL.WaitSemaphoreEXT( [NativeTypeName("const GLenum *")] uint* srcLayouts ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWaitSemaphoreEXT", "opengl") + (delegate* unmanaged)( + _slots[3217] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3217] = nativeContext.LoadFunction("glWaitSemaphoreEXT", "opengl") + ) )(semaphore, numBufferBarriers, buffers, numTextureBarriers, textures, srcLayouts); [SupportedApiProfile("gl", ["GL_EXT_semaphore"])] @@ -609739,8 +622304,11 @@ void IGL.WaitSemaphoreNVX( [NativeTypeName("const GLuint64 *")] ulong* fenceValueArray ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWaitSemaphoreui64NVX", "opengl") + (delegate* unmanaged)( + _slots[3218] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3218] = nativeContext.LoadFunction("glWaitSemaphoreui64NVX", "opengl") + ) )(waitGpu, fenceObjectCount, semaphoreArray, fenceValueArray); [SupportedApiProfile("gl", ["GL_NVX_progress_fence"])] @@ -609791,8 +622359,11 @@ void IGL.WaitSync( [NativeTypeName("GLuint64")] ulong timeout ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWaitSync", "opengl") + (delegate* unmanaged)( + _slots[3219] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3219] = nativeContext.LoadFunction("glWaitSync", "opengl") + ) )(sync, flags, timeout); [SupportedApiProfile( @@ -609896,8 +622467,11 @@ void IGL.WaitSyncApple( [NativeTypeName("GLuint64")] ulong timeout ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWaitSyncAPPLE", "opengl") + (delegate* unmanaged)( + _slots[3220] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3220] = nativeContext.LoadFunction("glWaitSyncAPPLE", "opengl") + ) )(sync, flags, timeout); [SupportedApiProfile("gles2", ["GL_APPLE_sync"])] @@ -609937,8 +622511,11 @@ public static void WaitSyncApple( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WaitVkSemaphoreNV([NativeTypeName("GLuint64")] ulong vkSemaphore) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWaitVkSemaphoreNV", "opengl") + (delegate* unmanaged)( + _slots[3221] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3221] = nativeContext.LoadFunction("glWaitVkSemaphoreNV", "opengl") + ) )(vkSemaphore); [SupportedApiProfile("gl", ["GL_NV_draw_vulkan_image"])] @@ -609955,8 +622532,11 @@ void IGL.WeightARB( [NativeTypeName("const GLbyte *")] sbyte* weights ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWeightbvARB", "opengl") + (delegate* unmanaged)( + _slots[3222] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3222] = nativeContext.LoadFunction("glWeightbvARB", "opengl") + ) )(size, weights); [SupportedApiProfile("gl", ["GL_ARB_vertex_blend"])] @@ -610005,8 +622585,11 @@ void IGL.WeightARB( [NativeTypeName("const GLdouble *")] double* weights ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWeightdvARB", "opengl") + (delegate* unmanaged)( + _slots[3223] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3223] = nativeContext.LoadFunction("glWeightdvARB", "opengl") + ) )(size, weights); [SupportedApiProfile("gl", ["GL_ARB_vertex_blend"])] @@ -610055,8 +622638,11 @@ void IGL.WeightARB( [NativeTypeName("const GLfloat *")] float* weights ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWeightfvARB", "opengl") + (delegate* unmanaged)( + _slots[3224] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3224] = nativeContext.LoadFunction("glWeightfvARB", "opengl") + ) )(size, weights); [SupportedApiProfile("gl", ["GL_ARB_vertex_blend"])] @@ -610105,8 +622691,11 @@ void IGL.WeightARB( [NativeTypeName("const GLint *")] int* weights ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWeightivARB", "opengl") + (delegate* unmanaged)( + _slots[3225] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3225] = nativeContext.LoadFunction("glWeightivARB", "opengl") + ) )(size, weights); [SupportedApiProfile("gl", ["GL_ARB_vertex_blend"])] @@ -610157,8 +622746,11 @@ void IGL.WeightPathNV( [NativeTypeName("const GLfloat *")] float* weights ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWeightPathsNV", "opengl") + (delegate* unmanaged)( + _slots[3226] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3226] = nativeContext.LoadFunction("glWeightPathsNV", "opengl") + ) )(resultPath, numPaths, paths, weights); [SupportedApiProfile("gl", ["GL_NV_path_rendering"])] @@ -610209,8 +622801,11 @@ void IGL.WeightPointerARB( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWeightPointerARB", "opengl") + (delegate* unmanaged)( + _slots[3227] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3227] = nativeContext.LoadFunction("glWeightPointerARB", "opengl") + ) )(size, type, stride, pointer); [SupportedApiProfile("gl", ["GL_ARB_vertex_blend"])] @@ -610256,8 +622851,11 @@ void IGL.WeightPointerOES( [NativeTypeName("const void *")] void* pointer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWeightPointerOES", "opengl") + (delegate* unmanaged)( + _slots[3228] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3228] = nativeContext.LoadFunction("glWeightPointerOES", "opengl") + ) )(size, type, stride, pointer); [SupportedApiProfile("gles1", ["GL_OES_matrix_palette"])] @@ -610301,8 +622899,11 @@ void IGL.WeightARB( [NativeTypeName("const GLshort *")] short* weights ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWeightsvARB", "opengl") + (delegate* unmanaged)( + _slots[3229] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3229] = nativeContext.LoadFunction("glWeightsvARB", "opengl") + ) )(size, weights); [SupportedApiProfile("gl", ["GL_ARB_vertex_blend"])] @@ -610351,8 +622952,11 @@ void IGL.WeightARB( [NativeTypeName("const GLubyte *")] byte* weights ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWeightubvARB", "opengl") + (delegate* unmanaged)( + _slots[3230] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3230] = nativeContext.LoadFunction("glWeightubvARB", "opengl") + ) )(size, weights); [SupportedApiProfile("gl", ["GL_ARB_vertex_blend"])] @@ -610401,8 +623005,11 @@ void IGL.WeightARB( [NativeTypeName("const GLuint *")] uint* weights ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWeightuivARB", "opengl") + (delegate* unmanaged)( + _slots[3231] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3231] = nativeContext.LoadFunction("glWeightuivARB", "opengl") + ) )(size, weights); [SupportedApiProfile("gl", ["GL_ARB_vertex_blend"])] @@ -610451,8 +623058,11 @@ void IGL.WeightARB( [NativeTypeName("const GLushort *")] ushort* weights ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWeightusvARB", "opengl") + (delegate* unmanaged)( + _slots[3232] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3232] = nativeContext.LoadFunction("glWeightusvARB", "opengl") + ) )(size, weights); [SupportedApiProfile("gl", ["GL_ARB_vertex_blend"])] @@ -610501,8 +623111,11 @@ void IGL.WindowPos2( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2d", "opengl") + (delegate* unmanaged)( + _slots[3233] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3233] = nativeContext.LoadFunction("glWindowPos2d", "opengl") + ) )(x, y); [SupportedApiProfile( @@ -610539,8 +623152,11 @@ void IGL.WindowPos2ARB( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2dARB", "opengl") + (delegate* unmanaged)( + _slots[3234] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3234] = nativeContext.LoadFunction("glWindowPos2dARB", "opengl") + ) )(x, y); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -610557,8 +623173,11 @@ void IGL.WindowPos2MESA( [NativeTypeName("GLdouble")] double y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2dMESA", "opengl") + (delegate* unmanaged)( + _slots[3235] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3235] = nativeContext.LoadFunction("glWindowPos2dMESA", "opengl") + ) )(x, y); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -610572,8 +623191,11 @@ public static void WindowPos2MESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2([NativeTypeName("const GLdouble *")] double* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2dv", "opengl") + (delegate* unmanaged)( + _slots[3236] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3236] = nativeContext.LoadFunction("glWindowPos2dv", "opengl") + ) )(v); [SupportedApiProfile( @@ -610641,8 +623263,11 @@ public static void WindowPos2([NativeTypeName("const GLdouble *")] Ref v [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2ARB([NativeTypeName("const GLdouble *")] double* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2dvARB", "opengl") + (delegate* unmanaged)( + _slots[3237] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3237] = nativeContext.LoadFunction("glWindowPos2dvARB", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -610670,8 +623295,11 @@ public static void WindowPos2ARB([NativeTypeName("const GLdouble *")] Ref ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2dvMESA", "opengl") + (delegate* unmanaged)( + _slots[3238] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3238] = nativeContext.LoadFunction("glWindowPos2dvMESA", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -610699,8 +623327,11 @@ public static void WindowPos2MESA([NativeTypeName("const GLdouble *")] Ref ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2f", "opengl") + (delegate* unmanaged)( + _slots[3239] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3239] = nativeContext.LoadFunction("glWindowPos2f", "opengl") + ) )(x, y); [SupportedApiProfile( @@ -610737,8 +623368,11 @@ void IGL.WindowPos2ARB( [NativeTypeName("GLfloat")] float y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2fARB", "opengl") + (delegate* unmanaged)( + _slots[3240] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3240] = nativeContext.LoadFunction("glWindowPos2fARB", "opengl") + ) )(x, y); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -610755,8 +623389,11 @@ void IGL.WindowPos2MESA( [NativeTypeName("GLfloat")] float y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2fMESA", "opengl") + (delegate* unmanaged)( + _slots[3241] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3241] = nativeContext.LoadFunction("glWindowPos2fMESA", "opengl") + ) )(x, y); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -610769,9 +623406,13 @@ public static void WindowPos2MESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glWindowPos2fv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[3242] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3242] = nativeContext.LoadFunction("glWindowPos2fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -610838,8 +623479,11 @@ public static void WindowPos2([NativeTypeName("const GLfloat *")] Ref v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2ARB([NativeTypeName("const GLfloat *")] float* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2fvARB", "opengl") + (delegate* unmanaged)( + _slots[3243] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3243] = nativeContext.LoadFunction("glWindowPos2fvARB", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -610867,8 +623511,11 @@ public static void WindowPos2ARB([NativeTypeName("const GLfloat *")] Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2MESA([NativeTypeName("const GLfloat *")] float* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2fvMESA", "opengl") + (delegate* unmanaged)( + _slots[3244] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3244] = nativeContext.LoadFunction("glWindowPos2fvMESA", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -610896,8 +623543,11 @@ public static void WindowPos2MESA([NativeTypeName("const GLfloat *")] Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2([NativeTypeName("GLint")] int x, [NativeTypeName("GLint")] int y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2i", "opengl") + (delegate* unmanaged)( + _slots[3245] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3245] = nativeContext.LoadFunction("glWindowPos2i", "opengl") + ) )(x, y); [SupportedApiProfile( @@ -610931,8 +623581,11 @@ public static void WindowPos2( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2ARB([NativeTypeName("GLint")] int x, [NativeTypeName("GLint")] int y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2iARB", "opengl") + (delegate* unmanaged)( + _slots[3246] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3246] = nativeContext.LoadFunction("glWindowPos2iARB", "opengl") + ) )(x, y); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -610946,8 +623599,11 @@ public static void WindowPos2ARB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2MESA([NativeTypeName("GLint")] int x, [NativeTypeName("GLint")] int y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2iMESA", "opengl") + (delegate* unmanaged)( + _slots[3247] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3247] = nativeContext.LoadFunction("glWindowPos2iMESA", "opengl") + ) )(x, y); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -610960,9 +623616,13 @@ public static void WindowPos2MESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glWindowPos2iv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[3248] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3248] = nativeContext.LoadFunction("glWindowPos2iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -611029,8 +623689,11 @@ public static void WindowPos2([NativeTypeName("const GLint *")] Ref v) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2ARB([NativeTypeName("const GLint *")] int* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2ivARB", "opengl") + (delegate* unmanaged)( + _slots[3249] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3249] = nativeContext.LoadFunction("glWindowPos2ivARB", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -611058,8 +623721,11 @@ public static void WindowPos2ARB([NativeTypeName("const GLint *")] Ref v) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2MESA([NativeTypeName("const GLint *")] int* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2ivMESA", "opengl") + (delegate* unmanaged)( + _slots[3250] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3250] = nativeContext.LoadFunction("glWindowPos2ivMESA", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -611087,8 +623753,11 @@ public static void WindowPos2MESA([NativeTypeName("const GLint *")] Ref v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2([NativeTypeName("GLshort")] short x, [NativeTypeName("GLshort")] short y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2s", "opengl") + (delegate* unmanaged)( + _slots[3251] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3251] = nativeContext.LoadFunction("glWindowPos2s", "opengl") + ) )(x, y); [SupportedApiProfile( @@ -611125,8 +623794,11 @@ void IGL.WindowPos2ARB( [NativeTypeName("GLshort")] short y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2sARB", "opengl") + (delegate* unmanaged)( + _slots[3252] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3252] = nativeContext.LoadFunction("glWindowPos2sARB", "opengl") + ) )(x, y); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -611143,8 +623815,11 @@ void IGL.WindowPos2MESA( [NativeTypeName("GLshort")] short y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2sMESA", "opengl") + (delegate* unmanaged)( + _slots[3253] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3253] = nativeContext.LoadFunction("glWindowPos2sMESA", "opengl") + ) )(x, y); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -611157,9 +623832,13 @@ public static void WindowPos2MESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glWindowPos2sv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[3254] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3254] = nativeContext.LoadFunction("glWindowPos2sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -611226,8 +623905,11 @@ public static void WindowPos2([NativeTypeName("const GLshort *")] Ref v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2ARB([NativeTypeName("const GLshort *")] short* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2svARB", "opengl") + (delegate* unmanaged)( + _slots[3255] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3255] = nativeContext.LoadFunction("glWindowPos2svARB", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -611255,8 +623937,11 @@ public static void WindowPos2ARB([NativeTypeName("const GLshort *")] Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos2MESA([NativeTypeName("const GLshort *")] short* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos2svMESA", "opengl") + (delegate* unmanaged)( + _slots[3256] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3256] = nativeContext.LoadFunction("glWindowPos2svMESA", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -611288,8 +623973,11 @@ void IGL.WindowPos3( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3d", "opengl") + (delegate* unmanaged)( + _slots[3257] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3257] = nativeContext.LoadFunction("glWindowPos3d", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -611328,8 +624016,11 @@ void IGL.WindowPos3ARB( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3dARB", "opengl") + (delegate* unmanaged)( + _slots[3258] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3258] = nativeContext.LoadFunction("glWindowPos3dARB", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -611348,8 +624039,11 @@ void IGL.WindowPos3MESA( [NativeTypeName("GLdouble")] double z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3dMESA", "opengl") + (delegate* unmanaged)( + _slots[3259] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3259] = nativeContext.LoadFunction("glWindowPos3dMESA", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -611364,8 +624058,11 @@ public static void WindowPos3MESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos3([NativeTypeName("const GLdouble *")] double* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3dv", "opengl") + (delegate* unmanaged)( + _slots[3260] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3260] = nativeContext.LoadFunction("glWindowPos3dv", "opengl") + ) )(v); [SupportedApiProfile( @@ -611433,8 +624130,11 @@ public static void WindowPos3([NativeTypeName("const GLdouble *")] Ref v [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos3ARB([NativeTypeName("const GLdouble *")] double* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3dvARB", "opengl") + (delegate* unmanaged)( + _slots[3261] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3261] = nativeContext.LoadFunction("glWindowPos3dvARB", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -611462,8 +624162,11 @@ public static void WindowPos3ARB([NativeTypeName("const GLdouble *")] Ref ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3dvMESA", "opengl") + (delegate* unmanaged)( + _slots[3262] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3262] = nativeContext.LoadFunction("glWindowPos3dvMESA", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -611495,8 +624198,11 @@ void IGL.WindowPos3( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3f", "opengl") + (delegate* unmanaged)( + _slots[3263] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3263] = nativeContext.LoadFunction("glWindowPos3f", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -611535,8 +624241,11 @@ void IGL.WindowPos3ARB( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3fARB", "opengl") + (delegate* unmanaged)( + _slots[3264] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3264] = nativeContext.LoadFunction("glWindowPos3fARB", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -611555,8 +624264,11 @@ void IGL.WindowPos3MESA( [NativeTypeName("GLfloat")] float z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3fMESA", "opengl") + (delegate* unmanaged)( + _slots[3265] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3265] = nativeContext.LoadFunction("glWindowPos3fMESA", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -611570,9 +624282,13 @@ public static void WindowPos3MESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos3([NativeTypeName("const GLfloat *")] float* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glWindowPos3fv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[3266] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3266] = nativeContext.LoadFunction("glWindowPos3fv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -611639,8 +624355,11 @@ public static void WindowPos3([NativeTypeName("const GLfloat *")] Ref v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos3ARB([NativeTypeName("const GLfloat *")] float* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3fvARB", "opengl") + (delegate* unmanaged)( + _slots[3267] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3267] = nativeContext.LoadFunction("glWindowPos3fvARB", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -611668,8 +624387,11 @@ public static void WindowPos3ARB([NativeTypeName("const GLfloat *")] Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos3MESA([NativeTypeName("const GLfloat *")] float* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3fvMESA", "opengl") + (delegate* unmanaged)( + _slots[3268] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3268] = nativeContext.LoadFunction("glWindowPos3fvMESA", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -611701,8 +624423,11 @@ void IGL.WindowPos3( [NativeTypeName("GLint")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3i", "opengl") + (delegate* unmanaged)( + _slots[3269] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3269] = nativeContext.LoadFunction("glWindowPos3i", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -611741,8 +624466,11 @@ void IGL.WindowPos3ARB( [NativeTypeName("GLint")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3iARB", "opengl") + (delegate* unmanaged)( + _slots[3270] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3270] = nativeContext.LoadFunction("glWindowPos3iARB", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -611761,8 +624489,11 @@ void IGL.WindowPos3MESA( [NativeTypeName("GLint")] int z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3iMESA", "opengl") + (delegate* unmanaged)( + _slots[3271] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3271] = nativeContext.LoadFunction("glWindowPos3iMESA", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -611776,9 +624507,13 @@ public static void WindowPos3MESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos3([NativeTypeName("const GLint *")] int* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glWindowPos3iv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[3272] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3272] = nativeContext.LoadFunction("glWindowPos3iv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -611845,8 +624580,11 @@ public static void WindowPos3([NativeTypeName("const GLint *")] Ref v) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos3ARB([NativeTypeName("const GLint *")] int* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3ivARB", "opengl") + (delegate* unmanaged)( + _slots[3273] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3273] = nativeContext.LoadFunction("glWindowPos3ivARB", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -611874,8 +624612,11 @@ public static void WindowPos3ARB([NativeTypeName("const GLint *")] Ref v) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos3MESA([NativeTypeName("const GLint *")] int* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3ivMESA", "opengl") + (delegate* unmanaged)( + _slots[3274] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3274] = nativeContext.LoadFunction("glWindowPos3ivMESA", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -611907,8 +624648,11 @@ void IGL.WindowPos3( [NativeTypeName("GLshort")] short z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3s", "opengl") + (delegate* unmanaged)( + _slots[3275] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3275] = nativeContext.LoadFunction("glWindowPos3s", "opengl") + ) )(x, y, z); [SupportedApiProfile( @@ -611947,8 +624691,11 @@ void IGL.WindowPos3ARB( [NativeTypeName("GLshort")] short z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3sARB", "opengl") + (delegate* unmanaged)( + _slots[3276] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3276] = nativeContext.LoadFunction("glWindowPos3sARB", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -611967,8 +624714,11 @@ void IGL.WindowPos3MESA( [NativeTypeName("GLshort")] short z ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3sMESA", "opengl") + (delegate* unmanaged)( + _slots[3277] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3277] = nativeContext.LoadFunction("glWindowPos3sMESA", "opengl") + ) )(x, y, z); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -611982,9 +624732,13 @@ public static void WindowPos3MESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos3([NativeTypeName("const GLshort *")] short* v) => - ((delegate* unmanaged)nativeContext.LoadFunction("glWindowPos3sv", "opengl"))( - v - ); + ( + (delegate* unmanaged)( + _slots[3278] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3278] = nativeContext.LoadFunction("glWindowPos3sv", "opengl") + ) + )(v); [SupportedApiProfile( "gl", @@ -612051,8 +624805,11 @@ public static void WindowPos3([NativeTypeName("const GLshort *")] Ref v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos3ARB([NativeTypeName("const GLshort *")] short* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3svARB", "opengl") + (delegate* unmanaged)( + _slots[3279] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3279] = nativeContext.LoadFunction("glWindowPos3svARB", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_ARB_window_pos"])] @@ -612080,8 +624837,11 @@ public static void WindowPos3ARB([NativeTypeName("const GLshort *")] Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos3MESA([NativeTypeName("const GLshort *")] short* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos3svMESA", "opengl") + (delegate* unmanaged)( + _slots[3280] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3280] = nativeContext.LoadFunction("glWindowPos3svMESA", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -612114,8 +624874,11 @@ void IGL.WindowPos4MESA( [NativeTypeName("GLdouble")] double w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos4dMESA", "opengl") + (delegate* unmanaged)( + _slots[3281] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3281] = nativeContext.LoadFunction("glWindowPos4dMESA", "opengl") + ) )(x, y, z, w); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -612131,8 +624894,11 @@ public static void WindowPos4MESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos4MESA([NativeTypeName("const GLdouble *")] double* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos4dvMESA", "opengl") + (delegate* unmanaged)( + _slots[3282] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3282] = nativeContext.LoadFunction("glWindowPos4dvMESA", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -612165,8 +624931,11 @@ void IGL.WindowPos4MESA( [NativeTypeName("GLfloat")] float w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos4fMESA", "opengl") + (delegate* unmanaged)( + _slots[3283] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3283] = nativeContext.LoadFunction("glWindowPos4fMESA", "opengl") + ) )(x, y, z, w); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -612182,8 +624951,11 @@ public static void WindowPos4MESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos4MESA([NativeTypeName("const GLfloat *")] float* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos4fvMESA", "opengl") + (delegate* unmanaged)( + _slots[3284] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3284] = nativeContext.LoadFunction("glWindowPos4fvMESA", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -612216,8 +624988,11 @@ void IGL.WindowPos4MESA( [NativeTypeName("GLint")] int w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos4iMESA", "opengl") + (delegate* unmanaged)( + _slots[3285] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3285] = nativeContext.LoadFunction("glWindowPos4iMESA", "opengl") + ) )(x, y, z, w); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -612233,8 +625008,11 @@ public static void WindowPos4MESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos4MESA([NativeTypeName("const GLint *")] int* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos4ivMESA", "opengl") + (delegate* unmanaged)( + _slots[3286] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3286] = nativeContext.LoadFunction("glWindowPos4ivMESA", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -612267,8 +625045,11 @@ void IGL.WindowPos4MESA( [NativeTypeName("GLshort")] short w ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos4sMESA", "opengl") + (delegate* unmanaged)( + _slots[3287] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3287] = nativeContext.LoadFunction("glWindowPos4sMESA", "opengl") + ) )(x, y, z, w); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -612284,8 +625065,11 @@ public static void WindowPos4MESA( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void IGL.WindowPos4MESA([NativeTypeName("const GLshort *")] short* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowPos4svMESA", "opengl") + (delegate* unmanaged)( + _slots[3288] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3288] = nativeContext.LoadFunction("glWindowPos4svMESA", "opengl") + ) )(v); [SupportedApiProfile("gl", ["GL_MESA_window_pos"])] @@ -612317,8 +625101,11 @@ void IGL.WindowRectanglesEXT( [NativeTypeName("const GLint *")] int* box ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWindowRectanglesEXT", "opengl") + (delegate* unmanaged)( + _slots[3289] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3289] = nativeContext.LoadFunction("glWindowRectanglesEXT", "opengl") + ) )(mode, count, box); [SupportedApiProfile("gl", ["GL_EXT_window_rectangles"])] @@ -612384,8 +625171,11 @@ void IGL.WriteMaskEXT( [NativeTypeName("GLenum")] uint outW ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("glWriteMaskEXT", "opengl") + (delegate* unmanaged)( + _slots[3290] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3290] = nativeContext.LoadFunction("glWriteMaskEXT", "opengl") + ) )(res, @in, outX, outY, outZ, outW); [SupportedApiProfile("gl", ["GL_EXT_vertex_shader"])] diff --git a/sources/SDL/SDL/SDL3/Sdl.gen.cs b/sources/SDL/SDL/SDL3/Sdl.gen.cs index c38f35839d..aeb4530a14 100644 --- a/sources/SDL/SDL/SDL3/Sdl.gen.cs +++ b/sources/SDL/SDL/SDL3/Sdl.gen.cs @@ -39860,8 +39860,11 @@ public static MaybeBool RectsEqualFloat( [NativeTypeName("Uint64 *")] ulong* timestampNS ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AcquireCameraFrame", "SDL3") + (delegate* unmanaged)( + _slots[0] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[0] = nativeContext.LoadFunction("SDL_AcquireCameraFrame", "SDL3") + ) )(camera, timestampNS); [NativeFunction("SDL3", EntryPoint = "SDL_AcquireCameraFrame")] @@ -39897,8 +39900,11 @@ int ISdl.AddEventWatch( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AddEventWatch", "SDL3") + (delegate* unmanaged)( + _slots[1] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1] = nativeContext.LoadFunction("SDL_AddEventWatch", "SDL3") + ) )(filter, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] @@ -39928,8 +39934,11 @@ Ref userdata [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.AddGamepadMapping([NativeTypeName("const char *")] sbyte* mapping) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AddGamepadMapping", "SDL3") + (delegate* unmanaged)( + _slots[2] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[2] = nativeContext.LoadFunction("SDL_AddGamepadMapping", "SDL3") + ) )(mapping); [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMapping")] @@ -39955,8 +39964,14 @@ public static int AddGamepadMapping([NativeTypeName("const char *")] Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.AddGamepadMappingsFromFile([NativeTypeName("const char *")] sbyte* file) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AddGamepadMappingsFromFile", "SDL3") + (delegate* unmanaged)( + _slots[3] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[3] = nativeContext.LoadFunction( + "SDL_AddGamepadMappingsFromFile", + "SDL3" + ) + ) )(file); [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromFile")] @@ -39986,8 +40001,11 @@ int ISdl.AddGamepadMappingsFromIO( [NativeTypeName("SDL_bool")] int closeio ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AddGamepadMappingsFromIO", "SDL3") + (delegate* unmanaged)( + _slots[4] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[4] = nativeContext.LoadFunction("SDL_AddGamepadMappingsFromIO", "SDL3") + ) )(src, closeio); [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] @@ -40018,8 +40036,11 @@ int ISdl.AddHintCallback( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AddHintCallback", "SDL3") + (delegate* unmanaged)( + _slots[5] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[5] = nativeContext.LoadFunction("SDL_AddHintCallback", "SDL3") + ) )(name, callback, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] @@ -40060,8 +40081,11 @@ uint ISdl.AddTimer( void* param2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AddTimer", "SDL3") + (delegate* unmanaged)( + _slots[6] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[6] = nativeContext.LoadFunction("SDL_AddTimer", "SDL3") + ) )(interval, callback, param2); [return: NativeTypeName("SDL_TimerID")] @@ -40104,8 +40128,14 @@ int ISdl.AddVulkanRenderSemaphores( [NativeTypeName("Sint64")] long signal_semaphore ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AddVulkanRenderSemaphores", "SDL3") + (delegate* unmanaged)( + _slots[7] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[7] = nativeContext.LoadFunction( + "SDL_AddVulkanRenderSemaphores", + "SDL3" + ) + ) )(renderer, wait_stage_mask, wait_semaphore, signal_semaphore); [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] @@ -40136,8 +40166,11 @@ public static Ptr AllocateEventMemory([NativeTypeName("size_t")] nuint size) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.AllocateEventMemoryRaw([NativeTypeName("size_t")] nuint size) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AllocateEventMemory", "SDL3") + (delegate* unmanaged)( + _slots[8] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[8] = nativeContext.LoadFunction("SDL_AllocateEventMemory", "SDL3") + ) )(size); [NativeFunction("SDL3", EntryPoint = "SDL_AllocateEventMemory")] @@ -40148,8 +40181,11 @@ public static Ptr AllocateEventMemory([NativeTypeName("size_t")] nuint size) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.AtomicAdd(AtomicInt* a, int v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AtomicAdd", "SDL3") + (delegate* unmanaged)( + _slots[9] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[9] = nativeContext.LoadFunction("SDL_AtomicAdd", "SDL3") + ) )(a, v); [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] @@ -40173,8 +40209,11 @@ int ISdl.AtomicAdd(Ref a, int v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.AtomicCompareAndSwap(AtomicInt* a, int oldval, int newval) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AtomicCompareAndSwap", "SDL3") + (delegate* unmanaged)( + _slots[10] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[10] = nativeContext.LoadFunction("SDL_AtomicCompareAndSwap", "SDL3") + ) )(a, oldval, newval); [return: NativeTypeName("SDL_bool")] @@ -40202,8 +40241,14 @@ public static MaybeBool AtomicCompareAndSwap(Ref a, int oldval, [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.AtomicCompareAndSwapPointer(void** a, void* oldval, void* newval) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AtomicCompareAndSwapPointer", "SDL3") + (delegate* unmanaged)( + _slots[11] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[11] = nativeContext.LoadFunction( + "SDL_AtomicCompareAndSwapPointer", + "SDL3" + ) + ) )(a, oldval, newval); [return: NativeTypeName("SDL_bool")] @@ -40233,9 +40278,13 @@ public static MaybeBool AtomicCompareAndSwapPointer(Ref2D a, Ref oldval, Re [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.AtomicGet(AtomicInt* a) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_AtomicGet", "SDL3"))( - a - ); + ( + (delegate* unmanaged)( + _slots[12] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[12] = nativeContext.LoadFunction("SDL_AtomicGet", "SDL3") + ) + )(a); [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -40258,8 +40307,11 @@ int ISdl.AtomicGet(Ref a) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.AtomicGetPtr(void** a) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AtomicGetPtr", "SDL3") + (delegate* unmanaged)( + _slots[13] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[13] = nativeContext.LoadFunction("SDL_AtomicGetPtr", "SDL3") + ) )(a); [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] @@ -40283,8 +40335,11 @@ Ptr ISdl.AtomicGetPtr(Ref2D a) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.AtomicSet(AtomicInt* a, int v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AtomicSet", "SDL3") + (delegate* unmanaged)( + _slots[14] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[14] = nativeContext.LoadFunction("SDL_AtomicSet", "SDL3") + ) )(a, v); [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] @@ -40308,8 +40363,11 @@ int ISdl.AtomicSet(Ref a, int v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.AtomicSetPtr(void** a, void* v) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AtomicSetPtr", "SDL3") + (delegate* unmanaged)( + _slots[15] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[15] = nativeContext.LoadFunction("SDL_AtomicSetPtr", "SDL3") + ) )(a, v); [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] @@ -40334,8 +40392,11 @@ Ptr ISdl.AtomicSetPtr(Ref2D a, Ref v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.AttachVirtualJoystick(JoystickType type, int naxes, int nbuttons, int nhats) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AttachVirtualJoystick", "SDL3") + (delegate* unmanaged)( + _slots[16] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[16] = nativeContext.LoadFunction("SDL_AttachVirtualJoystick", "SDL3") + ) )(type, naxes, nbuttons, nhats); [return: NativeTypeName("SDL_JoystickID")] @@ -40353,8 +40414,11 @@ uint ISdl.AttachVirtualJoystickEx( [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AttachVirtualJoystickEx", "SDL3") + (delegate* unmanaged)( + _slots[17] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[17] = nativeContext.LoadFunction("SDL_AttachVirtualJoystickEx", "SDL3") + ) )(desc); [return: NativeTypeName("SDL_JoystickID")] @@ -40398,8 +40462,11 @@ public static MaybeBool AudioDevicePaused( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_AudioDevicePaused", "SDL3") + (delegate* unmanaged)( + _slots[18] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[18] = nativeContext.LoadFunction("SDL_AudioDevicePaused", "SDL3") + ) )(dev); [return: NativeTypeName("SDL_bool")] @@ -40414,8 +40481,11 @@ int ISdl.BindAudioStream( AudioStreamHandle stream ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_BindAudioStream", "SDL3") + (delegate* unmanaged)( + _slots[19] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[19] = nativeContext.LoadFunction("SDL_BindAudioStream", "SDL3") + ) )(devid, stream); [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] @@ -40432,8 +40502,11 @@ int ISdl.BindAudioStreams( int num_streams ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_BindAudioStreams", "SDL3") + (delegate* unmanaged)( + _slots[20] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[20] = nativeContext.LoadFunction("SDL_BindAudioStreams", "SDL3") + ) )(devid, streams, num_streams); [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] @@ -40474,8 +40547,11 @@ int ISdl.BlitSurface( Rect* dstrect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_BlitSurface", "SDL3") + (delegate* unmanaged)( + _slots[21] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[21] = nativeContext.LoadFunction("SDL_BlitSurface", "SDL3") + ) )(src, srcrect, dst, dstrect); [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] @@ -40524,8 +40600,11 @@ int ISdl.BlitSurfaceScaled( ScaleMode scaleMode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_BlitSurfaceScaled", "SDL3") + (delegate* unmanaged)( + _slots[22] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[22] = nativeContext.LoadFunction("SDL_BlitSurfaceScaled", "SDL3") + ) )(src, srcrect, dst, dstrect, scaleMode); [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] @@ -40582,8 +40661,11 @@ int ISdl.BlitSurfaceUnchecked( [NativeTypeName("const SDL_Rect *")] Rect* dstrect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_BlitSurfaceUnchecked", "SDL3") + (delegate* unmanaged)( + _slots[23] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[23] = nativeContext.LoadFunction("SDL_BlitSurfaceUnchecked", "SDL3") + ) )(src, srcrect, dst, dstrect); [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] @@ -40637,8 +40719,14 @@ int ISdl.BlitSurfaceUncheckedScaled( ScaleMode scaleMode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_BlitSurfaceUncheckedScaled", "SDL3") + (delegate* unmanaged)( + _slots[24] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[24] = nativeContext.LoadFunction( + "SDL_BlitSurfaceUncheckedScaled", + "SDL3" + ) + ) )(src, srcrect, dst, dstrect, scaleMode); [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] @@ -40690,8 +40778,11 @@ ScaleMode scaleMode [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.BroadcastCondition(ConditionHandle cond) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_BroadcastCondition", "SDL3") + (delegate* unmanaged)( + _slots[25] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[25] = nativeContext.LoadFunction("SDL_BroadcastCondition", "SDL3") + ) )(cond); [NativeFunction("SDL3", EntryPoint = "SDL_BroadcastCondition")] @@ -40701,9 +40792,13 @@ public static int BroadcastCondition(ConditionHandle cond) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.CaptureMouse([NativeTypeName("SDL_bool")] int enabled) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_CaptureMouse", "SDL3"))( - enabled - ); + ( + (delegate* unmanaged)( + _slots[26] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[26] = nativeContext.LoadFunction("SDL_CaptureMouse", "SDL3") + ) + )(enabled); [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -40722,7 +40817,13 @@ public static int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabl [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.CleanupTLS() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_CleanupTLS", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[27] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[27] = nativeContext.LoadFunction("SDL_CleanupTLS", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_CleanupTLS")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -40731,8 +40832,11 @@ void ISdl.CleanupTLS() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ClearAudioStream(AudioStreamHandle stream) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ClearAudioStream", "SDL3") + (delegate* unmanaged)( + _slots[28] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[28] = nativeContext.LoadFunction("SDL_ClearAudioStream", "SDL3") + ) )(stream); [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] @@ -40742,7 +40846,13 @@ public static int ClearAudioStream(AudioStreamHandle stream) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ClearClipboardData() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_ClearClipboardData", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[29] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[29] = nativeContext.LoadFunction("SDL_ClearClipboardData", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_ClearClipboardData")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -40750,7 +40860,13 @@ int ISdl.ClearClipboardData() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.ClearComposition() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_ClearComposition", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[30] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[30] = nativeContext.LoadFunction("SDL_ClearComposition", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_ClearComposition")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -40758,7 +40874,13 @@ void ISdl.ClearComposition() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.ClearError() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_ClearError", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[31] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[31] = nativeContext.LoadFunction("SDL_ClearError", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_ClearError")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -40770,8 +40892,11 @@ int ISdl.ClearProperty( [NativeTypeName("const char *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ClearProperty", "SDL3") + (delegate* unmanaged)( + _slots[32] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[32] = nativeContext.LoadFunction("SDL_ClearProperty", "SDL3") + ) )(props, name); [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] @@ -40804,8 +40929,11 @@ public static int ClearProperty( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CloseAudioDevice", "SDL3") + (delegate* unmanaged)( + _slots[33] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[33] = nativeContext.LoadFunction("SDL_CloseAudioDevice", "SDL3") + ) )(devid); [NativeFunction("SDL3", EntryPoint = "SDL_CloseAudioDevice")] @@ -40816,8 +40944,11 @@ public static void CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint d [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.CloseCamera(CameraHandle camera) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CloseCamera", "SDL3") + (delegate* unmanaged)( + _slots[34] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[34] = nativeContext.LoadFunction("SDL_CloseCamera", "SDL3") + ) )(camera); [NativeFunction("SDL3", EntryPoint = "SDL_CloseCamera")] @@ -40827,8 +40958,11 @@ void ISdl.CloseCamera(CameraHandle camera) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.CloseGamepad(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CloseGamepad", "SDL3") + (delegate* unmanaged)( + _slots[35] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[35] = nativeContext.LoadFunction("SDL_CloseGamepad", "SDL3") + ) )(gamepad); [NativeFunction("SDL3", EntryPoint = "SDL_CloseGamepad")] @@ -40838,8 +40972,11 @@ void ISdl.CloseGamepad(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.CloseHaptic(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CloseHaptic", "SDL3") + (delegate* unmanaged)( + _slots[36] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[36] = nativeContext.LoadFunction("SDL_CloseHaptic", "SDL3") + ) )(haptic); [NativeFunction("SDL3", EntryPoint = "SDL_CloseHaptic")] @@ -40849,8 +40986,11 @@ void ISdl.CloseHaptic(HapticHandle haptic) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.CloseIO(IOStreamHandle context) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CloseIO", "SDL3") + (delegate* unmanaged)( + _slots[37] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[37] = nativeContext.LoadFunction("SDL_CloseIO", "SDL3") + ) )(context); [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] @@ -40860,8 +41000,11 @@ int ISdl.CloseIO(IOStreamHandle context) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.CloseJoystick(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CloseJoystick", "SDL3") + (delegate* unmanaged)( + _slots[38] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[38] = nativeContext.LoadFunction("SDL_CloseJoystick", "SDL3") + ) )(joystick); [NativeFunction("SDL3", EntryPoint = "SDL_CloseJoystick")] @@ -40871,8 +41014,11 @@ void ISdl.CloseJoystick(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.CloseSensor(SensorHandle sensor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CloseSensor", "SDL3") + (delegate* unmanaged)( + _slots[39] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[39] = nativeContext.LoadFunction("SDL_CloseSensor", "SDL3") + ) )(sensor); [NativeFunction("SDL3", EntryPoint = "SDL_CloseSensor")] @@ -40882,8 +41028,11 @@ void ISdl.CloseSensor(SensorHandle sensor) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.CloseStorage(StorageHandle storage) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CloseStorage", "SDL3") + (delegate* unmanaged)( + _slots[40] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[40] = nativeContext.LoadFunction("SDL_CloseStorage", "SDL3") + ) )(storage); [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] @@ -40907,8 +41056,11 @@ BlendOperation alphaOperation BlendFactor, BlendFactor, BlendOperation, - BlendMode>) - nativeContext.LoadFunction("SDL_ComposeCustomBlendMode", "SDL3") + BlendMode>)( + _slots[41] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[41] = nativeContext.LoadFunction("SDL_ComposeCustomBlendMode", "SDL3") + ) )( srcColorFactor, dstColorFactor, @@ -40947,8 +41099,11 @@ int ISdl.ConvertAudioSamples( int* dst_len ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ConvertAudioSamples", "SDL3") + (delegate* unmanaged)( + _slots[42] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[42] = nativeContext.LoadFunction("SDL_ConvertAudioSamples", "SDL3") + ) )(src_spec, src_data, src_len, dst_spec, dst_data, dst_len); [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] @@ -41005,8 +41160,14 @@ Ref dst_len [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ConvertEventToRenderCoordinates", "SDL3") + (delegate* unmanaged)( + _slots[43] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[43] = nativeContext.LoadFunction( + "SDL_ConvertEventToRenderCoordinates", + "SDL3" + ) + ) )(renderer, @event); [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] @@ -41050,8 +41211,11 @@ int dst_pitch PixelFormatEnum, void*, int, - int>) - nativeContext.LoadFunction("SDL_ConvertPixels", "SDL3") + int>)( + _slots[44] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[44] = nativeContext.LoadFunction("SDL_ConvertPixels", "SDL3") + ) )(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch); [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] @@ -41159,8 +41323,14 @@ int dst_pitch uint, void*, int, - int>) - nativeContext.LoadFunction("SDL_ConvertPixelsAndColorspace", "SDL3") + int>)( + _slots[45] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[45] = nativeContext.LoadFunction( + "SDL_ConvertPixelsAndColorspace", + "SDL3" + ) + ) )( width, height, @@ -41282,8 +41452,11 @@ int dst_pitch [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ConvertSurface", "SDL3") + (delegate* unmanaged)( + _slots[46] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[46] = nativeContext.LoadFunction("SDL_ConvertSurface", "SDL3") + ) )(surface, format); [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurface")] @@ -41317,8 +41490,11 @@ public static Ptr ConvertSurface( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Surface* ISdl.ConvertSurfaceFormat(Surface* surface, PixelFormatEnum pixel_format) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ConvertSurfaceFormat", "SDL3") + (delegate* unmanaged)( + _slots[47] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[47] = nativeContext.LoadFunction("SDL_ConvertSurfaceFormat", "SDL3") + ) )(surface, pixel_format); [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] @@ -41351,8 +41527,14 @@ PixelFormatEnum pixel_format [NativeTypeName("SDL_PropertiesID")] uint props ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ConvertSurfaceFormatAndColorspace", "SDL3") + (delegate* unmanaged)( + _slots[48] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[48] = nativeContext.LoadFunction( + "SDL_ConvertSurfaceFormatAndColorspace", + "SDL3" + ) + ) )(surface, pixel_format, colorspace, props); [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] @@ -41400,8 +41582,11 @@ int ISdl.CopyProperties( [NativeTypeName("SDL_PropertiesID")] uint dst ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CopyProperties", "SDL3") + (delegate* unmanaged)( + _slots[49] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[49] = nativeContext.LoadFunction("SDL_CopyProperties", "SDL3") + ) )(src, dst); [NativeFunction("SDL3", EntryPoint = "SDL_CopyProperties")] @@ -41417,8 +41602,11 @@ AudioStreamHandle ISdl.CreateAudioStream( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateAudioStream", "SDL3") + (delegate* unmanaged)( + _slots[50] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[50] = nativeContext.LoadFunction("SDL_CreateAudioStream", "SDL3") + ) )(src_spec, dst_spec); [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] @@ -41453,8 +41641,11 @@ public static AudioStreamHandle CreateAudioStream( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] CursorHandle ISdl.CreateColorCursor(Surface* surface, int hot_x, int hot_y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateColorCursor", "SDL3") + (delegate* unmanaged)( + _slots[51] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[51] = nativeContext.LoadFunction("SDL_CreateColorCursor", "SDL3") + ) )(surface, hot_x, hot_y); [NativeFunction("SDL3", EntryPoint = "SDL_CreateColorCursor")] @@ -41480,8 +41671,11 @@ public static CursorHandle CreateColorCursor(Ref surface, int hot_x, in [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ConditionHandle ISdl.CreateCondition() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateCondition", "SDL3") + (delegate* unmanaged)( + _slots[52] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[52] = nativeContext.LoadFunction("SDL_CreateCondition", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_CreateCondition")] @@ -41498,8 +41692,11 @@ CursorHandle ISdl.CreateCursor( int hot_y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateCursor", "SDL3") + (delegate* unmanaged)( + _slots[53] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[53] = nativeContext.LoadFunction("SDL_CreateCursor", "SDL3") + ) )(data, mask, w, h, hot_x, hot_y); [NativeFunction("SDL3", EntryPoint = "SDL_CreateCursor")] @@ -41546,8 +41743,11 @@ int hot_y [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.CreateDirectory([NativeTypeName("const char *")] sbyte* path) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateDirectory", "SDL3") + (delegate* unmanaged)( + _slots[54] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[54] = nativeContext.LoadFunction("SDL_CreateDirectory", "SDL3") + ) )(path); [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] @@ -41576,8 +41776,11 @@ int ISdl.CreateHapticEffect( [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateHapticEffect", "SDL3") + (delegate* unmanaged)( + _slots[55] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[55] = nativeContext.LoadFunction("SDL_CreateHapticEffect", "SDL3") + ) )(haptic, effect); [NativeFunction("SDL3", EntryPoint = "SDL_CreateHapticEffect")] @@ -41609,7 +41812,13 @@ public static int CreateHapticEffect( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] MutexHandle ISdl.CreateMutex() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_CreateMutex", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[56] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[56] = nativeContext.LoadFunction("SDL_CreateMutex", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_CreateMutex")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -41627,8 +41836,11 @@ Ptr ISdl.CreatePalette(int ncolors) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Palette* ISdl.CreatePaletteRaw(int ncolors) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreatePalette", "SDL3") + (delegate* unmanaged)( + _slots[57] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[57] = nativeContext.LoadFunction("SDL_CreatePalette", "SDL3") + ) )(ncolors); [NativeFunction("SDL3", EntryPoint = "SDL_CreatePalette")] @@ -41648,8 +41860,11 @@ public static Ptr CreatePixelFormat(PixelFormatEnum pixel_format) = [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] PixelFormat* ISdl.CreatePixelFormatRaw(PixelFormatEnum pixel_format) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreatePixelFormat", "SDL3") + (delegate* unmanaged)( + _slots[58] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[58] = nativeContext.LoadFunction("SDL_CreatePixelFormat", "SDL3") + ) )(pixel_format); [NativeFunction("SDL3", EntryPoint = "SDL_CreatePixelFormat")] @@ -41667,8 +41882,11 @@ WindowHandle ISdl.CreatePopupWindow( [NativeTypeName("SDL_WindowFlags")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreatePopupWindow", "SDL3") + (delegate* unmanaged)( + _slots[59] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[59] = nativeContext.LoadFunction("SDL_CreatePopupWindow", "SDL3") + ) )(parent, offset_x, offset_y, w, h, flags); [NativeFunction("SDL3", EntryPoint = "SDL_CreatePopupWindow")] @@ -41684,7 +41902,13 @@ public static WindowHandle CreatePopupWindow( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.CreateProperties() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_CreateProperties", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[60] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[60] = nativeContext.LoadFunction("SDL_CreateProperties", "SDL3") + ) + )(); [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateProperties")] @@ -41698,8 +41922,11 @@ RendererHandle ISdl.CreateRenderer( [NativeTypeName("Uint32")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateRenderer", "SDL3") + (delegate* unmanaged)( + _slots[61] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[61] = nativeContext.LoadFunction("SDL_CreateRenderer", "SDL3") + ) )(window, name, flags); [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] @@ -41737,8 +41964,14 @@ RendererHandle ISdl.CreateRendererWithProperties( [NativeTypeName("SDL_PropertiesID")] uint props ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateRendererWithProperties", "SDL3") + (delegate* unmanaged)( + _slots[62] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[62] = nativeContext.LoadFunction( + "SDL_CreateRendererWithProperties", + "SDL3" + ) + ) )(props); [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] @@ -41750,8 +41983,11 @@ public static RendererHandle CreateRendererWithProperties( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] RWLockHandle ISdl.CreateRWLock() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateRWLock", "SDL3") + (delegate* unmanaged)( + _slots[63] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[63] = nativeContext.LoadFunction("SDL_CreateRWLock", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_CreateRWLock")] @@ -41761,8 +41997,11 @@ RWLockHandle ISdl.CreateRWLock() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] SemaphoreHandle ISdl.CreateSemaphore([NativeTypeName("Uint32")] uint initial_value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateSemaphore", "SDL3") + (delegate* unmanaged)( + _slots[64] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[64] = nativeContext.LoadFunction("SDL_CreateSemaphore", "SDL3") + ) )(initial_value); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSemaphore")] @@ -41773,8 +42012,11 @@ public static SemaphoreHandle CreateSemaphore([NativeTypeName("Uint32")] uint in [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] RendererHandle ISdl.CreateSoftwareRenderer(Surface* surface) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateSoftwareRenderer", "SDL3") + (delegate* unmanaged)( + _slots[65] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[65] = nativeContext.LoadFunction("SDL_CreateSoftwareRenderer", "SDL3") + ) )(surface); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSoftwareRenderer")] @@ -41803,8 +42045,11 @@ int ISdl.CreateStorageDirectory( [NativeTypeName("const char *")] sbyte* path ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateStorageDirectory", "SDL3") + (delegate* unmanaged)( + _slots[66] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[66] = nativeContext.LoadFunction("SDL_CreateStorageDirectory", "SDL3") + ) )(storage, path); [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] @@ -41853,8 +42098,11 @@ public static Ptr CreateSurface(int width, int height, PixelFormatEnum PixelFormatEnum format ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateSurfaceFrom", "SDL3") + (delegate* unmanaged)( + _slots[68] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[68] = nativeContext.LoadFunction("SDL_CreateSurfaceFrom", "SDL3") + ) )(pixels, width, height, pitch, format); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] @@ -41897,8 +42145,11 @@ PixelFormatEnum format [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Surface* ISdl.CreateSurfaceRaw(int width, int height, PixelFormatEnum format) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateSurface", "SDL3") + (delegate* unmanaged)( + _slots[67] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[67] = nativeContext.LoadFunction("SDL_CreateSurface", "SDL3") + ) )(width, height, format); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] @@ -41909,8 +42160,11 @@ PixelFormatEnum format [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] CursorHandle ISdl.CreateSystemCursor(SystemCursor id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateSystemCursor", "SDL3") + (delegate* unmanaged)( + _slots[69] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[69] = nativeContext.LoadFunction("SDL_CreateSystemCursor", "SDL3") + ) )(id); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] @@ -41927,8 +42181,11 @@ TextureHandle ISdl.CreateTexture( int h ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateTexture", "SDL3") + (delegate* unmanaged)( + _slots[70] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[70] = nativeContext.LoadFunction("SDL_CreateTexture", "SDL3") + ) )(renderer, format, access, w, h); [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] @@ -41944,8 +42201,14 @@ int h [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] TextureHandle ISdl.CreateTextureFromSurface(RendererHandle renderer, Surface* surface) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateTextureFromSurface", "SDL3") + (delegate* unmanaged)( + _slots[71] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[71] = nativeContext.LoadFunction( + "SDL_CreateTextureFromSurface", + "SDL3" + ) + ) )(renderer, surface); [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] @@ -41978,8 +42241,14 @@ TextureHandle ISdl.CreateTextureWithProperties( [NativeTypeName("SDL_PropertiesID")] uint props ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateTextureWithProperties", "SDL3") + (delegate* unmanaged)( + _slots[72] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[72] = nativeContext.LoadFunction( + "SDL_CreateTextureWithProperties", + "SDL3" + ) + ) )(renderer, props); [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] @@ -41996,8 +42265,11 @@ ThreadHandle ISdl.CreateThread( void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateThread", "SDL3") + (delegate* unmanaged)( + _slots[73] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[73] = nativeContext.LoadFunction("SDL_CreateThread", "SDL3") + ) )(fn, name, data); [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] @@ -42039,8 +42311,14 @@ ThreadHandle ISdl.CreateThreadWithStackSize( void* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateThreadWithStackSize", "SDL3") + (delegate* unmanaged)( + _slots[74] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[74] = nativeContext.LoadFunction( + "SDL_CreateThreadWithStackSize", + "SDL3" + ) + ) )(fn, name, stacksize, data); [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] @@ -42080,7 +42358,13 @@ Ref data [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.CreateTLS() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_CreateTLS", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[75] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[75] = nativeContext.LoadFunction("SDL_CreateTLS", "SDL3") + ) + )(); [return: NativeTypeName("SDL_TLSID")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateTLS")] @@ -42095,8 +42379,11 @@ WindowHandle ISdl.CreateWindow( [NativeTypeName("SDL_WindowFlags")] uint flags ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateWindow", "SDL3") + (delegate* unmanaged)( + _slots[76] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[76] = nativeContext.LoadFunction("SDL_CreateWindow", "SDL3") + ) )(title, w, h, flags); [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindow")] @@ -42142,8 +42429,11 @@ int ISdl.CreateWindowAndRenderer( RendererHandle* renderer ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateWindowAndRenderer", "SDL3") + (delegate* unmanaged)( + _slots[77] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[77] = nativeContext.LoadFunction("SDL_CreateWindowAndRenderer", "SDL3") + ) )(title, width, height, window_flags, window, renderer); [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] @@ -42198,8 +42488,14 @@ Ref renderer [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.CreateWindowWithProperties([NativeTypeName("SDL_PropertiesID")] uint props) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_CreateWindowWithProperties", "SDL3") + (delegate* unmanaged)( + _slots[78] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[78] = nativeContext.LoadFunction( + "SDL_CreateWindowWithProperties", + "SDL3" + ) + ) )(props); [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] @@ -42219,7 +42515,13 @@ public static WindowHandle CreateWindowWithProperties( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.CursorVisibleRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_CursorVisible", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[79] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[79] = nativeContext.LoadFunction("SDL_CursorVisible", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] @@ -42232,8 +42534,11 @@ int ISdl.DateTimeToTime( [NativeTypeName("SDL_Time *")] long* ticks ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DateTimeToTime", "SDL3") + (delegate* unmanaged)( + _slots[80] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[80] = nativeContext.LoadFunction("SDL_DateTimeToTime", "SDL3") + ) )(dt, ticks); [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] @@ -42266,7 +42571,13 @@ public static int DateTimeToTime( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.Delay([NativeTypeName("Uint32")] uint ms) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_Delay", "SDL3"))(ms); + ( + (delegate* unmanaged)( + _slots[81] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[81] = nativeContext.LoadFunction("SDL_Delay", "SDL3") + ) + )(ms); [NativeFunction("SDL3", EntryPoint = "SDL_Delay")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -42274,7 +42585,13 @@ void ISdl.Delay([NativeTypeName("Uint32")] uint ms) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DelayNS([NativeTypeName("Uint64")] ulong ns) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_DelayNS", "SDL3"))(ns); + ( + (delegate* unmanaged)( + _slots[82] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[82] = nativeContext.LoadFunction("SDL_DelayNS", "SDL3") + ) + )(ns); [NativeFunction("SDL3", EntryPoint = "SDL_DelayNS")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -42286,8 +42603,11 @@ void ISdl.DelEventWatch( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DelEventWatch", "SDL3") + (delegate* unmanaged)( + _slots[83] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[83] = nativeContext.LoadFunction("SDL_DelEventWatch", "SDL3") + ) )(filter, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] @@ -42321,8 +42641,11 @@ void ISdl.DelHintCallback( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DelHintCallback", "SDL3") + (delegate* unmanaged)( + _slots[84] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[84] = nativeContext.LoadFunction("SDL_DelHintCallback", "SDL3") + ) )(name, callback, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] @@ -42359,8 +42682,11 @@ Ref userdata [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyAudioStream(AudioStreamHandle stream) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyAudioStream", "SDL3") + (delegate* unmanaged)( + _slots[85] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[85] = nativeContext.LoadFunction("SDL_DestroyAudioStream", "SDL3") + ) )(stream); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyAudioStream")] @@ -42371,8 +42697,11 @@ public static void DestroyAudioStream(AudioStreamHandle stream) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyCondition(ConditionHandle cond) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyCondition", "SDL3") + (delegate* unmanaged)( + _slots[86] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[86] = nativeContext.LoadFunction("SDL_DestroyCondition", "SDL3") + ) )(cond); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCondition")] @@ -42382,8 +42711,11 @@ void ISdl.DestroyCondition(ConditionHandle cond) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyCursor(CursorHandle cursor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyCursor", "SDL3") + (delegate* unmanaged)( + _slots[87] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[87] = nativeContext.LoadFunction("SDL_DestroyCursor", "SDL3") + ) )(cursor); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCursor")] @@ -42393,8 +42725,11 @@ void ISdl.DestroyCursor(CursorHandle cursor) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyHapticEffect(HapticHandle haptic, int effect) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyHapticEffect", "SDL3") + (delegate* unmanaged)( + _slots[88] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[88] = nativeContext.LoadFunction("SDL_DestroyHapticEffect", "SDL3") + ) )(haptic, effect); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyHapticEffect")] @@ -42405,8 +42740,11 @@ public static void DestroyHapticEffect(HapticHandle haptic, int effect) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyMutex(MutexHandle mutex) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyMutex", "SDL3") + (delegate* unmanaged)( + _slots[89] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[89] = nativeContext.LoadFunction("SDL_DestroyMutex", "SDL3") + ) )(mutex); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyMutex")] @@ -42416,8 +42754,11 @@ void ISdl.DestroyMutex(MutexHandle mutex) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyPalette(Palette* palette) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyPalette", "SDL3") + (delegate* unmanaged)( + _slots[90] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[90] = nativeContext.LoadFunction("SDL_DestroyPalette", "SDL3") + ) )(palette); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPalette")] @@ -42441,8 +42782,11 @@ void ISdl.DestroyPalette(Ref palette) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyPixelFormat(PixelFormat* format) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyPixelFormat", "SDL3") + (delegate* unmanaged)( + _slots[91] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[91] = nativeContext.LoadFunction("SDL_DestroyPixelFormat", "SDL3") + ) )(format); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] @@ -42468,8 +42812,11 @@ public static void DestroyPixelFormat(Ref format) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyProperties", "SDL3") + (delegate* unmanaged)( + _slots[92] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[92] = nativeContext.LoadFunction("SDL_DestroyProperties", "SDL3") + ) )(props); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyProperties")] @@ -42480,8 +42827,11 @@ public static void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint p [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyRenderer(RendererHandle renderer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyRenderer", "SDL3") + (delegate* unmanaged)( + _slots[93] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[93] = nativeContext.LoadFunction("SDL_DestroyRenderer", "SDL3") + ) )(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRenderer")] @@ -42492,8 +42842,11 @@ public static void DestroyRenderer(RendererHandle renderer) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyRWLock(RWLockHandle rwlock) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyRWLock", "SDL3") + (delegate* unmanaged)( + _slots[94] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[94] = nativeContext.LoadFunction("SDL_DestroyRWLock", "SDL3") + ) )(rwlock); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRWLock")] @@ -42503,8 +42856,11 @@ void ISdl.DestroyRWLock(RWLockHandle rwlock) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroySemaphore(SemaphoreHandle sem) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroySemaphore", "SDL3") + (delegate* unmanaged)( + _slots[95] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[95] = nativeContext.LoadFunction("SDL_DestroySemaphore", "SDL3") + ) )(sem); [NativeFunction("SDL3", EntryPoint = "SDL_DestroySemaphore")] @@ -42514,8 +42870,11 @@ void ISdl.DestroySemaphore(SemaphoreHandle sem) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroySurface(Surface* surface) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroySurface", "SDL3") + (delegate* unmanaged)( + _slots[96] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[96] = nativeContext.LoadFunction("SDL_DestroySurface", "SDL3") + ) )(surface); [NativeFunction("SDL3", EntryPoint = "SDL_DestroySurface")] @@ -42539,8 +42898,11 @@ void ISdl.DestroySurface(Ref surface) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyTexture(TextureHandle texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyTexture", "SDL3") + (delegate* unmanaged)( + _slots[97] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[97] = nativeContext.LoadFunction("SDL_DestroyTexture", "SDL3") + ) )(texture); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] @@ -42550,8 +42912,11 @@ void ISdl.DestroyTexture(TextureHandle texture) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyWindow(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyWindow", "SDL3") + (delegate* unmanaged)( + _slots[98] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[98] = nativeContext.LoadFunction("SDL_DestroyWindow", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindow")] @@ -42561,8 +42926,11 @@ void ISdl.DestroyWindow(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.DestroyWindowSurface(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DestroyWindowSurface", "SDL3") + (delegate* unmanaged)( + _slots[99] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[99] = nativeContext.LoadFunction("SDL_DestroyWindowSurface", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] @@ -42573,8 +42941,11 @@ public static int DestroyWindowSurface(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DetachThread(ThreadHandle thread) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DetachThread", "SDL3") + (delegate* unmanaged)( + _slots[100] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[100] = nativeContext.LoadFunction("SDL_DetachThread", "SDL3") + ) )(thread); [NativeFunction("SDL3", EntryPoint = "SDL_DetachThread")] @@ -42584,8 +42955,11 @@ void ISdl.DetachThread(ThreadHandle thread) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DetachVirtualJoystick", "SDL3") + (delegate* unmanaged)( + _slots[101] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[101] = nativeContext.LoadFunction("SDL_DetachVirtualJoystick", "SDL3") + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_DetachVirtualJoystick")] @@ -42595,7 +42969,13 @@ public static int DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.DisableScreenSaver() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_DisableScreenSaver", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[102] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[102] = nativeContext.LoadFunction("SDL_DisableScreenSaver", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -42604,8 +42984,11 @@ int ISdl.DisableScreenSaver() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Surface* ISdl.DuplicateSurface(Surface* surface) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_DuplicateSurface", "SDL3") + (delegate* unmanaged)( + _slots[103] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[103] = nativeContext.LoadFunction("SDL_DuplicateSurface", "SDL3") + ) )(surface); [NativeFunction("SDL3", EntryPoint = "SDL_DuplicateSurface")] @@ -42640,8 +43023,14 @@ public static Ptr DuplicateSurface(Ref surface) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.EGLGetCurrentEGLConfigRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_EGL_GetCurrentEGLConfig", "SDL3") + (delegate* unmanaged)( + _slots[104] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[104] = nativeContext.LoadFunction( + "SDL_EGL_GetCurrentEGLConfig", + "SDL3" + ) + ) )(); [return: NativeTypeName("SDL_EGLConfig")] @@ -42661,8 +43050,14 @@ public static Ptr DuplicateSurface(Ref surface) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.EGLGetCurrentEGLDisplayRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_EGL_GetCurrentEGLDisplay", "SDL3") + (delegate* unmanaged)( + _slots[105] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[105] = nativeContext.LoadFunction( + "SDL_EGL_GetCurrentEGLDisplay", + "SDL3" + ) + ) )(); [return: NativeTypeName("SDL_EGLDisplay")] @@ -42673,8 +43068,11 @@ public static Ptr DuplicateSurface(Ref surface) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] FunctionPointer ISdl.EGLGetProcAddress([NativeTypeName("const char *")] sbyte* proc) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_EGL_GetProcAddress", "SDL3") + (delegate* unmanaged)( + _slots[106] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[106] = nativeContext.LoadFunction("SDL_EGL_GetProcAddress", "SDL3") + ) )(proc); [return: NativeTypeName("SDL_FunctionPointer")] @@ -42714,8 +43112,14 @@ public static Ptr EGLGetWindowEGLSurface(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.EGLGetWindowEGLSurfaceRaw(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_EGL_GetWindowEGLSurface", "SDL3") + (delegate* unmanaged)( + _slots[107] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[107] = nativeContext.LoadFunction( + "SDL_EGL_GetWindowEGLSurface", + "SDL3" + ) + ) )(window); [return: NativeTypeName("SDL_EGLSurface")] @@ -42736,8 +43140,14 @@ void ISdl.EGLSetEGLAttributeCallbacks( EGLAttribArrayCallback, EGLIntArrayCallback, EGLIntArrayCallback, - void>) - nativeContext.LoadFunction("SDL_EGL_SetEGLAttributeCallbacks", "SDL3") + void>)( + _slots[108] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[108] = nativeContext.LoadFunction( + "SDL_EGL_SetEGLAttributeCallbacks", + "SDL3" + ) + ) )(platformAttribCallback, surfaceAttribCallback, contextAttribCallback); [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetEGLAttributeCallbacks")] @@ -42756,7 +43166,13 @@ public static void EGLSetEGLAttributeCallbacks( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.EnableScreenSaver() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_EnableScreenSaver", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[109] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[109] = nativeContext.LoadFunction("SDL_EnableScreenSaver", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_EnableScreenSaver")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -42769,8 +43185,11 @@ int ISdl.EnumerateDirectory( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_EnumerateDirectory", "SDL3") + (delegate* unmanaged)( + _slots[110] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[110] = nativeContext.LoadFunction("SDL_EnumerateDirectory", "SDL3") + ) )(path, callback, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] @@ -42811,8 +43230,11 @@ int ISdl.EnumerateProperties( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_EnumerateProperties", "SDL3") + (delegate* unmanaged)( + _slots[111] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[111] = nativeContext.LoadFunction("SDL_EnumerateProperties", "SDL3") + ) )(props, callback, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] @@ -42853,8 +43275,14 @@ int ISdl.EnumerateStorageDirectory( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_EnumerateStorageDirectory", "SDL3") + (delegate* unmanaged)( + _slots[112] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[112] = nativeContext.LoadFunction( + "SDL_EnumerateStorageDirectory", + "SDL3" + ) + ) )(storage, path, callback, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] @@ -42899,9 +43327,13 @@ Ref userdata [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.Error(Errorcode code) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_Error", "SDL3"))( - code - ); + ( + (delegate* unmanaged)( + _slots[113] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[113] = nativeContext.LoadFunction("SDL_Error", "SDL3") + ) + )(code); [NativeFunction("SDL3", EntryPoint = "SDL_Error")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -42920,9 +43352,13 @@ public static MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.EventEnabledRaw([NativeTypeName("Uint32")] uint type) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_EventEnabled", "SDL3"))( - type - ); + ( + (delegate* unmanaged)( + _slots[114] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[114] = nativeContext.LoadFunction("SDL_EventEnabled", "SDL3") + ) + )(type); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] @@ -42937,8 +43373,11 @@ int ISdl.FillSurfaceRect( [NativeTypeName("Uint32")] uint color ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_FillSurfaceRect", "SDL3") + (delegate* unmanaged)( + _slots[115] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[115] = nativeContext.LoadFunction("SDL_FillSurfaceRect", "SDL3") + ) )(dst, rect, color); [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] @@ -42980,8 +43419,11 @@ int ISdl.FillSurfaceRects( [NativeTypeName("Uint32")] uint color ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_FillSurfaceRects", "SDL3") + (delegate* unmanaged)( + _slots[116] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[116] = nativeContext.LoadFunction("SDL_FillSurfaceRects", "SDL3") + ) )(dst, rects, count, color); [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] @@ -43024,8 +43466,11 @@ void ISdl.FilterEvents( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_FilterEvents", "SDL3") + (delegate* unmanaged)( + _slots[117] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[117] = nativeContext.LoadFunction("SDL_FilterEvents", "SDL3") + ) )(filter, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_FilterEvents")] @@ -43055,8 +43500,11 @@ Ref userdata [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.FlashWindow(WindowHandle window, FlashOperation operation) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_FlashWindow", "SDL3") + (delegate* unmanaged)( + _slots[118] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[118] = nativeContext.LoadFunction("SDL_FlashWindow", "SDL3") + ) )(window, operation); [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] @@ -43067,8 +43515,11 @@ public static int FlashWindow(WindowHandle window, FlashOperation operation) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.FlipSurface(Surface* surface, FlipMode flip) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_FlipSurface", "SDL3") + (delegate* unmanaged)( + _slots[119] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[119] = nativeContext.LoadFunction("SDL_FlipSurface", "SDL3") + ) )(surface, flip); [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] @@ -43094,8 +43545,11 @@ public static int FlipSurface(Ref surface, FlipMode flip) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.FlushAudioStream(AudioStreamHandle stream) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_FlushAudioStream", "SDL3") + (delegate* unmanaged)( + _slots[120] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[120] = nativeContext.LoadFunction("SDL_FlushAudioStream", "SDL3") + ) )(stream); [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] @@ -43105,9 +43559,13 @@ public static int FlushAudioStream(AudioStreamHandle stream) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.FlushEvent([NativeTypeName("Uint32")] uint type) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_FlushEvent", "SDL3"))( - type - ); + ( + (delegate* unmanaged)( + _slots[121] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[121] = nativeContext.LoadFunction("SDL_FlushEvent", "SDL3") + ) + )(type); [NativeFunction("SDL3", EntryPoint = "SDL_FlushEvent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -43120,8 +43578,11 @@ void ISdl.FlushEvents( [NativeTypeName("Uint32")] uint maxType ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_FlushEvents", "SDL3") + (delegate* unmanaged)( + _slots[122] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[122] = nativeContext.LoadFunction("SDL_FlushEvents", "SDL3") + ) )(minType, maxType); [NativeFunction("SDL3", EntryPoint = "SDL_FlushEvents")] @@ -43134,8 +43595,11 @@ public static void FlushEvents( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.FlushRenderer(RendererHandle renderer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_FlushRenderer", "SDL3") + (delegate* unmanaged)( + _slots[123] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[123] = nativeContext.LoadFunction("SDL_FlushRenderer", "SDL3") + ) )(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] @@ -43156,8 +43620,11 @@ public static MaybeBool GamepadConnected(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GamepadConnectedRaw(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GamepadConnected", "SDL3") + (delegate* unmanaged)( + _slots[124] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[124] = nativeContext.LoadFunction("SDL_GamepadConnected", "SDL3") + ) )(gamepad); [return: NativeTypeName("SDL_bool")] @@ -43179,7 +43646,11 @@ MaybeBool ISdl.GamepadEventsEnabled() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GamepadEventsEnabledRaw() => ( - (delegate* unmanaged)nativeContext.LoadFunction("SDL_GamepadEventsEnabled", "SDL3") + (delegate* unmanaged)( + _slots[125] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[125] = nativeContext.LoadFunction("SDL_GamepadEventsEnabled", "SDL3") + ) )(); [return: NativeTypeName("SDL_bool")] @@ -43201,8 +43672,11 @@ public static MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis a [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GamepadHasAxis", "SDL3") + (delegate* unmanaged)( + _slots[126] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[126] = nativeContext.LoadFunction("SDL_GamepadHasAxis", "SDL3") + ) )(gamepad, axis); [return: NativeTypeName("SDL_bool")] @@ -43225,8 +43699,11 @@ public static MaybeBool GamepadHasButton(GamepadHandle gamepad, GamepadButt [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GamepadHasButton", "SDL3") + (delegate* unmanaged)( + _slots[127] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[127] = nativeContext.LoadFunction("SDL_GamepadHasButton", "SDL3") + ) )(gamepad, button); [return: NativeTypeName("SDL_bool")] @@ -43249,8 +43726,11 @@ public static MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GamepadHasSensor", "SDL3") + (delegate* unmanaged)( + _slots[128] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[128] = nativeContext.LoadFunction("SDL_GamepadHasSensor", "SDL3") + ) )(gamepad, type); [return: NativeTypeName("SDL_bool")] @@ -43273,8 +43753,11 @@ public static MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, SensorT [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GamepadSensorEnabled", "SDL3") + (delegate* unmanaged)( + _slots[129] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[129] = nativeContext.LoadFunction("SDL_GamepadSensorEnabled", "SDL3") + ) )(gamepad, type); [return: NativeTypeName("SDL_bool")] @@ -43286,8 +43769,11 @@ public static int GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] AssertionHandler ISdl.GetAssertionHandler(void** puserdata) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAssertionHandler", "SDL3") + (delegate* unmanaged)( + _slots[130] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[130] = nativeContext.LoadFunction("SDL_GetAssertionHandler", "SDL3") + ) )(puserdata); [return: NativeTypeName("SDL_AssertionHandler")] @@ -43324,8 +43810,11 @@ public static AssertionHandler GetAssertionHandler(Ref2D puserdata) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] AssertData* ISdl.GetAssertionReportRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAssertionReport", "SDL3") + (delegate* unmanaged)( + _slots[131] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[131] = nativeContext.LoadFunction("SDL_GetAssertionReport", "SDL3") + ) )(); [return: NativeTypeName("const SDL_AssertData *")] @@ -43336,8 +43825,11 @@ public static AssertionHandler GetAssertionHandler(Ref2D puserdata) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint* ISdl.GetAudioCaptureDevices(int* count) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAudioCaptureDevices", "SDL3") + (delegate* unmanaged)( + _slots[132] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[132] = nativeContext.LoadFunction("SDL_GetAudioCaptureDevices", "SDL3") + ) )(count); [return: NativeTypeName("SDL_AudioDeviceID *")] @@ -43369,8 +43861,11 @@ int ISdl.GetAudioDeviceFormat( int* sample_frames ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAudioDeviceFormat", "SDL3") + (delegate* unmanaged)( + _slots[133] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[133] = nativeContext.LoadFunction("SDL_GetAudioDeviceFormat", "SDL3") + ) )(devid, spec, sample_frames); [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] @@ -43418,8 +43913,11 @@ public static Ptr GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID") [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetAudioDeviceNameRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAudioDeviceName", "SDL3") + (delegate* unmanaged)( + _slots[134] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[134] = nativeContext.LoadFunction("SDL_GetAudioDeviceName", "SDL3") + ) )(devid); [return: NativeTypeName("char *")] @@ -43440,8 +43938,11 @@ public static Ptr GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID") [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetAudioDriverRaw(int index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAudioDriver", "SDL3") + (delegate* unmanaged)( + _slots[135] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[135] = nativeContext.LoadFunction("SDL_GetAudioDriver", "SDL3") + ) )(index); [return: NativeTypeName("const char *")] @@ -43452,8 +43953,11 @@ public static Ptr GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID") [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint* ISdl.GetAudioOutputDevices(int* count) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAudioOutputDevices", "SDL3") + (delegate* unmanaged)( + _slots[136] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[136] = nativeContext.LoadFunction("SDL_GetAudioOutputDevices", "SDL3") + ) )(count); [return: NativeTypeName("SDL_AudioDeviceID *")] @@ -43480,8 +43984,14 @@ public static Ptr GetAudioOutputDevices(Ref count) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetAudioStreamAvailable(AudioStreamHandle stream) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAudioStreamAvailable", "SDL3") + (delegate* unmanaged)( + _slots[137] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[137] = nativeContext.LoadFunction( + "SDL_GetAudioStreamAvailable", + "SDL3" + ) + ) )(stream); [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamAvailable")] @@ -43492,8 +44002,11 @@ public static int GetAudioStreamAvailable(AudioStreamHandle stream) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetAudioStreamData(AudioStreamHandle stream, void* buf, int len) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAudioStreamData", "SDL3") + (delegate* unmanaged)( + _slots[138] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[138] = nativeContext.LoadFunction("SDL_GetAudioStreamData", "SDL3") + ) )(stream, buf, len); [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamData")] @@ -43519,8 +44032,11 @@ public static int GetAudioStreamData(AudioStreamHandle stream, Ref buf, int len) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetAudioStreamDevice(AudioStreamHandle stream) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAudioStreamDevice", "SDL3") + (delegate* unmanaged)( + _slots[139] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[139] = nativeContext.LoadFunction("SDL_GetAudioStreamDevice", "SDL3") + ) )(stream); [return: NativeTypeName("SDL_AudioDeviceID")] @@ -43536,8 +44052,11 @@ int ISdl.GetAudioStreamFormat( AudioSpec* dst_spec ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAudioStreamFormat", "SDL3") + (delegate* unmanaged)( + _slots[140] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[140] = nativeContext.LoadFunction("SDL_GetAudioStreamFormat", "SDL3") + ) )(stream, src_spec, dst_spec); [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] @@ -43574,8 +44093,14 @@ Ref dst_spec [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] float ISdl.GetAudioStreamFrequencyRatio(AudioStreamHandle stream) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAudioStreamFrequencyRatio", "SDL3") + (delegate* unmanaged)( + _slots[141] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[141] = nativeContext.LoadFunction( + "SDL_GetAudioStreamFrequencyRatio", + "SDL3" + ) + ) )(stream); [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFrequencyRatio")] @@ -43586,8 +44111,14 @@ public static float GetAudioStreamFrequencyRatio(AudioStreamHandle stream) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetAudioStreamProperties(AudioStreamHandle stream) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAudioStreamProperties", "SDL3") + (delegate* unmanaged)( + _slots[142] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[142] = nativeContext.LoadFunction( + "SDL_GetAudioStreamProperties", + "SDL3" + ) + ) )(stream); [return: NativeTypeName("SDL_PropertiesID")] @@ -43599,8 +44130,11 @@ public static uint GetAudioStreamProperties(AudioStreamHandle stream) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetAudioStreamQueued(AudioStreamHandle stream) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetAudioStreamQueued", "SDL3") + (delegate* unmanaged)( + _slots[143] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[143] = nativeContext.LoadFunction("SDL_GetAudioStreamQueued", "SDL3") + ) )(stream); [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamQueued")] @@ -43619,7 +44153,13 @@ public static int GetAudioStreamQueued(AudioStreamHandle stream) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetBasePathRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetBasePath", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[144] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[144] = nativeContext.LoadFunction("SDL_GetBasePath", "SDL3") + ) + )(); [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] @@ -43633,8 +44173,11 @@ int ISdl.GetBooleanProperty( [NativeTypeName("SDL_bool")] int default_value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetBooleanProperty", "SDL3") + (delegate* unmanaged)( + _slots[145] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[145] = nativeContext.LoadFunction("SDL_GetBooleanProperty", "SDL3") + ) )(props, name, default_value); [return: NativeTypeName("SDL_bool")] @@ -43685,8 +44228,11 @@ public static Ptr GetCameraDeviceName( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetCameraDeviceNameRaw([NativeTypeName("SDL_CameraDeviceID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCameraDeviceName", "SDL3") + (delegate* unmanaged)( + _slots[146] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[146] = nativeContext.LoadFunction("SDL_GetCameraDeviceName", "SDL3") + ) )(instance_id); [return: NativeTypeName("char *")] @@ -43701,8 +44247,14 @@ CameraPosition ISdl.GetCameraDevicePosition( [NativeTypeName("SDL_CameraDeviceID")] uint instance_id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCameraDevicePosition", "SDL3") + (delegate* unmanaged)( + _slots[147] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[147] = nativeContext.LoadFunction( + "SDL_GetCameraDevicePosition", + "SDL3" + ) + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevicePosition")] @@ -43714,8 +44266,11 @@ public static CameraPosition GetCameraDevicePosition( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint* ISdl.GetCameraDevices(int* count) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCameraDevices", "SDL3") + (delegate* unmanaged)( + _slots[148] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[148] = nativeContext.LoadFunction("SDL_GetCameraDevices", "SDL3") + ) )(count); [return: NativeTypeName("SDL_CameraDeviceID *")] @@ -43744,8 +44299,14 @@ Ptr ISdl.GetCameraDevices(Ref count) int* count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCameraDeviceSupportedFormats", "SDL3") + (delegate* unmanaged)( + _slots[149] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[149] = nativeContext.LoadFunction( + "SDL_GetCameraDeviceSupportedFormats", + "SDL3" + ) + ) )(devid, count); [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] @@ -43787,8 +44348,11 @@ Ref count [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetCameraDriverRaw(int index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCameraDriver", "SDL3") + (delegate* unmanaged)( + _slots[150] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[150] = nativeContext.LoadFunction("SDL_GetCameraDriver", "SDL3") + ) )(index); [return: NativeTypeName("const char *")] @@ -43799,8 +44363,11 @@ Ref count [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetCameraFormat(CameraHandle camera, CameraSpec* spec) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCameraFormat", "SDL3") + (delegate* unmanaged)( + _slots[151] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[151] = nativeContext.LoadFunction("SDL_GetCameraFormat", "SDL3") + ) )(camera, spec); [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] @@ -43826,8 +44393,11 @@ public static int GetCameraFormat(CameraHandle camera, Ref spec) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetCameraInstanceID(CameraHandle camera) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCameraInstanceID", "SDL3") + (delegate* unmanaged)( + _slots[152] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[152] = nativeContext.LoadFunction("SDL_GetCameraInstanceID", "SDL3") + ) )(camera); [return: NativeTypeName("SDL_CameraDeviceID")] @@ -43839,8 +44409,14 @@ public static uint GetCameraInstanceID(CameraHandle camera) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetCameraPermissionState(CameraHandle camera) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCameraPermissionState", "SDL3") + (delegate* unmanaged)( + _slots[153] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[153] = nativeContext.LoadFunction( + "SDL_GetCameraPermissionState", + "SDL3" + ) + ) )(camera); [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] @@ -43851,8 +44427,11 @@ public static int GetCameraPermissionState(CameraHandle camera) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetCameraProperties(CameraHandle camera) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCameraProperties", "SDL3") + (delegate* unmanaged)( + _slots[154] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[154] = nativeContext.LoadFunction("SDL_GetCameraProperties", "SDL3") + ) )(camera); [return: NativeTypeName("SDL_PropertiesID")] @@ -43867,8 +44446,11 @@ public static uint GetCameraProperties(CameraHandle camera) => [NativeTypeName("size_t *")] nuint* size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetClipboardData", "SDL3") + (delegate* unmanaged)( + _slots[155] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[155] = nativeContext.LoadFunction("SDL_GetClipboardData", "SDL3") + ) )(mime_type, size); [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardData")] @@ -43910,7 +44492,13 @@ public static Ptr GetClipboardData( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetClipboardTextRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetClipboardText", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[156] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[156] = nativeContext.LoadFunction("SDL_GetClipboardText", "SDL3") + ) + )(); [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] @@ -43926,8 +44514,14 @@ public static Ptr GetClipboardData( [NativeTypeName("SDL_bool")] int include_high_density_modes ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetClosestFullscreenDisplayMode", "SDL3") + (delegate* unmanaged)( + _slots[157] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[157] = nativeContext.LoadFunction( + "SDL_GetClosestFullscreenDisplayMode", + "SDL3" + ) + ) )(displayID, w, h, refresh_rate, include_high_density_modes); [return: NativeTypeName("const SDL_DisplayMode *")] @@ -43986,7 +44580,13 @@ public static Ptr GetClosestFullscreenDisplayMode( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetCPUCacheLineSize() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetCPUCacheLineSize", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[158] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[158] = nativeContext.LoadFunction("SDL_GetCPUCacheLineSize", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCacheLineSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -43994,7 +44594,13 @@ int ISdl.GetCPUCacheLineSize() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetCPUCount() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetCPUCount", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[159] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[159] = nativeContext.LoadFunction("SDL_GetCPUCount", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCount")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -44012,8 +44618,11 @@ int ISdl.GetCPUCount() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetCurrentAudioDriverRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCurrentAudioDriver", "SDL3") + (delegate* unmanaged)( + _slots[160] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[160] = nativeContext.LoadFunction("SDL_GetCurrentAudioDriver", "SDL3") + ) )(); [return: NativeTypeName("const char *")] @@ -44033,8 +44642,11 @@ int ISdl.GetCPUCount() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetCurrentCameraDriverRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCurrentCameraDriver", "SDL3") + (delegate* unmanaged)( + _slots[161] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[161] = nativeContext.LoadFunction("SDL_GetCurrentCameraDriver", "SDL3") + ) )(); [return: NativeTypeName("const char *")] @@ -44057,8 +44669,11 @@ public static Ptr GetCurrentDisplayMode( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] DisplayMode* ISdl.GetCurrentDisplayModeRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCurrentDisplayMode", "SDL3") + (delegate* unmanaged)( + _slots[162] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[162] = nativeContext.LoadFunction("SDL_GetCurrentDisplayMode", "SDL3") + ) )(displayID); [return: NativeTypeName("const SDL_DisplayMode *")] @@ -44073,8 +44688,14 @@ DisplayOrientation ISdl.GetCurrentDisplayOrientation( [NativeTypeName("SDL_DisplayID")] uint displayID ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCurrentDisplayOrientation", "SDL3") + (delegate* unmanaged)( + _slots[163] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[163] = nativeContext.LoadFunction( + "SDL_GetCurrentDisplayOrientation", + "SDL3" + ) + ) )(displayID); [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayOrientation")] @@ -44086,8 +44707,14 @@ public static DisplayOrientation GetCurrentDisplayOrientation( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCurrentRenderOutputSize", "SDL3") + (delegate* unmanaged)( + _slots[164] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[164] = nativeContext.LoadFunction( + "SDL_GetCurrentRenderOutputSize", + "SDL3" + ) + ) )(renderer, w, h); [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] @@ -44114,7 +44741,11 @@ public static int GetCurrentRenderOutputSize(RendererHandle renderer, Ref w [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetCurrentThreadID() => ( - (delegate* unmanaged)nativeContext.LoadFunction("SDL_GetCurrentThreadID", "SDL3") + (delegate* unmanaged)( + _slots[165] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[165] = nativeContext.LoadFunction("SDL_GetCurrentThreadID", "SDL3") + ) )(); [return: NativeTypeName("SDL_ThreadID")] @@ -44124,9 +44755,13 @@ ulong ISdl.GetCurrentThreadID() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetCurrentTime", "SDL3"))( - ticks - ); + ( + (delegate* unmanaged)( + _slots[166] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[166] = nativeContext.LoadFunction("SDL_GetCurrentTime", "SDL3") + ) + )(ticks); [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -44160,8 +44795,11 @@ public static int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetCurrentVideoDriverRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetCurrentVideoDriver", "SDL3") + (delegate* unmanaged)( + _slots[167] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[167] = nativeContext.LoadFunction("SDL_GetCurrentVideoDriver", "SDL3") + ) )(); [return: NativeTypeName("const char *")] @@ -44171,7 +44809,13 @@ public static int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] CursorHandle ISdl.GetCursor() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetCursor", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[168] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[168] = nativeContext.LoadFunction("SDL_GetCursor", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -44180,8 +44824,11 @@ CursorHandle ISdl.GetCursor() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetDayOfWeek(int year, int month, int day) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDayOfWeek", "SDL3") + (delegate* unmanaged)( + _slots[169] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[169] = nativeContext.LoadFunction("SDL_GetDayOfWeek", "SDL3") + ) )(year, month, day); [NativeFunction("SDL3", EntryPoint = "SDL_GetDayOfWeek")] @@ -44192,8 +44839,11 @@ public static int GetDayOfWeek(int year, int month, int day) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetDayOfYear(int year, int month, int day) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDayOfYear", "SDL3") + (delegate* unmanaged)( + _slots[170] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[170] = nativeContext.LoadFunction("SDL_GetDayOfYear", "SDL3") + ) )(year, month, day); [NativeFunction("SDL3", EntryPoint = "SDL_GetDayOfYear")] @@ -44204,8 +44854,11 @@ public static int GetDayOfYear(int year, int month, int day) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetDaysInMonth(int year, int month) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDaysInMonth", "SDL3") + (delegate* unmanaged)( + _slots[171] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[171] = nativeContext.LoadFunction("SDL_GetDaysInMonth", "SDL3") + ) )(year, month); [NativeFunction("SDL3", EntryPoint = "SDL_GetDaysInMonth")] @@ -44215,8 +44868,14 @@ int ISdl.GetDaysInMonth(int year, int month) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] AssertionHandler ISdl.GetDefaultAssertionHandler() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDefaultAssertionHandler", "SDL3") + (delegate* unmanaged)( + _slots[172] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[172] = nativeContext.LoadFunction( + "SDL_GetDefaultAssertionHandler", + "SDL3" + ) + ) )(); [return: NativeTypeName("SDL_AssertionHandler")] @@ -44228,8 +44887,11 @@ public static AssertionHandler GetDefaultAssertionHandler() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] CursorHandle ISdl.GetDefaultCursor() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDefaultCursor", "SDL3") + (delegate* unmanaged)( + _slots[173] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[173] = nativeContext.LoadFunction("SDL_GetDefaultCursor", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] @@ -44251,8 +44913,11 @@ public static Ptr GetDesktopDisplayMode( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] DisplayMode* ISdl.GetDesktopDisplayModeRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDesktopDisplayMode", "SDL3") + (delegate* unmanaged)( + _slots[174] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[174] = nativeContext.LoadFunction("SDL_GetDesktopDisplayMode", "SDL3") + ) )(displayID); [return: NativeTypeName("const SDL_DisplayMode *")] @@ -44265,8 +44930,11 @@ public static Ptr GetDesktopDisplayMode( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDisplayBounds", "SDL3") + (delegate* unmanaged)( + _slots[175] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[175] = nativeContext.LoadFunction("SDL_GetDisplayBounds", "SDL3") + ) )(displayID, rect); [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] @@ -44296,8 +44964,11 @@ Ref rect [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] float ISdl.GetDisplayContentScale([NativeTypeName("SDL_DisplayID")] uint displayID) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDisplayContentScale", "SDL3") + (delegate* unmanaged)( + _slots[176] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[176] = nativeContext.LoadFunction("SDL_GetDisplayContentScale", "SDL3") + ) )(displayID); [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayContentScale")] @@ -44308,8 +44979,11 @@ public static float GetDisplayContentScale([NativeTypeName("SDL_DisplayID")] uin [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Point* point) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDisplayForPoint", "SDL3") + (delegate* unmanaged)( + _slots[177] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[177] = nativeContext.LoadFunction("SDL_GetDisplayForPoint", "SDL3") + ) )(point); [return: NativeTypeName("SDL_DisplayID")] @@ -44337,8 +45011,11 @@ public static uint GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Ref< [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDisplayForRect", "SDL3") + (delegate* unmanaged)( + _slots[178] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[178] = nativeContext.LoadFunction("SDL_GetDisplayForRect", "SDL3") + ) )(rect); [return: NativeTypeName("SDL_DisplayID")] @@ -44366,8 +45043,11 @@ public static uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Ref ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDisplayForWindow", "SDL3") + (delegate* unmanaged)( + _slots[179] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[179] = nativeContext.LoadFunction("SDL_GetDisplayForWindow", "SDL3") + ) )(window); [return: NativeTypeName("SDL_DisplayID")] @@ -44390,8 +45070,11 @@ public static Ptr GetDisplayName([NativeTypeName("SDL_DisplayID")] uint d [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetDisplayNameRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDisplayName", "SDL3") + (delegate* unmanaged)( + _slots[180] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[180] = nativeContext.LoadFunction("SDL_GetDisplayName", "SDL3") + ) )(displayID); [return: NativeTypeName("const char *")] @@ -44403,8 +45086,11 @@ public static Ptr GetDisplayName([NativeTypeName("SDL_DisplayID")] uint d [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint displayID) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDisplayProperties", "SDL3") + (delegate* unmanaged)( + _slots[181] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[181] = nativeContext.LoadFunction("SDL_GetDisplayProperties", "SDL3") + ) )(displayID); [return: NativeTypeName("SDL_PropertiesID")] @@ -44415,9 +45101,13 @@ public static uint GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint d [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint* ISdl.GetDisplays(int* count) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetDisplays", "SDL3"))( - count - ); + ( + (delegate* unmanaged)( + _slots[182] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[182] = nativeContext.LoadFunction("SDL_GetDisplays", "SDL3") + ) + )(count); [return: NativeTypeName("SDL_DisplayID *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplays")] @@ -44442,8 +45132,11 @@ Ptr ISdl.GetDisplays(Ref count) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetDisplayUsableBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetDisplayUsableBounds", "SDL3") + (delegate* unmanaged)( + _slots[183] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[183] = nativeContext.LoadFunction("SDL_GetDisplayUsableBounds", "SDL3") + ) )(displayID, rect); [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] @@ -44484,7 +45177,13 @@ Ref rect [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetErrorRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetError", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[184] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[184] = nativeContext.LoadFunction("SDL_GetError", "SDL3") + ) + )(); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] @@ -44497,8 +45196,11 @@ int ISdl.GetEventFilter( void** userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetEventFilter", "SDL3") + (delegate* unmanaged)( + _slots[185] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[185] = nativeContext.LoadFunction("SDL_GetEventFilter", "SDL3") + ) )(filter, userdata); [return: NativeTypeName("SDL_bool")] @@ -44538,8 +45240,11 @@ float ISdl.GetFloatProperty( float default_value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetFloatProperty", "SDL3") + (delegate* unmanaged)( + _slots[186] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[186] = nativeContext.LoadFunction("SDL_GetFloatProperty", "SDL3") + ) )(props, name, default_value); [NativeFunction("SDL3", EntryPoint = "SDL_GetFloatProperty")] @@ -44578,8 +45283,14 @@ float default_value int* count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetFullscreenDisplayModes", "SDL3") + (delegate* unmanaged)( + _slots[187] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[187] = nativeContext.LoadFunction( + "SDL_GetFullscreenDisplayModes", + "SDL3" + ) + ) )(displayID, count); [return: NativeTypeName("const SDL_DisplayMode **")] @@ -44627,8 +45338,14 @@ GamepadAxis axis [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadAppleSFSymbolsNameForAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadAppleSFSymbolsNameForAxis", "SDL3") + (delegate* unmanaged)( + _slots[188] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[188] = nativeContext.LoadFunction( + "SDL_GetGamepadAppleSFSymbolsNameForAxis", + "SDL3" + ) + ) )(gamepad, axis); [return: NativeTypeName("const char *")] @@ -44660,8 +45377,14 @@ GamepadButton button GamepadButton button ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadAppleSFSymbolsNameForButton", "SDL3") + (delegate* unmanaged)( + _slots[189] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[189] = nativeContext.LoadFunction( + "SDL_GetGamepadAppleSFSymbolsNameForButton", + "SDL3" + ) + ) )(gamepad, button); [return: NativeTypeName("const char *")] @@ -44675,8 +45398,11 @@ GamepadButton button [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] short ISdl.GetGamepadAxis(GamepadHandle gamepad, GamepadAxis axis) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadAxis", "SDL3") + (delegate* unmanaged)( + _slots[190] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[190] = nativeContext.LoadFunction("SDL_GetGamepadAxis", "SDL3") + ) )(gamepad, axis); [return: NativeTypeName("Sint16")] @@ -44688,8 +45414,14 @@ public static short GetGamepadAxis(GamepadHandle gamepad, GamepadAxis axis) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadAxis ISdl.GetGamepadAxisFromString([NativeTypeName("const char *")] sbyte* str) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadAxisFromString", "SDL3") + (delegate* unmanaged)( + _slots[191] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[191] = nativeContext.LoadFunction( + "SDL_GetGamepadAxisFromString", + "SDL3" + ) + ) )(str); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxisFromString")] @@ -44717,8 +45449,11 @@ public static GamepadAxis GetGamepadAxisFromString( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadBinding** ISdl.GetGamepadBindings(GamepadHandle gamepad, int* count) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadBindings", "SDL3") + (delegate* unmanaged)( + _slots[192] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[192] = nativeContext.LoadFunction("SDL_GetGamepadBindings", "SDL3") + ) )(gamepad, count); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadBindings")] @@ -44744,8 +45479,11 @@ public static Ptr2D GetGamepadBindings(GamepadHandle gamepad, Re [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.GetGamepadButton(GamepadHandle gamepad, GamepadButton button) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadButton", "SDL3") + (delegate* unmanaged)( + _slots[193] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[193] = nativeContext.LoadFunction("SDL_GetGamepadButton", "SDL3") + ) )(gamepad, button); [return: NativeTypeName("Uint8")] @@ -44757,8 +45495,14 @@ public static byte GetGamepadButton(GamepadHandle gamepad, GamepadButton button) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadButton ISdl.GetGamepadButtonFromString([NativeTypeName("const char *")] sbyte* str) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadButtonFromString", "SDL3") + (delegate* unmanaged)( + _slots[194] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[194] = nativeContext.LoadFunction( + "SDL_GetGamepadButtonFromString", + "SDL3" + ) + ) )(str); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonFromString")] @@ -44786,8 +45530,11 @@ public static GamepadButton GetGamepadButtonFromString( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadButtonLabel ISdl.GetGamepadButtonLabel(GamepadHandle gamepad, GamepadButton button) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadButtonLabel", "SDL3") + (delegate* unmanaged)( + _slots[195] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[195] = nativeContext.LoadFunction("SDL_GetGamepadButtonLabel", "SDL3") + ) )(gamepad, button); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonLabel")] @@ -44800,8 +45547,14 @@ GamepadButton button [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadButtonLabel ISdl.GetGamepadButtonLabelForType(GamepadType type, GamepadButton button) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadButtonLabelForType", "SDL3") + (delegate* unmanaged)( + _slots[196] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[196] = nativeContext.LoadFunction( + "SDL_GetGamepadButtonLabelForType", + "SDL3" + ) + ) )(type, button); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonLabelForType")] @@ -44814,8 +45567,14 @@ GamepadButton button [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] JoystickConnectionState ISdl.GetGamepadConnectionState(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadConnectionState", "SDL3") + (delegate* unmanaged)( + _slots[197] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[197] = nativeContext.LoadFunction( + "SDL_GetGamepadConnectionState", + "SDL3" + ) + ) )(gamepad); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadConnectionState")] @@ -44826,8 +45585,14 @@ public static JoystickConnectionState GetGamepadConnectionState(GamepadHandle ga [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetGamepadFirmwareVersion(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadFirmwareVersion", "SDL3") + (delegate* unmanaged)( + _slots[198] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[198] = nativeContext.LoadFunction( + "SDL_GetGamepadFirmwareVersion", + "SDL3" + ) + ) )(gamepad); [return: NativeTypeName("Uint16")] @@ -44841,8 +45606,14 @@ GamepadHandle ISdl.GetGamepadFromInstanceID( [NativeTypeName("SDL_JoystickID")] uint instance_id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadFromInstanceID", "SDL3") + (delegate* unmanaged)( + _slots[199] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[199] = nativeContext.LoadFunction( + "SDL_GetGamepadFromInstanceID", + "SDL3" + ) + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] @@ -44854,8 +45625,14 @@ public static GamepadHandle GetGamepadFromInstanceID( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadHandle ISdl.GetGamepadFromPlayerIndex(int player_index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadFromPlayerIndex", "SDL3") + (delegate* unmanaged)( + _slots[200] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[200] = nativeContext.LoadFunction( + "SDL_GetGamepadFromPlayerIndex", + "SDL3" + ) + ) )(player_index); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] @@ -44866,8 +45643,11 @@ public static GamepadHandle GetGamepadFromPlayerIndex(int player_index) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Guid ISdl.GetGamepadInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadInstanceGUID", "SDL3") + (delegate* unmanaged)( + _slots[201] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[201] = nativeContext.LoadFunction("SDL_GetGamepadInstanceGUID", "SDL3") + ) )(instance_id); [return: NativeTypeName("SDL_JoystickGUID")] @@ -44880,8 +45660,11 @@ public static Guid GetGamepadInstanceGuid( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetGamepadInstanceID(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadInstanceID", "SDL3") + (delegate* unmanaged)( + _slots[202] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[202] = nativeContext.LoadFunction("SDL_GetGamepadInstanceID", "SDL3") + ) )(gamepad); [return: NativeTypeName("SDL_JoystickID")] @@ -44906,8 +45689,14 @@ public static Ptr GetGamepadInstanceMapping( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadInstanceMappingRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadInstanceMapping", "SDL3") + (delegate* unmanaged)( + _slots[203] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[203] = nativeContext.LoadFunction( + "SDL_GetGamepadInstanceMapping", + "SDL3" + ) + ) )(instance_id); [return: NativeTypeName("char *")] @@ -44932,8 +45721,11 @@ public static Ptr GetGamepadInstanceName( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadInstanceNameRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadInstanceName", "SDL3") + (delegate* unmanaged)( + _slots[204] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[204] = nativeContext.LoadFunction("SDL_GetGamepadInstanceName", "SDL3") + ) )(instance_id); [return: NativeTypeName("const char *")] @@ -44958,8 +45750,11 @@ public static Ptr GetGamepadInstancePath( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadInstancePathRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadInstancePath", "SDL3") + (delegate* unmanaged)( + _slots[205] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[205] = nativeContext.LoadFunction("SDL_GetGamepadInstancePath", "SDL3") + ) )(instance_id); [return: NativeTypeName("const char *")] @@ -44972,8 +45767,14 @@ public static Ptr GetGamepadInstancePath( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetGamepadInstancePlayerIndex([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadInstancePlayerIndex", "SDL3") + (delegate* unmanaged)( + _slots[206] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[206] = nativeContext.LoadFunction( + "SDL_GetGamepadInstancePlayerIndex", + "SDL3" + ) + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePlayerIndex")] @@ -44985,8 +45786,14 @@ public static int GetGamepadInstancePlayerIndex( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetGamepadInstanceProduct([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadInstanceProduct", "SDL3") + (delegate* unmanaged)( + _slots[207] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[207] = nativeContext.LoadFunction( + "SDL_GetGamepadInstanceProduct", + "SDL3" + ) + ) )(instance_id); [return: NativeTypeName("Uint16")] @@ -45001,8 +45808,14 @@ ushort ISdl.GetGamepadInstanceProductVersion( [NativeTypeName("SDL_JoystickID")] uint instance_id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadInstanceProductVersion", "SDL3") + (delegate* unmanaged)( + _slots[208] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[208] = nativeContext.LoadFunction( + "SDL_GetGamepadInstanceProductVersion", + "SDL3" + ) + ) )(instance_id); [return: NativeTypeName("Uint16")] @@ -45015,8 +45828,11 @@ public static ushort GetGamepadInstanceProductVersion( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadType ISdl.GetGamepadInstanceType([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadInstanceType", "SDL3") + (delegate* unmanaged)( + _slots[209] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[209] = nativeContext.LoadFunction("SDL_GetGamepadInstanceType", "SDL3") + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceType")] @@ -45028,8 +45844,14 @@ public static GamepadType GetGamepadInstanceType( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetGamepadInstanceVendor([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadInstanceVendor", "SDL3") + (delegate* unmanaged)( + _slots[210] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[210] = nativeContext.LoadFunction( + "SDL_GetGamepadInstanceVendor", + "SDL3" + ) + ) )(instance_id); [return: NativeTypeName("Uint16")] @@ -45042,8 +45864,11 @@ public static ushort GetGamepadInstanceVendor( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] JoystickHandle ISdl.GetGamepadJoystick(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadJoystick", "SDL3") + (delegate* unmanaged)( + _slots[211] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[211] = nativeContext.LoadFunction("SDL_GetGamepadJoystick", "SDL3") + ) )(gamepad); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadJoystick")] @@ -45077,8 +45902,14 @@ public static Ptr GetGamepadMappingForGuid( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadMappingForGuidRaw([NativeTypeName("SDL_JoystickGUID")] Guid guid) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadMappingForGUID", "SDL3") + (delegate* unmanaged)( + _slots[213] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[213] = nativeContext.LoadFunction( + "SDL_GetGamepadMappingForGUID", + "SDL3" + ) + ) )(guid); [return: NativeTypeName("char *")] @@ -45091,8 +45922,11 @@ public static Ptr GetGamepadMappingForGuid( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadMappingRaw(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadMapping", "SDL3") + (delegate* unmanaged)( + _slots[212] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[212] = nativeContext.LoadFunction("SDL_GetGamepadMapping", "SDL3") + ) )(gamepad); [return: NativeTypeName("char *")] @@ -45104,8 +45938,11 @@ public static Ptr GetGamepadMappingForGuid( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte** ISdl.GetGamepadMappings(int* count) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadMappings", "SDL3") + (delegate* unmanaged)( + _slots[214] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[214] = nativeContext.LoadFunction("SDL_GetGamepadMappings", "SDL3") + ) )(count); [return: NativeTypeName("char **")] @@ -45143,8 +45980,11 @@ public static Ptr GetGamepadName(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadNameRaw(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadName", "SDL3") + (delegate* unmanaged)( + _slots[215] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[215] = nativeContext.LoadFunction("SDL_GetGamepadName", "SDL3") + ) )(gamepad); [return: NativeTypeName("const char *")] @@ -45167,8 +46007,11 @@ public static Ptr GetGamepadPath(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadPathRaw(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadPath", "SDL3") + (delegate* unmanaged)( + _slots[216] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[216] = nativeContext.LoadFunction("SDL_GetGamepadPath", "SDL3") + ) )(gamepad); [return: NativeTypeName("const char *")] @@ -45180,8 +46023,11 @@ public static Ptr GetGamepadPath(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetGamepadPlayerIndex(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadPlayerIndex", "SDL3") + (delegate* unmanaged)( + _slots[217] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[217] = nativeContext.LoadFunction("SDL_GetGamepadPlayerIndex", "SDL3") + ) )(gamepad); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndex")] @@ -45192,8 +46038,11 @@ public static int GetGamepadPlayerIndex(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] PowerState ISdl.GetGamepadPowerInfo(GamepadHandle gamepad, int* percent) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadPowerInfo", "SDL3") + (delegate* unmanaged)( + _slots[218] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[218] = nativeContext.LoadFunction("SDL_GetGamepadPowerInfo", "SDL3") + ) )(gamepad, percent); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPowerInfo")] @@ -45219,8 +46068,11 @@ public static PowerState GetGamepadPowerInfo(GamepadHandle gamepad, Ref per [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetGamepadProduct(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadProduct", "SDL3") + (delegate* unmanaged)( + _slots[219] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[219] = nativeContext.LoadFunction("SDL_GetGamepadProduct", "SDL3") + ) )(gamepad); [return: NativeTypeName("Uint16")] @@ -45232,8 +46084,14 @@ public static ushort GetGamepadProduct(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetGamepadProductVersion(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadProductVersion", "SDL3") + (delegate* unmanaged)( + _slots[220] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[220] = nativeContext.LoadFunction( + "SDL_GetGamepadProductVersion", + "SDL3" + ) + ) )(gamepad); [return: NativeTypeName("Uint16")] @@ -45245,8 +46103,11 @@ public static ushort GetGamepadProductVersion(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetGamepadProperties(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadProperties", "SDL3") + (delegate* unmanaged)( + _slots[221] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[221] = nativeContext.LoadFunction("SDL_GetGamepadProperties", "SDL3") + ) )(gamepad); [return: NativeTypeName("SDL_PropertiesID")] @@ -45257,9 +46118,13 @@ public static uint GetGamepadProperties(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint* ISdl.GetGamepads(int* count) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetGamepads", "SDL3"))( - count - ); + ( + (delegate* unmanaged)( + _slots[222] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[222] = nativeContext.LoadFunction("SDL_GetGamepads", "SDL3") + ) + )(count); [return: NativeTypeName("SDL_JoystickID *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepads")] @@ -45289,8 +46154,11 @@ int ISdl.GetGamepadSensorData( int num_values ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadSensorData", "SDL3") + (delegate* unmanaged)( + _slots[223] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[223] = nativeContext.LoadFunction("SDL_GetGamepadSensorData", "SDL3") + ) )(gamepad, type, data, num_values); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] @@ -45329,8 +46197,14 @@ int num_values [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] float ISdl.GetGamepadSensorDataRate(GamepadHandle gamepad, SensorType type) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadSensorDataRate", "SDL3") + (delegate* unmanaged)( + _slots[224] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[224] = nativeContext.LoadFunction( + "SDL_GetGamepadSensorDataRate", + "SDL3" + ) + ) )(gamepad, type); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorDataRate")] @@ -45352,8 +46226,11 @@ public static Ptr GetGamepadSerial(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadSerialRaw(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadSerial", "SDL3") + (delegate* unmanaged)( + _slots[225] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[225] = nativeContext.LoadFunction("SDL_GetGamepadSerial", "SDL3") + ) )(gamepad); [return: NativeTypeName("const char *")] @@ -45365,8 +46242,11 @@ public static Ptr GetGamepadSerial(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetGamepadSteamHandle(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadSteamHandle", "SDL3") + (delegate* unmanaged)( + _slots[226] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[226] = nativeContext.LoadFunction("SDL_GetGamepadSteamHandle", "SDL3") + ) )(gamepad); [return: NativeTypeName("Uint64")] @@ -45389,8 +46269,14 @@ public static Ptr GetGamepadStringForAxis(GamepadAxis axis) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadStringForAxisRaw(GamepadAxis axis) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadStringForAxis", "SDL3") + (delegate* unmanaged)( + _slots[227] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[227] = nativeContext.LoadFunction( + "SDL_GetGamepadStringForAxis", + "SDL3" + ) + ) )(axis); [return: NativeTypeName("const char *")] @@ -45413,8 +46299,14 @@ public static Ptr GetGamepadStringForButton(GamepadButton button) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadStringForButtonRaw(GamepadButton button) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadStringForButton", "SDL3") + (delegate* unmanaged)( + _slots[228] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[228] = nativeContext.LoadFunction( + "SDL_GetGamepadStringForButton", + "SDL3" + ) + ) )(button); [return: NativeTypeName("const char *")] @@ -45437,8 +46329,14 @@ public static Ptr GetGamepadStringForType(GamepadType type) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadStringForTypeRaw(GamepadType type) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadStringForType", "SDL3") + (delegate* unmanaged)( + _slots[229] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[229] = nativeContext.LoadFunction( + "SDL_GetGamepadStringForType", + "SDL3" + ) + ) )(type); [return: NativeTypeName("const char *")] @@ -45458,8 +46356,14 @@ int ISdl.GetGamepadTouchpadFinger( float* pressure ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadTouchpadFinger", "SDL3") + (delegate* unmanaged)( + _slots[230] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[230] = nativeContext.LoadFunction( + "SDL_GetGamepadTouchpadFinger", + "SDL3" + ) + ) )(gamepad, touchpad, finger, state, x, y, pressure); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] @@ -45519,8 +46423,11 @@ Ref pressure [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadType ISdl.GetGamepadType(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadType", "SDL3") + (delegate* unmanaged)( + _slots[231] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[231] = nativeContext.LoadFunction("SDL_GetGamepadType", "SDL3") + ) )(gamepad); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadType")] @@ -45531,8 +46438,14 @@ public static GamepadType GetGamepadType(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadType ISdl.GetGamepadTypeFromString([NativeTypeName("const char *")] sbyte* str) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadTypeFromString", "SDL3") + (delegate* unmanaged)( + _slots[232] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[232] = nativeContext.LoadFunction( + "SDL_GetGamepadTypeFromString", + "SDL3" + ) + ) )(str); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeFromString")] @@ -45560,8 +46473,11 @@ public static GamepadType GetGamepadTypeFromString( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetGamepadVendor(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGamepadVendor", "SDL3") + (delegate* unmanaged)( + _slots[233] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[233] = nativeContext.LoadFunction("SDL_GetGamepadVendor", "SDL3") + ) )(gamepad); [return: NativeTypeName("Uint16")] @@ -45573,8 +46489,11 @@ public static ushort GetGamepadVendor(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetGlobalMouseState(float* x, float* y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGlobalMouseState", "SDL3") + (delegate* unmanaged)( + _slots[234] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[234] = nativeContext.LoadFunction("SDL_GetGlobalMouseState", "SDL3") + ) )(x, y); [return: NativeTypeName("Uint32")] @@ -45603,7 +46522,11 @@ public static uint GetGlobalMouseState(Ref x, Ref y) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetGlobalProperties() => ( - (delegate* unmanaged)nativeContext.LoadFunction("SDL_GetGlobalProperties", "SDL3") + (delegate* unmanaged)( + _slots[235] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[235] = nativeContext.LoadFunction("SDL_GetGlobalProperties", "SDL3") + ) )(); [return: NativeTypeName("SDL_PropertiesID")] @@ -45614,8 +46537,11 @@ uint ISdl.GetGlobalProperties() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GetGrabbedWindow() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetGrabbedWindow", "SDL3") + (delegate* unmanaged)( + _slots[236] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[236] = nativeContext.LoadFunction("SDL_GetGrabbedWindow", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] @@ -45625,8 +46551,11 @@ WindowHandle ISdl.GetGrabbedWindow() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetHapticEffectStatus(HapticHandle haptic, int effect) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetHapticEffectStatus", "SDL3") + (delegate* unmanaged)( + _slots[237] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[237] = nativeContext.LoadFunction("SDL_GetHapticEffectStatus", "SDL3") + ) )(haptic, effect); [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] @@ -45637,8 +46566,11 @@ public static int GetHapticEffectStatus(HapticHandle haptic, int effect) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetHapticFeatures(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetHapticFeatures", "SDL3") + (delegate* unmanaged)( + _slots[238] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[238] = nativeContext.LoadFunction("SDL_GetHapticFeatures", "SDL3") + ) )(haptic); [return: NativeTypeName("Uint32")] @@ -45650,8 +46582,14 @@ public static uint GetHapticFeatures(HapticHandle haptic) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] HapticHandle ISdl.GetHapticFromInstanceID([NativeTypeName("SDL_HapticID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetHapticFromInstanceID", "SDL3") + (delegate* unmanaged)( + _slots[239] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[239] = nativeContext.LoadFunction( + "SDL_GetHapticFromInstanceID", + "SDL3" + ) + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] @@ -45663,8 +46601,11 @@ public static HapticHandle GetHapticFromInstanceID( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetHapticInstanceID(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetHapticInstanceID", "SDL3") + (delegate* unmanaged)( + _slots[240] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[240] = nativeContext.LoadFunction("SDL_GetHapticInstanceID", "SDL3") + ) )(haptic); [return: NativeTypeName("SDL_HapticID")] @@ -45688,8 +46629,11 @@ public static Ptr GetHapticInstanceName( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetHapticInstanceNameRaw([NativeTypeName("SDL_HapticID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetHapticInstanceName", "SDL3") + (delegate* unmanaged)( + _slots[241] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[241] = nativeContext.LoadFunction("SDL_GetHapticInstanceName", "SDL3") + ) )(instance_id); [return: NativeTypeName("const char *")] @@ -45712,8 +46656,11 @@ Ptr ISdl.GetHapticName(HapticHandle haptic) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetHapticNameRaw(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetHapticName", "SDL3") + (delegate* unmanaged)( + _slots[242] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[242] = nativeContext.LoadFunction("SDL_GetHapticName", "SDL3") + ) )(haptic); [return: NativeTypeName("const char *")] @@ -45724,9 +46671,13 @@ Ptr ISdl.GetHapticName(HapticHandle haptic) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint* ISdl.GetHaptics(int* count) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetHaptics", "SDL3"))( - count - ); + ( + (delegate* unmanaged)( + _slots[243] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[243] = nativeContext.LoadFunction("SDL_GetHaptics", "SDL3") + ) + )(count); [return: NativeTypeName("SDL_HapticID *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHaptics")] @@ -45750,9 +46701,13 @@ Ptr ISdl.GetHaptics(Ref count) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetHint([NativeTypeName("const char *")] sbyte* name) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetHint", "SDL3"))( - name - ); + ( + (delegate* unmanaged)( + _slots[244] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[244] = nativeContext.LoadFunction("SDL_GetHint", "SDL3") + ) + )(name); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHint")] @@ -45782,8 +46737,11 @@ int ISdl.GetHintBoolean( [NativeTypeName("SDL_bool")] int default_value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetHintBoolean", "SDL3") + (delegate* unmanaged)( + _slots[245] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[245] = nativeContext.LoadFunction("SDL_GetHintBoolean", "SDL3") + ) )(name, default_value); [return: NativeTypeName("SDL_bool")] @@ -45818,8 +46776,11 @@ public static MaybeBool GetHintBoolean( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetIOProperties(IOStreamHandle context) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetIOProperties", "SDL3") + (delegate* unmanaged)( + _slots[246] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[246] = nativeContext.LoadFunction("SDL_GetIOProperties", "SDL3") + ) )(context); [return: NativeTypeName("SDL_PropertiesID")] @@ -45831,8 +46792,11 @@ public static uint GetIOProperties(IOStreamHandle context) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] long ISdl.GetIOSize(IOStreamHandle context) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetIOSize", "SDL3") + (delegate* unmanaged)( + _slots[247] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[247] = nativeContext.LoadFunction("SDL_GetIOSize", "SDL3") + ) )(context); [return: NativeTypeName("Sint64")] @@ -45843,8 +46807,11 @@ long ISdl.GetIOSize(IOStreamHandle context) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] IOStatus ISdl.GetIOStatus(IOStreamHandle context) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetIOStatus", "SDL3") + (delegate* unmanaged)( + _slots[248] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[248] = nativeContext.LoadFunction("SDL_GetIOStatus", "SDL3") + ) )(context); [NativeFunction("SDL3", EntryPoint = "SDL_GetIOStatus")] @@ -45854,8 +46821,11 @@ IOStatus ISdl.GetIOStatus(IOStreamHandle context) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] short ISdl.GetJoystickAxis(JoystickHandle joystick, int axis) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickAxis", "SDL3") + (delegate* unmanaged)( + _slots[249] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[249] = nativeContext.LoadFunction("SDL_GetJoystickAxis", "SDL3") + ) )(joystick, axis); [return: NativeTypeName("Sint16")] @@ -45871,8 +46841,14 @@ int ISdl.GetJoystickAxisInitialState( [NativeTypeName("Sint16 *")] short* state ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickAxisInitialState", "SDL3") + (delegate* unmanaged)( + _slots[250] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[250] = nativeContext.LoadFunction( + "SDL_GetJoystickAxisInitialState", + "SDL3" + ) + ) )(joystick, axis, state); [return: NativeTypeName("SDL_bool")] @@ -45911,8 +46887,11 @@ public static MaybeBool GetJoystickAxisInitialState( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickBall", "SDL3") + (delegate* unmanaged)( + _slots[251] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[251] = nativeContext.LoadFunction("SDL_GetJoystickBall", "SDL3") + ) )(joystick, ball, dx, dy); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] @@ -45943,8 +46922,11 @@ Ref dy [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.GetJoystickButton(JoystickHandle joystick, int button) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickButton", "SDL3") + (delegate* unmanaged)( + _slots[252] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[252] = nativeContext.LoadFunction("SDL_GetJoystickButton", "SDL3") + ) )(joystick, button); [return: NativeTypeName("Uint8")] @@ -45956,8 +46938,14 @@ public static byte GetJoystickButton(JoystickHandle joystick, int button) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] JoystickConnectionState ISdl.GetJoystickConnectionState(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickConnectionState", "SDL3") + (delegate* unmanaged)( + _slots[253] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[253] = nativeContext.LoadFunction( + "SDL_GetJoystickConnectionState", + "SDL3" + ) + ) )(joystick); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickConnectionState")] @@ -45968,8 +46956,14 @@ public static JoystickConnectionState GetJoystickConnectionState(JoystickHandle [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetJoystickFirmwareVersion(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickFirmwareVersion", "SDL3") + (delegate* unmanaged)( + _slots[254] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[254] = nativeContext.LoadFunction( + "SDL_GetJoystickFirmwareVersion", + "SDL3" + ) + ) )(joystick); [return: NativeTypeName("Uint16")] @@ -45983,8 +46977,14 @@ JoystickHandle ISdl.GetJoystickFromInstanceID( [NativeTypeName("SDL_JoystickID")] uint instance_id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickFromInstanceID", "SDL3") + (delegate* unmanaged)( + _slots[255] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[255] = nativeContext.LoadFunction( + "SDL_GetJoystickFromInstanceID", + "SDL3" + ) + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] @@ -45996,8 +46996,14 @@ public static JoystickHandle GetJoystickFromInstanceID( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] JoystickHandle ISdl.GetJoystickFromPlayerIndex(int player_index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickFromPlayerIndex", "SDL3") + (delegate* unmanaged)( + _slots[256] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[256] = nativeContext.LoadFunction( + "SDL_GetJoystickFromPlayerIndex", + "SDL3" + ) + ) )(player_index); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] @@ -46008,8 +47014,11 @@ public static JoystickHandle GetJoystickFromPlayerIndex(int player_index) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Guid ISdl.GetJoystickGuid(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickGUID", "SDL3") + (delegate* unmanaged)( + _slots[257] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[257] = nativeContext.LoadFunction("SDL_GetJoystickGUID", "SDL3") + ) )(joystick); [return: NativeTypeName("SDL_JoystickGUID")] @@ -46021,8 +47030,14 @@ public static Guid GetJoystickGuid(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Guid ISdl.GetJoystickGuidFromString([NativeTypeName("const char *")] sbyte* pchGUID) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickGUIDFromString", "SDL3") + (delegate* unmanaged)( + _slots[258] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[258] = nativeContext.LoadFunction( + "SDL_GetJoystickGUIDFromString", + "SDL3" + ) + ) )(pchGUID); [return: NativeTypeName("SDL_JoystickGUID")] @@ -46057,8 +47072,11 @@ void ISdl.GetJoystickGuidInfo( [NativeTypeName("Uint16 *")] ushort* crc16 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickGUIDInfo", "SDL3") + (delegate* unmanaged)( + _slots[259] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[259] = nativeContext.LoadFunction("SDL_GetJoystickGUIDInfo", "SDL3") + ) )(guid, vendor, product, version, crc16); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] @@ -46113,8 +47131,11 @@ int ISdl.GetJoystickGuidString( int cbGUID ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickGUIDString", "SDL3") + (delegate* unmanaged)( + _slots[260] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[260] = nativeContext.LoadFunction("SDL_GetJoystickGUIDString", "SDL3") + ) )(guid, pszGUID, cbGUID); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDString")] @@ -46150,8 +47171,11 @@ int cbGUID [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.GetJoystickHat(JoystickHandle joystick, int hat) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickHat", "SDL3") + (delegate* unmanaged)( + _slots[261] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[261] = nativeContext.LoadFunction("SDL_GetJoystickHat", "SDL3") + ) )(joystick, hat); [return: NativeTypeName("Uint8")] @@ -46163,8 +47187,14 @@ public static byte GetJoystickHat(JoystickHandle joystick, int hat) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Guid ISdl.GetJoystickInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickInstanceGUID", "SDL3") + (delegate* unmanaged)( + _slots[262] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[262] = nativeContext.LoadFunction( + "SDL_GetJoystickInstanceGUID", + "SDL3" + ) + ) )(instance_id); [return: NativeTypeName("SDL_JoystickGUID")] @@ -46177,8 +47207,11 @@ public static Guid GetJoystickInstanceGuid( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetJoystickInstanceID(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickInstanceID", "SDL3") + (delegate* unmanaged)( + _slots[263] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[263] = nativeContext.LoadFunction("SDL_GetJoystickInstanceID", "SDL3") + ) )(joystick); [return: NativeTypeName("SDL_JoystickID")] @@ -46202,8 +47235,14 @@ public static Ptr GetJoystickInstanceName( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetJoystickInstanceNameRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickInstanceName", "SDL3") + (delegate* unmanaged)( + _slots[264] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[264] = nativeContext.LoadFunction( + "SDL_GetJoystickInstanceName", + "SDL3" + ) + ) )(instance_id); [return: NativeTypeName("const char *")] @@ -46228,8 +47267,14 @@ public static Ptr GetJoystickInstancePath( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetJoystickInstancePathRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickInstancePath", "SDL3") + (delegate* unmanaged)( + _slots[265] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[265] = nativeContext.LoadFunction( + "SDL_GetJoystickInstancePath", + "SDL3" + ) + ) )(instance_id); [return: NativeTypeName("const char *")] @@ -46242,8 +47287,14 @@ public static Ptr GetJoystickInstancePath( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetJoystickInstancePlayerIndex([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickInstancePlayerIndex", "SDL3") + (delegate* unmanaged)( + _slots[266] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[266] = nativeContext.LoadFunction( + "SDL_GetJoystickInstancePlayerIndex", + "SDL3" + ) + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePlayerIndex")] @@ -46255,8 +47306,14 @@ public static int GetJoystickInstancePlayerIndex( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetJoystickInstanceProduct([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickInstanceProduct", "SDL3") + (delegate* unmanaged)( + _slots[267] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[267] = nativeContext.LoadFunction( + "SDL_GetJoystickInstanceProduct", + "SDL3" + ) + ) )(instance_id); [return: NativeTypeName("Uint16")] @@ -46271,8 +47328,14 @@ ushort ISdl.GetJoystickInstanceProductVersion( [NativeTypeName("SDL_JoystickID")] uint instance_id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickInstanceProductVersion", "SDL3") + (delegate* unmanaged)( + _slots[268] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[268] = nativeContext.LoadFunction( + "SDL_GetJoystickInstanceProductVersion", + "SDL3" + ) + ) )(instance_id); [return: NativeTypeName("Uint16")] @@ -46287,8 +47350,14 @@ JoystickType ISdl.GetJoystickInstanceType( [NativeTypeName("SDL_JoystickID")] uint instance_id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickInstanceType", "SDL3") + (delegate* unmanaged)( + _slots[269] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[269] = nativeContext.LoadFunction( + "SDL_GetJoystickInstanceType", + "SDL3" + ) + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceType")] @@ -46300,8 +47369,14 @@ public static JoystickType GetJoystickInstanceType( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetJoystickInstanceVendor([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickInstanceVendor", "SDL3") + (delegate* unmanaged)( + _slots[270] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[270] = nativeContext.LoadFunction( + "SDL_GetJoystickInstanceVendor", + "SDL3" + ) + ) )(instance_id); [return: NativeTypeName("Uint16")] @@ -46325,8 +47400,11 @@ public static Ptr GetJoystickName(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetJoystickNameRaw(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickName", "SDL3") + (delegate* unmanaged)( + _slots[271] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[271] = nativeContext.LoadFunction("SDL_GetJoystickName", "SDL3") + ) )(joystick); [return: NativeTypeName("const char *")] @@ -46349,8 +47427,11 @@ public static Ptr GetJoystickPath(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetJoystickPathRaw(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickPath", "SDL3") + (delegate* unmanaged)( + _slots[272] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[272] = nativeContext.LoadFunction("SDL_GetJoystickPath", "SDL3") + ) )(joystick); [return: NativeTypeName("const char *")] @@ -46362,8 +47443,11 @@ public static Ptr GetJoystickPath(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetJoystickPlayerIndex(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickPlayerIndex", "SDL3") + (delegate* unmanaged)( + _slots[273] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[273] = nativeContext.LoadFunction("SDL_GetJoystickPlayerIndex", "SDL3") + ) )(joystick); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndex")] @@ -46374,8 +47458,11 @@ public static int GetJoystickPlayerIndex(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] PowerState ISdl.GetJoystickPowerInfo(JoystickHandle joystick, int* percent) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickPowerInfo", "SDL3") + (delegate* unmanaged)( + _slots[274] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[274] = nativeContext.LoadFunction("SDL_GetJoystickPowerInfo", "SDL3") + ) )(joystick, percent); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPowerInfo")] @@ -46401,8 +47488,11 @@ public static PowerState GetJoystickPowerInfo(JoystickHandle joystick, Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetJoystickProduct(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickProduct", "SDL3") + (delegate* unmanaged)( + _slots[275] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[275] = nativeContext.LoadFunction("SDL_GetJoystickProduct", "SDL3") + ) )(joystick); [return: NativeTypeName("Uint16")] @@ -46414,8 +47504,14 @@ public static ushort GetJoystickProduct(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetJoystickProductVersion(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickProductVersion", "SDL3") + (delegate* unmanaged)( + _slots[276] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[276] = nativeContext.LoadFunction( + "SDL_GetJoystickProductVersion", + "SDL3" + ) + ) )(joystick); [return: NativeTypeName("Uint16")] @@ -46427,8 +47523,11 @@ public static ushort GetJoystickProductVersion(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetJoystickProperties(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickProperties", "SDL3") + (delegate* unmanaged)( + _slots[277] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[277] = nativeContext.LoadFunction("SDL_GetJoystickProperties", "SDL3") + ) )(joystick); [return: NativeTypeName("SDL_PropertiesID")] @@ -46439,9 +47538,13 @@ public static uint GetJoystickProperties(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint* ISdl.GetJoysticks(int* count) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetJoysticks", "SDL3"))( - count - ); + ( + (delegate* unmanaged)( + _slots[278] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[278] = nativeContext.LoadFunction("SDL_GetJoysticks", "SDL3") + ) + )(count); [return: NativeTypeName("SDL_JoystickID *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoysticks")] @@ -46477,8 +47580,11 @@ public static Ptr GetJoystickSerial(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetJoystickSerialRaw(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickSerial", "SDL3") + (delegate* unmanaged)( + _slots[279] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[279] = nativeContext.LoadFunction("SDL_GetJoystickSerial", "SDL3") + ) )(joystick); [return: NativeTypeName("const char *")] @@ -46490,8 +47596,11 @@ public static Ptr GetJoystickSerial(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] JoystickType ISdl.GetJoystickType(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickType", "SDL3") + (delegate* unmanaged)( + _slots[280] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[280] = nativeContext.LoadFunction("SDL_GetJoystickType", "SDL3") + ) )(joystick); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickType")] @@ -46502,8 +47611,11 @@ public static JoystickType GetJoystickType(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetJoystickVendor(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetJoystickVendor", "SDL3") + (delegate* unmanaged)( + _slots[281] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[281] = nativeContext.LoadFunction("SDL_GetJoystickVendor", "SDL3") + ) )(joystick); [return: NativeTypeName("Uint16")] @@ -46515,8 +47627,11 @@ public static ushort GetJoystickVendor(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GetKeyboardFocus() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetKeyboardFocus", "SDL3") + (delegate* unmanaged)( + _slots[282] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[282] = nativeContext.LoadFunction("SDL_GetKeyboardFocus", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] @@ -46538,8 +47653,14 @@ public static Ptr GetKeyboardInstanceName( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetKeyboardInstanceNameRaw([NativeTypeName("SDL_KeyboardID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetKeyboardInstanceName", "SDL3") + (delegate* unmanaged)( + _slots[283] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[283] = nativeContext.LoadFunction( + "SDL_GetKeyboardInstanceName", + "SDL3" + ) + ) )(instance_id); [return: NativeTypeName("const char *")] @@ -46551,9 +47672,13 @@ public static Ptr GetKeyboardInstanceName( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint* ISdl.GetKeyboards(int* count) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetKeyboards", "SDL3"))( - count - ); + ( + (delegate* unmanaged)( + _slots[284] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[284] = nativeContext.LoadFunction("SDL_GetKeyboards", "SDL3") + ) + )(count); [return: NativeTypeName("SDL_KeyboardID *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboards")] @@ -46578,8 +47703,11 @@ Ptr ISdl.GetKeyboards(Ref count) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte* ISdl.GetKeyboardState(int* numkeys) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetKeyboardState", "SDL3") + (delegate* unmanaged)( + _slots[285] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[285] = nativeContext.LoadFunction("SDL_GetKeyboardState", "SDL3") + ) )(numkeys); [return: NativeTypeName("const Uint8 *")] @@ -46606,8 +47734,11 @@ public static Ptr GetKeyboardState(Ref numkeys) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetKeyFromName", "SDL3") + (delegate* unmanaged)( + _slots[286] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[286] = nativeContext.LoadFunction("SDL_GetKeyFromName", "SDL3") + ) )(name); [return: NativeTypeName("SDL_Keycode")] @@ -46635,8 +47766,11 @@ public static int GetKeyFromName([NativeTypeName("const char *")] Ref nam [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetKeyFromScancode(Scancode scancode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetKeyFromScancode", "SDL3") + (delegate* unmanaged)( + _slots[287] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[287] = nativeContext.LoadFunction("SDL_GetKeyFromScancode", "SDL3") + ) )(scancode); [return: NativeTypeName("SDL_Keycode")] @@ -46658,9 +47792,13 @@ public static Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int key) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetKeyNameRaw([NativeTypeName("SDL_Keycode")] int key) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetKeyName", "SDL3"))( - key - ); + ( + (delegate* unmanaged)( + _slots[288] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[288] = nativeContext.LoadFunction("SDL_GetKeyName", "SDL3") + ) + )(key); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] @@ -46674,8 +47812,11 @@ void ISdl.GetLogOutputFunction( void** userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetLogOutputFunction", "SDL3") + (delegate* unmanaged)( + _slots[289] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[289] = nativeContext.LoadFunction("SDL_GetLogOutputFunction", "SDL3") + ) )(callback, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_GetLogOutputFunction")] @@ -46716,8 +47857,14 @@ int ISdl.GetMasksForPixelFormatEnum( [NativeTypeName("Uint32 *")] uint* Amask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetMasksForPixelFormatEnum", "SDL3") + (delegate* unmanaged)( + _slots[290] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[290] = nativeContext.LoadFunction( + "SDL_GetMasksForPixelFormatEnum", + "SDL3" + ) + ) )(format, bpp, Rmask, Gmask, Bmask, Amask); [return: NativeTypeName("SDL_bool")] @@ -46777,8 +47924,11 @@ public static MaybeBool GetMasksForPixelFormatEnum( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetMaxHapticEffects(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetMaxHapticEffects", "SDL3") + (delegate* unmanaged)( + _slots[291] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[291] = nativeContext.LoadFunction("SDL_GetMaxHapticEffects", "SDL3") + ) )(haptic); [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffects")] @@ -46789,8 +47939,14 @@ public static int GetMaxHapticEffects(HapticHandle haptic) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetMaxHapticEffectsPlaying(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetMaxHapticEffectsPlaying", "SDL3") + (delegate* unmanaged)( + _slots[292] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[292] = nativeContext.LoadFunction( + "SDL_GetMaxHapticEffectsPlaying", + "SDL3" + ) + ) )(haptic); [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffectsPlaying")] @@ -46800,9 +47956,13 @@ public static int GetMaxHapticEffectsPlaying(HapticHandle haptic) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint* ISdl.GetMice(int* count) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetMice", "SDL3"))( - count - ); + ( + (delegate* unmanaged)( + _slots[293] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[293] = nativeContext.LoadFunction("SDL_GetMice", "SDL3") + ) + )(count); [return: NativeTypeName("SDL_MouseID *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetMice")] @@ -46826,7 +47986,13 @@ Ptr ISdl.GetMice(Ref count) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Keymod ISdl.GetModState() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetModState", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[294] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[294] = nativeContext.LoadFunction("SDL_GetModState", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetModState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -46835,8 +48001,11 @@ Keymod ISdl.GetModState() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GetMouseFocus() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetMouseFocus", "SDL3") + (delegate* unmanaged)( + _slots[295] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[295] = nativeContext.LoadFunction("SDL_GetMouseFocus", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] @@ -46858,8 +48027,11 @@ public static Ptr GetMouseInstanceName( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetMouseInstanceNameRaw([NativeTypeName("SDL_MouseID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetMouseInstanceName", "SDL3") + (delegate* unmanaged)( + _slots[296] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[296] = nativeContext.LoadFunction("SDL_GetMouseInstanceName", "SDL3") + ) )(instance_id); [return: NativeTypeName("const char *")] @@ -46872,8 +48044,11 @@ public static Ptr GetMouseInstanceName( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetMouseState(float* x, float* y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetMouseState", "SDL3") + (delegate* unmanaged)( + _slots[297] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[297] = nativeContext.LoadFunction("SDL_GetMouseState", "SDL3") + ) )(x, y); [return: NativeTypeName("Uint32")] @@ -46902,8 +48077,14 @@ DisplayOrientation ISdl.GetNaturalDisplayOrientation( [NativeTypeName("SDL_DisplayID")] uint displayID ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetNaturalDisplayOrientation", "SDL3") + (delegate* unmanaged)( + _slots[298] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[298] = nativeContext.LoadFunction( + "SDL_GetNaturalDisplayOrientation", + "SDL3" + ) + ) )(displayID); [NativeFunction("SDL3", EntryPoint = "SDL_GetNaturalDisplayOrientation")] @@ -46914,7 +48095,13 @@ public static DisplayOrientation GetNaturalDisplayOrientation( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetNumAudioDrivers() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetNumAudioDrivers", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[299] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[299] = nativeContext.LoadFunction("SDL_GetNumAudioDrivers", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumAudioDrivers")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -46927,8 +48114,11 @@ long ISdl.GetNumberProperty( [NativeTypeName("Sint64")] long default_value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetNumberProperty", "SDL3") + (delegate* unmanaged)( + _slots[300] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[300] = nativeContext.LoadFunction("SDL_GetNumberProperty", "SDL3") + ) )(props, name, default_value); [return: NativeTypeName("Sint64")] @@ -46965,7 +48155,13 @@ public static long GetNumberProperty( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetNumCameraDrivers() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetNumCameraDrivers", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[301] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[301] = nativeContext.LoadFunction("SDL_GetNumCameraDrivers", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumCameraDrivers")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -46974,8 +48170,14 @@ int ISdl.GetNumCameraDrivers() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetNumGamepadTouchpadFingers(GamepadHandle gamepad, int touchpad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetNumGamepadTouchpadFingers", "SDL3") + (delegate* unmanaged)( + _slots[302] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[302] = nativeContext.LoadFunction( + "SDL_GetNumGamepadTouchpadFingers", + "SDL3" + ) + ) )(gamepad, touchpad); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpadFingers")] @@ -46986,8 +48188,11 @@ public static int GetNumGamepadTouchpadFingers(GamepadHandle gamepad, int touchp [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetNumGamepadTouchpads(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetNumGamepadTouchpads", "SDL3") + (delegate* unmanaged)( + _slots[303] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[303] = nativeContext.LoadFunction("SDL_GetNumGamepadTouchpads", "SDL3") + ) )(gamepad); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpads")] @@ -46998,8 +48203,11 @@ public static int GetNumGamepadTouchpads(GamepadHandle gamepad) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetNumHapticAxes(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetNumHapticAxes", "SDL3") + (delegate* unmanaged)( + _slots[304] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[304] = nativeContext.LoadFunction("SDL_GetNumHapticAxes", "SDL3") + ) )(haptic); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumHapticAxes")] @@ -47009,8 +48217,11 @@ int ISdl.GetNumHapticAxes(HapticHandle haptic) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetNumJoystickAxes(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetNumJoystickAxes", "SDL3") + (delegate* unmanaged)( + _slots[305] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[305] = nativeContext.LoadFunction("SDL_GetNumJoystickAxes", "SDL3") + ) )(joystick); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickAxes")] @@ -47021,8 +48232,11 @@ public static int GetNumJoystickAxes(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetNumJoystickBalls(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetNumJoystickBalls", "SDL3") + (delegate* unmanaged)( + _slots[306] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[306] = nativeContext.LoadFunction("SDL_GetNumJoystickBalls", "SDL3") + ) )(joystick); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickBalls")] @@ -47033,8 +48247,11 @@ public static int GetNumJoystickBalls(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetNumJoystickButtons(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetNumJoystickButtons", "SDL3") + (delegate* unmanaged)( + _slots[307] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[307] = nativeContext.LoadFunction("SDL_GetNumJoystickButtons", "SDL3") + ) )(joystick); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickButtons")] @@ -47045,8 +48262,11 @@ public static int GetNumJoystickButtons(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetNumJoystickHats(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetNumJoystickHats", "SDL3") + (delegate* unmanaged)( + _slots[308] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[308] = nativeContext.LoadFunction("SDL_GetNumJoystickHats", "SDL3") + ) )(joystick); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickHats")] @@ -47056,7 +48276,13 @@ public static int GetNumJoystickHats(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetNumRenderDrivers() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetNumRenderDrivers", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[309] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[309] = nativeContext.LoadFunction("SDL_GetNumRenderDrivers", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumRenderDrivers")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -47064,7 +48290,13 @@ int ISdl.GetNumRenderDrivers() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetNumVideoDrivers() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetNumVideoDrivers", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[310] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[310] = nativeContext.LoadFunction("SDL_GetNumVideoDrivers", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumVideoDrivers")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -47073,8 +48305,11 @@ int ISdl.GetNumVideoDrivers() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPathInfo", "SDL3") + (delegate* unmanaged)( + _slots[311] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[311] = nativeContext.LoadFunction("SDL_GetPathInfo", "SDL3") + ) )(path, info); [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] @@ -47106,8 +48341,11 @@ uint ISdl.GetPenCapabilities( PenCapabilityInfo* capabilities ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPenCapabilities", "SDL3") + (delegate* unmanaged)( + _slots[312] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[312] = nativeContext.LoadFunction("SDL_GetPenCapabilities", "SDL3") + ) )(instance_id, capabilities); [return: NativeTypeName("Uint32")] @@ -47141,9 +48379,13 @@ Ref capabilities [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetPenFromGuid(Guid guid) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetPenFromGUID", "SDL3"))( - guid - ); + ( + (delegate* unmanaged)( + _slots[313] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[313] = nativeContext.LoadFunction("SDL_GetPenFromGUID", "SDL3") + ) + )(guid); [return: NativeTypeName("SDL_PenID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPenFromGUID")] @@ -47152,9 +48394,13 @@ uint ISdl.GetPenFromGuid(Guid guid) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Guid ISdl.GetPenGuid([NativeTypeName("SDL_PenID")] uint instance_id) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetPenGUID", "SDL3"))( - instance_id - ); + ( + (delegate* unmanaged)( + _slots[314] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[314] = nativeContext.LoadFunction("SDL_GetPenGUID", "SDL3") + ) + )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetPenGUID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -47174,9 +48420,13 @@ public static Ptr GetPenName([NativeTypeName("SDL_PenID")] uint instance_ [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetPenNameRaw([NativeTypeName("SDL_PenID")] uint instance_id) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetPenName", "SDL3"))( - instance_id - ); + ( + (delegate* unmanaged)( + _slots[315] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[315] = nativeContext.LoadFunction("SDL_GetPenName", "SDL3") + ) + )(instance_id); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPenName")] @@ -47186,9 +48436,13 @@ public static Ptr GetPenName([NativeTypeName("SDL_PenID")] uint instance_ [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint* ISdl.GetPens(int* count) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetPens", "SDL3"))( - count - ); + ( + (delegate* unmanaged)( + _slots[316] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[316] = nativeContext.LoadFunction("SDL_GetPens", "SDL3") + ) + )(count); [return: NativeTypeName("SDL_PenID *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] @@ -47219,8 +48473,11 @@ uint ISdl.GetPenStatus( [NativeTypeName("size_t")] nuint num_axes ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPenStatus", "SDL3") + (delegate* unmanaged)( + _slots[317] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[317] = nativeContext.LoadFunction("SDL_GetPenStatus", "SDL3") + ) )(instance_id, x, y, axes, num_axes); [return: NativeTypeName("Uint32")] @@ -47267,8 +48524,11 @@ public static uint GetPenStatus( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] PenSubtype ISdl.GetPenType([NativeTypeName("SDL_PenID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPenType", "SDL3") + (delegate* unmanaged)( + _slots[318] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[318] = nativeContext.LoadFunction("SDL_GetPenType", "SDL3") + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetPenType")] @@ -47279,8 +48539,11 @@ public static PenSubtype GetPenType([NativeTypeName("SDL_PenID")] uint instance_ [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetPerformanceCounter() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPerformanceCounter", "SDL3") + (delegate* unmanaged)( + _slots[319] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[319] = nativeContext.LoadFunction("SDL_GetPerformanceCounter", "SDL3") + ) )(); [return: NativeTypeName("Uint64")] @@ -47291,8 +48554,14 @@ ulong ISdl.GetPerformanceCounter() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetPerformanceFrequency() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPerformanceFrequency", "SDL3") + (delegate* unmanaged)( + _slots[320] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[320] = nativeContext.LoadFunction( + "SDL_GetPerformanceFrequency", + "SDL3" + ) + ) )(); [return: NativeTypeName("Uint64")] @@ -47309,8 +48578,14 @@ PixelFormatEnum ISdl.GetPixelFormatEnumForMasks( [NativeTypeName("Uint32")] uint Amask ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPixelFormatEnumForMasks", "SDL3") + (delegate* unmanaged)( + _slots[321] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[321] = nativeContext.LoadFunction( + "SDL_GetPixelFormatEnumForMasks", + "SDL3" + ) + ) )(bpp, Rmask, Gmask, Bmask, Amask); [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatEnumForMasks")] @@ -47337,8 +48612,11 @@ public static Ptr GetPixelFormatName(PixelFormatEnum format) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetPixelFormatNameRaw(PixelFormatEnum format) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPixelFormatName", "SDL3") + (delegate* unmanaged)( + _slots[322] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[322] = nativeContext.LoadFunction("SDL_GetPixelFormatName", "SDL3") + ) )(format); [return: NativeTypeName("const char *")] @@ -47358,7 +48636,13 @@ public static Ptr GetPixelFormatName(PixelFormatEnum format) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetPlatformRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetPlatform", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[323] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[323] = nativeContext.LoadFunction("SDL_GetPlatform", "SDL3") + ) + )(); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] @@ -47368,8 +48652,11 @@ public static Ptr GetPixelFormatName(PixelFormatEnum format) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] PowerState ISdl.GetPowerInfo(int* seconds, int* percent) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPowerInfo", "SDL3") + (delegate* unmanaged)( + _slots[324] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[324] = nativeContext.LoadFunction("SDL_GetPowerInfo", "SDL3") + ) )(seconds, percent); [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] @@ -47404,8 +48691,11 @@ public static PowerState GetPowerInfo(Ref seconds, Ref percent) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Locale* ISdl.GetPreferredLocalesRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPreferredLocales", "SDL3") + (delegate* unmanaged)( + _slots[325] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[325] = nativeContext.LoadFunction("SDL_GetPreferredLocales", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] @@ -47418,8 +48708,11 @@ public static PowerState GetPowerInfo(Ref seconds, Ref percent) => [NativeTypeName("const char *")] sbyte* app ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPrefPath", "SDL3") + (delegate* unmanaged)( + _slots[326] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[326] = nativeContext.LoadFunction("SDL_GetPrefPath", "SDL3") + ) )(org, app); [return: NativeTypeName("char *")] @@ -47454,7 +48747,13 @@ public static Ptr GetPrefPath( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetPrimaryDisplay() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetPrimaryDisplay", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[327] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[327] = nativeContext.LoadFunction("SDL_GetPrimaryDisplay", "SDL3") + ) + )(); [return: NativeTypeName("SDL_DisplayID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimaryDisplay")] @@ -47473,8 +48772,14 @@ uint ISdl.GetPrimaryDisplay() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetPrimarySelectionTextRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPrimarySelectionText", "SDL3") + (delegate* unmanaged)( + _slots[328] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[328] = nativeContext.LoadFunction( + "SDL_GetPrimarySelectionText", + "SDL3" + ) + ) )(); [return: NativeTypeName("char *")] @@ -47489,8 +48794,11 @@ uint ISdl.GetPrimaryDisplay() => void* default_value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetProperty", "SDL3") + (delegate* unmanaged)( + _slots[329] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[329] = nativeContext.LoadFunction("SDL_GetProperty", "SDL3") + ) )(props, name, default_value); [NativeFunction("SDL3", EntryPoint = "SDL_GetProperty")] @@ -47530,8 +48838,11 @@ PropertyType ISdl.GetPropertyType( [NativeTypeName("const char *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetPropertyType", "SDL3") + (delegate* unmanaged)( + _slots[330] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[330] = nativeContext.LoadFunction("SDL_GetPropertyType", "SDL3") + ) )(props, name); [NativeFunction("SDL3", EntryPoint = "SDL_GetPropertyType")] @@ -47566,8 +48877,14 @@ GamepadType ISdl.GetRealGamepadInstanceType( [NativeTypeName("SDL_JoystickID")] uint instance_id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRealGamepadInstanceType", "SDL3") + (delegate* unmanaged)( + _slots[331] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[331] = nativeContext.LoadFunction( + "SDL_GetRealGamepadInstanceType", + "SDL3" + ) + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadInstanceType")] @@ -47579,8 +48896,11 @@ public static GamepadType GetRealGamepadInstanceType( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadType ISdl.GetRealGamepadType(GamepadHandle gamepad) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRealGamepadType", "SDL3") + (delegate* unmanaged)( + _slots[332] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[332] = nativeContext.LoadFunction("SDL_GetRealGamepadType", "SDL3") + ) )(gamepad); [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] @@ -47597,8 +48917,14 @@ int ISdl.GetRectAndLineIntersection( int* Y2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRectAndLineIntersection", "SDL3") + (delegate* unmanaged)( + _slots[333] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[333] = nativeContext.LoadFunction( + "SDL_GetRectAndLineIntersection", + "SDL3" + ) + ) )(rect, X1, Y1, X2, Y2); [return: NativeTypeName("SDL_bool")] @@ -47660,8 +48986,14 @@ int ISdl.GetRectAndLineIntersectionFloat( float* Y2 ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRectAndLineIntersectionFloat", "SDL3") + (delegate* unmanaged)( + _slots[334] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[334] = nativeContext.LoadFunction( + "SDL_GetRectAndLineIntersectionFloat", + "SDL3" + ) + ) )(rect, X1, Y1, X2, Y2); [return: NativeTypeName("SDL_bool")] @@ -47722,8 +49054,11 @@ int ISdl.GetRectEnclosingPoints( Rect* result ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRectEnclosingPoints", "SDL3") + (delegate* unmanaged)( + _slots[335] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[335] = nativeContext.LoadFunction("SDL_GetRectEnclosingPoints", "SDL3") + ) )(points, count, clip, result); [return: NativeTypeName("SDL_bool")] @@ -47778,8 +49113,14 @@ int ISdl.GetRectEnclosingPointsFloat( FRect* result ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRectEnclosingPointsFloat", "SDL3") + (delegate* unmanaged)( + _slots[336] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[336] = nativeContext.LoadFunction( + "SDL_GetRectEnclosingPointsFloat", + "SDL3" + ) + ) )(points, count, clip, result); [return: NativeTypeName("SDL_bool")] @@ -47833,8 +49174,11 @@ int ISdl.GetRectIntersection( Rect* result ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRectIntersection", "SDL3") + (delegate* unmanaged)( + _slots[337] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[337] = nativeContext.LoadFunction("SDL_GetRectIntersection", "SDL3") + ) )(A, B, result); [return: NativeTypeName("SDL_bool")] @@ -47879,8 +49223,14 @@ int ISdl.GetRectIntersectionFloat( FRect* result ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRectIntersectionFloat", "SDL3") + (delegate* unmanaged)( + _slots[338] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[338] = nativeContext.LoadFunction( + "SDL_GetRectIntersectionFloat", + "SDL3" + ) + ) )(A, B, result); [return: NativeTypeName("SDL_bool")] @@ -47925,8 +49275,11 @@ int ISdl.GetRectUnion( Rect* result ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRectUnion", "SDL3") + (delegate* unmanaged)( + _slots[339] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[339] = nativeContext.LoadFunction("SDL_GetRectUnion", "SDL3") + ) )(A, B, result); [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] @@ -47968,8 +49321,11 @@ int ISdl.GetRectUnionFloat( FRect* result ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRectUnionFloat", "SDL3") + (delegate* unmanaged)( + _slots[340] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[340] = nativeContext.LoadFunction("SDL_GetRectUnionFloat", "SDL3") + ) )(A, B, result); [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] @@ -48017,7 +49373,11 @@ MaybeBool ISdl.GetRelativeMouseMode() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetRelativeMouseModeRaw() => ( - (delegate* unmanaged)nativeContext.LoadFunction("SDL_GetRelativeMouseMode", "SDL3") + (delegate* unmanaged)( + _slots[341] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[341] = nativeContext.LoadFunction("SDL_GetRelativeMouseMode", "SDL3") + ) )(); [return: NativeTypeName("SDL_bool")] @@ -48028,8 +49388,11 @@ int ISdl.GetRelativeMouseModeRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetRelativeMouseState(float* x, float* y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRelativeMouseState", "SDL3") + (delegate* unmanaged)( + _slots[342] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[342] = nativeContext.LoadFunction("SDL_GetRelativeMouseState", "SDL3") + ) )(x, y); [return: NativeTypeName("Uint32")] @@ -48058,8 +49421,11 @@ public static uint GetRelativeMouseState(Ref x, Ref y) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetRenderClipRect(RendererHandle renderer, Rect* rect) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderClipRect", "SDL3") + (delegate* unmanaged)( + _slots[343] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[343] = nativeContext.LoadFunction("SDL_GetRenderClipRect", "SDL3") + ) )(renderer, rect); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] @@ -48085,8 +49451,11 @@ public static int GetRenderClipRect(RendererHandle renderer, Ref rect) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetRenderColorScale(RendererHandle renderer, float* scale) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderColorScale", "SDL3") + (delegate* unmanaged)( + _slots[344] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[344] = nativeContext.LoadFunction("SDL_GetRenderColorScale", "SDL3") + ) )(renderer, scale); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] @@ -48112,8 +49481,11 @@ public static int GetRenderColorScale(RendererHandle renderer, Ref scale) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetRenderDrawBlendMode(RendererHandle renderer, BlendMode* blendMode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderDrawBlendMode", "SDL3") + (delegate* unmanaged)( + _slots[345] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[345] = nativeContext.LoadFunction("SDL_GetRenderDrawBlendMode", "SDL3") + ) )(renderer, blendMode); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] @@ -48145,8 +49517,11 @@ int ISdl.GetRenderDrawColor( [NativeTypeName("Uint8 *")] byte* a ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderDrawColor", "SDL3") + (delegate* unmanaged)( + _slots[346] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[346] = nativeContext.LoadFunction("SDL_GetRenderDrawColor", "SDL3") + ) )(renderer, r, g, b, a); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] @@ -48198,8 +49573,14 @@ int ISdl.GetRenderDrawColorFloat( float* a ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderDrawColorFloat", "SDL3") + (delegate* unmanaged)( + _slots[347] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[347] = nativeContext.LoadFunction( + "SDL_GetRenderDrawColorFloat", + "SDL3" + ) + ) )(renderer, r, g, b, a); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] @@ -48254,8 +49635,11 @@ Ref a [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetRenderDriverRaw(int index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderDriver", "SDL3") + (delegate* unmanaged)( + _slots[348] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[348] = nativeContext.LoadFunction("SDL_GetRenderDriver", "SDL3") + ) )(index); [return: NativeTypeName("const char *")] @@ -48266,8 +49650,11 @@ Ref a [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] RendererHandle ISdl.GetRenderer(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderer", "SDL3") + (delegate* unmanaged)( + _slots[349] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[349] = nativeContext.LoadFunction("SDL_GetRenderer", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderer")] @@ -48277,8 +49664,11 @@ RendererHandle ISdl.GetRenderer(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] RendererHandle ISdl.GetRendererFromTexture(TextureHandle texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRendererFromTexture", "SDL3") + (delegate* unmanaged)( + _slots[350] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[350] = nativeContext.LoadFunction("SDL_GetRendererFromTexture", "SDL3") + ) )(texture); [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] @@ -48289,8 +49679,11 @@ public static RendererHandle GetRendererFromTexture(TextureHandle texture) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetRendererInfo(RendererHandle renderer, RendererInfo* info) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRendererInfo", "SDL3") + (delegate* unmanaged)( + _slots[351] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[351] = nativeContext.LoadFunction("SDL_GetRendererInfo", "SDL3") + ) )(renderer, info); [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] @@ -48316,8 +49709,11 @@ public static int GetRendererInfo(RendererHandle renderer, Ref inf [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetRendererProperties(RendererHandle renderer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRendererProperties", "SDL3") + (delegate* unmanaged)( + _slots[352] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[352] = nativeContext.LoadFunction("SDL_GetRendererProperties", "SDL3") + ) )(renderer); [return: NativeTypeName("SDL_PropertiesID")] @@ -48341,8 +49737,14 @@ int ISdl.GetRenderLogicalPresentation( int*, RendererLogicalPresentation*, ScaleMode*, - int>) - nativeContext.LoadFunction("SDL_GetRenderLogicalPresentation", "SDL3") + int>)( + _slots[353] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[353] = nativeContext.LoadFunction( + "SDL_GetRenderLogicalPresentation", + "SDL3" + ) + ) )(renderer, w, h, mode, scale_mode); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] @@ -48404,8 +49806,14 @@ public static Ptr GetRenderMetalCommandEncoder(RendererHandle renderer) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.GetRenderMetalCommandEncoderRaw(RendererHandle renderer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderMetalCommandEncoder", "SDL3") + (delegate* unmanaged)( + _slots[354] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[354] = nativeContext.LoadFunction( + "SDL_GetRenderMetalCommandEncoder", + "SDL3" + ) + ) )(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalCommandEncoder")] @@ -48426,8 +49834,11 @@ public static Ptr GetRenderMetalLayer(RendererHandle renderer) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.GetRenderMetalLayerRaw(RendererHandle renderer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderMetalLayer", "SDL3") + (delegate* unmanaged)( + _slots[355] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[355] = nativeContext.LoadFunction("SDL_GetRenderMetalLayer", "SDL3") + ) )(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalLayer")] @@ -48438,8 +49849,11 @@ public static Ptr GetRenderMetalLayer(RendererHandle renderer) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetRenderOutputSize(RendererHandle renderer, int* w, int* h) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderOutputSize", "SDL3") + (delegate* unmanaged)( + _slots[356] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[356] = nativeContext.LoadFunction("SDL_GetRenderOutputSize", "SDL3") + ) )(renderer, w, h); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] @@ -48466,8 +49880,11 @@ public static int GetRenderOutputSize(RendererHandle renderer, Ref w, Ref ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderScale", "SDL3") + (delegate* unmanaged)( + _slots[357] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[357] = nativeContext.LoadFunction("SDL_GetRenderScale", "SDL3") + ) )(renderer, scaleX, scaleY); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] @@ -48497,8 +49914,11 @@ Ref scaleY [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] TextureHandle ISdl.GetRenderTarget(RendererHandle renderer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderTarget", "SDL3") + (delegate* unmanaged)( + _slots[358] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[358] = nativeContext.LoadFunction("SDL_GetRenderTarget", "SDL3") + ) )(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] @@ -48509,8 +49929,11 @@ public static TextureHandle GetRenderTarget(RendererHandle renderer) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetRenderViewport(RendererHandle renderer, Rect* rect) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderViewport", "SDL3") + (delegate* unmanaged)( + _slots[359] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[359] = nativeContext.LoadFunction("SDL_GetRenderViewport", "SDL3") + ) )(renderer, rect); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] @@ -48536,8 +49959,11 @@ public static int GetRenderViewport(RendererHandle renderer, Ref rect) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetRenderVSync(RendererHandle renderer, int* vsync) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderVSync", "SDL3") + (delegate* unmanaged)( + _slots[360] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[360] = nativeContext.LoadFunction("SDL_GetRenderVSync", "SDL3") + ) )(renderer, vsync); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] @@ -48563,8 +49989,11 @@ public static int GetRenderVSync(RendererHandle renderer, Ref vsync) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GetRenderWindow(RendererHandle renderer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRenderWindow", "SDL3") + (delegate* unmanaged)( + _slots[361] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[361] = nativeContext.LoadFunction("SDL_GetRenderWindow", "SDL3") + ) )(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderWindow")] @@ -48583,7 +50012,13 @@ public static WindowHandle GetRenderWindow(RendererHandle renderer) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetRevisionRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetRevision", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[362] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[362] = nativeContext.LoadFunction("SDL_GetRevision", "SDL3") + ) + )(); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRevision")] @@ -48599,8 +50034,11 @@ void ISdl.GetRGB( [NativeTypeName("Uint8 *")] byte* b ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRGB", "SDL3") + (delegate* unmanaged)( + _slots[363] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[363] = nativeContext.LoadFunction("SDL_GetRGB", "SDL3") + ) )(pixel, format, r, g, b); [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] @@ -48652,8 +50090,11 @@ void ISdl.GetRgba( [NativeTypeName("Uint8 *")] byte* a ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetRGBA", "SDL3") + (delegate* unmanaged)( + _slots[364] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[364] = nativeContext.LoadFunction("SDL_GetRGBA", "SDL3") + ) )(pixel, format, r, g, b, a); [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] @@ -48702,8 +50143,11 @@ public static void GetRgba( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Scancode ISdl.GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetScancodeFromKey", "SDL3") + (delegate* unmanaged)( + _slots[365] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[365] = nativeContext.LoadFunction("SDL_GetScancodeFromKey", "SDL3") + ) )(key); [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromKey")] @@ -48714,8 +50158,11 @@ public static Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int ke [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Scancode ISdl.GetScancodeFromName([NativeTypeName("const char *")] sbyte* name) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetScancodeFromName", "SDL3") + (delegate* unmanaged)( + _slots[366] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[366] = nativeContext.LoadFunction("SDL_GetScancodeFromName", "SDL3") + ) )(name); [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromName")] @@ -48752,8 +50199,11 @@ public static Ptr GetScancodeName(Scancode scancode) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetScancodeNameRaw(Scancode scancode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetScancodeName", "SDL3") + (delegate* unmanaged)( + _slots[367] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[367] = nativeContext.LoadFunction("SDL_GetScancodeName", "SDL3") + ) )(scancode); [return: NativeTypeName("const char *")] @@ -48765,8 +50215,11 @@ public static Ptr GetScancodeName(Scancode scancode) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetSemaphoreValue(SemaphoreHandle sem) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSemaphoreValue", "SDL3") + (delegate* unmanaged)( + _slots[368] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[368] = nativeContext.LoadFunction("SDL_GetSemaphoreValue", "SDL3") + ) )(sem); [return: NativeTypeName("Uint32")] @@ -48777,8 +50230,11 @@ uint ISdl.GetSemaphoreValue(SemaphoreHandle sem) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetSensorData(SensorHandle sensor, float* data, int num_values) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSensorData", "SDL3") + (delegate* unmanaged)( + _slots[369] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[369] = nativeContext.LoadFunction("SDL_GetSensorData", "SDL3") + ) )(sensor, data, num_values); [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] @@ -48804,8 +50260,14 @@ public static int GetSensorData(SensorHandle sensor, Ref data, int num_va [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] SensorHandle ISdl.GetSensorFromInstanceID([NativeTypeName("SDL_SensorID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSensorFromInstanceID", "SDL3") + (delegate* unmanaged)( + _slots[370] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[370] = nativeContext.LoadFunction( + "SDL_GetSensorFromInstanceID", + "SDL3" + ) + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] @@ -48817,8 +50279,11 @@ public static SensorHandle GetSensorFromInstanceID( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetSensorInstanceID(SensorHandle sensor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSensorInstanceID", "SDL3") + (delegate* unmanaged)( + _slots[371] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[371] = nativeContext.LoadFunction("SDL_GetSensorInstanceID", "SDL3") + ) )(sensor); [return: NativeTypeName("SDL_SensorID")] @@ -48842,8 +50307,11 @@ public static Ptr GetSensorInstanceName( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetSensorInstanceNameRaw([NativeTypeName("SDL_SensorID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSensorInstanceName", "SDL3") + (delegate* unmanaged)( + _slots[372] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[372] = nativeContext.LoadFunction("SDL_GetSensorInstanceName", "SDL3") + ) )(instance_id); [return: NativeTypeName("const char *")] @@ -48856,8 +50324,14 @@ public static Ptr GetSensorInstanceName( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetSensorInstanceNonPortableType([NativeTypeName("SDL_SensorID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSensorInstanceNonPortableType", "SDL3") + (delegate* unmanaged)( + _slots[373] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[373] = nativeContext.LoadFunction( + "SDL_GetSensorInstanceNonPortableType", + "SDL3" + ) + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceNonPortableType")] @@ -48869,8 +50343,11 @@ public static int GetSensorInstanceNonPortableType( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] SensorType ISdl.GetSensorInstanceType([NativeTypeName("SDL_SensorID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSensorInstanceType", "SDL3") + (delegate* unmanaged)( + _slots[374] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[374] = nativeContext.LoadFunction("SDL_GetSensorInstanceType", "SDL3") + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceType")] @@ -48892,8 +50369,11 @@ Ptr ISdl.GetSensorName(SensorHandle sensor) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetSensorNameRaw(SensorHandle sensor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSensorName", "SDL3") + (delegate* unmanaged)( + _slots[375] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[375] = nativeContext.LoadFunction("SDL_GetSensorName", "SDL3") + ) )(sensor); [return: NativeTypeName("const char *")] @@ -48905,8 +50385,14 @@ Ptr ISdl.GetSensorName(SensorHandle sensor) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetSensorNonPortableType(SensorHandle sensor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSensorNonPortableType", "SDL3") + (delegate* unmanaged)( + _slots[376] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[376] = nativeContext.LoadFunction( + "SDL_GetSensorNonPortableType", + "SDL3" + ) + ) )(sensor); [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableType")] @@ -48917,8 +50403,11 @@ public static int GetSensorNonPortableType(SensorHandle sensor) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetSensorProperties(SensorHandle sensor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSensorProperties", "SDL3") + (delegate* unmanaged)( + _slots[377] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[377] = nativeContext.LoadFunction("SDL_GetSensorProperties", "SDL3") + ) )(sensor); [return: NativeTypeName("SDL_PropertiesID")] @@ -48929,9 +50418,13 @@ public static uint GetSensorProperties(SensorHandle sensor) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint* ISdl.GetSensors(int* count) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetSensors", "SDL3"))( - count - ); + ( + (delegate* unmanaged)( + _slots[378] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[378] = nativeContext.LoadFunction("SDL_GetSensors", "SDL3") + ) + )(count); [return: NativeTypeName("SDL_SensorID *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensors")] @@ -48956,8 +50449,11 @@ Ptr ISdl.GetSensors(Ref count) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] SensorType ISdl.GetSensorType(SensorHandle sensor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSensorType", "SDL3") + (delegate* unmanaged)( + _slots[379] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[379] = nativeContext.LoadFunction("SDL_GetSensorType", "SDL3") + ) )(sensor); [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorType")] @@ -48967,8 +50463,14 @@ SensorType ISdl.GetSensorType(SensorHandle sensor) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetSilenceValueForFormat([NativeTypeName("SDL_AudioFormat")] ushort format) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSilenceValueForFormat", "SDL3") + (delegate* unmanaged)( + _slots[380] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[380] = nativeContext.LoadFunction( + "SDL_GetSilenceValueForFormat", + "SDL3" + ) + ) )(format); [NativeFunction("SDL3", EntryPoint = "SDL_GetSilenceValueForFormat")] @@ -48983,8 +50485,11 @@ int ISdl.GetStorageFileSize( [NativeTypeName("Uint64 *")] ulong* length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetStorageFileSize", "SDL3") + (delegate* unmanaged)( + _slots[381] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[381] = nativeContext.LoadFunction("SDL_GetStorageFileSize", "SDL3") + ) )(storage, path, length); [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] @@ -49025,8 +50530,11 @@ int ISdl.GetStoragePathInfo( PathInfo* info ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetStoragePathInfo", "SDL3") + (delegate* unmanaged)( + _slots[382] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[382] = nativeContext.LoadFunction("SDL_GetStoragePathInfo", "SDL3") + ) )(storage, path, info); [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] @@ -49063,8 +50571,14 @@ Ref info [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetStorageSpaceRemaining(StorageHandle storage) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetStorageSpaceRemaining", "SDL3") + (delegate* unmanaged)( + _slots[383] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[383] = nativeContext.LoadFunction( + "SDL_GetStorageSpaceRemaining", + "SDL3" + ) + ) )(storage); [return: NativeTypeName("Uint64")] @@ -49080,8 +50594,11 @@ public static ulong GetStorageSpaceRemaining(StorageHandle storage) => [NativeTypeName("const char *")] sbyte* default_value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetStringProperty", "SDL3") + (delegate* unmanaged)( + _slots[384] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[384] = nativeContext.LoadFunction("SDL_GetStringProperty", "SDL3") + ) )(props, name, default_value); [return: NativeTypeName("const char *")] @@ -49120,8 +50637,11 @@ public static Ptr GetStringProperty( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSurfaceAlphaMod", "SDL3") + (delegate* unmanaged)( + _slots[385] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[385] = nativeContext.LoadFunction("SDL_GetSurfaceAlphaMod", "SDL3") + ) )(surface, alpha); [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] @@ -49152,8 +50672,11 @@ public static int GetSurfaceAlphaMod( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSurfaceBlendMode", "SDL3") + (delegate* unmanaged)( + _slots[386] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[386] = nativeContext.LoadFunction("SDL_GetSurfaceBlendMode", "SDL3") + ) )(surface, blendMode); [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] @@ -49180,8 +50703,11 @@ public static int GetSurfaceBlendMode(Ref surface, Ref blend [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetSurfaceClipRect(Surface* surface, Rect* rect) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSurfaceClipRect", "SDL3") + (delegate* unmanaged)( + _slots[387] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[387] = nativeContext.LoadFunction("SDL_GetSurfaceClipRect", "SDL3") + ) )(surface, rect); [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] @@ -49208,8 +50734,11 @@ public static int GetSurfaceClipRect(Ref surface, Ref rect) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetSurfaceColorKey(Surface* surface, [NativeTypeName("Uint32 *")] uint* key) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSurfaceColorKey", "SDL3") + (delegate* unmanaged)( + _slots[388] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[388] = nativeContext.LoadFunction("SDL_GetSurfaceColorKey", "SDL3") + ) )(surface, key); [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] @@ -49245,8 +50774,11 @@ int ISdl.GetSurfaceColorMod( [NativeTypeName("Uint8 *")] byte* b ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSurfaceColorMod", "SDL3") + (delegate* unmanaged)( + _slots[389] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[389] = nativeContext.LoadFunction("SDL_GetSurfaceColorMod", "SDL3") + ) )(surface, r, g, b); [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] @@ -49288,8 +50820,11 @@ public static int GetSurfaceColorMod( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetSurfaceColorspace(Surface* surface, Colorspace* colorspace) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSurfaceColorspace", "SDL3") + (delegate* unmanaged)( + _slots[390] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[390] = nativeContext.LoadFunction("SDL_GetSurfaceColorspace", "SDL3") + ) )(surface, colorspace); [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] @@ -49316,8 +50851,11 @@ public static int GetSurfaceColorspace(Ref surface, Ref col [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetSurfaceProperties(Surface* surface) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSurfaceProperties", "SDL3") + (delegate* unmanaged)( + _slots[391] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[391] = nativeContext.LoadFunction("SDL_GetSurfaceProperties", "SDL3") + ) )(surface); [return: NativeTypeName("SDL_PropertiesID")] @@ -49344,7 +50882,13 @@ public static uint GetSurfaceProperties(Ref surface) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetSystemRAM() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetSystemRAM", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[392] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[392] = nativeContext.LoadFunction("SDL_GetSystemRAM", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemRAM")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -49353,8 +50897,11 @@ int ISdl.GetSystemRAM() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] SystemTheme ISdl.GetSystemTheme() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetSystemTheme", "SDL3") + (delegate* unmanaged)( + _slots[393] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[393] = nativeContext.LoadFunction("SDL_GetSystemTheme", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemTheme")] @@ -49364,8 +50911,11 @@ SystemTheme ISdl.GetSystemTheme() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetTextureAlphaMod(TextureHandle texture, [NativeTypeName("Uint8 *")] byte* alpha) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetTextureAlphaMod", "SDL3") + (delegate* unmanaged)( + _slots[394] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[394] = nativeContext.LoadFunction("SDL_GetTextureAlphaMod", "SDL3") + ) )(texture, alpha); [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] @@ -49395,8 +50945,14 @@ public static int GetTextureAlphaMod( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetTextureAlphaModFloat(TextureHandle texture, float* alpha) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetTextureAlphaModFloat", "SDL3") + (delegate* unmanaged)( + _slots[395] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[395] = nativeContext.LoadFunction( + "SDL_GetTextureAlphaModFloat", + "SDL3" + ) + ) )(texture, alpha); [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] @@ -49422,8 +50978,11 @@ public static int GetTextureAlphaModFloat(TextureHandle texture, Ref alph [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetTextureBlendMode(TextureHandle texture, BlendMode* blendMode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetTextureBlendMode", "SDL3") + (delegate* unmanaged)( + _slots[396] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[396] = nativeContext.LoadFunction("SDL_GetTextureBlendMode", "SDL3") + ) )(texture, blendMode); [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] @@ -49454,8 +51013,11 @@ int ISdl.GetTextureColorMod( [NativeTypeName("Uint8 *")] byte* b ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetTextureColorMod", "SDL3") + (delegate* unmanaged)( + _slots[397] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[397] = nativeContext.LoadFunction("SDL_GetTextureColorMod", "SDL3") + ) )(texture, r, g, b); [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] @@ -49496,8 +51058,14 @@ public static int GetTextureColorMod( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetTextureColorModFloat(TextureHandle texture, float* r, float* g, float* b) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetTextureColorModFloat", "SDL3") + (delegate* unmanaged)( + _slots[398] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[398] = nativeContext.LoadFunction( + "SDL_GetTextureColorModFloat", + "SDL3" + ) + ) )(texture, r, g, b); [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] @@ -49538,8 +51106,11 @@ Ref b [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetTextureProperties(TextureHandle texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetTextureProperties", "SDL3") + (delegate* unmanaged)( + _slots[399] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[399] = nativeContext.LoadFunction("SDL_GetTextureProperties", "SDL3") + ) )(texture); [return: NativeTypeName("SDL_PropertiesID")] @@ -49551,8 +51122,11 @@ public static uint GetTextureProperties(TextureHandle texture) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetTextureScaleMode(TextureHandle texture, ScaleMode* scaleMode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetTextureScaleMode", "SDL3") + (delegate* unmanaged)( + _slots[400] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[400] = nativeContext.LoadFunction("SDL_GetTextureScaleMode", "SDL3") + ) )(texture, scaleMode); [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] @@ -49578,8 +51152,11 @@ public static int GetTextureScaleMode(TextureHandle texture, Ref scal [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetThreadID(ThreadHandle thread) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetThreadID", "SDL3") + (delegate* unmanaged)( + _slots[401] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[401] = nativeContext.LoadFunction("SDL_GetThreadID", "SDL3") + ) )(thread); [return: NativeTypeName("SDL_ThreadID")] @@ -49600,8 +51177,11 @@ Ptr ISdl.GetThreadName(ThreadHandle thread) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetThreadNameRaw(ThreadHandle thread) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetThreadName", "SDL3") + (delegate* unmanaged)( + _slots[402] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[402] = nativeContext.LoadFunction("SDL_GetThreadName", "SDL3") + ) )(thread); [return: NativeTypeName("const char *")] @@ -49612,16 +51192,28 @@ Ptr ISdl.GetThreadName(ThreadHandle thread) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetTicks() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetTicks", "SDL3"))(); - - [return: NativeTypeName("Uint64")] + ( + (delegate* unmanaged)( + _slots[403] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[403] = nativeContext.LoadFunction("SDL_GetTicks", "SDL3") + ) + )(); + + [return: NativeTypeName("Uint64")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTicks")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static ulong GetTicks() => DllImport.GetTicks(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetTicksNS() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetTicksNS", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[404] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[404] = nativeContext.LoadFunction("SDL_GetTicksNS", "SDL3") + ) + )(); [return: NativeTypeName("Uint64")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTicksNS")] @@ -49638,7 +51230,13 @@ ulong ISdl.GetTicksNS() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetTLS", "SDL3"))(id); + ( + (delegate* unmanaged)( + _slots[405] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[405] = nativeContext.LoadFunction("SDL_GetTLS", "SDL3") + ) + )(id); [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -49658,8 +51256,11 @@ public static Ptr GetTouchDeviceName([NativeTypeName("SDL_TouchID")] ulon [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetTouchDeviceNameRaw([NativeTypeName("SDL_TouchID")] ulong touchID) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetTouchDeviceName", "SDL3") + (delegate* unmanaged)( + _slots[406] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[406] = nativeContext.LoadFunction("SDL_GetTouchDeviceName", "SDL3") + ) )(touchID); [return: NativeTypeName("const char *")] @@ -49671,8 +51272,11 @@ public static Ptr GetTouchDeviceName([NativeTypeName("SDL_TouchID")] ulon [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong* ISdl.GetTouchDevices(int* count) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetTouchDevices", "SDL3") + (delegate* unmanaged)( + _slots[407] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[407] = nativeContext.LoadFunction("SDL_GetTouchDevices", "SDL3") + ) )(count); [return: NativeTypeName("SDL_TouchID *")] @@ -49698,8 +51302,11 @@ Ptr ISdl.GetTouchDevices(Ref count) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] TouchDeviceType ISdl.GetTouchDeviceType([NativeTypeName("SDL_TouchID")] ulong touchID) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetTouchDeviceType", "SDL3") + (delegate* unmanaged)( + _slots[408] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[408] = nativeContext.LoadFunction("SDL_GetTouchDeviceType", "SDL3") + ) )(touchID); [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDeviceType")] @@ -49711,8 +51318,11 @@ public static TouchDeviceType GetTouchDeviceType( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Finger** ISdl.GetTouchFingers([NativeTypeName("SDL_TouchID")] ulong touchID, int* count) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetTouchFingers", "SDL3") + (delegate* unmanaged)( + _slots[409] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[409] = nativeContext.LoadFunction("SDL_GetTouchFingers", "SDL3") + ) )(touchID, count); [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchFingers")] @@ -49754,8 +51364,11 @@ Ref count [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetUserFolderRaw(Folder folder) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetUserFolder", "SDL3") + (delegate* unmanaged)( + _slots[410] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[410] = nativeContext.LoadFunction("SDL_GetUserFolder", "SDL3") + ) )(folder); [return: NativeTypeName("char *")] @@ -49765,9 +51378,13 @@ Ref count [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetVersion(Version* ver) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetVersion", "SDL3"))( - ver - ); + ( + (delegate* unmanaged)( + _slots[411] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[411] = nativeContext.LoadFunction("SDL_GetVersion", "SDL3") + ) + )(ver); [NativeFunction("SDL3", EntryPoint = "SDL_GetVersion")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -49799,8 +51416,11 @@ int ISdl.GetVersion(Ref ver) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetVideoDriverRaw(int index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetVideoDriver", "SDL3") + (delegate* unmanaged)( + _slots[412] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[412] = nativeContext.LoadFunction("SDL_GetVideoDriver", "SDL3") + ) )(index); [return: NativeTypeName("const char *")] @@ -49817,8 +51437,11 @@ int ISdl.GetWindowBordersSize( int* right ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowBordersSize", "SDL3") + (delegate* unmanaged)( + _slots[413] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[413] = nativeContext.LoadFunction("SDL_GetWindowBordersSize", "SDL3") + ) )(window, top, left, bottom, right); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] @@ -49870,8 +51493,11 @@ Ref right [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] float ISdl.GetWindowDisplayScale(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowDisplayScale", "SDL3") + (delegate* unmanaged)( + _slots[414] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[414] = nativeContext.LoadFunction("SDL_GetWindowDisplayScale", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowDisplayScale")] @@ -49882,8 +51508,11 @@ public static float GetWindowDisplayScale(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetWindowFlags(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowFlags", "SDL3") + (delegate* unmanaged)( + _slots[415] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[415] = nativeContext.LoadFunction("SDL_GetWindowFlags", "SDL3") + ) )(window); [return: NativeTypeName("SDL_WindowFlags")] @@ -49894,8 +51523,11 @@ uint ISdl.GetWindowFlags(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowFromID", "SDL3") + (delegate* unmanaged)( + _slots[416] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[416] = nativeContext.LoadFunction("SDL_GetWindowFromID", "SDL3") + ) )(id); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] @@ -49917,8 +51549,14 @@ public static Ptr GetWindowFullscreenMode(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] DisplayMode* ISdl.GetWindowFullscreenModeRaw(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowFullscreenMode", "SDL3") + (delegate* unmanaged)( + _slots[417] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[417] = nativeContext.LoadFunction( + "SDL_GetWindowFullscreenMode", + "SDL3" + ) + ) )(window); [return: NativeTypeName("const SDL_DisplayMode *")] @@ -49930,8 +51568,11 @@ public static Ptr GetWindowFullscreenMode(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.GetWindowICCProfile(WindowHandle window, [NativeTypeName("size_t *")] nuint* size) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowICCProfile", "SDL3") + (delegate* unmanaged)( + _slots[418] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[418] = nativeContext.LoadFunction("SDL_GetWindowICCProfile", "SDL3") + ) )(window, size); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowICCProfile")] @@ -49961,8 +51602,11 @@ public static Ptr GetWindowICCProfile( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetWindowID(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowID", "SDL3") + (delegate* unmanaged)( + _slots[419] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[419] = nativeContext.LoadFunction("SDL_GetWindowID", "SDL3") + ) )(window); [return: NativeTypeName("SDL_WindowID")] @@ -49984,8 +51628,11 @@ public static MaybeBool GetWindowKeyboardGrab(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetWindowKeyboardGrabRaw(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowKeyboardGrab", "SDL3") + (delegate* unmanaged)( + _slots[420] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[420] = nativeContext.LoadFunction("SDL_GetWindowKeyboardGrab", "SDL3") + ) )(window); [return: NativeTypeName("SDL_bool")] @@ -49997,8 +51644,11 @@ public static int GetWindowKeyboardGrabRaw(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetWindowMaximumSize(WindowHandle window, int* w, int* h) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowMaximumSize", "SDL3") + (delegate* unmanaged)( + _slots[421] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[421] = nativeContext.LoadFunction("SDL_GetWindowMaximumSize", "SDL3") + ) )(window, w, h); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] @@ -50025,8 +51675,11 @@ public static int GetWindowMaximumSize(WindowHandle window, Ref w, Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetWindowMinimumSize(WindowHandle window, int* w, int* h) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowMinimumSize", "SDL3") + (delegate* unmanaged)( + _slots[422] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[422] = nativeContext.LoadFunction("SDL_GetWindowMinimumSize", "SDL3") + ) )(window, w, h); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] @@ -50064,8 +51717,11 @@ public static MaybeBool GetWindowMouseGrab(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetWindowMouseGrabRaw(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowMouseGrab", "SDL3") + (delegate* unmanaged)( + _slots[423] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[423] = nativeContext.LoadFunction("SDL_GetWindowMouseGrab", "SDL3") + ) )(window); [return: NativeTypeName("SDL_bool")] @@ -50088,8 +51744,11 @@ public static Ptr GetWindowMouseRect(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Rect* ISdl.GetWindowMouseRectRaw(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowMouseRect", "SDL3") + (delegate* unmanaged)( + _slots[424] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[424] = nativeContext.LoadFunction("SDL_GetWindowMouseRect", "SDL3") + ) )(window); [return: NativeTypeName("const SDL_Rect *")] @@ -50101,8 +51760,11 @@ public static Ptr GetWindowMouseRect(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetWindowOpacity(WindowHandle window, float* out_opacity) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowOpacity", "SDL3") + (delegate* unmanaged)( + _slots[425] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[425] = nativeContext.LoadFunction("SDL_GetWindowOpacity", "SDL3") + ) )(window, out_opacity); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] @@ -50128,8 +51790,11 @@ public static int GetWindowOpacity(WindowHandle window, Ref out_opacity) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GetWindowParent(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowParent", "SDL3") + (delegate* unmanaged)( + _slots[426] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[426] = nativeContext.LoadFunction("SDL_GetWindowParent", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowParent")] @@ -50140,8 +51805,11 @@ public static WindowHandle GetWindowParent(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] float ISdl.GetWindowPixelDensity(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowPixelDensity", "SDL3") + (delegate* unmanaged)( + _slots[427] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[427] = nativeContext.LoadFunction("SDL_GetWindowPixelDensity", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelDensity")] @@ -50152,8 +51820,11 @@ public static float GetWindowPixelDensity(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetWindowPixelFormat(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowPixelFormat", "SDL3") + (delegate* unmanaged)( + _slots[428] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[428] = nativeContext.LoadFunction("SDL_GetWindowPixelFormat", "SDL3") + ) )(window); [return: NativeTypeName("Uint32")] @@ -50165,8 +51836,11 @@ public static uint GetWindowPixelFormat(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetWindowPosition(WindowHandle window, int* x, int* y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowPosition", "SDL3") + (delegate* unmanaged)( + _slots[429] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[429] = nativeContext.LoadFunction("SDL_GetWindowPosition", "SDL3") + ) )(window, x, y); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] @@ -50193,8 +51867,11 @@ public static int GetWindowPosition(WindowHandle window, Ref x, Ref y) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetWindowProperties(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowProperties", "SDL3") + (delegate* unmanaged)( + _slots[430] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[430] = nativeContext.LoadFunction("SDL_GetWindowProperties", "SDL3") + ) )(window); [return: NativeTypeName("SDL_PropertiesID")] @@ -50206,8 +51883,11 @@ public static uint GetWindowProperties(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetWindowSize(WindowHandle window, int* w, int* h) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowSize", "SDL3") + (delegate* unmanaged)( + _slots[431] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[431] = nativeContext.LoadFunction("SDL_GetWindowSize", "SDL3") + ) )(window, w, h); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] @@ -50234,8 +51914,11 @@ public static int GetWindowSize(WindowHandle window, Ref w, Ref h) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetWindowSizeInPixels(WindowHandle window, int* w, int* h) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowSizeInPixels", "SDL3") + (delegate* unmanaged)( + _slots[432] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[432] = nativeContext.LoadFunction("SDL_GetWindowSizeInPixels", "SDL3") + ) )(window, w, h); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] @@ -50272,8 +51955,11 @@ public static Ptr GetWindowSurface(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Surface* ISdl.GetWindowSurfaceRaw(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowSurface", "SDL3") + (delegate* unmanaged)( + _slots[433] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[433] = nativeContext.LoadFunction("SDL_GetWindowSurface", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurface")] @@ -50295,8 +51981,11 @@ public static Ptr GetWindowTitle(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetWindowTitleRaw(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GetWindowTitle", "SDL3") + (delegate* unmanaged)( + _slots[434] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[434] = nativeContext.LoadFunction("SDL_GetWindowTitle", "SDL3") + ) )(window); [return: NativeTypeName("const char *")] @@ -50317,8 +52006,11 @@ public static Ptr GetWindowTitle(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.GLCreateContextRaw(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_CreateContext", "SDL3") + (delegate* unmanaged)( + _slots[435] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[435] = nativeContext.LoadFunction("SDL_GL_CreateContext", "SDL3") + ) )(window); [return: NativeTypeName("SDL_GLContext")] @@ -50330,8 +52022,11 @@ public static Ptr GetWindowTitle(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_DeleteContext", "SDL3") + (delegate* unmanaged)( + _slots[436] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[436] = nativeContext.LoadFunction("SDL_GL_DeleteContext", "SDL3") + ) )(context); [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] @@ -50357,8 +52052,11 @@ public static int GLDeleteContext([NativeTypeName("SDL_GLContext")] Ref context) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_ExtensionSupported", "SDL3") + (delegate* unmanaged)( + _slots[437] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[437] = nativeContext.LoadFunction("SDL_GL_ExtensionSupported", "SDL3") + ) )(extension); [return: NativeTypeName("SDL_bool")] @@ -50387,8 +52085,11 @@ public static MaybeBool GLExtensionSupported( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GLGetAttribute(GLattr attr, int* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_GetAttribute", "SDL3") + (delegate* unmanaged)( + _slots[438] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[438] = nativeContext.LoadFunction("SDL_GL_GetAttribute", "SDL3") + ) )(attr, value); [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] @@ -50423,8 +52124,11 @@ public static int GLGetAttribute(GLattr attr, Ref value) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.GLGetCurrentContextRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_GetCurrentContext", "SDL3") + (delegate* unmanaged)( + _slots[439] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[439] = nativeContext.LoadFunction("SDL_GL_GetCurrentContext", "SDL3") + ) )(); [return: NativeTypeName("SDL_GLContext")] @@ -50435,8 +52139,11 @@ public static int GLGetAttribute(GLattr attr, Ref value) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GLGetCurrentWindow() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_GetCurrentWindow", "SDL3") + (delegate* unmanaged)( + _slots[440] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[440] = nativeContext.LoadFunction("SDL_GL_GetCurrentWindow", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] @@ -50446,8 +52153,11 @@ WindowHandle ISdl.GLGetCurrentWindow() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] FunctionPointer ISdl.GLGetProcAddress([NativeTypeName("const char *")] sbyte* proc) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_GetProcAddress", "SDL3") + (delegate* unmanaged)( + _slots[441] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[441] = nativeContext.LoadFunction("SDL_GL_GetProcAddress", "SDL3") + ) )(proc); [return: NativeTypeName("SDL_FunctionPointer")] @@ -50476,8 +52186,11 @@ public static FunctionPointer GLGetProcAddress( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GLGetSwapInterval(int* interval) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_GetSwapInterval", "SDL3") + (delegate* unmanaged)( + _slots[442] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[442] = nativeContext.LoadFunction("SDL_GL_GetSwapInterval", "SDL3") + ) )(interval); [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] @@ -50501,8 +52214,11 @@ int ISdl.GLGetSwapInterval(Ref interval) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_LoadLibrary", "SDL3") + (delegate* unmanaged)( + _slots[443] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[443] = nativeContext.LoadFunction("SDL_GL_LoadLibrary", "SDL3") + ) )(path); [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] @@ -50528,8 +52244,11 @@ public static int GLLoadLibrary([NativeTypeName("const char *")] Ref path [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GLMakeCurrent(WindowHandle window, [NativeTypeName("SDL_GLContext")] void* context) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_MakeCurrent", "SDL3") + (delegate* unmanaged)( + _slots[444] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[444] = nativeContext.LoadFunction("SDL_GL_MakeCurrent", "SDL3") + ) )(window, context); [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] @@ -50558,7 +52277,13 @@ public static int GLMakeCurrent( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GLResetAttributes() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GL_ResetAttributes", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[445] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[445] = nativeContext.LoadFunction("SDL_GL_ResetAttributes", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_GL_ResetAttributes")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -50567,8 +52292,11 @@ void ISdl.GLResetAttributes() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GLSetAttribute(GLattr attr, int value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_SetAttribute", "SDL3") + (delegate* unmanaged)( + _slots[446] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[446] = nativeContext.LoadFunction("SDL_GL_SetAttribute", "SDL3") + ) )(attr, value); [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetAttribute")] @@ -50579,8 +52307,11 @@ public static int GLSetAttribute(GLattr attr, int value) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GLSetSwapInterval(int interval) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_SetSwapInterval", "SDL3") + (delegate* unmanaged)( + _slots[447] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[447] = nativeContext.LoadFunction("SDL_GL_SetSwapInterval", "SDL3") + ) )(interval); [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetSwapInterval")] @@ -50590,8 +52321,11 @@ int ISdl.GLSetSwapInterval(int interval) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GLSwapWindow(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GL_SwapWindow", "SDL3") + (delegate* unmanaged)( + _slots[448] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[448] = nativeContext.LoadFunction("SDL_GL_SwapWindow", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] @@ -50600,7 +52334,13 @@ int ISdl.GLSwapWindow(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GLUnloadLibrary() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GL_UnloadLibrary", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[449] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[449] = nativeContext.LoadFunction("SDL_GL_UnloadLibrary", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_GL_UnloadLibrary")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -50614,8 +52354,11 @@ void ISdl.GLUnloadLibrary() => int* count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GlobDirectory", "SDL3") + (delegate* unmanaged)( + _slots[450] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[450] = nativeContext.LoadFunction("SDL_GlobDirectory", "SDL3") + ) )(path, pattern, flags, count); [return: NativeTypeName("char **")] @@ -50665,8 +52408,11 @@ Ref count int* count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GlobStorageDirectory", "SDL3") + (delegate* unmanaged)( + _slots[451] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[451] = nativeContext.LoadFunction("SDL_GlobStorageDirectory", "SDL3") + ) )(storage, path, pattern, flags, count); [return: NativeTypeName("char **")] @@ -50719,8 +52465,11 @@ Ref count [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Guid ISdl.GuidFromString([NativeTypeName("const char *")] sbyte* pchGUID) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GUIDFromString", "SDL3") + (delegate* unmanaged)( + _slots[452] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[452] = nativeContext.LoadFunction("SDL_GUIDFromString", "SDL3") + ) )(pchGUID); [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] @@ -50746,8 +52495,11 @@ public static Guid GuidFromString([NativeTypeName("const char *")] Ref pc [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GuidToString(Guid guid, [NativeTypeName("char *")] sbyte* pszGUID, int cbGUID) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_GUIDToString", "SDL3") + (delegate* unmanaged)( + _slots[453] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[453] = nativeContext.LoadFunction("SDL_GUIDToString", "SDL3") + ) )(guid, pszGUID, cbGUID); [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] @@ -50782,8 +52534,11 @@ int ISdl.HapticEffectSupported( [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_HapticEffectSupported", "SDL3") + (delegate* unmanaged)( + _slots[454] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[454] = nativeContext.LoadFunction("SDL_HapticEffectSupported", "SDL3") + ) )(haptic, effect); [return: NativeTypeName("SDL_bool")] @@ -50829,8 +52584,11 @@ public static MaybeBool HapticRumbleSupported(HapticHandle haptic) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HapticRumbleSupportedRaw(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_HapticRumbleSupported", "SDL3") + (delegate* unmanaged)( + _slots[455] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[455] = nativeContext.LoadFunction("SDL_HapticRumbleSupported", "SDL3") + ) )(haptic); [return: NativeTypeName("SDL_bool")] @@ -50850,7 +52608,13 @@ public static int HapticRumbleSupportedRaw(HapticHandle haptic) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasAltiVecRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasAltiVec", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[456] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[456] = nativeContext.LoadFunction("SDL_HasAltiVec", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] @@ -50868,7 +52632,13 @@ int ISdl.HasAltiVecRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasArmsimdRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasARMSIMD", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[457] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[457] = nativeContext.LoadFunction("SDL_HasARMSIMD", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] @@ -50895,7 +52665,13 @@ int ISdl.HasArmsimdRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasAVX2Raw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasAVX2", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[459] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[459] = nativeContext.LoadFunction("SDL_HasAVX2", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] @@ -50913,7 +52689,13 @@ int ISdl.HasAVX2Raw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasAVX512FRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasAVX512F", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[460] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[460] = nativeContext.LoadFunction("SDL_HasAVX512F", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] @@ -50922,7 +52704,13 @@ int ISdl.HasAVX512FRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasAVXRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasAVX", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[458] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[458] = nativeContext.LoadFunction("SDL_HasAVX", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] @@ -50932,8 +52720,11 @@ int ISdl.HasAVXRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_HasClipboardData", "SDL3") + (delegate* unmanaged)( + _slots[461] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[461] = nativeContext.LoadFunction("SDL_HasClipboardData", "SDL3") + ) )(mime_type); [return: NativeTypeName("SDL_bool")] @@ -50971,7 +52762,13 @@ MaybeBool ISdl.HasClipboardText() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasClipboardTextRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasClipboardText", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[462] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[462] = nativeContext.LoadFunction("SDL_HasClipboardText", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] @@ -50991,7 +52788,13 @@ public static MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasEventRaw([NativeTypeName("Uint32")] uint type) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasEvent", "SDL3"))(type); + ( + (delegate* unmanaged)( + _slots[463] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[463] = nativeContext.LoadFunction("SDL_HasEvent", "SDL3") + ) + )(type); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] @@ -51019,10 +52822,13 @@ int ISdl.HasEventsRaw( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasEvents", "SDL3"))( - minType, - maxType - ); + ( + (delegate* unmanaged)( + _slots[464] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[464] = nativeContext.LoadFunction("SDL_HasEvents", "SDL3") + ) + )(minType, maxType); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] @@ -51043,7 +52849,13 @@ public static int HasEventsRaw( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasGamepadRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasGamepad", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[465] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[465] = nativeContext.LoadFunction("SDL_HasGamepad", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] @@ -51061,7 +52873,13 @@ int ISdl.HasGamepadRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasJoystickRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasJoystick", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[466] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[466] = nativeContext.LoadFunction("SDL_HasJoystick", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] @@ -51079,7 +52897,13 @@ int ISdl.HasJoystickRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasKeyboardRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasKeyboard", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[467] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[467] = nativeContext.LoadFunction("SDL_HasKeyboard", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] @@ -51097,7 +52921,13 @@ int ISdl.HasKeyboardRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasLasxRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasLASX", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[468] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[468] = nativeContext.LoadFunction("SDL_HasLASX", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] @@ -51115,7 +52945,13 @@ int ISdl.HasLasxRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasLSXRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasLSX", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[469] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[469] = nativeContext.LoadFunction("SDL_HasLSX", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] @@ -51133,7 +52969,13 @@ int ISdl.HasLSXRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasMMXRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasMMX", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[470] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[470] = nativeContext.LoadFunction("SDL_HasMMX", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] @@ -51151,7 +52993,13 @@ int ISdl.HasMMXRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasMouseRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasMouse", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[471] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[471] = nativeContext.LoadFunction("SDL_HasMouse", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] @@ -51169,7 +53017,13 @@ int ISdl.HasMouseRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasNeonRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasNEON", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[472] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[472] = nativeContext.LoadFunction("SDL_HasNEON", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] @@ -51189,8 +53043,14 @@ MaybeBool ISdl.HasPrimarySelectionText() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasPrimarySelectionTextRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_HasPrimarySelectionText", "SDL3") + (delegate* unmanaged)( + _slots[473] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[473] = nativeContext.LoadFunction( + "SDL_HasPrimarySelectionText", + "SDL3" + ) + ) )(); [return: NativeTypeName("SDL_bool")] @@ -51204,8 +53064,11 @@ int ISdl.HasProperty( [NativeTypeName("const char *")] sbyte* name ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_HasProperty", "SDL3") + (delegate* unmanaged)( + _slots[474] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[474] = nativeContext.LoadFunction("SDL_HasProperty", "SDL3") + ) )(props, name); [return: NativeTypeName("SDL_bool")] @@ -51243,8 +53106,11 @@ int ISdl.HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* B ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_HasRectIntersection", "SDL3") + (delegate* unmanaged)( + _slots[475] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[475] = nativeContext.LoadFunction("SDL_HasRectIntersection", "SDL3") + ) )(A, B); [return: NativeTypeName("SDL_bool")] @@ -51283,8 +53149,14 @@ int ISdl.HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* B ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_HasRectIntersectionFloat", "SDL3") + (delegate* unmanaged)( + _slots[476] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[476] = nativeContext.LoadFunction( + "SDL_HasRectIntersectionFloat", + "SDL3" + ) + ) )(A, B); [return: NativeTypeName("SDL_bool")] @@ -51330,8 +53202,14 @@ MaybeBool ISdl.HasScreenKeyboardSupport() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasScreenKeyboardSupportRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_HasScreenKeyboardSupport", "SDL3") + (delegate* unmanaged)( + _slots[477] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[477] = nativeContext.LoadFunction( + "SDL_HasScreenKeyboardSupport", + "SDL3" + ) + ) )(); [return: NativeTypeName("SDL_bool")] @@ -51359,7 +53237,13 @@ int ISdl.HasScreenKeyboardSupportRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasSSE2Raw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasSSE2", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[479] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[479] = nativeContext.LoadFunction("SDL_HasSSE2", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] @@ -51377,7 +53261,13 @@ int ISdl.HasSSE2Raw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasSSE3Raw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasSSE3", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[480] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[480] = nativeContext.LoadFunction("SDL_HasSSE3", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] @@ -51395,7 +53285,13 @@ int ISdl.HasSSE3Raw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasSSE41Raw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasSSE41", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[481] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[481] = nativeContext.LoadFunction("SDL_HasSSE41", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] @@ -51413,7 +53309,13 @@ int ISdl.HasSSE41Raw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasSSE42Raw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasSSE42", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[482] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[482] = nativeContext.LoadFunction("SDL_HasSSE42", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] @@ -51422,7 +53324,13 @@ int ISdl.HasSSE42Raw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HasSSERaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasSSE", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[478] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[478] = nativeContext.LoadFunction("SDL_HasSSE", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] @@ -51431,9 +53339,13 @@ int ISdl.HasSSERaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.HidBleScan([NativeTypeName("SDL_bool")] int active) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_hid_ble_scan", "SDL3"))( - active - ); + ( + (delegate* unmanaged)( + _slots[483] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[483] = nativeContext.LoadFunction("SDL_hid_ble_scan", "SDL3") + ) + )(active); [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -51453,8 +53365,11 @@ public static void HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HidClose(HidDeviceHandle dev) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_close", "SDL3") + (delegate* unmanaged)( + _slots[484] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[484] = nativeContext.LoadFunction("SDL_hid_close", "SDL3") + ) )(dev); [NativeFunction("SDL3", EntryPoint = "SDL_hid_close")] @@ -51464,8 +53379,14 @@ int ISdl.HidClose(HidDeviceHandle dev) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.HidDeviceChangeCount() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_device_change_count", "SDL3") + (delegate* unmanaged)( + _slots[485] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[485] = nativeContext.LoadFunction( + "SDL_hid_device_change_count", + "SDL3" + ) + ) )(); [return: NativeTypeName("Uint32")] @@ -51493,8 +53414,11 @@ public static Ptr HidEnumerate( [NativeTypeName("unsigned short")] ushort product_id ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_enumerate", "SDL3") + (delegate* unmanaged)( + _slots[486] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[486] = nativeContext.LoadFunction("SDL_hid_enumerate", "SDL3") + ) )(vendor_id, product_id); [NativeFunction("SDL3", EntryPoint = "SDL_hid_enumerate")] @@ -51506,7 +53430,13 @@ public static Ptr HidEnumerate( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HidExit() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_hid_exit", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[487] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[487] = nativeContext.LoadFunction("SDL_hid_exit", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_hid_exit")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -51515,8 +53445,11 @@ int ISdl.HidExit() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.HidFreeEnumeration(HidDeviceInfo* devs) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_free_enumeration", "SDL3") + (delegate* unmanaged)( + _slots[488] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[488] = nativeContext.LoadFunction("SDL_hid_free_enumeration", "SDL3") + ) )(devs); [NativeFunction("SDL3", EntryPoint = "SDL_hid_free_enumeration")] @@ -51552,8 +53485,11 @@ public static Ptr HidGetDeviceInfo(HidDeviceHandle dev) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] HidDeviceInfo* ISdl.HidGetDeviceInfoRaw(HidDeviceHandle dev) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_get_device_info", "SDL3") + (delegate* unmanaged)( + _slots[489] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[489] = nativeContext.LoadFunction("SDL_hid_get_device_info", "SDL3") + ) )(dev); [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_device_info")] @@ -51568,8 +53504,11 @@ int ISdl.HidGetFeatureReport( [NativeTypeName("size_t")] nuint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_get_feature_report", "SDL3") + (delegate* unmanaged)( + _slots[490] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[490] = nativeContext.LoadFunction("SDL_hid_get_feature_report", "SDL3") + ) )(dev, data, length); [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_feature_report")] @@ -51610,8 +53549,11 @@ int ISdl.HidGetIndexedString( [NativeTypeName("size_t")] nuint maxlen ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_get_indexed_string", "SDL3") + (delegate* unmanaged)( + _slots[491] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[491] = nativeContext.LoadFunction("SDL_hid_get_indexed_string", "SDL3") + ) )(dev, string_index, @string, maxlen); [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_indexed_string")] @@ -51654,8 +53596,11 @@ int ISdl.HidGetInputReport( [NativeTypeName("size_t")] nuint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_get_input_report", "SDL3") + (delegate* unmanaged)( + _slots[492] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[492] = nativeContext.LoadFunction("SDL_hid_get_input_report", "SDL3") + ) )(dev, data, length); [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_input_report")] @@ -51695,8 +53640,14 @@ int ISdl.HidGetManufacturerString( [NativeTypeName("size_t")] nuint maxlen ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_get_manufacturer_string", "SDL3") + (delegate* unmanaged)( + _slots[493] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[493] = nativeContext.LoadFunction( + "SDL_hid_get_manufacturer_string", + "SDL3" + ) + ) )(dev, @string, maxlen); [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_manufacturer_string")] @@ -51736,8 +53687,11 @@ int ISdl.HidGetProductString( [NativeTypeName("size_t")] nuint maxlen ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_get_product_string", "SDL3") + (delegate* unmanaged)( + _slots[494] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[494] = nativeContext.LoadFunction("SDL_hid_get_product_string", "SDL3") + ) )(dev, @string, maxlen); [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_product_string")] @@ -51777,8 +53731,14 @@ int ISdl.HidGetReportDescriptor( [NativeTypeName("size_t")] nuint buf_size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_get_report_descriptor", "SDL3") + (delegate* unmanaged)( + _slots[495] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[495] = nativeContext.LoadFunction( + "SDL_hid_get_report_descriptor", + "SDL3" + ) + ) )(dev, buf, buf_size); [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_report_descriptor")] @@ -51818,8 +53778,14 @@ int ISdl.HidGetSerialNumberString( [NativeTypeName("size_t")] nuint maxlen ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_get_serial_number_string", "SDL3") + (delegate* unmanaged)( + _slots[496] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[496] = nativeContext.LoadFunction( + "SDL_hid_get_serial_number_string", + "SDL3" + ) + ) )(dev, @string, maxlen); [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_serial_number_string")] @@ -51854,7 +53820,13 @@ public static int HidGetSerialNumberString( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HidInit() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_hid_init", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[497] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[497] = nativeContext.LoadFunction("SDL_hid_init", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_hid_init")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -51867,8 +53839,11 @@ HidDeviceHandle ISdl.HidOpen( [NativeTypeName("const wchar_t *")] uint* serial_number ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_open", "SDL3") + (delegate* unmanaged)( + _slots[498] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[498] = nativeContext.LoadFunction("SDL_hid_open", "SDL3") + ) )(vendor_id, product_id, serial_number); [NativeFunction("SDL3", EntryPoint = "SDL_hid_open")] @@ -51905,8 +53880,11 @@ public static HidDeviceHandle HidOpen( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] HidDeviceHandle ISdl.HidOpenPath([NativeTypeName("const char *")] sbyte* path) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_open_path", "SDL3") + (delegate* unmanaged)( + _slots[499] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[499] = nativeContext.LoadFunction("SDL_hid_open_path", "SDL3") + ) )(path); [NativeFunction("SDL3", EntryPoint = "SDL_hid_open_path")] @@ -51936,8 +53914,11 @@ int ISdl.HidRead( [NativeTypeName("size_t")] nuint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_read", "SDL3") + (delegate* unmanaged)( + _slots[500] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[500] = nativeContext.LoadFunction("SDL_hid_read", "SDL3") + ) )(dev, data, length); [NativeFunction("SDL3", EntryPoint = "SDL_hid_read")] @@ -51978,8 +53959,11 @@ int ISdl.HidReadTimeout( int milliseconds ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_read_timeout", "SDL3") + (delegate* unmanaged)( + _slots[501] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[501] = nativeContext.LoadFunction("SDL_hid_read_timeout", "SDL3") + ) )(dev, data, length, milliseconds); [NativeFunction("SDL3", EntryPoint = "SDL_hid_read_timeout")] @@ -52022,8 +54006,14 @@ int ISdl.HidSendFeatureReport( [NativeTypeName("size_t")] nuint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_send_feature_report", "SDL3") + (delegate* unmanaged)( + _slots[502] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[502] = nativeContext.LoadFunction( + "SDL_hid_send_feature_report", + "SDL3" + ) + ) )(dev, data, length); [NativeFunction("SDL3", EntryPoint = "SDL_hid_send_feature_report")] @@ -52059,8 +54049,11 @@ public static int HidSendFeatureReport( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HidSetNonblocking(HidDeviceHandle dev, int nonblock) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_set_nonblocking", "SDL3") + (delegate* unmanaged)( + _slots[503] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[503] = nativeContext.LoadFunction("SDL_hid_set_nonblocking", "SDL3") + ) )(dev, nonblock); [NativeFunction("SDL3", EntryPoint = "SDL_hid_set_nonblocking")] @@ -52075,8 +54068,11 @@ int ISdl.HidWrite( [NativeTypeName("size_t")] nuint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_hid_write", "SDL3") + (delegate* unmanaged)( + _slots[504] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[504] = nativeContext.LoadFunction("SDL_hid_write", "SDL3") + ) )(dev, data, length); [NativeFunction("SDL3", EntryPoint = "SDL_hid_write")] @@ -52111,7 +54107,13 @@ public static int HidWrite( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HideCursor() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HideCursor", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[505] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[505] = nativeContext.LoadFunction("SDL_HideCursor", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_HideCursor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -52120,8 +54122,11 @@ int ISdl.HideCursor() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HideWindow(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_HideWindow", "SDL3") + (delegate* unmanaged)( + _slots[506] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[506] = nativeContext.LoadFunction("SDL_HideWindow", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] @@ -52130,7 +54135,13 @@ int ISdl.HideWindow(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.Init([NativeTypeName("Uint32")] uint flags) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_Init", "SDL3"))(flags); + ( + (delegate* unmanaged)( + _slots[507] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[507] = nativeContext.LoadFunction("SDL_Init", "SDL3") + ) + )(flags); [NativeFunction("SDL3", EntryPoint = "SDL_Init")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -52139,8 +54150,11 @@ int ISdl.Init([NativeTypeName("Uint32")] uint flags) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.InitHapticRumble(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_InitHapticRumble", "SDL3") + (delegate* unmanaged)( + _slots[508] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[508] = nativeContext.LoadFunction("SDL_InitHapticRumble", "SDL3") + ) )(haptic); [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] @@ -52149,9 +54163,13 @@ int ISdl.InitHapticRumble(HapticHandle haptic) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.InitSubSystem([NativeTypeName("Uint32")] uint flags) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_InitSubSystem", "SDL3"))( - flags - ); + ( + (delegate* unmanaged)( + _slots[509] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[509] = nativeContext.LoadFunction("SDL_InitSubSystem", "SDL3") + ) + )(flags); [NativeFunction("SDL3", EntryPoint = "SDL_InitSubSystem")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -52164,8 +54182,11 @@ IOStreamHandle ISdl.IOFromConstMem( [NativeTypeName("size_t")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_IOFromConstMem", "SDL3") + (delegate* unmanaged)( + _slots[510] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[510] = nativeContext.LoadFunction("SDL_IOFromConstMem", "SDL3") + ) )(mem, size); [NativeFunction("SDL3", EntryPoint = "SDL_IOFromConstMem")] @@ -52198,8 +54219,11 @@ public static IOStreamHandle IOFromConstMem( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] IOStreamHandle ISdl.IOFromDynamicMem() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_IOFromDynamicMem", "SDL3") + (delegate* unmanaged)( + _slots[511] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[511] = nativeContext.LoadFunction("SDL_IOFromDynamicMem", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_IOFromDynamicMem")] @@ -52212,8 +54236,11 @@ IOStreamHandle ISdl.IOFromFile( [NativeTypeName("const char *")] sbyte* mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_IOFromFile", "SDL3") + (delegate* unmanaged)( + _slots[512] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[512] = nativeContext.LoadFunction("SDL_IOFromFile", "SDL3") + ) )(file, mode); [NativeFunction("SDL3", EntryPoint = "SDL_IOFromFile")] @@ -52247,8 +54274,11 @@ public static IOStreamHandle IOFromFile( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] IOStreamHandle ISdl.IOFromMem(void* mem, [NativeTypeName("size_t")] nuint size) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_IOFromMem", "SDL3") + (delegate* unmanaged)( + _slots[513] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[513] = nativeContext.LoadFunction("SDL_IOFromMem", "SDL3") + ) )(mem, size); [NativeFunction("SDL3", EntryPoint = "SDL_IOFromMem")] @@ -52278,8 +54308,11 @@ nuint ISdl.IOvprintf( [NativeTypeName("va_list")] sbyte* ap ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_IOvprintf", "SDL3") + (delegate* unmanaged)( + _slots[514] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[514] = nativeContext.LoadFunction("SDL_IOvprintf", "SDL3") + ) )(context, fmt, ap); [return: NativeTypeName("size_t")] @@ -52328,9 +54361,13 @@ public static MaybeBool IsGamepad([NativeTypeName("SDL_JoystickID")] uint i [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_IsGamepad", "SDL3"))( - instance_id - ); + ( + (delegate* unmanaged)( + _slots[515] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[515] = nativeContext.LoadFunction("SDL_IsGamepad", "SDL3") + ) + )(instance_id); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] @@ -52352,8 +54389,11 @@ public static MaybeBool IsJoystickHaptic(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.IsJoystickHapticRaw(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_IsJoystickHaptic", "SDL3") + (delegate* unmanaged)( + _slots[516] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[516] = nativeContext.LoadFunction("SDL_IsJoystickHaptic", "SDL3") + ) )(joystick); [return: NativeTypeName("SDL_bool")] @@ -52377,8 +54417,11 @@ public static MaybeBool IsJoystickVirtual( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_IsJoystickVirtual", "SDL3") + (delegate* unmanaged)( + _slots[517] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[517] = nativeContext.LoadFunction("SDL_IsJoystickVirtual", "SDL3") + ) )(instance_id); [return: NativeTypeName("SDL_bool")] @@ -52398,7 +54441,13 @@ public static int IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint i [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.IsMouseHapticRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_IsMouseHaptic", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[518] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[518] = nativeContext.LoadFunction("SDL_IsMouseHaptic", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] @@ -52416,7 +54465,13 @@ int ISdl.IsMouseHapticRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.IsTabletRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_IsTablet", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[519] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[519] = nativeContext.LoadFunction("SDL_IsTablet", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] @@ -52437,8 +54492,11 @@ public static MaybeBool JoystickConnected(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.JoystickConnectedRaw(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_JoystickConnected", "SDL3") + (delegate* unmanaged)( + _slots[520] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[520] = nativeContext.LoadFunction("SDL_JoystickConnected", "SDL3") + ) )(joystick); [return: NativeTypeName("SDL_bool")] @@ -52460,8 +54518,11 @@ MaybeBool ISdl.JoystickEventsEnabled() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.JoystickEventsEnabledRaw() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_JoystickEventsEnabled", "SDL3") + (delegate* unmanaged)( + _slots[521] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[521] = nativeContext.LoadFunction("SDL_JoystickEventsEnabled", "SDL3") + ) )(); [return: NativeTypeName("SDL_bool")] @@ -52471,9 +54532,13 @@ int ISdl.JoystickEventsEnabledRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Surface* ISdl.LoadBMP([NativeTypeName("const char *")] sbyte* file) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_LoadBMP", "SDL3"))( - file - ); + ( + (delegate* unmanaged)( + _slots[522] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[522] = nativeContext.LoadFunction("SDL_LoadBMP", "SDL3") + ) + )(file); [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -52498,8 +54563,11 @@ public static Ptr LoadBMP([NativeTypeName("const char *")] Ref f [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Surface* ISdl.LoadBMPIO(IOStreamHandle src, [NativeTypeName("SDL_bool")] int closeio) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LoadBMP_IO", "SDL3") + (delegate* unmanaged)( + _slots[523] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[523] = nativeContext.LoadFunction("SDL_LoadBMP_IO", "SDL3") + ) )(src, closeio); [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] @@ -52529,8 +54597,11 @@ public static Ptr LoadBMPIO( [NativeTypeName("size_t *")] nuint* datasize ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LoadFile", "SDL3") + (delegate* unmanaged)( + _slots[524] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[524] = nativeContext.LoadFunction("SDL_LoadFile", "SDL3") + ) )(file, datasize); [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile")] @@ -52568,8 +54639,11 @@ public static Ptr LoadFile( [NativeTypeName("SDL_bool")] int closeio ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LoadFile_IO", "SDL3") + (delegate* unmanaged)( + _slots[525] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[525] = nativeContext.LoadFunction("SDL_LoadFile_IO", "SDL3") + ) )(src, datasize, closeio); [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile_IO")] @@ -52605,8 +54679,11 @@ public static Ptr LoadFileIO( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] FunctionPointer ISdl.LoadFunction(void* handle, [NativeTypeName("const char *")] sbyte* name) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LoadFunction", "SDL3") + (delegate* unmanaged)( + _slots[526] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[526] = nativeContext.LoadFunction("SDL_LoadFunction", "SDL3") + ) )(handle, name); [return: NativeTypeName("SDL_FunctionPointer")] @@ -52638,9 +54715,13 @@ public static FunctionPointer LoadFunction( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.LoadObject([NativeTypeName("const char *")] sbyte* sofile) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_LoadObject", "SDL3"))( - sofile - ); + ( + (delegate* unmanaged)( + _slots[527] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[527] = nativeContext.LoadFunction("SDL_LoadObject", "SDL3") + ) + )(sofile); [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -52670,8 +54751,11 @@ int ISdl.LoadWAV( [NativeTypeName("Uint32 *")] uint* audio_len ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LoadWAV", "SDL3") + (delegate* unmanaged)( + _slots[528] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[528] = nativeContext.LoadFunction("SDL_LoadWAV", "SDL3") + ) )(path, spec, audio_buf, audio_len); [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] @@ -52720,8 +54804,11 @@ int ISdl.LoadWAVIO( [NativeTypeName("Uint32 *")] uint* audio_len ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LoadWAV_IO", "SDL3") + (delegate* unmanaged)( + _slots[529] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[529] = nativeContext.LoadFunction("SDL_LoadWAV_IO", "SDL3") + ) )(src, closeio, spec, audio_buf, audio_len); [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] @@ -52772,8 +54859,11 @@ public static int LoadWAVIO( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.LockAudioStream(AudioStreamHandle stream) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LockAudioStream", "SDL3") + (delegate* unmanaged)( + _slots[530] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[530] = nativeContext.LoadFunction("SDL_LockAudioStream", "SDL3") + ) )(stream); [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] @@ -52783,7 +54873,13 @@ public static int LockAudioStream(AudioStreamHandle stream) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.LockJoysticks() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_LockJoysticks", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[531] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[531] = nativeContext.LoadFunction("SDL_LockJoysticks", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_LockJoysticks")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -52792,8 +54888,11 @@ void ISdl.LockJoysticks() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.LockMutex(MutexHandle mutex) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LockMutex", "SDL3") + (delegate* unmanaged)( + _slots[532] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[532] = nativeContext.LoadFunction("SDL_LockMutex", "SDL3") + ) )(mutex); [NativeFunction("SDL3", EntryPoint = "SDL_LockMutex")] @@ -52802,9 +54901,13 @@ void ISdl.LockMutex(MutexHandle mutex) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.LockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_LockProperties", "SDL3"))( - props - ); + ( + (delegate* unmanaged)( + _slots[533] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[533] = nativeContext.LoadFunction("SDL_LockProperties", "SDL3") + ) + )(props); [NativeFunction("SDL3", EntryPoint = "SDL_LockProperties")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -52814,8 +54917,11 @@ public static int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.LockRWLockForReading(RWLockHandle rwlock) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LockRWLockForReading", "SDL3") + (delegate* unmanaged)( + _slots[534] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[534] = nativeContext.LoadFunction("SDL_LockRWLockForReading", "SDL3") + ) )(rwlock); [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForReading")] @@ -52826,8 +54932,11 @@ public static void LockRWLockForReading(RWLockHandle rwlock) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.LockRWLockForWriting(RWLockHandle rwlock) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LockRWLockForWriting", "SDL3") + (delegate* unmanaged)( + _slots[535] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[535] = nativeContext.LoadFunction("SDL_LockRWLockForWriting", "SDL3") + ) )(rwlock); [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForWriting")] @@ -52837,9 +54946,13 @@ public static void LockRWLockForWriting(RWLockHandle rwlock) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.LockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_LockSpinlock", "SDL3"))( - @lock - ); + ( + (delegate* unmanaged)( + _slots[536] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[536] = nativeContext.LoadFunction("SDL_LockSpinlock", "SDL3") + ) + )(@lock); [NativeFunction("SDL3", EntryPoint = "SDL_LockSpinlock")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -52863,9 +54976,13 @@ public static void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @loc [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.LockSurface(Surface* surface) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_LockSurface", "SDL3"))( - surface - ); + ( + (delegate* unmanaged)( + _slots[537] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[537] = nativeContext.LoadFunction("SDL_LockSurface", "SDL3") + ) + )(surface); [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -52893,8 +55010,11 @@ int ISdl.LockTexture( int* pitch ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LockTexture", "SDL3") + (delegate* unmanaged)( + _slots[538] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[538] = nativeContext.LoadFunction("SDL_LockTexture", "SDL3") + ) )(texture, rect, pixels, pitch); [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] @@ -52939,8 +55059,11 @@ int ISdl.LockTextureToSurface( Surface** surface ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LockTextureToSurface", "SDL3") + (delegate* unmanaged)( + _slots[539] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[539] = nativeContext.LoadFunction("SDL_LockTextureToSurface", "SDL3") + ) )(texture, rect, surface); [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] @@ -52977,8 +55100,11 @@ Ref2D surface [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] LogPriority ISdl.LogGetPriority(int category) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LogGetPriority", "SDL3") + (delegate* unmanaged)( + _slots[540] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[540] = nativeContext.LoadFunction("SDL_LogGetPriority", "SDL3") + ) )(category); [NativeFunction("SDL3", EntryPoint = "SDL_LogGetPriority")] @@ -52993,8 +55119,11 @@ void ISdl.LogMessageV( [NativeTypeName("va_list")] sbyte* ap ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LogMessageV", "SDL3") + (delegate* unmanaged)( + _slots[541] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[541] = nativeContext.LoadFunction("SDL_LogMessageV", "SDL3") + ) )(category, priority, fmt, ap); [NativeFunction("SDL3", EntryPoint = "SDL_LogMessageV")] @@ -53033,7 +55162,13 @@ public static void LogMessageV( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.LogResetPriorities() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_LogResetPriorities", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[542] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[542] = nativeContext.LoadFunction("SDL_LogResetPriorities", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_LogResetPriorities")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -53042,8 +55177,11 @@ void ISdl.LogResetPriorities() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.LogSetAllPriority(LogPriority priority) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LogSetAllPriority", "SDL3") + (delegate* unmanaged)( + _slots[543] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[543] = nativeContext.LoadFunction("SDL_LogSetAllPriority", "SDL3") + ) )(priority); [NativeFunction("SDL3", EntryPoint = "SDL_LogSetAllPriority")] @@ -53054,8 +55192,11 @@ public static void LogSetAllPriority(LogPriority priority) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.LogSetPriority(int category, LogPriority priority) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_LogSetPriority", "SDL3") + (delegate* unmanaged)( + _slots[544] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[544] = nativeContext.LoadFunction("SDL_LogSetPriority", "SDL3") + ) )(category, priority); [NativeFunction("SDL3", EntryPoint = "SDL_LogSetPriority")] @@ -53071,8 +55212,11 @@ uint ISdl.MapRGB( [NativeTypeName("Uint8")] byte b ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_MapRGB", "SDL3") + (delegate* unmanaged)( + _slots[545] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[545] = nativeContext.LoadFunction("SDL_MapRGB", "SDL3") + ) )(format, r, g, b); [return: NativeTypeName("Uint32")] @@ -53119,8 +55263,11 @@ uint ISdl.MapRgba( [NativeTypeName("Uint8")] byte a ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_MapRGBA", "SDL3") + (delegate* unmanaged)( + _slots[546] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[546] = nativeContext.LoadFunction("SDL_MapRGBA", "SDL3") + ) )(format, r, g, b, a); [return: NativeTypeName("Uint32")] @@ -53164,8 +55311,11 @@ public static uint MapRgba( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.MaximizeWindow(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_MaximizeWindow", "SDL3") + (delegate* unmanaged)( + _slots[547] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[547] = nativeContext.LoadFunction("SDL_MaximizeWindow", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] @@ -53175,8 +55325,14 @@ int ISdl.MaximizeWindow(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.MemoryBarrierAcquireFunction() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_MemoryBarrierAcquireFunction", "SDL3") + (delegate* unmanaged)( + _slots[548] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[548] = nativeContext.LoadFunction( + "SDL_MemoryBarrierAcquireFunction", + "SDL3" + ) + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_MemoryBarrierAcquireFunction")] @@ -53186,8 +55342,14 @@ void ISdl.MemoryBarrierAcquireFunction() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.MemoryBarrierReleaseFunction() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_MemoryBarrierReleaseFunction", "SDL3") + (delegate* unmanaged)( + _slots[549] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[549] = nativeContext.LoadFunction( + "SDL_MemoryBarrierReleaseFunction", + "SDL3" + ) + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_MemoryBarrierReleaseFunction")] @@ -53206,8 +55368,11 @@ void ISdl.MemoryBarrierReleaseFunction() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.MetalCreateViewRaw(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_Metal_CreateView", "SDL3") + (delegate* unmanaged)( + _slots[550] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[550] = nativeContext.LoadFunction("SDL_Metal_CreateView", "SDL3") + ) )(window); [return: NativeTypeName("SDL_MetalView")] @@ -53219,8 +55384,11 @@ void ISdl.MemoryBarrierReleaseFunction() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.MetalDestroyView([NativeTypeName("SDL_MetalView")] void* view) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_Metal_DestroyView", "SDL3") + (delegate* unmanaged)( + _slots[551] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[551] = nativeContext.LoadFunction("SDL_Metal_DestroyView", "SDL3") + ) )(view); [NativeFunction("SDL3", EntryPoint = "SDL_Metal_DestroyView")] @@ -53246,8 +55414,11 @@ public static void MetalDestroyView([NativeTypeName("SDL_MetalView")] Ref view) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.MetalGetLayer([NativeTypeName("SDL_MetalView")] void* view) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_Metal_GetLayer", "SDL3") + (delegate* unmanaged)( + _slots[552] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[552] = nativeContext.LoadFunction("SDL_Metal_GetLayer", "SDL3") + ) )(view); [NativeFunction("SDL3", EntryPoint = "SDL_Metal_GetLayer")] @@ -53273,8 +55444,11 @@ public static Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.MinimizeWindow(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_MinimizeWindow", "SDL3") + (delegate* unmanaged)( + _slots[553] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[553] = nativeContext.LoadFunction("SDL_MinimizeWindow", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] @@ -53290,8 +55464,11 @@ int ISdl.MixAudioFormat( int volume ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_MixAudioFormat", "SDL3") + (delegate* unmanaged)( + _slots[554] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[554] = nativeContext.LoadFunction("SDL_MixAudioFormat", "SDL3") + ) )(dst, src, format, len, volume); [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] @@ -53334,8 +55511,14 @@ int volume [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.OnApplicationDidBecomeActive() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OnApplicationDidBecomeActive", "SDL3") + (delegate* unmanaged)( + _slots[555] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[555] = nativeContext.LoadFunction( + "SDL_OnApplicationDidBecomeActive", + "SDL3" + ) + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidBecomeActive")] @@ -53345,8 +55528,14 @@ void ISdl.OnApplicationDidBecomeActive() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.OnApplicationDidEnterBackground() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OnApplicationDidEnterBackground", "SDL3") + (delegate* unmanaged)( + _slots[556] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[556] = nativeContext.LoadFunction( + "SDL_OnApplicationDidEnterBackground", + "SDL3" + ) + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterBackground")] @@ -53357,8 +55546,14 @@ public static void OnApplicationDidEnterBackground() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.OnApplicationDidReceiveMemoryWarning() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OnApplicationDidReceiveMemoryWarning", "SDL3") + (delegate* unmanaged)( + _slots[557] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[557] = nativeContext.LoadFunction( + "SDL_OnApplicationDidReceiveMemoryWarning", + "SDL3" + ) + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidReceiveMemoryWarning")] @@ -53369,8 +55564,14 @@ public static void OnApplicationDidReceiveMemoryWarning() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.OnApplicationWillEnterForeground() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OnApplicationWillEnterForeground", "SDL3") + (delegate* unmanaged)( + _slots[558] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[558] = nativeContext.LoadFunction( + "SDL_OnApplicationWillEnterForeground", + "SDL3" + ) + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterForeground")] @@ -53381,8 +55582,14 @@ public static void OnApplicationWillEnterForeground() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.OnApplicationWillResignActive() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OnApplicationWillResignActive", "SDL3") + (delegate* unmanaged)( + _slots[559] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[559] = nativeContext.LoadFunction( + "SDL_OnApplicationWillResignActive", + "SDL3" + ) + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillResignActive")] @@ -53392,8 +55599,14 @@ void ISdl.OnApplicationWillResignActive() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.OnApplicationWillTerminate() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OnApplicationWillTerminate", "SDL3") + (delegate* unmanaged)( + _slots[560] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[560] = nativeContext.LoadFunction( + "SDL_OnApplicationWillTerminate", + "SDL3" + ) + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillTerminate")] @@ -53406,8 +55619,11 @@ uint ISdl.OpenAudioDevice( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenAudioDevice", "SDL3") + (delegate* unmanaged)( + _slots[561] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[561] = nativeContext.LoadFunction("SDL_OpenAudioDevice", "SDL3") + ) )(devid, spec); [return: NativeTypeName("SDL_AudioDeviceID")] @@ -53447,8 +55663,11 @@ AudioStreamHandle ISdl.OpenAudioDeviceStream( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenAudioDeviceStream", "SDL3") + (delegate* unmanaged)( + _slots[562] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[562] = nativeContext.LoadFunction("SDL_OpenAudioDeviceStream", "SDL3") + ) )(devid, spec, callback, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDeviceStream")] @@ -53492,8 +55711,11 @@ CameraHandle ISdl.OpenCameraDevice( [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenCameraDevice", "SDL3") + (delegate* unmanaged)( + _slots[563] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[563] = nativeContext.LoadFunction("SDL_OpenCameraDevice", "SDL3") + ) )(instance_id, spec); [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] @@ -53526,8 +55748,11 @@ public static CameraHandle OpenCameraDevice( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] StorageHandle ISdl.OpenFileStorage([NativeTypeName("const char *")] sbyte* path) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenFileStorage", "SDL3") + (delegate* unmanaged)( + _slots[564] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[564] = nativeContext.LoadFunction("SDL_OpenFileStorage", "SDL3") + ) )(path); [NativeFunction("SDL3", EntryPoint = "SDL_OpenFileStorage")] @@ -53553,8 +55778,11 @@ public static StorageHandle OpenFileStorage([NativeTypeName("const char *")] Ref [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadHandle ISdl.OpenGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenGamepad", "SDL3") + (delegate* unmanaged)( + _slots[565] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[565] = nativeContext.LoadFunction("SDL_OpenGamepad", "SDL3") + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_OpenGamepad")] @@ -53565,8 +55793,11 @@ public static GamepadHandle OpenGamepad([NativeTypeName("SDL_JoystickID")] uint [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] HapticHandle ISdl.OpenHaptic([NativeTypeName("SDL_HapticID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenHaptic", "SDL3") + (delegate* unmanaged)( + _slots[566] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[566] = nativeContext.LoadFunction("SDL_OpenHaptic", "SDL3") + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_OpenHaptic")] @@ -53577,8 +55808,11 @@ public static HapticHandle OpenHaptic([NativeTypeName("SDL_HapticID")] uint inst [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] HapticHandle ISdl.OpenHapticFromJoystick(JoystickHandle joystick) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenHapticFromJoystick", "SDL3") + (delegate* unmanaged)( + _slots[567] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[567] = nativeContext.LoadFunction("SDL_OpenHapticFromJoystick", "SDL3") + ) )(joystick); [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromJoystick")] @@ -53589,8 +55823,11 @@ public static HapticHandle OpenHapticFromJoystick(JoystickHandle joystick) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] HapticHandle ISdl.OpenHapticFromMouse() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenHapticFromMouse", "SDL3") + (delegate* unmanaged)( + _slots[568] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[568] = nativeContext.LoadFunction("SDL_OpenHapticFromMouse", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromMouse")] @@ -53603,8 +55840,11 @@ IOStreamHandle ISdl.OpenIO( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenIO", "SDL3") + (delegate* unmanaged)( + _slots[569] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[569] = nativeContext.LoadFunction("SDL_OpenIO", "SDL3") + ) )(iface, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_OpenIO")] @@ -53638,8 +55878,11 @@ Ref userdata [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] JoystickHandle ISdl.OpenJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenJoystick", "SDL3") + (delegate* unmanaged)( + _slots[570] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[570] = nativeContext.LoadFunction("SDL_OpenJoystick", "SDL3") + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_OpenJoystick")] @@ -53651,8 +55894,11 @@ public static JoystickHandle OpenJoystick( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] SensorHandle ISdl.OpenSensor([NativeTypeName("SDL_SensorID")] uint instance_id) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenSensor", "SDL3") + (delegate* unmanaged)( + _slots[571] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[571] = nativeContext.LoadFunction("SDL_OpenSensor", "SDL3") + ) )(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_OpenSensor")] @@ -53666,8 +55912,11 @@ StorageHandle ISdl.OpenStorage( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenStorage", "SDL3") + (delegate* unmanaged)( + _slots[572] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[572] = nativeContext.LoadFunction("SDL_OpenStorage", "SDL3") + ) )(iface, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_OpenStorage")] @@ -53704,8 +55953,11 @@ StorageHandle ISdl.OpenTitleStorage( [NativeTypeName("SDL_PropertiesID")] uint props ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenTitleStorage", "SDL3") + (delegate* unmanaged)( + _slots[573] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[573] = nativeContext.LoadFunction("SDL_OpenTitleStorage", "SDL3") + ) )(@override, props); [NativeFunction("SDL3", EntryPoint = "SDL_OpenTitleStorage")] @@ -53737,7 +55989,13 @@ public static StorageHandle OpenTitleStorage( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.OpenURL([NativeTypeName("const char *")] sbyte* url) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_OpenURL", "SDL3"))(url); + ( + (delegate* unmanaged)( + _slots[574] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[574] = nativeContext.LoadFunction("SDL_OpenURL", "SDL3") + ) + )(url); [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -53766,8 +56024,11 @@ StorageHandle ISdl.OpenUserStorage( [NativeTypeName("SDL_PropertiesID")] uint props ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_OpenUserStorage", "SDL3") + (delegate* unmanaged)( + _slots[575] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[575] = nativeContext.LoadFunction("SDL_OpenUserStorage", "SDL3") + ) )(org, app, props); [NativeFunction("SDL3", EntryPoint = "SDL_OpenUserStorage")] @@ -53804,8 +56065,11 @@ public static StorageHandle OpenUserStorage( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_PauseAudioDevice", "SDL3") + (delegate* unmanaged)( + _slots[576] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[576] = nativeContext.LoadFunction("SDL_PauseAudioDevice", "SDL3") + ) )(dev); [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] @@ -53816,8 +56080,11 @@ public static int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint de [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.PauseHaptic(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_PauseHaptic", "SDL3") + (delegate* unmanaged)( + _slots[577] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[577] = nativeContext.LoadFunction("SDL_PauseHaptic", "SDL3") + ) )(haptic); [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] @@ -53833,8 +56100,11 @@ int ISdl.PeepEvents( [NativeTypeName("Uint32")] uint maxType ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_PeepEvents", "SDL3") + (delegate* unmanaged)( + _slots[578] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[578] = nativeContext.LoadFunction("SDL_PeepEvents", "SDL3") + ) )(events, numevents, action, minType, maxType); [NativeFunction("SDL3", EntryPoint = "SDL_PeepEvents")] @@ -53886,9 +56156,13 @@ public static MaybeBool PenConnected([NativeTypeName("SDL_PenID")] uint ins [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.PenConnectedRaw([NativeTypeName("SDL_PenID")] uint instance_id) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_PenConnected", "SDL3"))( - instance_id - ); + ( + (delegate* unmanaged)( + _slots[579] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[579] = nativeContext.LoadFunction("SDL_PenConnected", "SDL3") + ) + )(instance_id); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] @@ -53903,8 +56177,11 @@ int ISdl.PlayHapticRumble( [NativeTypeName("Uint32")] uint length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_PlayHapticRumble", "SDL3") + (delegate* unmanaged)( + _slots[580] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[580] = nativeContext.LoadFunction("SDL_PlayHapticRumble", "SDL3") + ) )(haptic, strength, length); [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] @@ -53917,9 +56194,13 @@ public static int PlayHapticRumble( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.PollEvent(Event* @event) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_PollEvent", "SDL3"))( - @event - ); + ( + (delegate* unmanaged)( + _slots[581] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[581] = nativeContext.LoadFunction("SDL_PollEvent", "SDL3") + ) + )(@event); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] @@ -53944,8 +56225,11 @@ MaybeBool ISdl.PollEvent(Ref @event) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.PostSemaphore(SemaphoreHandle sem) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_PostSemaphore", "SDL3") + (delegate* unmanaged)( + _slots[582] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[582] = nativeContext.LoadFunction("SDL_PostSemaphore", "SDL3") + ) )(sem); [NativeFunction("SDL3", EntryPoint = "SDL_PostSemaphore")] @@ -53973,8 +56257,11 @@ int dst_pitch PixelFormatEnum, void*, int, - int>) - nativeContext.LoadFunction("SDL_PremultiplyAlpha", "SDL3") + int>)( + _slots[583] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[583] = nativeContext.LoadFunction("SDL_PremultiplyAlpha", "SDL3") + ) )(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch); [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] @@ -54055,7 +56342,13 @@ int dst_pitch [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.PumpEvents() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_PumpEvents", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[584] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[584] = nativeContext.LoadFunction("SDL_PumpEvents", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_PumpEvents")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -54063,9 +56356,13 @@ void ISdl.PumpEvents() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.PushEvent(Event* @event) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_PushEvent", "SDL3"))( - @event - ); + ( + (delegate* unmanaged)( + _slots[585] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[585] = nativeContext.LoadFunction("SDL_PushEvent", "SDL3") + ) + )(@event); [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -54092,8 +56389,11 @@ int ISdl.PutAudioStreamData( int len ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_PutAudioStreamData", "SDL3") + (delegate* unmanaged)( + _slots[586] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[586] = nativeContext.LoadFunction("SDL_PutAudioStreamData", "SDL3") + ) )(stream, buf, len); [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] @@ -54135,8 +56435,11 @@ int ISdl.QueryTexture( int* h ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_QueryTexture", "SDL3") + (delegate* unmanaged)( + _slots[587] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[587] = nativeContext.LoadFunction("SDL_QueryTexture", "SDL3") + ) )(texture, format, access, w, h); [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] @@ -54181,7 +56484,13 @@ Ref h [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.Quit() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_Quit", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[588] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[588] = nativeContext.LoadFunction("SDL_Quit", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_Quit")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -54189,9 +56498,13 @@ void ISdl.Quit() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.QuitSubSystem([NativeTypeName("Uint32")] uint flags) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_QuitSubSystem", "SDL3"))( - flags - ); + ( + (delegate* unmanaged)( + _slots[589] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[589] = nativeContext.LoadFunction("SDL_QuitSubSystem", "SDL3") + ) + )(flags); [NativeFunction("SDL3", EntryPoint = "SDL_QuitSubSystem")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -54201,8 +56514,11 @@ public static void QuitSubSystem([NativeTypeName("Uint32")] uint flags) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.RaiseWindow(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RaiseWindow", "SDL3") + (delegate* unmanaged)( + _slots[590] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[590] = nativeContext.LoadFunction("SDL_RaiseWindow", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] @@ -54212,8 +56528,11 @@ int ISdl.RaiseWindow(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] nuint ISdl.ReadIO(IOStreamHandle context, void* ptr, [NativeTypeName("size_t")] nuint size) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadIO", "SDL3") + (delegate* unmanaged)( + _slots[591] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[591] = nativeContext.LoadFunction("SDL_ReadIO", "SDL3") + ) )(context, ptr, size); [return: NativeTypeName("size_t")] @@ -54247,8 +56566,11 @@ public static nuint ReadIO( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadS16BE", "SDL3") + (delegate* unmanaged)( + _slots[592] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[592] = nativeContext.LoadFunction("SDL_ReadS16BE", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54278,8 +56600,11 @@ public static MaybeBool ReadS16BE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadS16LE", "SDL3") + (delegate* unmanaged)( + _slots[593] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[593] = nativeContext.LoadFunction("SDL_ReadS16LE", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54309,8 +56634,11 @@ public static MaybeBool ReadS16LE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadS32BE", "SDL3") + (delegate* unmanaged)( + _slots[594] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[594] = nativeContext.LoadFunction("SDL_ReadS32BE", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54340,8 +56668,11 @@ public static MaybeBool ReadS32BE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadS32LE", "SDL3") + (delegate* unmanaged)( + _slots[595] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[595] = nativeContext.LoadFunction("SDL_ReadS32LE", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54371,8 +56702,11 @@ public static MaybeBool ReadS32LE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadS64BE", "SDL3") + (delegate* unmanaged)( + _slots[596] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[596] = nativeContext.LoadFunction("SDL_ReadS64BE", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54402,8 +56736,11 @@ public static MaybeBool ReadS64BE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadS64LE", "SDL3") + (delegate* unmanaged)( + _slots[597] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[597] = nativeContext.LoadFunction("SDL_ReadS64LE", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54438,8 +56775,11 @@ int ISdl.ReadStorageFile( [NativeTypeName("Uint64")] ulong length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadStorageFile", "SDL3") + (delegate* unmanaged)( + _slots[598] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[598] = nativeContext.LoadFunction("SDL_ReadStorageFile", "SDL3") + ) )(storage, path, destination, length); [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] @@ -54488,8 +56828,11 @@ int ISdl.ReadSurfacePixel( [NativeTypeName("Uint8 *")] byte* a ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadSurfacePixel", "SDL3") + (delegate* unmanaged)( + _slots[599] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[599] = nativeContext.LoadFunction("SDL_ReadSurfacePixel", "SDL3") + ) )(surface, x, y, r, g, b, a); [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] @@ -54550,8 +56893,11 @@ public static int ReadSurfacePixel( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadU16BE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadU16BE", "SDL3") + (delegate* unmanaged)( + _slots[600] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[600] = nativeContext.LoadFunction("SDL_ReadU16BE", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54584,8 +56930,11 @@ public static MaybeBool ReadU16BE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadU16LE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadU16LE", "SDL3") + (delegate* unmanaged)( + _slots[601] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[601] = nativeContext.LoadFunction("SDL_ReadU16LE", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54618,8 +56967,11 @@ public static MaybeBool ReadU16LE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadU32BE", "SDL3") + (delegate* unmanaged)( + _slots[602] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[602] = nativeContext.LoadFunction("SDL_ReadU32BE", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54649,8 +57001,11 @@ public static MaybeBool ReadU32BE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadU32LE", "SDL3") + (delegate* unmanaged)( + _slots[603] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[603] = nativeContext.LoadFunction("SDL_ReadU32LE", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54680,8 +57035,11 @@ public static MaybeBool ReadU32LE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadU64BE", "SDL3") + (delegate* unmanaged)( + _slots[604] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[604] = nativeContext.LoadFunction("SDL_ReadU64BE", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54711,8 +57069,11 @@ public static MaybeBool ReadU64BE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadU64LE", "SDL3") + (delegate* unmanaged)( + _slots[605] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[605] = nativeContext.LoadFunction("SDL_ReadU64LE", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54742,8 +57103,11 @@ public static MaybeBool ReadU64LE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReadU8", "SDL3") + (delegate* unmanaged)( + _slots[606] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[606] = nativeContext.LoadFunction("SDL_ReadU8", "SDL3") + ) )(src, value); [return: NativeTypeName("SDL_bool")] @@ -54772,9 +57136,13 @@ public static MaybeBool ReadU8( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.RegisterEvents(int numevents) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_RegisterEvents", "SDL3"))( - numevents - ); + ( + (delegate* unmanaged)( + _slots[607] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[607] = nativeContext.LoadFunction("SDL_RegisterEvents", "SDL3") + ) + )(numevents); [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_RegisterEvents")] @@ -54784,8 +57152,11 @@ uint ISdl.RegisterEvents(int numevents) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReleaseCameraFrame(CameraHandle camera, Surface* frame) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReleaseCameraFrame", "SDL3") + (delegate* unmanaged)( + _slots[608] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[608] = nativeContext.LoadFunction("SDL_ReleaseCameraFrame", "SDL3") + ) )(camera, frame); [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] @@ -54811,8 +57182,11 @@ public static int ReleaseCameraFrame(CameraHandle camera, Ref frame) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ReloadGamepadMappings() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReloadGamepadMappings", "SDL3") + (delegate* unmanaged)( + _slots[609] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[609] = nativeContext.LoadFunction("SDL_ReloadGamepadMappings", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_ReloadGamepadMappings")] @@ -54821,9 +57195,13 @@ int ISdl.ReloadGamepadMappings() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.RemovePath([NativeTypeName("const char *")] sbyte* path) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_RemovePath", "SDL3"))( - path - ); + ( + (delegate* unmanaged)( + _slots[610] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[610] = nativeContext.LoadFunction("SDL_RemovePath", "SDL3") + ) + )(path); [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -54851,8 +57229,11 @@ int ISdl.RemoveStoragePath( [NativeTypeName("const char *")] sbyte* path ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RemoveStoragePath", "SDL3") + (delegate* unmanaged)( + _slots[611] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[611] = nativeContext.LoadFunction("SDL_RemoveStoragePath", "SDL3") + ) )(storage, path); [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] @@ -54895,7 +57276,13 @@ public static MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_RemoveTimer", "SDL3"))(id); + ( + (delegate* unmanaged)( + _slots[612] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[612] = nativeContext.LoadFunction("SDL_RemoveTimer", "SDL3") + ) + )(id); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] @@ -54909,8 +57296,11 @@ int ISdl.RenamePath( [NativeTypeName("const char *")] sbyte* newpath ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenamePath", "SDL3") + (delegate* unmanaged)( + _slots[613] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[613] = nativeContext.LoadFunction("SDL_RenamePath", "SDL3") + ) )(oldpath, newpath); [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] @@ -54948,8 +57338,11 @@ int ISdl.RenameStoragePath( [NativeTypeName("const char *")] sbyte* newpath ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenameStoragePath", "SDL3") + (delegate* unmanaged)( + _slots[614] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[614] = nativeContext.LoadFunction("SDL_RenameStoragePath", "SDL3") + ) )(storage, oldpath, newpath); [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] @@ -54986,8 +57379,11 @@ public static int RenameStoragePath( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.RenderClear(RendererHandle renderer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderClear", "SDL3") + (delegate* unmanaged)( + _slots[615] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[615] = nativeContext.LoadFunction("SDL_RenderClear", "SDL3") + ) )(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] @@ -55008,8 +57404,11 @@ public static MaybeBool RenderClipEnabled(RendererHandle renderer) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.RenderClipEnabledRaw(RendererHandle renderer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderClipEnabled", "SDL3") + (delegate* unmanaged)( + _slots[616] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[616] = nativeContext.LoadFunction("SDL_RenderClipEnabled", "SDL3") + ) )(renderer); [return: NativeTypeName("SDL_bool")] @@ -55027,8 +57426,14 @@ int ISdl.RenderCoordinatesFromWindow( float* y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderCoordinatesFromWindow", "SDL3") + (delegate* unmanaged)( + _slots[617] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[617] = nativeContext.LoadFunction( + "SDL_RenderCoordinatesFromWindow", + "SDL3" + ) + ) )(renderer, window_x, window_y, x, y); [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] @@ -55084,8 +57489,14 @@ int ISdl.RenderCoordinatesToWindow( float* window_y ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderCoordinatesToWindow", "SDL3") + (delegate* unmanaged)( + _slots[618] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[618] = nativeContext.LoadFunction( + "SDL_RenderCoordinatesToWindow", + "SDL3" + ) + ) )(renderer, x, y, window_x, window_y); [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] @@ -55138,8 +57549,11 @@ int ISdl.RenderFillRect( [NativeTypeName("const SDL_FRect *")] FRect* rect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderFillRect", "SDL3") + (delegate* unmanaged)( + _slots[619] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[619] = nativeContext.LoadFunction("SDL_RenderFillRect", "SDL3") + ) )(renderer, rect); [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] @@ -55176,8 +57590,11 @@ int ISdl.RenderFillRects( int count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderFillRects", "SDL3") + (delegate* unmanaged)( + _slots[620] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[620] = nativeContext.LoadFunction("SDL_RenderFillRects", "SDL3") + ) )(renderer, rects, count); [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] @@ -55220,8 +57637,11 @@ int ISdl.RenderGeometry( int num_indices ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderGeometry", "SDL3") + (delegate* unmanaged)( + _slots[621] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[621] = nativeContext.LoadFunction("SDL_RenderGeometry", "SDL3") + ) )(renderer, texture, vertices, num_vertices, indices, num_indices); [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] @@ -55301,8 +57721,11 @@ int size_indices void*, int, int, - int>) - nativeContext.LoadFunction("SDL_RenderGeometryRaw", "SDL3") + int>)( + _slots[622] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[622] = nativeContext.LoadFunction("SDL_RenderGeometryRaw", "SDL3") + ) )( renderer, texture, @@ -55449,8 +57872,11 @@ int size_indices void*, int, int, - int>) - nativeContext.LoadFunction("SDL_RenderGeometryRawFloat", "SDL3") + int>)( + _slots[623] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[623] = nativeContext.LoadFunction("SDL_RenderGeometryRawFloat", "SDL3") + ) )( renderer, texture, @@ -55571,8 +57997,11 @@ int size_indices [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.RenderLine(RendererHandle renderer, float x1, float y1, float x2, float y2) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderLine", "SDL3") + (delegate* unmanaged)( + _slots[624] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[624] = nativeContext.LoadFunction("SDL_RenderLine", "SDL3") + ) )(renderer, x1, y1, x2, y2); [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] @@ -55587,8 +58016,11 @@ int ISdl.RenderLines( int count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderLines", "SDL3") + (delegate* unmanaged)( + _slots[625] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[625] = nativeContext.LoadFunction("SDL_RenderLines", "SDL3") + ) )(renderer, points, count); [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] @@ -55624,8 +58056,11 @@ int count [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.RenderPoint(RendererHandle renderer, float x, float y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderPoint", "SDL3") + (delegate* unmanaged)( + _slots[626] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[626] = nativeContext.LoadFunction("SDL_RenderPoint", "SDL3") + ) )(renderer, x, y); [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] @@ -55640,8 +58075,11 @@ int ISdl.RenderPoints( int count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderPoints", "SDL3") + (delegate* unmanaged)( + _slots[627] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[627] = nativeContext.LoadFunction("SDL_RenderPoints", "SDL3") + ) )(renderer, points, count); [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] @@ -55677,8 +58115,11 @@ int count [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.RenderPresent(RendererHandle renderer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderPresent", "SDL3") + (delegate* unmanaged)( + _slots[628] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[628] = nativeContext.LoadFunction("SDL_RenderPresent", "SDL3") + ) )(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] @@ -55691,8 +58132,11 @@ int ISdl.RenderPresent(RendererHandle renderer) => [NativeTypeName("const SDL_Rect *")] Rect* rect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderReadPixels", "SDL3") + (delegate* unmanaged)( + _slots[629] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[629] = nativeContext.LoadFunction("SDL_RenderReadPixels", "SDL3") + ) )(renderer, rect); [NativeFunction("SDL3", EntryPoint = "SDL_RenderReadPixels")] @@ -55728,8 +58172,11 @@ int ISdl.RenderRect( [NativeTypeName("const SDL_FRect *")] FRect* rect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderRect", "SDL3") + (delegate* unmanaged)( + _slots[630] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[630] = nativeContext.LoadFunction("SDL_RenderRect", "SDL3") + ) )(renderer, rect); [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] @@ -55766,8 +58213,11 @@ int ISdl.RenderRects( int count ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderRects", "SDL3") + (delegate* unmanaged)( + _slots[631] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[631] = nativeContext.LoadFunction("SDL_RenderRects", "SDL3") + ) )(renderer, rects, count); [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] @@ -55808,8 +58258,11 @@ int ISdl.RenderTexture( [NativeTypeName("const SDL_FRect *")] FRect* dstrect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderTexture", "SDL3") + (delegate* unmanaged)( + _slots[632] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[632] = nativeContext.LoadFunction("SDL_RenderTexture", "SDL3") + ) )(renderer, texture, srcrect, dstrect); [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] @@ -55865,8 +58318,11 @@ int ISdl.RenderTextureRotated( double, FPoint*, FlipMode, - int>) - nativeContext.LoadFunction("SDL_RenderTextureRotated", "SDL3") + int>)( + _slots[633] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[633] = nativeContext.LoadFunction("SDL_RenderTextureRotated", "SDL3") + ) )(renderer, texture, srcrect, dstrect, angle, center, flip); [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] @@ -55936,8 +58392,11 @@ public static MaybeBool RenderViewportSet(RendererHandle renderer) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.RenderViewportSetRaw(RendererHandle renderer) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RenderViewportSet", "SDL3") + (delegate* unmanaged)( + _slots[634] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[634] = nativeContext.LoadFunction("SDL_RenderViewportSet", "SDL3") + ) )(renderer); [return: NativeTypeName("SDL_bool")] @@ -55954,8 +58413,11 @@ AssertState ISdl.ReportAssertion( int line ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ReportAssertion", "SDL3") + (delegate* unmanaged)( + _slots[635] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[635] = nativeContext.LoadFunction("SDL_ReportAssertion", "SDL3") + ) )(data, func, file, line); [NativeFunction("SDL3", EntryPoint = "SDL_ReportAssertion")] @@ -55997,8 +58459,11 @@ int line [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.ResetAssertionReport() => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ResetAssertionReport", "SDL3") + (delegate* unmanaged)( + _slots[636] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[636] = nativeContext.LoadFunction("SDL_ResetAssertionReport", "SDL3") + ) )(); [NativeFunction("SDL3", EntryPoint = "SDL_ResetAssertionReport")] @@ -56007,9 +58472,13 @@ void ISdl.ResetAssertionReport() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ResetHint([NativeTypeName("const char *")] sbyte* name) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_ResetHint", "SDL3"))( - name - ); + ( + (delegate* unmanaged)( + _slots[637] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[637] = nativeContext.LoadFunction("SDL_ResetHint", "SDL3") + ) + )(name); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] @@ -56035,7 +58504,13 @@ public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_ResetHints", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[638] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[638] = nativeContext.LoadFunction("SDL_ResetHints", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_ResetHints")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -56043,7 +58518,13 @@ void ISdl.ResetHints() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.ResetKeyboard() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_ResetKeyboard", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[639] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[639] = nativeContext.LoadFunction("SDL_ResetKeyboard", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_ResetKeyboard")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -56052,8 +58533,11 @@ void ISdl.ResetKeyboard() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.RestoreWindow(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RestoreWindow", "SDL3") + (delegate* unmanaged)( + _slots[640] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[640] = nativeContext.LoadFunction("SDL_RestoreWindow", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] @@ -56063,8 +58547,11 @@ int ISdl.RestoreWindow(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ResumeAudioDevice", "SDL3") + (delegate* unmanaged)( + _slots[641] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[641] = nativeContext.LoadFunction("SDL_ResumeAudioDevice", "SDL3") + ) )(dev); [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] @@ -56075,8 +58562,11 @@ public static int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint d [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ResumeHaptic(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ResumeHaptic", "SDL3") + (delegate* unmanaged)( + _slots[642] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[642] = nativeContext.LoadFunction("SDL_ResumeHaptic", "SDL3") + ) )(haptic); [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] @@ -56091,8 +58581,11 @@ int ISdl.RumbleGamepad( [NativeTypeName("Uint32")] uint duration_ms ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RumbleGamepad", "SDL3") + (delegate* unmanaged)( + _slots[643] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[643] = nativeContext.LoadFunction("SDL_RumbleGamepad", "SDL3") + ) )(gamepad, low_frequency_rumble, high_frequency_rumble, duration_ms); [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] @@ -56112,8 +58605,11 @@ int ISdl.RumbleGamepadTriggers( [NativeTypeName("Uint32")] uint duration_ms ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RumbleGamepadTriggers", "SDL3") + (delegate* unmanaged)( + _slots[644] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[644] = nativeContext.LoadFunction("SDL_RumbleGamepadTriggers", "SDL3") + ) )(gamepad, left_rumble, right_rumble, duration_ms); [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] @@ -56133,8 +58629,11 @@ int ISdl.RumbleJoystick( [NativeTypeName("Uint32")] uint duration_ms ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RumbleJoystick", "SDL3") + (delegate* unmanaged)( + _slots[645] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[645] = nativeContext.LoadFunction("SDL_RumbleJoystick", "SDL3") + ) )(joystick, low_frequency_rumble, high_frequency_rumble, duration_ms); [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] @@ -56160,8 +58659,11 @@ int ISdl.RumbleJoystickTriggers( [NativeTypeName("Uint32")] uint duration_ms ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RumbleJoystickTriggers", "SDL3") + (delegate* unmanaged)( + _slots[646] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[646] = nativeContext.LoadFunction("SDL_RumbleJoystickTriggers", "SDL3") + ) )(joystick, left_rumble, right_rumble, duration_ms); [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] @@ -56180,8 +58682,11 @@ int ISdl.RunHapticEffect( [NativeTypeName("Uint32")] uint iterations ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_RunHapticEffect", "SDL3") + (delegate* unmanaged)( + _slots[647] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[647] = nativeContext.LoadFunction("SDL_RunHapticEffect", "SDL3") + ) )(haptic, effect, iterations); [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] @@ -56195,8 +58700,11 @@ public static int RunHapticEffect( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SaveBMP", "SDL3") + (delegate* unmanaged)( + _slots[648] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[648] = nativeContext.LoadFunction("SDL_SaveBMP", "SDL3") + ) )(surface, file); [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] @@ -56229,8 +58737,11 @@ int ISdl.SaveBMPIO( [NativeTypeName("SDL_bool")] int closeio ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SaveBMP_IO", "SDL3") + (delegate* unmanaged)( + _slots[649] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[649] = nativeContext.LoadFunction("SDL_SaveBMP_IO", "SDL3") + ) )(surface, dst, closeio); [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] @@ -56277,8 +58788,11 @@ public static MaybeBool ScreenKeyboardShown(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ScreenKeyboardShownRaw(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ScreenKeyboardShown", "SDL3") + (delegate* unmanaged)( + _slots[650] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[650] = nativeContext.LoadFunction("SDL_ScreenKeyboardShown", "SDL3") + ) )(window); [return: NativeTypeName("SDL_bool")] @@ -56299,7 +58813,13 @@ MaybeBool ISdl.ScreenSaverEnabled() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ScreenSaverEnabledRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_ScreenSaverEnabled", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[651] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[651] = nativeContext.LoadFunction("SDL_ScreenSaverEnabled", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] @@ -56309,8 +58829,11 @@ int ISdl.ScreenSaverEnabledRaw() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] long ISdl.SeekIO(IOStreamHandle context, [NativeTypeName("Sint64")] long offset, int whence) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SeekIO", "SDL3") + (delegate* unmanaged)( + _slots[652] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[652] = nativeContext.LoadFunction("SDL_SeekIO", "SDL3") + ) )(context, offset, whence); [return: NativeTypeName("Sint64")] @@ -56329,8 +58852,11 @@ int ISdl.SendGamepadEffect( int size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SendGamepadEffect", "SDL3") + (delegate* unmanaged)( + _slots[653] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[653] = nativeContext.LoadFunction("SDL_SendGamepadEffect", "SDL3") + ) )(gamepad, data, size); [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] @@ -56370,8 +58896,11 @@ int ISdl.SendJoystickEffect( int size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SendJoystickEffect", "SDL3") + (delegate* unmanaged)( + _slots[654] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[654] = nativeContext.LoadFunction("SDL_SendJoystickEffect", "SDL3") + ) )(joystick, data, size); [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] @@ -56410,8 +58939,11 @@ void ISdl.SetAssertionHandler( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetAssertionHandler", "SDL3") + (delegate* unmanaged)( + _slots[655] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[655] = nativeContext.LoadFunction("SDL_SetAssertionHandler", "SDL3") + ) )(handler, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_SetAssertionHandler")] @@ -56448,8 +58980,14 @@ int ISdl.SetAudioPostmixCallback( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetAudioPostmixCallback", "SDL3") + (delegate* unmanaged)( + _slots[656] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[656] = nativeContext.LoadFunction( + "SDL_SetAudioPostmixCallback", + "SDL3" + ) + ) )(devid, callback, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] @@ -56489,8 +59027,11 @@ int ISdl.SetAudioStreamFormat( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetAudioStreamFormat", "SDL3") + (delegate* unmanaged)( + _slots[657] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[657] = nativeContext.LoadFunction("SDL_SetAudioStreamFormat", "SDL3") + ) )(stream, src_spec, dst_spec); [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] @@ -56527,8 +59068,14 @@ public static int SetAudioStreamFormat( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetAudioStreamFrequencyRatio(AudioStreamHandle stream, float ratio) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetAudioStreamFrequencyRatio", "SDL3") + (delegate* unmanaged)( + _slots[658] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[658] = nativeContext.LoadFunction( + "SDL_SetAudioStreamFrequencyRatio", + "SDL3" + ) + ) )(stream, ratio); [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] @@ -56543,8 +59090,14 @@ int ISdl.SetAudioStreamGetCallback( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetAudioStreamGetCallback", "SDL3") + (delegate* unmanaged)( + _slots[659] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[659] = nativeContext.LoadFunction( + "SDL_SetAudioStreamGetCallback", + "SDL3" + ) + ) )(stream, callback, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] @@ -56584,8 +59137,14 @@ int ISdl.SetAudioStreamPutCallback( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetAudioStreamPutCallback", "SDL3") + (delegate* unmanaged)( + _slots[660] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[660] = nativeContext.LoadFunction( + "SDL_SetAudioStreamPutCallback", + "SDL3" + ) + ) )(stream, callback, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] @@ -56625,8 +59184,11 @@ int ISdl.SetBooleanProperty( [NativeTypeName("SDL_bool")] int value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetBooleanProperty", "SDL3") + (delegate* unmanaged)( + _slots[661] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[661] = nativeContext.LoadFunction("SDL_SetBooleanProperty", "SDL3") + ) )(props, name, value); [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] @@ -56674,8 +59236,11 @@ int ISdl.SetClipboardData( void*, sbyte**, nuint, - int>) - nativeContext.LoadFunction("SDL_SetClipboardData", "SDL3") + int>)( + _slots[662] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[662] = nativeContext.LoadFunction("SDL_SetClipboardData", "SDL3") + ) )(callback, cleanup, userdata, mime_types, num_mime_types); [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] @@ -56725,8 +59290,11 @@ public static int SetClipboardData( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetClipboardText([NativeTypeName("const char *")] sbyte* text) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetClipboardText", "SDL3") + (delegate* unmanaged)( + _slots[663] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[663] = nativeContext.LoadFunction("SDL_SetClipboardText", "SDL3") + ) )(text); [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] @@ -56752,8 +59320,11 @@ public static int SetClipboardText([NativeTypeName("const char *")] Ref t [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetCursor(CursorHandle cursor) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetCursor", "SDL3") + (delegate* unmanaged)( + _slots[664] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[664] = nativeContext.LoadFunction("SDL_SetCursor", "SDL3") + ) )(cursor); [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] @@ -56766,8 +59337,11 @@ void ISdl.SetEventEnabled( [NativeTypeName("SDL_bool")] int enabled ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetEventEnabled", "SDL3") + (delegate* unmanaged)( + _slots[665] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[665] = nativeContext.LoadFunction("SDL_SetEventEnabled", "SDL3") + ) )(type, enabled); [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] @@ -56797,8 +59371,11 @@ void ISdl.SetEventFilter( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetEventFilter", "SDL3") + (delegate* unmanaged)( + _slots[666] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[666] = nativeContext.LoadFunction("SDL_SetEventFilter", "SDL3") + ) )(filter, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_SetEventFilter")] @@ -56832,8 +59409,11 @@ int ISdl.SetFloatProperty( float value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetFloatProperty", "SDL3") + (delegate* unmanaged)( + _slots[667] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[667] = nativeContext.LoadFunction("SDL_SetFloatProperty", "SDL3") + ) )(props, name, value); [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] @@ -56869,8 +59449,14 @@ float value [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetGamepadEventsEnabled", "SDL3") + (delegate* unmanaged)( + _slots[668] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[668] = nativeContext.LoadFunction( + "SDL_SetGamepadEventsEnabled", + "SDL3" + ) + ) )(enabled); [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] @@ -56897,8 +59483,11 @@ int ISdl.SetGamepadLED( [NativeTypeName("Uint8")] byte blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetGamepadLED", "SDL3") + (delegate* unmanaged)( + _slots[669] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[669] = nativeContext.LoadFunction("SDL_SetGamepadLED", "SDL3") + ) )(gamepad, red, green, blue); [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] @@ -56916,8 +59505,11 @@ int ISdl.SetGamepadMapping( [NativeTypeName("const char *")] sbyte* mapping ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetGamepadMapping", "SDL3") + (delegate* unmanaged)( + _slots[670] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[670] = nativeContext.LoadFunction("SDL_SetGamepadMapping", "SDL3") + ) )(instance_id, mapping); [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] @@ -56950,8 +59542,11 @@ public static int SetGamepadMapping( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetGamepadPlayerIndex(GamepadHandle gamepad, int player_index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetGamepadPlayerIndex", "SDL3") + (delegate* unmanaged)( + _slots[671] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[671] = nativeContext.LoadFunction("SDL_SetGamepadPlayerIndex", "SDL3") + ) )(gamepad, player_index); [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] @@ -56966,8 +59561,14 @@ int ISdl.SetGamepadSensorEnabled( [NativeTypeName("SDL_bool")] int enabled ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetGamepadSensorEnabled", "SDL3") + (delegate* unmanaged)( + _slots[672] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[672] = nativeContext.LoadFunction( + "SDL_SetGamepadSensorEnabled", + "SDL3" + ) + ) )(gamepad, type, enabled); [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] @@ -56997,8 +59598,11 @@ public static int SetGamepadSensorEnabled( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetHapticAutocenter(HapticHandle haptic, int autocenter) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetHapticAutocenter", "SDL3") + (delegate* unmanaged)( + _slots[673] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[673] = nativeContext.LoadFunction("SDL_SetHapticAutocenter", "SDL3") + ) )(haptic, autocenter); [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] @@ -57009,8 +59613,11 @@ public static int SetHapticAutocenter(HapticHandle haptic, int autocenter) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetHapticGain(HapticHandle haptic, int gain) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetHapticGain", "SDL3") + (delegate* unmanaged)( + _slots[674] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[674] = nativeContext.LoadFunction("SDL_SetHapticGain", "SDL3") + ) )(haptic, gain); [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] @@ -57024,8 +59631,11 @@ int ISdl.SetHint( [NativeTypeName("const char *")] sbyte* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetHint", "SDL3") + (delegate* unmanaged)( + _slots[675] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[675] = nativeContext.LoadFunction("SDL_SetHint", "SDL3") + ) )(name, value); [return: NativeTypeName("SDL_bool")] @@ -57065,8 +59675,11 @@ int ISdl.SetHintWithPriority( HintPriority priority ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetHintWithPriority", "SDL3") + (delegate* unmanaged)( + _slots[676] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[676] = nativeContext.LoadFunction("SDL_SetHintWithPriority", "SDL3") + ) )(name, value, priority); [return: NativeTypeName("SDL_bool")] @@ -57106,8 +59719,14 @@ HintPriority priority [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetJoystickEventsEnabled", "SDL3") + (delegate* unmanaged)( + _slots[677] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[677] = nativeContext.LoadFunction( + "SDL_SetJoystickEventsEnabled", + "SDL3" + ) + ) )(enabled); [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] @@ -57134,8 +59753,11 @@ int ISdl.SetJoystickLED( [NativeTypeName("Uint8")] byte blue ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetJoystickLED", "SDL3") + (delegate* unmanaged)( + _slots[678] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[678] = nativeContext.LoadFunction("SDL_SetJoystickLED", "SDL3") + ) )(joystick, red, green, blue); [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] @@ -57150,8 +59772,11 @@ public static int SetJoystickLED( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetJoystickPlayerIndex(JoystickHandle joystick, int player_index) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetJoystickPlayerIndex", "SDL3") + (delegate* unmanaged)( + _slots[679] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[679] = nativeContext.LoadFunction("SDL_SetJoystickPlayerIndex", "SDL3") + ) )(joystick, player_index); [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] @@ -57166,8 +59791,11 @@ int ISdl.SetJoystickVirtualAxis( [NativeTypeName("Sint16")] short value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetJoystickVirtualAxis", "SDL3") + (delegate* unmanaged)( + _slots[680] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[680] = nativeContext.LoadFunction("SDL_SetJoystickVirtualAxis", "SDL3") + ) )(joystick, axis, value); [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] @@ -57185,8 +59813,14 @@ int ISdl.SetJoystickVirtualButton( [NativeTypeName("Uint8")] byte value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetJoystickVirtualButton", "SDL3") + (delegate* unmanaged)( + _slots[681] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[681] = nativeContext.LoadFunction( + "SDL_SetJoystickVirtualButton", + "SDL3" + ) + ) )(joystick, button, value); [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] @@ -57204,8 +59838,11 @@ int ISdl.SetJoystickVirtualHat( [NativeTypeName("Uint8")] byte value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetJoystickVirtualHat", "SDL3") + (delegate* unmanaged)( + _slots[682] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[682] = nativeContext.LoadFunction("SDL_SetJoystickVirtualHat", "SDL3") + ) )(joystick, hat, value); [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] @@ -57222,8 +59859,11 @@ void ISdl.SetLogOutputFunction( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetLogOutputFunction", "SDL3") + (delegate* unmanaged)( + _slots[683] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[683] = nativeContext.LoadFunction("SDL_SetLogOutputFunction", "SDL3") + ) )(callback, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_SetLogOutputFunction")] @@ -57255,9 +59895,13 @@ Ref userdata [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.SetModState(Keymod modstate) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_SetModState", "SDL3"))( - modstate - ); + ( + (delegate* unmanaged)( + _slots[684] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[684] = nativeContext.LoadFunction("SDL_SetModState", "SDL3") + ) + )(modstate); [NativeFunction("SDL3", EntryPoint = "SDL_SetModState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -57270,8 +59914,11 @@ int ISdl.SetNumberProperty( [NativeTypeName("Sint64")] long value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetNumberProperty", "SDL3") + (delegate* unmanaged)( + _slots[685] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[685] = nativeContext.LoadFunction("SDL_SetNumberProperty", "SDL3") + ) )(props, name, value); [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] @@ -57312,8 +59959,11 @@ int ISdl.SetPaletteColors( int ncolors ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetPaletteColors", "SDL3") + (delegate* unmanaged)( + _slots[686] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[686] = nativeContext.LoadFunction("SDL_SetPaletteColors", "SDL3") + ) )(palette, colors, firstcolor, ncolors); [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] @@ -57354,8 +60004,11 @@ int ncolors [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetPixelFormatPalette(PixelFormat* format, Palette* palette) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetPixelFormatPalette", "SDL3") + (delegate* unmanaged)( + _slots[687] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[687] = nativeContext.LoadFunction("SDL_SetPixelFormatPalette", "SDL3") + ) )(format, palette); [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] @@ -57382,8 +60035,14 @@ public static int SetPixelFormatPalette(Ref format, Ref pa [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetPrimarySelectionText", "SDL3") + (delegate* unmanaged)( + _slots[688] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[688] = nativeContext.LoadFunction( + "SDL_SetPrimarySelectionText", + "SDL3" + ) + ) )(text); [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] @@ -57413,8 +60072,11 @@ int ISdl.SetProperty( void* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetProperty", "SDL3") + (delegate* unmanaged)( + _slots[689] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[689] = nativeContext.LoadFunction("SDL_SetProperty", "SDL3") + ) )(props, name, value); [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] @@ -57457,8 +60119,11 @@ int ISdl.SetPropertyWithCleanup( void* userdata ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetPropertyWithCleanup", "SDL3") + (delegate* unmanaged)( + _slots[690] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[690] = nativeContext.LoadFunction("SDL_SetPropertyWithCleanup", "SDL3") + ) )(props, name, value, cleanup, userdata); [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] @@ -57509,8 +60174,11 @@ Ref userdata [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetRelativeMouseMode", "SDL3") + (delegate* unmanaged)( + _slots[691] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[691] = nativeContext.LoadFunction("SDL_SetRelativeMouseMode", "SDL3") + ) )(enabled); [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] @@ -57534,8 +60202,11 @@ int ISdl.SetRenderClipRect( [NativeTypeName("const SDL_Rect *")] Rect* rect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetRenderClipRect", "SDL3") + (delegate* unmanaged)( + _slots[692] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[692] = nativeContext.LoadFunction("SDL_SetRenderClipRect", "SDL3") + ) )(renderer, rect); [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] @@ -57568,8 +60239,11 @@ public static int SetRenderClipRect( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetRenderColorScale(RendererHandle renderer, float scale) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetRenderColorScale", "SDL3") + (delegate* unmanaged)( + _slots[693] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[693] = nativeContext.LoadFunction("SDL_SetRenderColorScale", "SDL3") + ) )(renderer, scale); [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] @@ -57580,8 +60254,11 @@ public static int SetRenderColorScale(RendererHandle renderer, float scale) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetRenderDrawBlendMode(RendererHandle renderer, BlendMode blendMode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetRenderDrawBlendMode", "SDL3") + (delegate* unmanaged)( + _slots[694] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[694] = nativeContext.LoadFunction("SDL_SetRenderDrawBlendMode", "SDL3") + ) )(renderer, blendMode); [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] @@ -57598,8 +60275,11 @@ int ISdl.SetRenderDrawColor( [NativeTypeName("Uint8")] byte a ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetRenderDrawColor", "SDL3") + (delegate* unmanaged)( + _slots[695] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[695] = nativeContext.LoadFunction("SDL_SetRenderDrawColor", "SDL3") + ) )(renderer, r, g, b, a); [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] @@ -57615,8 +60295,14 @@ public static int SetRenderDrawColor( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetRenderDrawColorFloat(RendererHandle renderer, float r, float g, float b, float a) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetRenderDrawColorFloat", "SDL3") + (delegate* unmanaged)( + _slots[696] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[696] = nativeContext.LoadFunction( + "SDL_SetRenderDrawColorFloat", + "SDL3" + ) + ) )(renderer, r, g, b, a); [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] @@ -57644,8 +60330,14 @@ ScaleMode scale_mode int, RendererLogicalPresentation, ScaleMode, - int>) - nativeContext.LoadFunction("SDL_SetRenderLogicalPresentation", "SDL3") + int>)( + _slots[697] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[697] = nativeContext.LoadFunction( + "SDL_SetRenderLogicalPresentation", + "SDL3" + ) + ) )(renderer, w, h, mode, scale_mode); [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] @@ -57661,8 +60353,11 @@ ScaleMode scale_mode [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetRenderScale(RendererHandle renderer, float scaleX, float scaleY) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetRenderScale", "SDL3") + (delegate* unmanaged)( + _slots[698] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[698] = nativeContext.LoadFunction("SDL_SetRenderScale", "SDL3") + ) )(renderer, scaleX, scaleY); [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] @@ -57673,8 +60368,11 @@ public static int SetRenderScale(RendererHandle renderer, float scaleX, float sc [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetRenderTarget(RendererHandle renderer, TextureHandle texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetRenderTarget", "SDL3") + (delegate* unmanaged)( + _slots[699] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[699] = nativeContext.LoadFunction("SDL_SetRenderTarget", "SDL3") + ) )(renderer, texture); [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] @@ -57688,8 +60386,11 @@ int ISdl.SetRenderViewport( [NativeTypeName("const SDL_Rect *")] Rect* rect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetRenderViewport", "SDL3") + (delegate* unmanaged)( + _slots[700] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[700] = nativeContext.LoadFunction("SDL_SetRenderViewport", "SDL3") + ) )(renderer, rect); [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] @@ -57722,8 +60423,11 @@ public static int SetRenderViewport( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetRenderVSync(RendererHandle renderer, int vsync) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetRenderVSync", "SDL3") + (delegate* unmanaged)( + _slots[701] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[701] = nativeContext.LoadFunction("SDL_SetRenderVSync", "SDL3") + ) )(renderer, vsync); [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] @@ -57738,8 +60442,11 @@ int ISdl.SetStringProperty( [NativeTypeName("const char *")] sbyte* value ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetStringProperty", "SDL3") + (delegate* unmanaged)( + _slots[702] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[702] = nativeContext.LoadFunction("SDL_SetStringProperty", "SDL3") + ) )(props, name, value); [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] @@ -57776,8 +60483,11 @@ public static int SetStringProperty( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8")] byte alpha) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetSurfaceAlphaMod", "SDL3") + (delegate* unmanaged)( + _slots[703] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[703] = nativeContext.LoadFunction("SDL_SetSurfaceAlphaMod", "SDL3") + ) )(surface, alpha); [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] @@ -57805,8 +60515,11 @@ public static int SetSurfaceAlphaMod( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetSurfaceBlendMode(Surface* surface, BlendMode blendMode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetSurfaceBlendMode", "SDL3") + (delegate* unmanaged)( + _slots[704] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[704] = nativeContext.LoadFunction("SDL_SetSurfaceBlendMode", "SDL3") + ) )(surface, blendMode); [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] @@ -57835,8 +60548,11 @@ int ISdl.SetSurfaceClipRect( [NativeTypeName("const SDL_Rect *")] Rect* rect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetSurfaceClipRect", "SDL3") + (delegate* unmanaged)( + _slots[705] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[705] = nativeContext.LoadFunction("SDL_SetSurfaceClipRect", "SDL3") + ) )(surface, rect); [return: NativeTypeName("SDL_bool")] @@ -57872,8 +60588,11 @@ public static MaybeBool SetSurfaceClipRect( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetSurfaceColorKey(Surface* surface, int flag, [NativeTypeName("Uint32")] uint key) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetSurfaceColorKey", "SDL3") + (delegate* unmanaged)( + _slots[706] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[706] = nativeContext.LoadFunction("SDL_SetSurfaceColorKey", "SDL3") + ) )(surface, flag, key); [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] @@ -57910,8 +60629,11 @@ int ISdl.SetSurfaceColorMod( [NativeTypeName("Uint8")] byte b ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetSurfaceColorMod", "SDL3") + (delegate* unmanaged)( + _slots[707] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[707] = nativeContext.LoadFunction("SDL_SetSurfaceColorMod", "SDL3") + ) )(surface, r, g, b); [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] @@ -57950,8 +60672,11 @@ public static int SetSurfaceColorMod( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetSurfaceColorspace", "SDL3") + (delegate* unmanaged)( + _slots[708] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[708] = nativeContext.LoadFunction("SDL_SetSurfaceColorspace", "SDL3") + ) )(surface, colorspace); [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] @@ -57977,8 +60702,11 @@ public static int SetSurfaceColorspace(Ref surface, Colorspace colorspa [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetSurfacePalette(Surface* surface, Palette* palette) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetSurfacePalette", "SDL3") + (delegate* unmanaged)( + _slots[709] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[709] = nativeContext.LoadFunction("SDL_SetSurfacePalette", "SDL3") + ) )(surface, palette); [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] @@ -58005,8 +60733,11 @@ public static int SetSurfacePalette(Ref surface, Ref palette) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetSurfaceRLE(Surface* surface, int flag) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetSurfaceRLE", "SDL3") + (delegate* unmanaged)( + _slots[710] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[710] = nativeContext.LoadFunction("SDL_SetSurfaceRLE", "SDL3") + ) )(surface, flag); [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] @@ -58032,8 +60763,11 @@ public static int SetSurfaceRLE(Ref surface, int flag) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetTextInputRect", "SDL3") + (delegate* unmanaged)( + _slots[711] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[711] = nativeContext.LoadFunction("SDL_SetTextInputRect", "SDL3") + ) )(rect); [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] @@ -58059,8 +60793,11 @@ public static int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetTextureAlphaMod", "SDL3") + (delegate* unmanaged)( + _slots[712] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[712] = nativeContext.LoadFunction("SDL_SetTextureAlphaMod", "SDL3") + ) )(texture, alpha); [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] @@ -58073,8 +60810,14 @@ public static int SetTextureAlphaMod( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetTextureAlphaModFloat(TextureHandle texture, float alpha) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetTextureAlphaModFloat", "SDL3") + (delegate* unmanaged)( + _slots[713] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[713] = nativeContext.LoadFunction( + "SDL_SetTextureAlphaModFloat", + "SDL3" + ) + ) )(texture, alpha); [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] @@ -58085,8 +60828,11 @@ public static int SetTextureAlphaModFloat(TextureHandle texture, float alpha) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetTextureBlendMode(TextureHandle texture, BlendMode blendMode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetTextureBlendMode", "SDL3") + (delegate* unmanaged)( + _slots[714] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[714] = nativeContext.LoadFunction("SDL_SetTextureBlendMode", "SDL3") + ) )(texture, blendMode); [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] @@ -58102,8 +60848,11 @@ int ISdl.SetTextureColorMod( [NativeTypeName("Uint8")] byte b ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetTextureColorMod", "SDL3") + (delegate* unmanaged)( + _slots[715] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[715] = nativeContext.LoadFunction("SDL_SetTextureColorMod", "SDL3") + ) )(texture, r, g, b); [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] @@ -58118,8 +60867,14 @@ public static int SetTextureColorMod( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetTextureColorModFloat(TextureHandle texture, float r, float g, float b) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetTextureColorModFloat", "SDL3") + (delegate* unmanaged)( + _slots[716] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[716] = nativeContext.LoadFunction( + "SDL_SetTextureColorModFloat", + "SDL3" + ) + ) )(texture, r, g, b); [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] @@ -58130,8 +60885,11 @@ public static int SetTextureColorModFloat(TextureHandle texture, float r, float [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetTextureScaleMode(TextureHandle texture, ScaleMode scaleMode) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetTextureScaleMode", "SDL3") + (delegate* unmanaged)( + _slots[717] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[717] = nativeContext.LoadFunction("SDL_SetTextureScaleMode", "SDL3") + ) )(texture, scaleMode); [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] @@ -58142,8 +60900,11 @@ public static int SetTextureScaleMode(TextureHandle texture, ScaleMode scaleMode [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetThreadPriority(ThreadPriority priority) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetThreadPriority", "SDL3") + (delegate* unmanaged)( + _slots[718] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[718] = nativeContext.LoadFunction("SDL_SetThreadPriority", "SDL3") + ) )(priority); [NativeFunction("SDL3", EntryPoint = "SDL_SetThreadPriority")] @@ -58158,8 +60919,11 @@ int ISdl.SetTLS( [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetTLS", "SDL3") + (delegate* unmanaged)( + _slots[719] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[719] = nativeContext.LoadFunction("SDL_SetTLS", "SDL3") + ) )(id, value, destructor); [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] @@ -58195,8 +60959,11 @@ public static int SetTLS( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowAlwaysOnTop(WindowHandle window, [NativeTypeName("SDL_bool")] int on_top) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowAlwaysOnTop", "SDL3") + (delegate* unmanaged)( + _slots[720] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[720] = nativeContext.LoadFunction("SDL_SetWindowAlwaysOnTop", "SDL3") + ) )(window, on_top); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] @@ -58223,8 +60990,11 @@ public static int SetWindowAlwaysOnTop( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowBordered(WindowHandle window, [NativeTypeName("SDL_bool")] int bordered) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowBordered", "SDL3") + (delegate* unmanaged)( + _slots[721] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[721] = nativeContext.LoadFunction("SDL_SetWindowBordered", "SDL3") + ) )(window, bordered); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] @@ -58251,8 +61021,11 @@ public static int SetWindowBordered( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowFocusable(WindowHandle window, [NativeTypeName("SDL_bool")] int focusable) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowFocusable", "SDL3") + (delegate* unmanaged)( + _slots[722] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[722] = nativeContext.LoadFunction("SDL_SetWindowFocusable", "SDL3") + ) )(window, focusable); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] @@ -58282,8 +61055,11 @@ int ISdl.SetWindowFullscreen( [NativeTypeName("SDL_bool")] int fullscreen ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowFullscreen", "SDL3") + (delegate* unmanaged)( + _slots[723] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[723] = nativeContext.LoadFunction("SDL_SetWindowFullscreen", "SDL3") + ) )(window, fullscreen); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] @@ -58313,8 +61089,14 @@ int ISdl.SetWindowFullscreenMode( [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowFullscreenMode", "SDL3") + (delegate* unmanaged)( + _slots[724] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[724] = nativeContext.LoadFunction( + "SDL_SetWindowFullscreenMode", + "SDL3" + ) + ) )(window, mode); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] @@ -58351,8 +61133,11 @@ int ISdl.SetWindowHitTest( void* callback_data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowHitTest", "SDL3") + (delegate* unmanaged)( + _slots[725] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[725] = nativeContext.LoadFunction("SDL_SetWindowHitTest", "SDL3") + ) )(window, callback, callback_data); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] @@ -58388,8 +61173,11 @@ Ref callback_data [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowIcon(WindowHandle window, Surface* icon) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowIcon", "SDL3") + (delegate* unmanaged)( + _slots[726] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[726] = nativeContext.LoadFunction("SDL_SetWindowIcon", "SDL3") + ) )(window, icon); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] @@ -58415,8 +61203,11 @@ public static int SetWindowIcon(WindowHandle window, Ref icon) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowInputFocus(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowInputFocus", "SDL3") + (delegate* unmanaged)( + _slots[727] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[727] = nativeContext.LoadFunction("SDL_SetWindowInputFocus", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowInputFocus")] @@ -58427,8 +61218,11 @@ public static int SetWindowInputFocus(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowKeyboardGrab(WindowHandle window, [NativeTypeName("SDL_bool")] int grabbed) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowKeyboardGrab", "SDL3") + (delegate* unmanaged)( + _slots[728] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[728] = nativeContext.LoadFunction("SDL_SetWindowKeyboardGrab", "SDL3") + ) )(window, grabbed); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] @@ -58455,8 +61249,11 @@ public static int SetWindowKeyboardGrab( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowMaximumSize(WindowHandle window, int max_w, int max_h) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowMaximumSize", "SDL3") + (delegate* unmanaged)( + _slots[729] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[729] = nativeContext.LoadFunction("SDL_SetWindowMaximumSize", "SDL3") + ) )(window, max_w, max_h); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] @@ -58467,8 +61264,11 @@ public static int SetWindowMaximumSize(WindowHandle window, int max_w, int max_h [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowMinimumSize(WindowHandle window, int min_w, int min_h) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowMinimumSize", "SDL3") + (delegate* unmanaged)( + _slots[730] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[730] = nativeContext.LoadFunction("SDL_SetWindowMinimumSize", "SDL3") + ) )(window, min_w, min_h); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] @@ -58479,8 +61279,11 @@ public static int SetWindowMinimumSize(WindowHandle window, int min_w, int min_h [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowModalFor(WindowHandle modal_window, WindowHandle parent_window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowModalFor", "SDL3") + (delegate* unmanaged)( + _slots[731] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[731] = nativeContext.LoadFunction("SDL_SetWindowModalFor", "SDL3") + ) )(modal_window, parent_window); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModalFor")] @@ -58491,8 +61294,11 @@ public static int SetWindowModalFor(WindowHandle modal_window, WindowHandle pare [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowMouseGrab(WindowHandle window, [NativeTypeName("SDL_bool")] int grabbed) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowMouseGrab", "SDL3") + (delegate* unmanaged)( + _slots[732] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[732] = nativeContext.LoadFunction("SDL_SetWindowMouseGrab", "SDL3") + ) )(window, grabbed); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] @@ -58522,8 +61328,11 @@ int ISdl.SetWindowMouseRect( [NativeTypeName("const SDL_Rect *")] Rect* rect ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowMouseRect", "SDL3") + (delegate* unmanaged)( + _slots[733] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[733] = nativeContext.LoadFunction("SDL_SetWindowMouseRect", "SDL3") + ) )(window, rect); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] @@ -58556,8 +61365,11 @@ public static int SetWindowMouseRect( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowOpacity(WindowHandle window, float opacity) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowOpacity", "SDL3") + (delegate* unmanaged)( + _slots[734] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[734] = nativeContext.LoadFunction("SDL_SetWindowOpacity", "SDL3") + ) )(window, opacity); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] @@ -58568,8 +61380,11 @@ public static int SetWindowOpacity(WindowHandle window, float opacity) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowPosition(WindowHandle window, int x, int y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowPosition", "SDL3") + (delegate* unmanaged)( + _slots[735] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[735] = nativeContext.LoadFunction("SDL_SetWindowPosition", "SDL3") + ) )(window, x, y); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] @@ -58580,8 +61395,11 @@ public static int SetWindowPosition(WindowHandle window, int x, int y) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowResizable(WindowHandle window, [NativeTypeName("SDL_bool")] int resizable) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowResizable", "SDL3") + (delegate* unmanaged)( + _slots[736] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[736] = nativeContext.LoadFunction("SDL_SetWindowResizable", "SDL3") + ) )(window, resizable); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] @@ -58608,8 +61426,11 @@ public static int SetWindowResizable( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowShape(WindowHandle window, Surface* shape) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowShape", "SDL3") + (delegate* unmanaged)( + _slots[737] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[737] = nativeContext.LoadFunction("SDL_SetWindowShape", "SDL3") + ) )(window, shape); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] @@ -58635,8 +61456,11 @@ public static int SetWindowShape(WindowHandle window, Ref shape) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowSize(WindowHandle window, int w, int h) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowSize", "SDL3") + (delegate* unmanaged)( + _slots[738] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[738] = nativeContext.LoadFunction("SDL_SetWindowSize", "SDL3") + ) )(window, w, h); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] @@ -58647,8 +61471,11 @@ public static int SetWindowSize(WindowHandle window, int w, int h) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetWindowTitle(WindowHandle window, [NativeTypeName("const char *")] sbyte* title) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SetWindowTitle", "SDL3") + (delegate* unmanaged)( + _slots[739] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[739] = nativeContext.LoadFunction("SDL_SetWindowTitle", "SDL3") + ) )(window, title); [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] @@ -58677,7 +61504,13 @@ public static int SetWindowTitle( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ShowCursor() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_ShowCursor", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[740] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[740] = nativeContext.LoadFunction("SDL_ShowCursor", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -58689,8 +61522,11 @@ int ISdl.ShowMessageBox( int* buttonid ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ShowMessageBox", "SDL3") + (delegate* unmanaged)( + _slots[741] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[741] = nativeContext.LoadFunction("SDL_ShowMessageBox", "SDL3") + ) )(messageboxdata, buttonid); [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] @@ -58738,8 +61574,11 @@ void ISdl.ShowOpenFileDialog( DialogFileFilter*, sbyte*, int, - void>) - nativeContext.LoadFunction("SDL_ShowOpenFileDialog", "SDL3") + void>)( + _slots[742] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[742] = nativeContext.LoadFunction("SDL_ShowOpenFileDialog", "SDL3") + ) )(callback, userdata, window, filters, default_location, allow_many); [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFileDialog")] @@ -58815,8 +61654,11 @@ void ISdl.ShowOpenFolderDialog( [NativeTypeName("SDL_bool")] int allow_many ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ShowOpenFolderDialog", "SDL3") + (delegate* unmanaged)( + _slots[743] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[743] = nativeContext.LoadFunction("SDL_ShowOpenFolderDialog", "SDL3") + ) )(callback, userdata, window, default_location, allow_many); [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFolderDialog")] @@ -58877,8 +61719,11 @@ void ISdl.ShowSaveFileDialog( WindowHandle, DialogFileFilter*, sbyte*, - void>) - nativeContext.LoadFunction("SDL_ShowSaveFileDialog", "SDL3") + void>)( + _slots[744] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[744] = nativeContext.LoadFunction("SDL_ShowSaveFileDialog", "SDL3") + ) )(callback, userdata, window, filters, default_location); [NativeFunction("SDL3", EntryPoint = "SDL_ShowSaveFileDialog")] @@ -58933,8 +61778,11 @@ int ISdl.ShowSimpleMessageBox( WindowHandle window ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ShowSimpleMessageBox", "SDL3") + (delegate* unmanaged)( + _slots[745] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[745] = nativeContext.LoadFunction("SDL_ShowSimpleMessageBox", "SDL3") + ) )(flags, title, message, window); [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] @@ -58975,8 +61823,11 @@ WindowHandle window [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ShowWindow(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ShowWindow", "SDL3") + (delegate* unmanaged)( + _slots[746] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[746] = nativeContext.LoadFunction("SDL_ShowWindow", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] @@ -58986,8 +61837,11 @@ int ISdl.ShowWindow(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.ShowWindowSystemMenu(WindowHandle window, int x, int y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_ShowWindowSystemMenu", "SDL3") + (delegate* unmanaged)( + _slots[747] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[747] = nativeContext.LoadFunction("SDL_ShowWindowSystemMenu", "SDL3") + ) )(window, x, y); [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] @@ -58998,8 +61852,11 @@ public static int ShowWindowSystemMenu(WindowHandle window, int x, int y) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SignalCondition(ConditionHandle cond) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SignalCondition", "SDL3") + (delegate* unmanaged)( + _slots[748] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[748] = nativeContext.LoadFunction("SDL_SignalCondition", "SDL3") + ) )(cond); [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] @@ -59008,7 +61865,13 @@ int ISdl.SignalCondition(ConditionHandle cond) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] nuint ISdl.SimdGetAlignment() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_SIMDGetAlignment", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[749] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[749] = nativeContext.LoadFunction("SDL_SIMDGetAlignment", "SDL3") + ) + )(); [return: NativeTypeName("size_t")] [NativeFunction("SDL3", EntryPoint = "SDL_SIMDGetAlignment")] @@ -59024,8 +61887,11 @@ int ISdl.SoftStretch( ScaleMode scaleMode ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SoftStretch", "SDL3") + (delegate* unmanaged)( + _slots[750] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[750] = nativeContext.LoadFunction("SDL_SoftStretch", "SDL3") + ) )(src, srcrect, dst, dstrect, scaleMode); [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] @@ -59076,7 +61942,13 @@ ScaleMode scaleMode [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.StartTextInput() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_StartTextInput", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[751] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[751] = nativeContext.LoadFunction("SDL_StartTextInput", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -59085,8 +61957,11 @@ void ISdl.StartTextInput() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.StopHapticEffect(HapticHandle haptic, int effect) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_StopHapticEffect", "SDL3") + (delegate* unmanaged)( + _slots[752] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[752] = nativeContext.LoadFunction("SDL_StopHapticEffect", "SDL3") + ) )(haptic, effect); [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] @@ -59097,8 +61972,11 @@ public static int StopHapticEffect(HapticHandle haptic, int effect) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.StopHapticEffects(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_StopHapticEffects", "SDL3") + (delegate* unmanaged)( + _slots[753] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[753] = nativeContext.LoadFunction("SDL_StopHapticEffects", "SDL3") + ) )(haptic); [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] @@ -59108,8 +61986,11 @@ int ISdl.StopHapticEffects(HapticHandle haptic) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.StopHapticRumble(HapticHandle haptic) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_StopHapticRumble", "SDL3") + (delegate* unmanaged)( + _slots[754] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[754] = nativeContext.LoadFunction("SDL_StopHapticRumble", "SDL3") + ) )(haptic); [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] @@ -59118,7 +61999,13 @@ int ISdl.StopHapticRumble(HapticHandle haptic) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.StopTextInput() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_StopTextInput", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[755] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[755] = nativeContext.LoadFunction("SDL_StopTextInput", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_StopTextInput")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -59138,8 +62025,11 @@ public static MaybeBool StorageReady(StorageHandle storage) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.StorageReadyRaw(StorageHandle storage) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_StorageReady", "SDL3") + (delegate* unmanaged)( + _slots[756] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[756] = nativeContext.LoadFunction("SDL_StorageReady", "SDL3") + ) )(storage); [return: NativeTypeName("SDL_bool")] @@ -59150,8 +62040,11 @@ int ISdl.StorageReadyRaw(StorageHandle storage) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SurfaceHasColorKey(Surface* surface) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SurfaceHasColorKey", "SDL3") + (delegate* unmanaged)( + _slots[757] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[757] = nativeContext.LoadFunction("SDL_SurfaceHasColorKey", "SDL3") + ) )(surface); [return: NativeTypeName("SDL_bool")] @@ -59178,8 +62071,11 @@ public static MaybeBool SurfaceHasColorKey(Ref surface) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SurfaceHasRLE(Surface* surface) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SurfaceHasRLE", "SDL3") + (delegate* unmanaged)( + _slots[758] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[758] = nativeContext.LoadFunction("SDL_SurfaceHasRLE", "SDL3") + ) )(surface); [return: NativeTypeName("SDL_bool")] @@ -59206,8 +62102,11 @@ public static MaybeBool SurfaceHasRLE(Ref surface) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SyncWindow(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_SyncWindow", "SDL3") + (delegate* unmanaged)( + _slots[759] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[759] = nativeContext.LoadFunction("SDL_SyncWindow", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] @@ -59217,8 +62116,11 @@ int ISdl.SyncWindow(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] long ISdl.TellIO(IOStreamHandle context) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_TellIO", "SDL3") + (delegate* unmanaged)( + _slots[760] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[760] = nativeContext.LoadFunction("SDL_TellIO", "SDL3") + ) )(context); [return: NativeTypeName("Sint64")] @@ -59237,7 +62139,13 @@ long ISdl.TellIO(IOStreamHandle context) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.TextInputActiveRaw() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_TextInputActive", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[761] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[761] = nativeContext.LoadFunction("SDL_TextInputActive", "SDL3") + ) + )(); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] @@ -59250,8 +62158,11 @@ long ISdl.TimeFromWindows( [NativeTypeName("Uint32")] uint dwHighDateTime ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_TimeFromWindows", "SDL3") + (delegate* unmanaged)( + _slots[762] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[762] = nativeContext.LoadFunction("SDL_TimeFromWindows", "SDL3") + ) )(dwLowDateTime, dwHighDateTime); [return: NativeTypeName("SDL_Time")] @@ -59269,8 +62180,11 @@ int ISdl.TimeToDateTime( [NativeTypeName("SDL_bool")] int localTime ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_TimeToDateTime", "SDL3") + (delegate* unmanaged)( + _slots[763] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[763] = nativeContext.LoadFunction("SDL_TimeToDateTime", "SDL3") + ) )(ticks, dt, localTime); [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] @@ -59310,8 +62224,11 @@ void ISdl.TimeToWindows( [NativeTypeName("Uint32 *")] uint* dwHighDateTime ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_TimeToWindows", "SDL3") + (delegate* unmanaged)( + _slots[764] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[764] = nativeContext.LoadFunction("SDL_TimeToWindows", "SDL3") + ) )(ticks, dwLowDateTime, dwHighDateTime); [NativeFunction("SDL3", EntryPoint = "SDL_TimeToWindows")] @@ -59348,8 +62265,11 @@ public static void TimeToWindows( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.TryLockMutex(MutexHandle mutex) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_TryLockMutex", "SDL3") + (delegate* unmanaged)( + _slots[765] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[765] = nativeContext.LoadFunction("SDL_TryLockMutex", "SDL3") + ) )(mutex); [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] @@ -59359,8 +62279,14 @@ int ISdl.TryLockMutex(MutexHandle mutex) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.TryLockRWLockForReading(RWLockHandle rwlock) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_TryLockRWLockForReading", "SDL3") + (delegate* unmanaged)( + _slots[766] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[766] = nativeContext.LoadFunction( + "SDL_TryLockRWLockForReading", + "SDL3" + ) + ) )(rwlock); [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] @@ -59371,8 +62297,14 @@ public static int TryLockRWLockForReading(RWLockHandle rwlock) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.TryLockRWLockForWriting(RWLockHandle rwlock) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_TryLockRWLockForWriting", "SDL3") + (delegate* unmanaged)( + _slots[767] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[767] = nativeContext.LoadFunction( + "SDL_TryLockRWLockForWriting", + "SDL3" + ) + ) )(rwlock); [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] @@ -59382,9 +62314,13 @@ public static int TryLockRWLockForWriting(RWLockHandle rwlock) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_TryLockSpinlock", "SDL3"))( - @lock - ); + ( + (delegate* unmanaged)( + _slots[768] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[768] = nativeContext.LoadFunction("SDL_TryLockSpinlock", "SDL3") + ) + )(@lock); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] @@ -59412,8 +62348,11 @@ public static MaybeBool TryLockSpinlock( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.TryWaitSemaphore(SemaphoreHandle sem) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_TryWaitSemaphore", "SDL3") + (delegate* unmanaged)( + _slots[769] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[769] = nativeContext.LoadFunction("SDL_TryWaitSemaphore", "SDL3") + ) )(sem); [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] @@ -59423,8 +62362,11 @@ int ISdl.TryWaitSemaphore(SemaphoreHandle sem) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnbindAudioStream(AudioStreamHandle stream) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UnbindAudioStream", "SDL3") + (delegate* unmanaged)( + _slots[770] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[770] = nativeContext.LoadFunction("SDL_UnbindAudioStream", "SDL3") + ) )(stream); [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStream")] @@ -59435,8 +62377,11 @@ public static void UnbindAudioStream(AudioStreamHandle stream) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnbindAudioStreams(AudioStreamHandle* streams, int num_streams) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UnbindAudioStreams", "SDL3") + (delegate* unmanaged)( + _slots[771] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[771] = nativeContext.LoadFunction("SDL_UnbindAudioStreams", "SDL3") + ) )(streams, num_streams); [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] @@ -59461,9 +62406,13 @@ public static void UnbindAudioStreams(Ref streams, int num_st [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnloadObject(void* handle) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_UnloadObject", "SDL3"))( - handle - ); + ( + (delegate* unmanaged)( + _slots[772] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[772] = nativeContext.LoadFunction("SDL_UnloadObject", "SDL3") + ) + )(handle); [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -59486,8 +62435,11 @@ void ISdl.UnloadObject(Ref handle) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.UnlockAudioStream(AudioStreamHandle stream) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UnlockAudioStream", "SDL3") + (delegate* unmanaged)( + _slots[773] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[773] = nativeContext.LoadFunction("SDL_UnlockAudioStream", "SDL3") + ) )(stream); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] @@ -59497,7 +62449,13 @@ public static int UnlockAudioStream(AudioStreamHandle stream) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnlockJoysticks() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_UnlockJoysticks", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[774] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[774] = nativeContext.LoadFunction("SDL_UnlockJoysticks", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockJoysticks")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -59506,8 +62464,11 @@ void ISdl.UnlockJoysticks() => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnlockMutex(MutexHandle mutex) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UnlockMutex", "SDL3") + (delegate* unmanaged)( + _slots[775] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[775] = nativeContext.LoadFunction("SDL_UnlockMutex", "SDL3") + ) )(mutex); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockMutex")] @@ -59517,8 +62478,11 @@ void ISdl.UnlockMutex(MutexHandle mutex) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UnlockProperties", "SDL3") + (delegate* unmanaged)( + _slots[776] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[776] = nativeContext.LoadFunction("SDL_UnlockProperties", "SDL3") + ) )(props); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockProperties")] @@ -59529,8 +62493,11 @@ public static void UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint pr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnlockRWLock(RWLockHandle rwlock) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UnlockRWLock", "SDL3") + (delegate* unmanaged)( + _slots[777] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[777] = nativeContext.LoadFunction("SDL_UnlockRWLock", "SDL3") + ) )(rwlock); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockRWLock")] @@ -59539,9 +62506,13 @@ void ISdl.UnlockRWLock(RWLockHandle rwlock) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_UnlockSpinlock", "SDL3"))( - @lock - ); + ( + (delegate* unmanaged)( + _slots[778] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[778] = nativeContext.LoadFunction("SDL_UnlockSpinlock", "SDL3") + ) + )(@lock); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSpinlock")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -59566,8 +62537,11 @@ public static void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @l [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnlockSurface(Surface* surface) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UnlockSurface", "SDL3") + (delegate* unmanaged)( + _slots[779] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[779] = nativeContext.LoadFunction("SDL_UnlockSurface", "SDL3") + ) )(surface); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSurface")] @@ -59591,8 +62565,11 @@ void ISdl.UnlockSurface(Ref surface) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnlockTexture(TextureHandle texture) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UnlockTexture", "SDL3") + (delegate* unmanaged)( + _slots[780] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[780] = nativeContext.LoadFunction("SDL_UnlockTexture", "SDL3") + ) )(texture); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] @@ -59601,7 +62578,13 @@ void ISdl.UnlockTexture(TextureHandle texture) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UpdateGamepads() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_UpdateGamepads", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[781] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[781] = nativeContext.LoadFunction("SDL_UpdateGamepads", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_UpdateGamepads")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -59614,8 +62597,11 @@ int ISdl.UpdateHapticEffect( [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UpdateHapticEffect", "SDL3") + (delegate* unmanaged)( + _slots[782] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[782] = nativeContext.LoadFunction("SDL_UpdateHapticEffect", "SDL3") + ) )(haptic, effect, data); [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] @@ -59650,7 +62636,13 @@ public static int UpdateHapticEffect( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UpdateJoysticks() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_UpdateJoysticks", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[783] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[783] = nativeContext.LoadFunction("SDL_UpdateJoysticks", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_UpdateJoysticks")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -59666,8 +62658,11 @@ int ISdl.UpdateNVTexture( int UVpitch ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UpdateNVTexture", "SDL3") + (delegate* unmanaged)( + _slots[784] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[784] = nativeContext.LoadFunction("SDL_UpdateNVTexture", "SDL3") + ) )(texture, rect, Yplane, Ypitch, UVplane, UVpitch); [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] @@ -59721,7 +62716,13 @@ int UVpitch [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UpdateSensors() => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_UpdateSensors", "SDL3"))(); + ( + (delegate* unmanaged)( + _slots[785] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[785] = nativeContext.LoadFunction("SDL_UpdateSensors", "SDL3") + ) + )(); [NativeFunction("SDL3", EntryPoint = "SDL_UpdateSensors")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -59735,8 +62736,11 @@ int ISdl.UpdateTexture( int pitch ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UpdateTexture", "SDL3") + (delegate* unmanaged)( + _slots[786] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[786] = nativeContext.LoadFunction("SDL_UpdateTexture", "SDL3") + ) )(texture, rect, pixels, pitch); [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] @@ -59776,8 +62780,11 @@ int pitch [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.UpdateWindowSurface(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UpdateWindowSurface", "SDL3") + (delegate* unmanaged)( + _slots[787] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[787] = nativeContext.LoadFunction("SDL_UpdateWindowSurface", "SDL3") + ) )(window); [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] @@ -59792,8 +62799,14 @@ int ISdl.UpdateWindowSurfaceRects( int numrects ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UpdateWindowSurfaceRects", "SDL3") + (delegate* unmanaged)( + _slots[788] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[788] = nativeContext.LoadFunction( + "SDL_UpdateWindowSurfaceRects", + "SDL3" + ) + ) )(window, rects, numrects); [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] @@ -59838,8 +62851,11 @@ int ISdl.UpdateYUVTexture( int Vpitch ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_UpdateYUVTexture", "SDL3") + (delegate* unmanaged)( + _slots[789] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[789] = nativeContext.LoadFunction("SDL_UpdateYUVTexture", "SDL3") + ) )(texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch); [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] @@ -59903,8 +62919,11 @@ int Vpitch [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WaitCondition(ConditionHandle cond, MutexHandle mutex) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WaitCondition", "SDL3") + (delegate* unmanaged)( + _slots[790] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[790] = nativeContext.LoadFunction("SDL_WaitCondition", "SDL3") + ) )(cond, mutex); [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] @@ -59919,8 +62938,11 @@ int ISdl.WaitConditionTimeout( [NativeTypeName("Sint32")] int timeoutMS ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WaitConditionTimeout", "SDL3") + (delegate* unmanaged)( + _slots[791] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[791] = nativeContext.LoadFunction("SDL_WaitConditionTimeout", "SDL3") + ) )(cond, mutex, timeoutMS); [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] @@ -59933,9 +62955,13 @@ public static int WaitConditionTimeout( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WaitEvent(Event* @event) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_WaitEvent", "SDL3"))( - @event - ); + ( + (delegate* unmanaged)( + _slots[792] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[792] = nativeContext.LoadFunction("SDL_WaitEvent", "SDL3") + ) + )(@event); [return: NativeTypeName("SDL_bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] @@ -59960,8 +62986,11 @@ MaybeBool ISdl.WaitEvent(Ref @event) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WaitEventTimeout", "SDL3") + (delegate* unmanaged)( + _slots[793] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[793] = nativeContext.LoadFunction("SDL_WaitEventTimeout", "SDL3") + ) )(@event, timeoutMS); [return: NativeTypeName("SDL_bool")] @@ -59994,8 +63023,11 @@ public static MaybeBool WaitEventTimeout( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WaitSemaphore(SemaphoreHandle sem) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WaitSemaphore", "SDL3") + (delegate* unmanaged)( + _slots[794] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[794] = nativeContext.LoadFunction("SDL_WaitSemaphore", "SDL3") + ) )(sem); [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphore")] @@ -60005,8 +63037,11 @@ int ISdl.WaitSemaphore(SemaphoreHandle sem) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WaitSemaphoreTimeout(SemaphoreHandle sem, [NativeTypeName("Sint32")] int timeoutMS) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WaitSemaphoreTimeout", "SDL3") + (delegate* unmanaged)( + _slots[795] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[795] = nativeContext.LoadFunction("SDL_WaitSemaphoreTimeout", "SDL3") + ) )(sem, timeoutMS); [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] @@ -60019,8 +63054,11 @@ public static int WaitSemaphoreTimeout( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.WaitThread(ThreadHandle thread, int* status) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WaitThread", "SDL3") + (delegate* unmanaged)( + _slots[796] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[796] = nativeContext.LoadFunction("SDL_WaitThread", "SDL3") + ) )(thread, status); [NativeFunction("SDL3", EntryPoint = "SDL_WaitThread")] @@ -60046,8 +63084,11 @@ public static void WaitThread(ThreadHandle thread, Ref status) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WarpMouseGlobal(float x, float y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WarpMouseGlobal", "SDL3") + (delegate* unmanaged)( + _slots[797] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[797] = nativeContext.LoadFunction("SDL_WarpMouseGlobal", "SDL3") + ) )(x, y); [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseGlobal")] @@ -60057,8 +63098,11 @@ int ISdl.WarpMouseGlobal(float x, float y) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.WarpMouseInWindow(WindowHandle window, float x, float y) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WarpMouseInWindow", "SDL3") + (delegate* unmanaged)( + _slots[798] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[798] = nativeContext.LoadFunction("SDL_WarpMouseInWindow", "SDL3") + ) )(window, x, y); [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseInWindow")] @@ -60068,7 +63112,13 @@ public static void WarpMouseInWindow(WindowHandle window, float x, float y) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.WasInit([NativeTypeName("Uint32")] uint flags) => - ((delegate* unmanaged)nativeContext.LoadFunction("SDL_WasInit", "SDL3"))(flags); + ( + (delegate* unmanaged)( + _slots[799] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[799] = nativeContext.LoadFunction("SDL_WasInit", "SDL3") + ) + )(flags); [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_WasInit")] @@ -60089,8 +63139,11 @@ public static MaybeBool WindowHasSurface(WindowHandle window) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WindowHasSurfaceRaw(WindowHandle window) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WindowHasSurface", "SDL3") + (delegate* unmanaged)( + _slots[800] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[800] = nativeContext.LoadFunction("SDL_WindowHasSurface", "SDL3") + ) )(window); [return: NativeTypeName("SDL_bool")] @@ -60106,8 +63159,11 @@ nuint ISdl.WriteIO( [NativeTypeName("size_t")] nuint size ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteIO", "SDL3") + (delegate* unmanaged)( + _slots[801] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[801] = nativeContext.LoadFunction("SDL_WriteIO", "SDL3") + ) )(context, ptr, size); [return: NativeTypeName("size_t")] @@ -60158,8 +63214,11 @@ public static MaybeBool WriteS16BE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteS16BERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteS16BE", "SDL3") + (delegate* unmanaged)( + _slots[802] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[802] = nativeContext.LoadFunction("SDL_WriteS16BE", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] @@ -60184,8 +63243,11 @@ public static MaybeBool WriteS16LE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteS16LERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteS16LE", "SDL3") + (delegate* unmanaged)( + _slots[803] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[803] = nativeContext.LoadFunction("SDL_WriteS16LE", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] @@ -60210,8 +63272,11 @@ public static MaybeBool WriteS32BE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteS32BERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteS32BE", "SDL3") + (delegate* unmanaged)( + _slots[804] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[804] = nativeContext.LoadFunction("SDL_WriteS32BE", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] @@ -60236,8 +63301,11 @@ public static MaybeBool WriteS32LE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteS32LERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteS32LE", "SDL3") + (delegate* unmanaged)( + _slots[805] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[805] = nativeContext.LoadFunction("SDL_WriteS32LE", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] @@ -60262,8 +63330,11 @@ public static MaybeBool WriteS64BE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteS64BERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteS64BE", "SDL3") + (delegate* unmanaged)( + _slots[806] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[806] = nativeContext.LoadFunction("SDL_WriteS64BE", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] @@ -60288,8 +63359,11 @@ public static MaybeBool WriteS64LE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteS64LERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteS64LE", "SDL3") + (delegate* unmanaged)( + _slots[807] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[807] = nativeContext.LoadFunction("SDL_WriteS64LE", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] @@ -60306,8 +63380,11 @@ int ISdl.WriteStorageFile( [NativeTypeName("Uint64")] ulong length ) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteStorageFile", "SDL3") + (delegate* unmanaged)( + _slots[808] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[808] = nativeContext.LoadFunction("SDL_WriteStorageFile", "SDL3") + ) )(storage, path, source, length); [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] @@ -60360,8 +63437,11 @@ public static MaybeBool WriteU16BE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteU16BERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteU16BE", "SDL3") + (delegate* unmanaged)( + _slots[809] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[809] = nativeContext.LoadFunction("SDL_WriteU16BE", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] @@ -60386,8 +63466,11 @@ public static MaybeBool WriteU16LE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteU16LERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteU16LE", "SDL3") + (delegate* unmanaged)( + _slots[810] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[810] = nativeContext.LoadFunction("SDL_WriteU16LE", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] @@ -60412,8 +63495,11 @@ public static MaybeBool WriteU32BE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteU32BERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteU32BE", "SDL3") + (delegate* unmanaged)( + _slots[811] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[811] = nativeContext.LoadFunction("SDL_WriteU32BE", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] @@ -60438,8 +63524,11 @@ public static MaybeBool WriteU32LE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteU32LERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteU32LE", "SDL3") + (delegate* unmanaged)( + _slots[812] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[812] = nativeContext.LoadFunction("SDL_WriteU32LE", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] @@ -60464,8 +63553,11 @@ public static MaybeBool WriteU64BE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteU64BERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteU64BE", "SDL3") + (delegate* unmanaged)( + _slots[813] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[813] = nativeContext.LoadFunction("SDL_WriteU64BE", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] @@ -60490,8 +63582,11 @@ public static MaybeBool WriteU64LE( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteU64LERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteU64LE", "SDL3") + (delegate* unmanaged)( + _slots[814] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[814] = nativeContext.LoadFunction("SDL_WriteU64LE", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] @@ -60516,8 +63611,11 @@ public static MaybeBool WriteU8( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => ( - (delegate* unmanaged) - nativeContext.LoadFunction("SDL_WriteU8", "SDL3") + (delegate* unmanaged)( + _slots[815] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[815] = nativeContext.LoadFunction("SDL_WriteU8", "SDL3") + ) )(dst, value); [return: NativeTypeName("SDL_bool")] diff --git a/sources/SDL/SDL/Sdl.gen.cs b/sources/SDL/SDL/Sdl.gen.cs index f953505581..0cec60e1a2 100644 --- a/sources/SDL/SDL/Sdl.gen.cs +++ b/sources/SDL/SDL/Sdl.gen.cs @@ -25,6 +25,7 @@ public partial class ThisThread : ISdl.Static public static void MakeCurrent(ISdl ctx) => Underlying.Value = ctx; } + private readonly unsafe void*[] _slots = new void*[816]; public static ISdl Instance { get; } = new StaticWrapper(); public static ISdl Create() => Instance; diff --git a/sources/SilkTouch/SilkTouch/Mods/AddVTables.cs b/sources/SilkTouch/SilkTouch/Mods/AddVTables.cs index addd6c44fc..c08e685dc8 100644 --- a/sources/SilkTouch/SilkTouch/Mods/AddVTables.cs +++ b/sources/SilkTouch/SilkTouch/Mods/AddVTables.cs @@ -255,7 +255,7 @@ public record ThisThread : VTable ) .WithSemicolonToken( Token(SyntaxKind.SemicolonToken) - ) + ), } ) ) @@ -264,11 +264,13 @@ public record ThisThread : VTable EqualsValueClause( ImplicitObjectCreationExpression( GenerateFactoryPartial - ? ArgumentList( - SingletonSeparatedList( - Argument(IdentifierName("ContextFactory")) + ? ArgumentList( + SingletonSeparatedList( + Argument( + IdentifierName("ContextFactory") + ) + ) ) - ) : !string.IsNullOrWhiteSpace(ctx.StaticDefault) && ctx.StaticDefaultWrapper is not null && ctx.StaticDefault != Name @@ -293,7 +295,7 @@ public record ThisThread : VTable ) ) ) - : ArgumentList(), + : ArgumentList(), null ) ) @@ -352,7 +354,7 @@ public record ThisThread : VTable ) ) .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) - : null + : null, }.OfType() ) ); @@ -524,7 +526,8 @@ class Rewriter(VTable[] vTables) : ModCSharpSyntaxRewriter private List _methods = new(); private bool _multiClass; - private string? _className; + private string? _className, + _fullClassName; /// /// The current class name, if a single class is being handled from the current file. Not fully qualified. @@ -549,6 +552,14 @@ InterfaceDeclarationSyntax Interface /// public Dictionary FullClassNames { get; set; } = []; + /// + /// The entry points encountered for each full class name. + /// + public Dictionary< + string, + List<(string EntryPoint, string Library)> + > EntryPoints { get; set; } = []; + public override SyntaxNode? Visit(SyntaxNode? node) { var ret = base.Visit(node); @@ -576,7 +587,7 @@ InterfaceDeclarationSyntax Interface var ns = node.NamespaceFromSyntaxNode(); var key = $"I{node.Identifier}"; var className = node.Identifier.ToString(); - var fullClassName = $"{ns}.{node.Identifier}"; + _fullClassName = $"{ns}.{node.Identifier}"; if (!_multiClass && _className is null) { _className = className; @@ -589,18 +600,18 @@ InterfaceDeclarationSyntax Interface // The contents of the ClassNames hash set determines the output file name for the VTable boilerplate. // These are output to the source root, so if there's multiple classes with the same name but different // namespaces, then we need to ensure we're tracking that. - if (FullClassNames.TryGetValue(fullClassName, out _)) + if (FullClassNames.TryGetValue(_fullClassName, out _)) { // already using the full class name. } else if ( FullClassNames.TryGetValue(className, out var theirFullClassName) - && theirFullClassName != fullClassName + && theirFullClassName != _fullClassName ) { // separate these two and use their full class names as the file name. FullClassNames[className] = null; // <-- keep it in case a third class comes along - FullClassNames[fullClassName] = fullClassName; + FullClassNames[_fullClassName] = _fullClassName; if (theirFullClassName is not null) { FullClassNames[theirFullClassName] = theirFullClassName; @@ -609,7 +620,7 @@ InterfaceDeclarationSyntax Interface else { // either it's new or we're not using the full class name and the namespace matches ours - FullClassNames[className] = fullClassName; + FullClassNames[className] = _fullClassName; } _currentInterface = NewInterface(key, node); @@ -644,7 +655,7 @@ or SyntaxKind.InternalKeyword new BaseTypeSyntax[] { SimpleBaseType(IdentifierName(key)), - SimpleBaseType(IdentifierName($"{key}.Static")) + SimpleBaseType(IdentifierName($"{key}.Static")), } ) ) @@ -708,6 +719,8 @@ out var callConv return base.VisitMethodDeclaration(node); } + entryPoint ??= node.Identifier.ToString(); + // Get the static interface within this interface var staticInterface = _currentInterface .Members.OfType() @@ -798,7 +811,7 @@ out var callConv _currentVTableOutputs[i], node, lib, - entryPoint ?? node.Identifier.ToString(), + entryPoint, staticDecl, instanceDecl, parent.Identifier.ToString() @@ -806,6 +819,19 @@ out var callConv ); } + Debug.Assert(_fullClassName is not null); + if (!EntryPoints.TryGetValue(_fullClassName, out var entryPoints)) + { + EntryPoints[_fullClassName] = entryPoints = []; + } + + var slot = entryPoints.IndexOf((entryPoint, lib)); + if (slot == -1) + { + slot = entryPoints.Count; + entryPoints.Add((entryPoint, lib)); + } + // For the instance implementation of the vtable interface, the class contains an INativeContext from which // we'll get function pointers, implementing the interface as a function pointer call. It's an explicit // implementation because otherwise the static and non-static functions will conflict. @@ -821,15 +847,14 @@ out var callConv node.Body is null && node.ExpressionBody is null ? GenerateNativeContextTrampoline( lib, - entryPoint ?? node.Identifier.ToString(), + entryPoint, callConv, node.ParameterList, - node.ReturnType + node.ReturnType, + slot ) - : node.ExpressionBody is null - ? null - : VisitArrowExpressionClause(node.ExpressionBody) - as ArrowExpressionClauseSyntax + : node.ExpressionBody is null ? null + : VisitArrowExpressionClause(node.ExpressionBody) as ArrowExpressionClauseSyntax ) .WithBody(node.Body is null ? null : VisitBlock(node.Body) as BlockSyntax) .WithSemicolonToken(node.Body is null ? Token(SyntaxKind.SemicolonToken) : default) @@ -934,7 +959,12 @@ public IEnumerable> GetExtraFiles() ) ) .Where(x => x is not null) - .Concat(GenerateTopLevelBoilerplate(nonInterfaceIden))! + .Concat( + GenerateTopLevelBoilerplate( + nonInterfaceIden, + EntryPoints[nonInterface] + ) + )! ) ) .WithParameterList( @@ -977,9 +1007,54 @@ public IEnumerable> GetExtraFiles() } private IEnumerable GenerateTopLevelBoilerplate( - string nonInterfaceName + string nonInterfaceName, + List<(string EntryPoint, string Library)> slots ) { + yield return FieldDeclaration( + VariableDeclaration( + ArrayType( + PointerType(PredefinedType(Token(SyntaxKind.VoidKeyword))), + SingletonList(ArrayRankSpecifier()) + ), + SingletonSeparatedList( + VariableDeclarator("_slots") + .WithInitializer( + EqualsValueClause( + ArrayCreationExpression( + ArrayType( + PointerType( + PredefinedType( + Token(SyntaxKind.VoidKeyword) + ) + ) + ) + .WithRankSpecifiers( + SingletonList( + ArrayRankSpecifier( + SingletonSeparatedList( + LiteralExpression( + SyntaxKind.NumericLiteralExpression, + Literal(slots.Count) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + .WithModifiers( + TokenList( + Token(SyntaxKind.PrivateKeyword), + Token(SyntaxKind.UnsafeKeyword), + Token(SyntaxKind.ReadOnlyKeyword) + ) + ); + if ( _staticDefaultWrapper is not null && !_vTables.Any(x => x is ThisThread && x.Name == _staticDefault) @@ -1072,7 +1147,7 @@ _staticDefaultWrapper is not null ) ) ), - XmlEmptyElement("inheritdoc") + XmlEmptyElement("inheritdoc"), } ) ) @@ -1087,7 +1162,8 @@ private ArrowExpressionClauseSyntax GenerateNativeContextTrampoline( string ep, string? callConv, ParameterListSyntax parameterList, - TypeSyntax returnType + TypeSyntax returnType, + int slot ) => ArrowExpressionClause( InvocationExpression( @@ -1131,35 +1207,87 @@ callConv is not null ) ) ), - InvocationExpression( - MemberAccessExpression( - SyntaxKind.SimpleMemberAccessExpression, - IdentifierName("nativeContext"), - IdentifierName("LoadFunction") - ) - ) - .WithArgumentList( - ArgumentList( - SeparatedList( - new SyntaxNodeOrToken[] - { - Argument( - LiteralExpression( - SyntaxKind.StringLiteralExpression, - Literal(ep) + ParenthesizedExpression( + ConditionalExpression( + IsPatternExpression( + ElementAccessExpression( + IdentifierName("_slots"), + BracketedArgumentList( + SingletonSeparatedList( + Argument( + LiteralExpression( + SyntaxKind.NumericLiteralExpression, + Literal(slot) + ) ) - ), - Token(SyntaxKind.CommaToken), - Argument( + ) + ) + ), + BinaryPattern( + SyntaxKind.AndPattern, + UnaryPattern( + Token(SyntaxKind.NotKeyword), + ConstantPattern( LiteralExpression( - SyntaxKind.StringLiteralExpression, - Literal(lib) + SyntaxKind.NullLiteralExpression ) ) - } + ), + VarPattern( + SingleVariableDesignation( + Identifier("loadedFnPtr") + ) + ) ) + ), + IdentifierName("loadedFnPtr"), + AssignmentExpression( + SyntaxKind.SimpleAssignmentExpression, + ElementAccessExpression( + IdentifierName("_slots"), + BracketedArgumentList( + SingletonSeparatedList( + Argument( + LiteralExpression( + SyntaxKind.NumericLiteralExpression, + Literal(slot) + ) + ) + ) + ) + ), + InvocationExpression( + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("nativeContext"), + IdentifierName("LoadFunction") + ) + ) + .WithArgumentList( + ArgumentList( + SeparatedList( + new SyntaxNodeOrToken[] + { + Argument( + LiteralExpression( + SyntaxKind.StringLiteralExpression, + Literal(ep) + ) + ), + Token(SyntaxKind.CommaToken), + Argument( + LiteralExpression( + SyntaxKind.StringLiteralExpression, + Literal(lib) + ) + ), + } + ) + ) + ) ) ) + ) ) ) ) @@ -1193,10 +1321,9 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) nameof(DllImport) => typeof(DllImport), nameof(StaticWrapper) => typeof(StaticWrapper), nameof(ThisThread) => typeof(ThisThread), - _ - => throw new InvalidOperationException( - "VTable must have valid \"Kind\" property" - ) + _ => throw new InvalidOperationException( + "VTable must have valid \"Kind\" property" + ), } ) ?? throw new InvalidOperationException( @@ -1211,7 +1338,7 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { new DllImport { IsDefault = true }, new StaticWrapper(), - new ThisThread() + new ThisThread(), } ); var newFiles = new List<(string, CSharpSyntaxNode)>(rw.FullClassNames.Count); From f6f625feff02e491e24ba89baa4da172525043ac Mon Sep 17 00:00:00 2001 From: Dylan Perks Date: Mon, 18 Nov 2024 15:39:07 +0000 Subject: [PATCH 5/8] Fix vulnerability? --- sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj b/sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj index 62ede5c670..d4ece967d3 100644 --- a/sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj +++ b/sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj @@ -24,6 +24,9 @@ + + + From 19a29a8466379319da61538330ce28073e9c96eb Mon Sep 17 00:00:00 2001 From: Dylan Perks Date: Thu, 21 Nov 2024 15:55:52 +0000 Subject: [PATCH 6/8] Recognise some #define enums, improve pfn type gen, update SDL, more fixes --- .silktouch/0afb5dc84012c2fa.stout | Bin 0 -> 157535 bytes .silktouch/c8c046b328b09d23.stout | Bin 231467 -> 231467 bytes .silktouch/f634eee0bf239a81.stout | Bin 153227 -> 0 bytes eng/submodules/sdl | 2 +- sources/SDL/SDL/Handles/BlitMapHandle.gen.cs | 32 - .../SDL/Handles/DisplayModeDataHandle.gen.cs | 35 + .../SDL/Handles/GLContextStateHandle.gen.cs | 34 + .../SDL/SDL/Handles/SharedObjectHandle.gen.cs | 34 + sources/SDL/SDL/Handles/TextureHandle.gen.cs | 32 - ...extReleaseFlag.gen.cs => AppResult.gen.cs} | 7 +- sources/SDL/SDL/SDL3/AssertData.gen.cs | 4 +- sources/SDL/SDL/SDL3/AtomicU32.gen.cs | 14 + sources/SDL/SDL/SDL3/AudioDeviceEvent.gen.cs | 4 +- sources/SDL/SDL/SDL3/AudioFormat.gen.cs | 25 + sources/SDL/SDL/SDL3/AudioSpec.gen.cs | 3 +- sources/SDL/SDL/SDL3/BlendFactor.gen.cs | 2 - sources/SDL/SDL/SDL3/BlendMode.gen.cs | 15 +- sources/SDL/SDL/SDL3/CameraDeviceEvent.gen.cs | 2 +- sources/SDL/SDL/SDL3/CameraSpec.gen.cs | 7 +- ...ification.gen.cs => Capitalization.gen.cs} | 8 +- ....gen.cs => CleanupPropertyCallback.gen.cs} | 11 +- ...=> CleanupPropertyCallbackDelegate.gen.cs} | 6 +- sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs | 11 +- sources/SDL/SDL/SDL3/Colorspace.gen.cs | 102 +- sources/SDL/SDL/SDL3/DisplayEvent.gen.cs | 3 + sources/SDL/SDL/SDL3/DisplayMode.gen.cs | 6 +- sources/SDL/SDL/SDL3/DropEvent.gen.cs | 4 +- .../SDL/SDL3/EGLAttribArrayCallback.gen.cs | 10 +- .../EGLAttribArrayCallbackDelegate.gen.cs | 2 +- .../SDL/SDL/SDL3/EGLIntArrayCallback.gen.cs | 14 +- .../SDL3/EGLIntArrayCallbackDelegate.gen.cs | 2 +- .../SDL3/EnumerateDirectoryCallback.gen.cs | 15 +- .../EnumerateDirectoryCallbackDelegate.gen.cs | 6 +- sources/SDL/SDL/SDL3/EnumerationResult.gen.cs | 16 + sources/SDL/SDL/SDL3/Event.gen.cs | 11 +- sources/SDL/SDL/SDL3/EventFilter.gen.cs | 12 +- .../SDL/SDL/SDL3/EventFilterDelegate.gen.cs | 2 +- sources/SDL/SDL/SDL3/EventType.gen.cs | 26 +- sources/SDL/SDL/SDL3/Folder.gen.cs | 1 + sources/SDL/SDL/SDL3/GLattr.gen.cs | 2 +- sources/SDL/SDL/SDL3/GamepadAxis.gen.cs | 2 +- sources/SDL/SDL/SDL3/GamepadBinding.gen.cs | 4 +- .../SDL/SDL/SDL3/GamepadBindingInput.gen.cs | 4 +- .../SDL/SDL/SDL3/GamepadBindingOutput.gen.cs | 2 +- sources/SDL/SDL/SDL3/GamepadButton.gen.cs | 2 +- .../SDL/SDL/SDL3/GamepadButtonEvent.gen.cs | 4 +- sources/SDL/SDL/SDL3/GamepadType.gen.cs | 2 +- sources/SDL/SDL/SDL3/IOStreamInterface.gen.cs | 16 +- .../SDL/SDL3/IOStreamInterfaceClose.gen.cs | 29 + ... => IOStreamInterfaceCloseDelegate.gen.cs} | 2 +- .../SDL/SDL3/IOStreamInterfaceFlush.gen.cs | 32 + .../IOStreamInterfaceFlushDelegate.gen.cs | 12 + ...n1.gen.cs => IOStreamInterfaceRead.gen.cs} | 13 +- ...s => IOStreamInterfaceReadDelegate.gen.cs} | 2 +- .../SDL/SDL/SDL3/IOStreamInterfaceSeek.gen.cs | 14 +- .../SDL3/IOStreamInterfaceSeekDelegate.gen.cs | 3 +- .../SDL/SDL/SDL3/IOStreamInterfaceSize.gen.cs | 1 + .../SDL3/IOStreamInterfaceSizeDelegate.gen.cs | 1 + .../SDL/SDL3/IOStreamInterfaceWrite.gen.cs | 33 + .../IOStreamInterfaceWriteDelegate.gen.cs | 17 + .../{RendererFlags.gen.cs => IOWhence.gen.cs} | 6 +- sources/SDL/SDL/SDL3/ISdl.gen.cs | 10690 ++-- sources/SDL/SDL/SDL3/InitFlags.gen.cs | 22 - .../{Errorcode.gen.cs => InitState.gen.cs} | 14 +- .../{GLprofile.gen.cs => InitStatus.gen.cs} | 9 +- sources/SDL/SDL/SDL3/JoyButtonEvent.gen.cs | 4 +- sources/SDL/SDL/SDL3/JoystickType.gen.cs | 1 + sources/SDL/SDL/SDL3/KeyboardEvent.gen.cs | 21 +- sources/SDL/SDL/SDL3/Keymod.gen.cs | 30 - sources/SDL/SDL/SDL3/LogCategory.gen.cs | 2 +- sources/SDL/SDL/SDL3/LogPriority.gen.cs | 16 +- .../SDL/SDL/SDL3/MessageBoxButtonData.gen.cs | 2 +- .../SDL/SDL/SDL3/MessageBoxButtonFlags.gen.cs | 15 - .../SDL/SDL/SDL3/MessageBoxColorType.gen.cs | 2 +- sources/SDL/SDL/SDL3/MessageBoxData.gen.cs | 2 +- sources/SDL/SDL/SDL3/MessageBoxFlags.gen.cs | 18 - sources/SDL/SDL/SDL3/MouseButtonEvent.gen.cs | 4 +- sources/SDL/SDL/SDL3/MouseMotionEvent.gen.cs | 2 +- sources/SDL/SDL/SDL3/NSTimerCallback.gen.cs | 31 + .../SDL/SDL3/NSTimerCallbackDelegate.gen.cs | 11 + sources/SDL/SDL/SDL3/PenAxis.gen.cs | 16 +- sources/SDL/SDL/SDL3/PenAxisEvent.gen.cs | 29 + sources/SDL/SDL/SDL3/PenButtonEvent.gen.cs | 17 +- sources/SDL/SDL/SDL3/PenCapabilityInfo.gen.cs | 18 - sources/SDL/SDL/SDL3/PenMotionEvent.gen.cs | 13 +- ...ersion.gen.cs => PenProximityEvent.gen.cs} | 20 +- sources/SDL/SDL/SDL3/PenSubtype.gen.cs | 20 - ...enTipEvent.gen.cs => PenTouchEvent.gen.cs} | 20 +- sources/SDL/SDL/SDL3/PixelFormat.gen.cs | 126 +- .../SDL/SDL/SDL3/PixelFormatDetails.gen.cs | 58 + ...en.cs => PixelFormatDetailsPadding.gen.cs} | 2 +- sources/SDL/SDL/SDL3/PixelFormatEnum.gen.cs | 575 - sources/SDL/SDL/SDL3/RendererInfo.gen.cs | 22 - .../SDL3/RendererInfoTextureFormats.gen.cs | 15 - sources/SDL/SDL/SDL3/Sandbox.gen.cs | 18 + sources/SDL/SDL/SDL3/ScaleMode.gen.cs | 1 - sources/SDL/SDL/SDL3/Scancode.gen.cs | 61 +- sources/SDL/SDL/SDL3/Sdl.gen.cs | 44017 ++++++++++------ ...tPropertyWithCleanupCleanupDelegate.gen.cs | 11 - sources/SDL/SDL/SDL3/StorageInterface.gen.cs | 38 +- .../SDL/SDL/SDL3/StorageInterfaceClose.gen.cs | 29 + .../SDL3/StorageInterfaceCloseDelegate.gen.cs | 12 + .../SDL/SDL/SDL3/StorageInterfaceCopy.gen.cs | 33 + .../SDL3/StorageInterfaceCopyDelegate.gen.cs | 12 + .../SDL/SDL3/StorageInterfaceEnumerate.gen.cs | 13 +- .../StorageInterfaceEnumerateDelegate.gen.cs | 3 +- .../SDL/SDL/SDL3/StorageInterfaceInfo.gen.cs | 13 +- .../SDL3/StorageInterfaceInfoDelegate.gen.cs | 3 +- ...n2.gen.cs => StorageInterfaceMkdir.gen.cs} | 20 +- .../SDL3/StorageInterfaceMkdirDelegate.gen.cs | 12 + .../SDL/SDL3/StorageInterfaceReadFile.gen.cs | 33 + ...> StorageInterfaceReadFileDelegate.gen.cs} | 2 +- .../SDL/SDL/SDL3/StorageInterfaceReady.gen.cs | 29 + .../SDL3/StorageInterfaceReadyDelegate.gen.cs | 12 + .../SDL/SDL3/StorageInterfaceRemove.gen.cs | 32 + .../StorageInterfaceRemoveDelegate.gen.cs | 12 + .../SDL/SDL3/StorageInterfaceRename.gen.cs | 33 + .../StorageInterfaceRenameDelegate.gen.cs | 12 + .../StorageInterfaceSpaceRemaining.gen.cs | 1 + ...rageInterfaceSpaceRemainingDelegate.gen.cs | 1 + ...en.cs => StorageInterfaceWriteFile.gen.cs} | 20 +- .../StorageInterfaceWriteFileDelegate.gen.cs | 17 + sources/SDL/SDL/SDL3/Surface.gen.cs | 10 +- sources/SDL/SDL/SDL3/SystemCursor.gen.cs | 42 +- .../SDL/SDL/SDL3/TLSDestructorCallback.gen.cs | 28 + ...s => TLSDestructorCallbackDelegate.gen.cs} | 6 +- .../SDL3/TextEditingCandidatesEvent.gen.cs | 44 + sources/SDL/SDL/SDL3/TextEditingEvent.gen.cs | 2 +- sources/SDL/SDL/SDL3/TextInputEvent.gen.cs | 4 +- ...ontextFlag.gen.cs => TextInputType.gen.cs} | 16 +- sources/SDL/SDL/SDL3/Texture.gen.cs | 16 + sources/SDL/SDL/SDL3/TimerCallback.gen.cs | 16 +- .../SDL/SDL/SDL3/TimerCallbackDelegate.gen.cs | 2 +- .../SDL/SDL/SDL3/VirtualJoystickDesc.gen.cs | 49 +- .../SDL3/VirtualJoystickDescCleanup.gen.cs | 29 + .../VirtualJoystickDescCleanupDelegate.gen.cs | 10 + .../SDL3/VirtualJoystickDescFunction1.gen.cs | 33 - ....cs => VirtualJoystickDescPadding2.gen.cs} | 6 +- .../SDL/SDL3/VirtualJoystickDescRumble.gen.cs | 31 + .../VirtualJoystickDescRumbleDelegate.gen.cs | 10 + .../VirtualJoystickDescRumbleTriggers.gen.cs | 32 + ...JoystickDescRumbleTriggersDelegate.gen.cs} | 4 +- .../SDL3/VirtualJoystickDescSendEffect.gen.cs | 15 +- ...rtualJoystickDescSendEffectDelegate.gen.cs | 5 +- .../SDL/SDL3/VirtualJoystickDescSetLED.gen.cs | 15 +- .../VirtualJoystickDescSetLEDDelegate.gen.cs | 5 +- .../VirtualJoystickDescSetPlayerIndex.gen.cs | 3 +- ...lJoystickDescSetPlayerIndexDelegate.gen.cs | 3 +- ...irtualJoystickDescSetSensorsEnabled.gen.cs | 32 + ...ystickDescSetSensorsEnabledDelegate.gen.cs | 10 + .../SDL/SDL3/VirtualJoystickDescUpdate.gen.cs | 29 + .../VirtualJoystickDescUpdateDelegate.gen.cs | 10 + .../SDL/SDL3/VirtualJoystickSensorDesc.gen.cs | 14 + ....cs => VirtualJoystickTouchpadDesc.gen.cs} | 14 +- .../VirtualJoystickTouchpadDescPadding.gen.cs | 15 + sources/SDL/SDL/Sdl.gen.cs | 2 +- sources/SDL/SDL/SdlContext.cs | 25 +- .../Mods/Common/MSBuildModContext.cs | 4 +- .../SilkTouch/Mods/Common/ModUtils.cs | 50 +- .../SilkTouch/Mods/ExtractNestedTyping.cs | 1140 +- .../Mods/Transformation/BoolTransformer.cs | 20 +- .../SilkTouch/SilkTouch/Naming/NameTrimmer.cs | 44 +- .../SilkTouch/Naming/NameTrimmer217.cs | 2 +- tests/SDL/SDL/SDL3/SDL_AtomicU32Tests.gen.cs | 36 + tests/SDL/SDL/SDL3/SDL_CameraSpecTests.gen.cs | 2 +- .../SDL/SDL3/SDL_ClipboardEventTests.gen.cs | 2 +- .../SDL/SDL/SDL3/SDL_DisplayEventTests.gen.cs | 2 +- .../SDL/SDL/SDL3/SDL_DisplayModeTests.gen.cs | 4 +- .../SDL3/SDL_IOStreamInterfaceTests.gen.cs | 4 +- tests/SDL/SDL/SDL3/SDL_InitStateTests.gen.cs | 36 + .../SDL/SDL3/SDL_KeyboardEventTests.gen.cs | 2 +- tests/SDL/SDL/SDL3/SDL_KeysymTests.gen.cs | 36 - ...ts.gen.cs => SDL_PenAxisEventTests.gen.cs} | 24 +- .../SDL/SDL3/SDL_PenButtonEventTests.gen.cs | 2 +- .../SDL3/SDL_PenCapabilityInfoTests.gen.cs | 36 - .../SDL/SDL3/SDL_PenMotionEventTests.gen.cs | 2 +- .../SDL3/SDL_PenProximityEventTests.gen.cs | 36 + .../SDL/SDL/SDL3/SDL_PenTipEventTests.gen.cs | 36 - .../SDL/SDL3/SDL_PenTouchEventTests.gen.cs | 36 + .../SDL3/SDL_PixelFormatDetailsTests.gen.cs | 36 + .../SDL/SDL/SDL3/SDL_PixelFormatTests.gen.cs | 44 - .../SDL/SDL3/SDL_StorageInterfaceTests.gen.cs | 4 +- tests/SDL/SDL/SDL3/SDL_SurfaceTests.gen.cs | 4 +- ...SDL_TextEditingCandidatesEventTests.gen.cs | 47 + ...onTests.gen.cs => SDL_TextureTests.gen.cs} | 16 +- .../SDL3/SDL_VirtualJoystickDescTests.gen.cs | 4 +- .../SDL_VirtualJoystickSensorDescTests.gen.cs | 39 + ...DL_VirtualJoystickTouchpadDescTests.gen.cs | 39 + 188 files changed, 38634 insertions(+), 20812 deletions(-) create mode 100644 .silktouch/0afb5dc84012c2fa.stout delete mode 100644 .silktouch/f634eee0bf239a81.stout delete mode 100644 sources/SDL/SDL/Handles/BlitMapHandle.gen.cs create mode 100644 sources/SDL/SDL/Handles/DisplayModeDataHandle.gen.cs create mode 100644 sources/SDL/SDL/Handles/GLContextStateHandle.gen.cs create mode 100644 sources/SDL/SDL/Handles/SharedObjectHandle.gen.cs delete mode 100644 sources/SDL/SDL/Handles/TextureHandle.gen.cs rename sources/SDL/SDL/SDL3/{GLcontextReleaseFlag.gen.cs => AppResult.gen.cs} (84%) create mode 100644 sources/SDL/SDL/SDL3/AtomicU32.gen.cs create mode 100644 sources/SDL/SDL/SDL3/AudioFormat.gen.cs rename sources/SDL/SDL/SDL3/{GLContextResetNotification.gen.cs => Capitalization.gen.cs} (81%) rename sources/SDL/SDL/SDL3/{SetPropertyWithCleanupCleanup.gen.cs => CleanupPropertyCallback.gen.cs} (69%) rename sources/SDL/SDL/SDL3/{PenMotionEventAxes.gen.cs => CleanupPropertyCallbackDelegate.gen.cs} (82%) create mode 100644 sources/SDL/SDL/SDL3/EnumerationResult.gen.cs create mode 100644 sources/SDL/SDL/SDL3/IOStreamInterfaceClose.gen.cs rename sources/SDL/SDL/SDL3/{StorageInterfaceFunction2Delegate.gen.cs => IOStreamInterfaceCloseDelegate.gen.cs} (82%) create mode 100644 sources/SDL/SDL/SDL3/IOStreamInterfaceFlush.gen.cs create mode 100644 sources/SDL/SDL/SDL3/IOStreamInterfaceFlushDelegate.gen.cs rename sources/SDL/SDL/SDL3/{IOStreamInterfaceFunction1.gen.cs => IOStreamInterfaceRead.gen.cs} (71%) rename sources/SDL/SDL/SDL3/{IOStreamInterfaceFunction1Delegate.gen.cs => IOStreamInterfaceReadDelegate.gen.cs} (88%) create mode 100644 sources/SDL/SDL/SDL3/IOStreamInterfaceWrite.gen.cs create mode 100644 sources/SDL/SDL/SDL3/IOStreamInterfaceWriteDelegate.gen.cs rename sources/SDL/SDL/SDL3/{RendererFlags.gen.cs => IOWhence.gen.cs} (87%) delete mode 100644 sources/SDL/SDL/SDL3/InitFlags.gen.cs rename sources/SDL/SDL/SDL3/{Errorcode.gen.cs => InitState.gen.cs} (71%) rename sources/SDL/SDL/SDL3/{GLprofile.gen.cs => InitStatus.gen.cs} (81%) delete mode 100644 sources/SDL/SDL/SDL3/Keymod.gen.cs delete mode 100644 sources/SDL/SDL/SDL3/MessageBoxButtonFlags.gen.cs delete mode 100644 sources/SDL/SDL/SDL3/MessageBoxFlags.gen.cs create mode 100644 sources/SDL/SDL/SDL3/NSTimerCallback.gen.cs create mode 100644 sources/SDL/SDL/SDL3/NSTimerCallbackDelegate.gen.cs create mode 100644 sources/SDL/SDL/SDL3/PenAxisEvent.gen.cs delete mode 100644 sources/SDL/SDL/SDL3/PenCapabilityInfo.gen.cs rename sources/SDL/SDL/SDL3/{Version.gen.cs => PenProximityEvent.gen.cs} (56%) delete mode 100644 sources/SDL/SDL/SDL3/PenSubtype.gen.cs rename sources/SDL/SDL/SDL3/{PenTipEvent.gen.cs => PenTouchEvent.gen.cs} (72%) create mode 100644 sources/SDL/SDL/SDL3/PixelFormatDetails.gen.cs rename sources/SDL/SDL/SDL3/{PixelFormatPadding.gen.cs => PixelFormatDetailsPadding.gen.cs} (90%) delete mode 100644 sources/SDL/SDL/SDL3/PixelFormatEnum.gen.cs delete mode 100644 sources/SDL/SDL/SDL3/RendererInfo.gen.cs delete mode 100644 sources/SDL/SDL/SDL3/RendererInfoTextureFormats.gen.cs create mode 100644 sources/SDL/SDL/SDL3/Sandbox.gen.cs delete mode 100644 sources/SDL/SDL/SDL3/SetPropertyWithCleanupCleanupDelegate.gen.cs create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceClose.gen.cs create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceCloseDelegate.gen.cs create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceCopy.gen.cs create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceCopyDelegate.gen.cs rename sources/SDL/SDL/SDL3/{StorageInterfaceFunction2.gen.cs => StorageInterfaceMkdir.gen.cs} (52%) create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceMkdirDelegate.gen.cs create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceReadFile.gen.cs rename sources/SDL/SDL/SDL3/{StorageInterfaceFunction1Delegate.gen.cs => StorageInterfaceReadFileDelegate.gen.cs} (88%) create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceReady.gen.cs create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceReadyDelegate.gen.cs create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceRemove.gen.cs create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceRemoveDelegate.gen.cs create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceRename.gen.cs create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceRenameDelegate.gen.cs rename sources/SDL/SDL/SDL3/{StorageInterfaceFunction1.gen.cs => StorageInterfaceWriteFile.gen.cs} (51%) create mode 100644 sources/SDL/SDL/SDL3/StorageInterfaceWriteFileDelegate.gen.cs create mode 100644 sources/SDL/SDL/SDL3/TLSDestructorCallback.gen.cs rename sources/SDL/SDL/SDL3/{PenTipEventAxes.gen.cs => TLSDestructorCallbackDelegate.gen.cs} (83%) create mode 100644 sources/SDL/SDL/SDL3/TextEditingCandidatesEvent.gen.cs rename sources/SDL/SDL/SDL3/{GLcontextFlag.gen.cs => TextInputType.gen.cs} (66%) create mode 100644 sources/SDL/SDL/SDL3/Texture.gen.cs create mode 100644 sources/SDL/SDL/SDL3/VirtualJoystickDescCleanup.gen.cs create mode 100644 sources/SDL/SDL/SDL3/VirtualJoystickDescCleanupDelegate.gen.cs delete mode 100644 sources/SDL/SDL/SDL3/VirtualJoystickDescFunction1.gen.cs rename sources/SDL/SDL/SDL3/{PenButtonEventAxes.gen.cs => VirtualJoystickDescPadding2.gen.cs} (82%) create mode 100644 sources/SDL/SDL/SDL3/VirtualJoystickDescRumble.gen.cs create mode 100644 sources/SDL/SDL/SDL3/VirtualJoystickDescRumbleDelegate.gen.cs create mode 100644 sources/SDL/SDL/SDL3/VirtualJoystickDescRumbleTriggers.gen.cs rename sources/SDL/SDL/SDL3/{VirtualJoystickDescFunction1Delegate.gen.cs => VirtualJoystickDescRumbleTriggersDelegate.gen.cs} (83%) create mode 100644 sources/SDL/SDL/SDL3/VirtualJoystickDescSetSensorsEnabled.gen.cs create mode 100644 sources/SDL/SDL/SDL3/VirtualJoystickDescSetSensorsEnabledDelegate.gen.cs create mode 100644 sources/SDL/SDL/SDL3/VirtualJoystickDescUpdate.gen.cs create mode 100644 sources/SDL/SDL/SDL3/VirtualJoystickDescUpdateDelegate.gen.cs create mode 100644 sources/SDL/SDL/SDL3/VirtualJoystickSensorDesc.gen.cs rename sources/SDL/SDL/SDL3/{Keysym.gen.cs => VirtualJoystickTouchpadDesc.gen.cs} (67%) create mode 100644 sources/SDL/SDL/SDL3/VirtualJoystickTouchpadDescPadding.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL_AtomicU32Tests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL_InitStateTests.gen.cs delete mode 100644 tests/SDL/SDL/SDL3/SDL_KeysymTests.gen.cs rename tests/SDL/SDL/SDL3/{SDL_RendererInfoTests.gen.cs => SDL_PenAxisEventTests.gen.cs} (50%) delete mode 100644 tests/SDL/SDL/SDL3/SDL_PenCapabilityInfoTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL_PenProximityEventTests.gen.cs delete mode 100644 tests/SDL/SDL/SDL3/SDL_PenTipEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL_PenTouchEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL_PixelFormatDetailsTests.gen.cs delete mode 100644 tests/SDL/SDL/SDL3/SDL_PixelFormatTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL_TextEditingCandidatesEventTests.gen.cs rename tests/SDL/SDL/SDL3/{SDL_VersionTests.gen.cs => SDL_TextureTests.gen.cs} (59%) create mode 100644 tests/SDL/SDL/SDL3/SDL_VirtualJoystickSensorDescTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL_VirtualJoystickTouchpadDescTests.gen.cs diff --git a/.silktouch/0afb5dc84012c2fa.stout b/.silktouch/0afb5dc84012c2fa.stout new file mode 100644 index 0000000000000000000000000000000000000000..707992149f5ec100debb341a6eafb516b7709c33 GIT binary patch literal 157535 zcmZ^qQ*b9hlfdI_Y}>Z&WMge?+qUgwW83`4wr$(Car<4}%hlCYP0vF=c27<1oR7t(Z@x@jet~(9T*4*76b^0+fFR<~%?DLzj^?arCE=2?W+AE(v7}(+?=|uTXQp(x4xIeRoh`{P zuhE=PA3NWNoEwoMXwoP$PB`1J-5~>bj`l(&?qVo+LC_4u#sF~~Fb%9hh%pWMSN=m# z=_iauW<`zF3T&@WUALXq@7XWrpF58NNIvre&XMI)h=z;NjesI#XdBpdRps)sKx8dr z5VXiW&yA01cq-&VYOw~0N*-mx+qDqem(LC-MqQa*XZ8-xoE(`Mq9i!cMBIm>mz5ue zHLYs)pMnHyPJd(blJnH=iV?HgVE4$jE1KgEbff2J2|NuIBmipL+@VI}Rw$GIA|7@% zsMTESq-2;q6kf+*2aqo$(?mb39{C+N+=H_VE8*kJV0 zYJ%sh=66N>J+p4d+mua7uWFCHu`N-pXd*t%3YEM+n#nzLH8`YI>V*v!O8Is6>J5#d zt!z5T6rei`iUQ(Axki$9= z&T|1bdX97&ti%~Itcm`b7c83cF=ZGm%^whrQhVLO&cftKs~bm&693+&mS5|xy()#Z z(gDkPaA9BHW4FafK!8&#aOao;4bp zn3Ev+%(~jBgx$@^$y3w9f(#-g;=@31y<5jNkAwvE;OAduDDCN2$Lr936$Vd*w z4y36nd*im#31qxKIVdE2eH~68HG1HYqqqIS(Bmxr+`sO=+;G5y_p^5Hoi+-Xo?Wv^ zDY4_pgnu1yQacBHeivGKkc(DQvOW|4+!>`(9{6yLbuU8jK&|2e<> z?Tlz%H3{NJ@C`ze!Ciyk&f7lSUWg!0ki&Cqx~9QdW96Y`2597v&n|9i5`@hRfg^Uq z&+kzl6n43y@G`35&H*@Ks6zHWXJ660zF)e;KaSG&#gT$~=avoLe;htGT> zp2ekowKWh>TJj(eU)1KGYfQeDt7 zPR{A&FZOibj0#MK)Y?@qLEpEYzg|y!zVyV~v0Gk1?luOXGn38$wDll&=pMBI`hQ<( ze%BO^&h$P`9l-w)I5VCaMtl|);yBl?ZqL)jax{c@(yR@T8c7SV`o3u$lxh5QrVi>nIsxBu%MO?F6 zIT`V5Oz0UMd&K4S3NS5vFMAB%AtGes*$0-;Qrsh~+`C;L_qcJEn`xCKlE3Z^-$O1J zwrP>UeXy8IhYNql0qe6sg-b(BASWZ`C`C(~XK~TbNyws7Ox>S@j5m%39aK3!4YY&S zr?=ITnBB?ltY@OVa&+m7sGY*7@#fWVU4LRcZUuX+51GcgH-^oug6M>_T8CM@WQC`s`)&hlRrs?Vu6F|o`2>;C3Y^OhlM*#?c=Z@P|-7g?UlHJ>b)FpY?&a z=QK)2^^!0DQgIHBrgTahcQ|tQ5X8UB;y+ z$aHgncqM^n1}$?S$?dFpLyBl}x_3$We$47=MyV`FLRFD>)Fd%$j$unzf4$%hFm9D5 zU%f$21OngiFzrLl?8t(i=Y6Jc1Vt#hb-#yup-99${)iMBClRR6*2LPWP6xF`1~vz&?=@83a&@zV}CEtonpcQGKS zzx5`_P{nB7&RN;QHrvTPEglr@ksj*a*!*Cnd`#KWR0R5oBg!R*et|eO0hk-`iIDAs zVjhFqUQ^htB*=Zr{CqEH?NQ<6XI1K7@u$3hFSXwUroE75ti1G1F|Sn9A%-HswR4`)jFL;8k52~U5 zx|#|%5MPG0C`)l)8#5;+Nx=Yy{IEu0oqg2X)lT3YlxbBa0^;*(iMe3(yOhS~O`5`oJs#}fo^2(&Y9 z*(<6t5_v=SW-H8+FtKLEw-^mJRM~jX$W`g+>bQ(Q)eo&yYptbrEP3)yAg z(=OF91Yo?D;N|hM2jVE$%q-0r?ac@4d22D85V?X_eSWNpFFTp+2Jwd3FYcLeuK@@2smrQE#?q@B2D%CSU9p+{PID_sNl}Om{^R_C^MnHw9GNn(gfa;0%m((dhQ)&lLV z?_yYc1Lk*+BCCs)4JzA&XrrIA`42X?-S4*@tGUONMrQ?U|9zKOiznZV-PzsMT$R%Q}Wlta6xaNUrh2&UQt8AtNgCu?9 zdJ9H|;IF^9` zI%>Ay0eU?K|3n2)>O9&o6|2VXO4kYovXPzXT}fZ}3)b%|1`0j-0BwV~bpXLni{Oz8BxZHmYPEo2DsSr%h7U9c zj`5f_Hy6?Pjr^ZpzlPiGEY$iOdujyZ0W{*;X>jqtIuPRF=#Ci15KD9s~ z7sYFI#i5Tg6ww(PMC9QtZPl%e6s!>+?*u|k8H%}x zAwL>hvJ0x!Zj%dChJ0mU`aSmqpBw3xl-LTZUf&WizjeXHLUB@seL;@RbbSjNXPo zKZv3TaxjshgA)!CIU-gne#=JW?dNWn^N1HT^Og32*L0TT^r=|bV=NCjtZ^Pa`v?@m zWrwpsC%=^gLGxzD_d`#D$M7>k(L>p*x9NKcz4dUg*dX_EI+cN_}F->-{_ zfOWiEU{Gi3Z8A8nb*z21*7kT)F;G2!d3EwKL$>*G6ABSjW_W8sK-wOIo_=RB=3@3yrVrf1e)Xr6T6SY;cSC zz~qvfsvz8Z#033ScQD6Paa)isTE_FXGx{vwXL>Y<;P1*SKsso`HNH^VKh0Wf6=##5 zdZoH*Q8!x>QgF)haLLOQs5PZ37OkYB->PlfI)e?I;qkr4z|}*>Mk$!j@)s?RNuu$4 z;197@!BvNcICN%%H%!R3?Q5sbgGZ%)T3|mC3zD~DudWC95E-9><{Ob*6MDY2)baSe z&vB&TJrvmugo;_1k2%JI&=WnARIf+W&*&9Qp1q;~&=>D;6YJXIy?IAY9Dlqly$b6C zpO+|Y7WuKi+F|TewX0M1O4G#XQ+hfNpjKKe!bJHFwUpkgV2SSW?$7DL-mYotH{X@+ zX<@<{r@~&z@uNCQLrBR~i(wRUC_YOYZ%&RoFCVL!-JDn*PH$Q@0QP3k)~$7ZO>Bp{IAC)Z)urQ2hr+ef7j4@q&UTib0*J$SmN@;yoU>-Ojb9j{uu+7_|di@&IjQ`g!Pf|39kB$I3ZR{k80m?yX=Wtb(N( zCf8Sm_F!`(3!Gs>BBie7ONC7jTT-%0;;($O zD4xeB_D9>Fwu;R%wS|%NuT?YsPgLXa5A4WfRlsbHEp%asRW9%yfwzfe4mnsw1l!k*DS_-QDx$RF)yCHpdlg%6SWL z#Vp|5AG3j?bj5*d^)3oTijH+*2AqEf<#%=?zldJv0~^c9BWlDEY9lLT)Sl68)KShS zj_B%J@@*$EmXNzedYSFKU-%zGm}f~|3&)t2^jpBY%Ob9Q;<%nd+8XZR5?T6Ugh@m^ z`t)Mtx(^mAht66~*nmS*8Z{hckxS{|i|iDqvy`UGehgV|jepo)Px0P2ndUF==+k>2 z`oJ?g58T}H(-U{CnKacU#bIW?8Y-F0ALDF|faK6pjLz9nGn1v%=~A5Xl-o9gCb76# zQ*fEOXUlQ*{>G#3EEhj4HZ6A~+u5nrmi@dzjEl}q0@o#(wA<8CZq+leK{@JEoszeF zs>W{4U~ltcf8HT}IYsA`%7TqI}D zu{dG$?+c}!)+v#((C_JJL*m*in5NsI&n)j}HhsqVC|w1Kqu8*@O$B9#IxhK5sttRy zcs=EUq?=`WZTN{>s1+vIV}Kt8O-|l9rQa{aSgoW_-8LD%Iq3A|1(|AIg^ zH(j~&F~jrqTqq}WrxTgw=xF=)P_2{76y(l>%V;MnNQugw($B=f#yOb``|kbeY<~Op z586Pu5k6reUQ@gd_2Uci;|umnhxEm0&B?m6Q_esZN123&ld-ku1#Ci6>i~3aXcw|H z-)EUc>H|c;IeqI>qa4!C?a<8Z`Xqo($>%Z4x;Oe)tI2Y7r`(B{5Sv=e>}igAF5Qw* zxUGSVY|&E`pA*JGlH~Db#8=Fi!Gdb(h_JTiV*R2P#(Q8HCcPJ9+!aGF7e8OIRHTuu zw652mdG+n^+y{dO1YbeEHuTwgeQGFw)e(3W$MPdNHBjVY7gINOfU@M%YnYUG*>N9` zscsYx3Ai;|A?e!Mi`ZnTTK1goM_WT_a%Gkt#M;%;`8RLNJ(^ByR?#ld7>`qm-ZXMN zZ!(rgX#O2=jvr8ce(q!1I)deN%%#5#IBCz6*b7ZC@MXm5x0$`t2f1-~xoSG=J}0~> zEF86?S5yYaWwzN63#YF;y=#B8g}VxQxI)f?z2U)GjH38JJbjV6PuMMZGi^BnBeBch zWxOj@fR0^I;CgNaK-h%uf%;i=81jC|@BZo{Q9PZyqU<$z!Kf=&cS=gCB3^iq66Zr) zr(7sm<(a0&do4$6vg1mKS#;-B(Pd5^_D6}PG8xP;eBo|j8OfR)^=J^Ho6Vj6h_&*N zfP=FVd_3M?3v{zM6}%9-@U}SGa9iHb!yP_gfE-$Jd7FLh5<%hQV+{aY_hI3(BNcTp zgbfR{0#A2z?HO>H8|h#nz>gacS0)7^W1fXgMUa%U2J~Z;>GJJpTFtlG1{gr{W)6q8 zh5b5YwlEQ}SzaC%u&k1BGGm}C)rpcpEl#OnnuEQ_(HDKQd$z8oW0x+Fm!&m_v$pGC z)*Di7{GE3$t?9kkT3R;-3l8PJn3C?&AC{r{Q}~-fBMhdyk>m#@a1F-(Lz%GAS7XTwdE2x9 zIJ_Hh_pcx&(2RE++`(R$p1o(=bdO$RVncbtoZeDTE@91vTw~~QRxuuN-Wd<-w%1H@ zG1t^-Ho*4P?_~IFTE9+5cd+K`$^I|L0(_|%!O?y4Cy-{leDQ1-UIC#Zk6eVn))Go+ zZFB6bsWO>IE!DG0;VdR!SSBFe-YL5mI*heYYmygVYN^sCIUo$nOv7mEjQHWZ>CX1Z zvI%2?+tlFhj+@==iuyPU7Qx?orcf~@m6iXhO)#K3zHW$ADzEd{aG6 z!nke+N&fY^)>={y*s@WkKCFi708VRucsKmr+(x|x zd2@C4wXxz-h~c(K4K*Fm)2&R*9CriA{Q79%M{{5ALGD3yTxMhEE38MWL+R+741_Q@ zaJ;&-PEJO%MHLr|{)0 zHOsC+(9~ek`h%DEB( zZm^}x-}jKeIwr$N?YvP?^f&mjJz97v*~Rndvjg3>pASS@2DCLrVjS_EUisG!rEfbO z|N8bhl-Saw=kMDG^J8;}z*z9JQ`w3o*W5)}s);5*kdgG`$4h_s^^miUwv-jAG&WFK?*0#`8k+MweEyrtz zQQ%K}y3D`QEWG4hN%+142`&>d_u$(A18!6(|6EMV2(VixT_$Ifr7u`bln-EZj^n$V z(k9{09?WOuSUKAJtS$?Hrm2X}1(aLz2SPp2)F1cijb^70=Z*Ym(nw^||61as9F+;T zkx17Vj7YpHJ>u?jSU7fRwhuf7D~#J%n`Ip#@gk!(t3}6FAMRZX(ioJW`#yr?^hB=; z%KvW+Lty`R5YZS6f|n?1vNCQ$*WN?#RQq|t#J<3X^^Qk)TuC#i0LTc=)3hlj(w7WKcpCD zj%=EySxfVdJL1fZym~v6$$gV^LSCI7+|c~aIj(06S)``SodWrO_sI94pB={mkOe{W z_=;Ivx1c{V6Z>tza>^$|j*2iyx(yILl$jEc9FsZVue5y3oZFh${g#Ki2wUs!u{5so zc<>9mY%XLoRED~Ykwkz0>Q;gFdAU>m5)pDwA^LQ54}EM(TeY{BTX@=wcICkoSC})B zes!xf4}qBEancoNd7tq!imiXx2~a}#+Gq~c#TilxY1Mcv09p6GA7rliO;3y=z$ztg zPJ?9{sB8Zl8D>Ulzgy!r1u`S)8QZHSV$meVv;Yz5CIBwunjBGldVgalTMePr#|i?N zURGtK?4pZJ=V(eYoq4|euM>l*!grr==Oac|vE%h3-= z+>Q9m&gK9srnz6d#^#U`<~XK(eIUN#?_A_8`WJhKdngf6R^bl)TX&m#H$cbFtfoPk zF9SW+15X|QNx>nKB&+ce9g-JosMzj?4X+1;?9u@l%`UP_jx9Z{`*C0x1y-^CZRe1I z7lvTo%3nZ9?)5}Dw9(j>&gVwXzXkzq{2PN@=J2CT=aFy1|6ws@R^XM@BkYD_2Vz2mp-xL79SIp=ZyH=%|mgdHM zXYXcxy_^REy@Jw^_MNa6htPgu@Aq72_2pz{gI*gNRd56qrdx6d>%Ja^&$qcJO&i^` zg1j-M{c#4xpQ_szx?ISh&+R<&nc0B3WEyuEkXB4zZdIHb;+wM@f*#V156_c}H?=<= z7q{Gh!to0~t)K+IiSE@}oOMt0!OHovrYCT{AU}W(>$`UX^;8)WYx-j^g%=EIx;i+F z$dURda)j8i<7D2^1GHg$Svz*>3LW2ikB^~Y`1_@AOhk*|k1>hZlFthBN?zC@eI&X$ zIwQgQ^fqU|$e&G!;G5t0xAWHSZ;~>?TRwiY>1I;2?cvPBWo>vl1ppUXK>k4}V0SNA zrGwJY_I1JG1nS3Ol)bC0fNFcW&(E<=>FUqSumy1o-$w~lJ_JniD1B}(ubpccE7C2> zVktUck=DtDvjpy0 zbi?@8T>fht$DQ9Y0ay!=&mXpv)3T7dPKvRl`iS2aDuGY7k_}av<)757_j`q)oZq<99A~vT(XX`9wcOan zmx*NmI7vgz1_?)cq;vAIvQ4S%TATr=5d`D20WLEz96QR*vuCUnC`U6=Rx^aURMx)~ zZ$`VOqB_vX(NMCE2kr8T?(Hm|GAjR@c?PEwgpLCyMY|h+qpLez!w5PBD5lH0-oE*S z#B5BU0r6O&=H0PT8wfl_D6h;lAG;M)XF(6)IWzpTTbesouva6ld2isxY)ITvf^i~_ zw!+7VzC|H5XOZP>Ko-t^GW3r)?##wJ7um&BUjsNO#5Fj_82JPmgWYIrFGD!=bn(*> zmZ_6T9mlM2G$mi{OH5{jz=ny#rn>m1G0En_PUF4gFz9$ucLIs~6OVT%@ejk|M;-&d z4sHj(9o&t7UT@8w3)`dHS(*3_hT+dz^eYfppdoNKC!<{Nnv6MBlysDD4w$QUW8gKH zoy9vEq_JHRIvaYlNJLv+Az^aP48NV&3r6iH=fagBJ~=osg)Wh^qIOvq{G_IE~k5pmSHg=dMFG&s{*5Wrr(Vl=WYu80NnyV_3Ginwi< zMC}B7R{6@bl0K9BCE^)eHF?P0Pl7auKDaNN17emwT~_f>mlO1>L{d780;?dWcc#GG z+}$Vv76Y;AIW_isK(v|q&IRB5Fd_oJEMZT+upm2&OZZTo0Z^NE*X0!>99gl#2~#{) z7iE8fKi0w`&hBcWni90i71IkLvfWH5;YbO~%;@V?c|5$0eE`U5W{m)-Uh;l;+@zy7~f-^cE3Wi-!AZyX0&l=PmDxB0$(lOga)bpPCdZPYG8 zs=PY)%(Qf60~6!w>Y9ftiU>Yx{VJiaHAB^M%uYgVU?0z1`%eN7h^_G|{y6c6#6Of7 z*&-7LzI$bE8(kwW;Gj9_)9%7*&u9{!V-w``8{XY^ZsAO_W7dn6-xl<%^Q0?^T6igA z8x-sT#)**}b6|{9Tn#c`@oWrF8*m|+q6-IcvU2QkHcj4=$R^e{c@c6OZ@Epa>Lb?N z>dzLrf9KRh-GAz0=W|rsfoao@|2%jdjys)MIacAO86i_r+}>%6I|i|(9rVKuPx(H7 zTh2HZ^Et(R9>b4R5$u#o&6uF(AhHG!f?mvRR%7=<Oc#quIVKC1HFRiWC9E~+%vsujE6Y9YlZn&J!1JDPGVUN&4EsFqkO8wZWzZ^&V|7h%$ub+Aju ztNk_vzl_Xl{Y5;zetY=4YHHG4j0NK*ZkgKHPEuIC(X5yMX2aRFD?8@1R444G38s+{hO4g>kX)sd8ODqOq@H2LT^q8GdJlNn-(4; zdTKh;IBlpC(aYs@sg@88c3X%);J>qrVrkiMUG;*mD9Q(DCJrRN{-*_WV$Y&zPVKHg z&;=9wF`f;k6|WmsS*7pbCjBtIN|zkn^pDFCj`y{Mw1Nv`zl%u#*)gUb9mzjhWFLPR+N7T6xnpA|=x`}MXv%#^zcqr^4&yc<=_$@L!+U>1u1H=ZKS@#&PwA6b$ zp_|#j17GTDp+v+|*$;NA3(z#_Zn}@(+Z;?Jukl2M{7E#oSl(M~umB#B#52KpUnHbz z*JL*X+RLNIGDu5vpees!b#e2VR>?Go;SBuc3u3LaL#DaYKd3t zw6!om0NqJUUK!xrRQQ)Jv5v7j1Z|yy*!GQ~Dzs>2mM%s#s9UuPe{05TSv9-aa@?)y zVzd7~D-7Ll_FZivKu5#c5QLX*OkP&!&CH~@MaW{V^6C!=te-1#EE7Cc$9Ep0kyevqJ5HE4e=qRJeq5&QjoXzo2VFhub9^y|GU~`}YU$tq-d{hgP|BcwvUk(=^h7o3afBj3*%u!gWKH?WD$QIdL(;1BCXH|yx zwKSiNk~37Tf!3@Ld!;Jn2k)trKWOis5QYt$${V$X1Nz`kDxia?OAcetcJ)rRU&JkP z9#nqFOUf)fh+iy!9J7t-l1wNZg<&17WY*=YE?4rk90{_s1OnE;ol2k>lI#1^v8V{{)M0Z=`2b3l z_eJLey)bxrTqqMd;qyahdMW96vltw$xo8!L$>6uX6{I*RMPhB{MR@e);$eoPtPc3p zVYx)f>B)pZ9f*#`!5jcOKcC*Y{?va}v_y4^US>rZ4wnaRXn~-}!)X)5d{HwJ^s`Sd zxP4}XpBlOIm>IrtqONRiUw)Ro>zB@uZ0mCMJ=}6YeG9Y;l`yMay&1`7`~KSf{FVE} zM_xOJf1lxyr`)o#k(^wbvXtbx0%Dhaw9!2p3|7DXA$MT+OFyQ&tsPLE+Jl~)ejs<6 zi>nsgXX$lD*i&Vw?)VI|_pMkI8vhONyEGZz3|7TFwNiC~W_6@2vK=-ucCsGsb=mHu zc9mw8T_f`|=ddCXlWo0RH8t-DSp#Rbr`2FD=fvHgYC&5~0NKq7i{WYk7`&u?`CUgW zD(|#9p}+A6FcIMUz@n)*JnpJ{7gPItU^z^<#Ha#1q-Qqp8M}vK^E#7p@*xa1&YQ0S zraQPXaxaL#vMQ3~?BvpxmvL*m8;4mE|e< zD70mTRgRU+?7o{c^lflk%_ggER+n@V0)fx@V}>>}G3N>9?Iq8x^T~}quSxHCjltEw z$E`+eh4fIFoZxT%CBd@gFHaou(~CmC?S(nXDDcw)HJa(-MGx`x3o6mo{QJj2fs<=YVv7)PD*KSeVft^eK1 zZyLi58S}s`IdMqK8>t>mn790}PN7dFhutDZ8#+3#i?*v+%bxzRLFre7SWncdQOnCl z&`UmI)`-hVMGn; z*u~T727WP(2b8UmWMQhq9+6HIR|4>=#VJY})Kh)Mkb__yQTx#Gg+-#+=C@Td375Y1 z6*<{Q;3^lA4HMc`*uULGghg)0j%KbrjbJ^I0C-*Y#~VulsW`=V(Y%2MJ53>)6|OaR?u>UYz$uOmCXh z>95MDhWicr_JkUB5bWvIUL|liwGM_<5OXng?S-v?@|!ol*|r@sPnN+sa7Q@n2WX7c&YMO4)VVholk8dBdgV`|~VN_VE z42N0=y{K)hgNw2VfX5(bAiwv2zOM%oYfOHo75jRdUwbxQ&3FsZuzwB#0#ru#*^<#U zs52I4rpu^klJ^WJ_E@afMD5Jy60J;1#Z(VQfv~JH=PKl3)=elwI_7PJq9(>(UVDSn zp@Vb+_qQ__=UtlKotvy2=uS!hQAP7LQc2)7%N~AROF)%cNr!-_P$9g)x6kHU0p{Ib zJ(SvxNNU`*%mS$g366jD*;<0GTdi7fXy0>EYMy=E29fD!83oHdBe5nbOGQVxtEKZ& z=?1~YnM`ZmkIfKOtOXUX>wY@VGA6!5Wd5f{^N4g-NcZuq0E@V$ZMPJ71#t1L%+h3) z3a;L`{RFX`UH#`@sBQ4p#I8p%3-Y-qvV66b{UAn|5KLWSiij1zh-^zfs>X=h$ac2WQ ze`+8vfbl>Q0$qKcY4@U$XjXOnwf@`-TGaPlq;8fvx-kc9wa^jABaUwFuWu-9&s#G^ zZApBd`>LU9FU%Akx&s^}fKn1~7OvG58b1y+3|go0Hn9b|fu(6L+hFZJK7zeV?Dk1ey=Mo;*KUArW@d4xhQF=W#r$tg z`Wx3uyW`NRZVfA^kIPo#2dsKET|F5b{v%_4jp6mj?qXS85IYPrMxbsS5b$6AQC|aL zHj^r-1>hU9k1JEeZc$rq2(RXS@QK6)Bao(22^7DUA=kUgJc%@!;Up`dwdNXK&gD2J?zmh;cB2$xhV(e|2x1_nNkbF$k~N zKu+gZom_5)EcxOj(3IEFL9pW%a$j4)rEsSabGbiv11n<1IQ+sgO!nrCiiO3qzICPP z30bM!#~2BxE4>AN<;XG+WWWwClaB^y9;>2_!Q5A+24UyjSnFL>lJ8`FmgNGW=t1c= zRBI~d>2gOP%GvO9v(dn6C1zRWD4+~PF1F+u!9dqp*af;p;#@ZvfZlC(Nti~cP7nA} z-&pU&{}H!AI4j=H*M1Tz;Kql2G`0Wu0?thXg}shF$G=F=JPLXsnH+sJBWW3~#IfiA zzb^agYEi39KdPBysy*I=cvb?SqceVDHr8I#c;|zn&vl*t-J5;Ec4p4ejt@%pQtWV> zR5+b=sP=)Wj@FRZ;_!EiS+#-@C=At80kFd`*TU)C*(B)KVSLM~(g>CHP9gl*_JL=| ztG|o&%z~?3x$DF4zqz&!8H}19gF(elac0d*IM?3=DG+LW7M!H3Fn6 z&t+-vvSdWjC}=u09Ag+)0p}V&zoO6@k%e!^c6(!SF$DaXMr?Ura6&8!*bs?Gv<3us zN&Z0zK3P$QMbUcON0IiZt!X?>`3!hFr^>7c03YzZzAZ72MJ{6dTEYJD`GkJ?DHYro zNIkX+T75}*ss_GXAEsnc_l;c_G%O&<7+!Ro3z^EZxgHP-Icg4{oBcOT3Az=!QfS(2 zS2elPuW53{77C}-V}IgNJp1C>Sth?Uz*sHS(!z?b(F=v zmCsRL@N;bw+Susgey1@}ynCS7-l;GDjI^`wt|+}SxMRH!V(`~#X{ zN0rte*8~+ETypX!9#Weh_U3BJsK6=nDFUgB!NvIFpSnwA%qoUW`w+pz?P%%j_SUs_ z9B3lO1!aCk8Kfvd-UpUYgNg)BJ=4-O3Ch_E*W1E>uZM z4a!Iq9a2?P?Z=brJuO)aWO>)Q;a!HTETS!!Jddl|U?llttxd!73)nM7Aap>- zbA}Z=m3%;FFaE(Tuyr7TdWu_OYpb?L_r7pn0SLfz^Z9Oda-Utdjx&pgM>!8B;^svh zIZ#IwU@QMOpk`C%5LigyM1o?E_|OUXFu=R?(Ex_^?=gvjSX@!|PXe5Pz+~|+%TeRU`Ok`TB1_752;g zN&?us+6#$M-f3MWK2DuqOKQr)-cWE9{R9F7jgf`dMzV(G;B*x3Dl<&xLYX`JBIdLN zNmuRIJ($1*C?oxJ^ta+-F+BBgw1IG|3lSC(_T_M4dfYbDEGX8$rM0dCl}zpYbXvO@@Y~@#3W2f6Xxuo*y#1#lhl6?ON@J%v~OFI ziUu8p7p2hvy^lpP@E&89QLgCIbw4pv2U90;y}0!X;;mEAb+2WeFa|YRs4=Fsjjd!H z1M89gFrsF%`evFiT>xQ_{_TINOjhXB9MzQoJHuqid0e-Uy|hrUKadF zsSCAud^n5Hn@UC1(OJWkh1 ziZVA`wm&*pwml`0TRfTLoccK-8813K3tfO%WqzpP8a0n%6mnqr`$;OHfP#soEIUHc zs8mdOABluhQ8J9OHp!1lJRv5D$U`Ia@Xu1rn=v6mas;p7MOtY&n#KkAmGfJD39r&LnAwe|i(g82>bRt%^gCpFe5m zVkz}7TyPJC@klBWQ>L?Kz`7k$wL^QY=ON%Ev>lQsp@Zi;QOTH*O6Q&U(d|gNL2p80 zT_x_GB%w>x?JFnG+Ow|Mfdd@GNyz}L%`c)MHucPZ-bc^-*`=Zi8)Nj1NzmZw?+F2JDBxG^qNkrqF(-nWwWw@#g7g6N5_`!_oM^ z@-9QJuck?%co>&ufMiH$52o>j0%JaZ0V_1Ch90c<(HyIYqBDiVOz#sG5ufIjdxAE5)}lVS-nV8Z~!p;W2cjR>$lH6`}y|0=iWc&^HhyltLCbAj2h*7g?kBo)bxJHfmocv z5z|=(!&kp{=9n{_4TG4U1}bZ`DE~r-WBCC*&2n34RX?2fMQ%mYdZfl{S*cv`MV{i)`!8q1hu2ze|_(X=&A zHH+f)R9N~jfE~t>6S&>Ov&&!_wsIEWG-Ls1#PiPF{|%H>57tzh_0Sbi1r-`9Ih+fw6xyU*03M)Yf~mt7FdxilOY z)ZwOl)ihA1wd>@@ZLgZ;lQ>p+{r%HsXK$HK*_H1u zO1b&dG*ru(#7W|hI%J`uy*Q+38oCP;)^qJW;ZncvU4LaSZHJ$v&osqBae!v7)Ib$z zJnm%<7goiV;?!&NXGUB_KgRN=S|(4hi3KT!eoD6CT{TagdAfGBa`?y$$J9wj=!oY2 zpi^Lzt$((&uTD|tJjeC`c)|8==)p)2V|bt(_74M6wuDfysrb2K7>~^qAJ76$=Wiz8 z>@_mkWTB(aA_r3CvzN&xQ%0(ClxM?aWU^RKl7rR24`o}r0}<2Ezf>hyss?LU{F(rhtbwT*5?)^_RDw5e79pp(iLXe zmF~ZpDW6fCvANZM3YWqX|J&f>+p;wo)qJa_L4~8P zQ8$qsSaT~oHs`liEf6b`=b0tu_SnhWnLM(%)5>r8_?s1X9Gb`XP9e!ieUR0Rji_T4 z!8dt{s=c?ir?l&{p`{mZH(0~Ghz^>yj0;Iugy`kVF`;_e055(D*NjCPCkRE;i-T*e z@KrUN5bXY;fivJwm96Z69F`=?RE&F6`HM}~uY=6xYVPcCV(v|~7&Segtnlor24^2Q z+XlWFO)$z;@$^l*tY)c1Isk>c71k~- z{#q?-!FX|@(-T>3#wxl3;zdY$tkPFHbU#XkrY6j|oo$fGY*`*UaC!|z5G_gc%#PXG zUqKt^=WcqK`udpg!0*@#py*XqifD-lpn%sDMC&?Eq-suODIr;f^~+xHf^MY`AbxxM z&=$mbEH%cp3zLUyFPhEd9ceBM74@^!bA#f<;+C=jF-X^Zol;-17)U0w?iyK~N4$Xc z#hjx4I*nweLdtHaq1A=ip;gVm_&Mv|RyzSgZx&|+p{tW0XIPlTL713_hzzBfrAq@c zmx|Y)K97JkbF9`UwhDpD3#1?+XOp z0dVKQ1%mF4{iX1!(fdLN zasK4Ui2-tPFNxm(U!@tL0mkte$X`+NpK(i$_q%XogxwYJrHgzdXyd#%>;-sCs3zuF zlQ=>cR$`m@H*Fal(g+y?rR^+6o~xJ$(28myjSc+V41o?u>7#dm-k7Y_qpU;o{+J*SfI2tcEggRCY<(?Ac#0TIg$bmO(6Jzy97nfYX-gk@>;lk`$X`ok6K5 zue+}8Hy1va$`A=`Lo(%w&*9}^ZXx0z1A4!EPCib)TAB*J@{=HPtnvA%z${=r3F2k( zXWIgnn_!|K3KG(MrCA#$*}eH2-jzed!IbL{1#U!cO|y-3xH4m96; zNX0qvLw_9%^`r((p%@n|k#ZmAit-$(m&ZvaVM6lJrG$bjOI!L%tLa=6OI-#zo=7N* zz`$MPAj{zfH*|^%jBa#Mi$)JBdt&8y(%>ALk{H=sy^M#$yceBz`v966o+5zna$2Er zp@u===}>7=LdSK|rFpU6XirHk(B|n|tWZKk*?3$|tm>o!;cWeYU*D^_e?Rx6mng)P zU|tsrZQdQip+nbIG504LJn4;Ds61>~X z2_aF0*Q-aT{ZyMxtHukZwrlQm{hL#(!33wWF8X--!lPHZL@jQd>C%DXr^6(mnBWxv6blM2 z-1_g=8cW$Mi|1yIa9m24>Xoa_K8dD}$s$xYEc{b=9lp@mJW@hN0t=LlI9*^x!9=K(N!mM&Fqf3EVrEAMcOtTX#T_XN3X~!M?)9_6Gl< z5+=(p3m{ULI|yelJnvjwK%_or5DA1VzbLEv7=b@??QsKUp;Ckr`hgb;M9}~K8K{Px z<7=RHKC-OZ{Z!VA<_|96w|~e3irUe|#^(6$VnqS*-oX6yA}Y|GRMvUtd&1#o(?oz` zP8eEX-h9l6V!rft;AQH6iFhu)c8XC#AHV*|@X>$S^slz|*OK2z{6CS`kAET`+y9Dm zz5Ejqhz3T!fI8Ryngf2~;;RezcRu{3#^!Xsc7O%F`0@c-#oL!0ps3;VOY|SHKk&n= zU*GwZa*(RpZ6-2j*K4v1%RD#Ywq18flzrSm*lM`P9fXC*72KR~Nm?Luj z49nvnQa23#1bZ)cM$e&~hP&O_W0aKQa|I2oG*?lLLZkfd|*!Fk+h#*?wF>y1T zAc<`jwwQSw10$mO+ppLl0A`JGy5ugs&X6IXq(K_dhaJpP2RBbr1Ws=8CI$FHYN(l7 z+V~YGZviIf$ikBll7^mr$OSjBc^HAIh&Z&=+*5?iF)d|pj9K~?Vg80Jw4V>0y*mb& z@!%dsY`@N1SUxZrLG2zDZsC~TzG4w``G~|-$SC*GNJP}*h7JpqLEYS}CreR~pSxj< zNctt)tl^rv8YP?WDixgG`d5*dN=A+V3yLy9YzFR2O@o{yWDyF_yM>x{-IPkj;3v+L z(%wzn0##?tOp(zDxEp?e=)RqX{R#_3MT3FJHVt6A)%HwMlCM{$VSmN;UvG`gT8e{0 zXbka*eQ3bG{@RQqIik()FQD5)AcMg^AQUUd>*tE%o+S2tBY@%++B;KKqduYP?((AU z%JqnTzGLR(JF&y7=yo?;=VX4p%xV6fF+J9RbQW*c!W9X@Xh)u51faFFy~Pon^(sdw zBK0v`w-7g`?q;*^zQq^(!~BLDDsUo<04&$Z-;5G;B{0JqkTAa&ViYdi4Q;VOze5oC z=T!*f_QrYZOzK?=zr2D0_6$-CIr%J zEp-t46f1F+ZuW?7HEIK3SXrf8_@A)Ar!K?#i~DGYCU$7yjiQ%Fx}wyA-l1hqwT~+` zT(ZY-;kKHF^{p<^KZMhJaQ^k~7&|on6}PS0_ClY+0(MNQyo%^|NDyhIoGyV zHKRrkhLXNp=4PzNag~&Y{fL^DK$-nPZr8cQ@2q_c(bM;+ySZpoH=8Ie*g^-mV2{r# ztknDcRMFGy!QI?}bBUvF&(?o3R`gQp9RGNw$4vy(<3f>8)6d?H*YZb6x{pkSkMo5N zZZ!2fnz49by`4Hj!|#F? zs*93s5#jhE8jotKiR)fS^>cpt* z78aLHQ{hx!zj36ow*+?9IwyR+Qz?u?Y?w(D>`uM2>?k~SKtUNTU(q7CAScUmTF_>j1v6S zBU$R8j&luuCBm%gVUGK9*Spy*!E%|8XTGOW$b_0qvPDbXzM8QyHe7u3s%jkbM9IiU$hRkm(<2v^i=+6+@L^7v~W-9X8 zTJi%BVaZUbRD4rUA#pGUo!3h4{r9E6FAZ=M1gX?4UH%!=r-3gS=(#ye5<4gq^)A{f z3ZJ)9!X*Ez8AV&kBn>$Dn38G4NFS*jKgZ~Z3WX3j(CdYBFog|*UGDL28Eoc0sd9Jo z_Ol$=sgjV2mQl{*j1@G%hd8K@uDGy}Hp+vF?Qx=n8UL17FGbVOuYil5Gl} z8=4koD0bxM9(>*tBuP%#mZfz6_BoNP@E*1PC+EFxrZhXHlAa8(^Yr(7 z$!5Ncy20?0W9Xs3#U2iGM8?bG6dFXk_R8`9;20HCf55>QlS@MU8h4OD%{AH8~om3;} z2ayec&rEE=3YLSHlkOK4ZMb}&@8;9qA-bq&}#y(h> z%mc#0D^M!Ca)QceF`_*H5dzt_Y3!=a9&uCu{UHl5H3Y%Pv)*#|RaYf>!{5)-NO&m9 z5N@RYnK+J)H#||hfykL~vV}r0M@$O6YResjmJPepR(6h2BcdUYJq~qxzQueP5u*B0 z#FPHzKOx+e=mn+mqXt{VZR0%ye;n3}C6&IZjE_z;j@v(nEKN4{BoGsy#1#mR=Rd17 z?9=T69a7~~EJS`&{NN*ZfietS^;ql*QKdSZyAn^oBMRJ~6g-8`BIQW;QP40^Wo^qX zZQfq2gb==y{>9*I&|u~*?NecIz)cW10(9X#BgFjfXGSLJh01BXeu6PK+%s99#DGzc zKVE3}VIvKa*q(v&!9w_S*KZ|!t4kgilrX%DEPLioO6XONUy`m0_BEb;1uqOpz`@2# zf4;M8^0L8A3EnS4H>@q~EdFJ)+(}9~q;_JI(Dp+mK8+9lw3az_rv^_nW(3K?yQ>AY zaJIKYpEkX22__iPLV>$tmXp^me5QmDpF_%?B{PUl^J(eu~LD_7o}D3 z6{Y3M?;3=A8=>ACf?R?B`r7a8GpvdEWfIMSjIRF{FHI5b)gKj*4^8hPWhe55rAO}N zxtru8P75=AkdzMXP2x!DpGlK^=4&zCt7xt*UvD1E?|P{x%G%i< z(0bN*aw9=$;gPhy4UeZ4?{)WWiqF6K5)qWeq04!R3Y~J4m2wg^#bM0R1qF3;<|?`K znSPUse(UtLla>eMHlw+Ehq`*_xOzMBo`AWQ-9fDRz1;N|Um=aE+^jnCt4H{eM#zx6 zf^RW$*#mF6xk?+lf?O9+xik#2}3NGZFfE#7Nloer0=Use&RKJi{ zI$0#yiwe0DBE6X~DoCQehqYZG$cHve&h4VJ+}u$K_9_#bai#PEZbj;&Lr`rDBBhy@ z)R;po^mX^hSW{B{1pQ1!DE#RX%Yv;cgl-`RHlpA zyomOc=@v~SflyCKx-q9y&l<9(ppF%6JKu0>*KQCY!4dMD6b59?2&$>02ZkXVXU$!w z*iH35n)F zB8b-jQGu@DgG(I!hI9_oI_x_FtD(mTv!D4%(=Ng^JR7~T*2{;Da8n$N$L9z;7li1U z=aos5uInMw>JFm3C*Tqsy9Ozv!i2Ie$_~hfe5FJdKk1)U&shgVjdcWvIUYsae2ZtMmBS4H2d8m=L@%8zDNO7Li{iHnrdMe(bzfS*6{3(R*g z3c%1RAwMXK#uxchMq`RmFowBR7m!1tB@c9_Ef>sMZje%sMbTPi0B}-VWC++GQ`nf- z$M9az))`mW zm|Bl2kL6FYQK~eF-;SaEWq*C<>CQ|k#rCc3XN}>OWPf3t)yRC1x(~Di&hN6Sas2Fw zD``(vON2s;ly+jM2CZ9KgiUm;oD>3) zHdWdZZ~qowe#&3MlH^eGsrA#fj4w?k0Tew#+5>Z80osp5!GzB7SPy5_t^`!)xEf{b zYzupG(XMX7>RwHl?WqH>1 zT$<=TWD!#$hI2);06m?oNZKvJ1VxaWf3f%oV=t1Y1SJxibgmiZ$16=tyrLl<%)k1c z#hN>TF1FaG_%_LGrKF}md7}glvtHhwdbpiV>5-&(g|6IM5|R-fCA;rP6J%m2d;Ui6 z-=j(K-6+6n{)iRU*og=ul>$VqWaIRp+n416*lKD)+o1ZcqyLTG@R7Xk>eTA}g7&NK?7jcx;2gqLz z^`Oh7V|7U>TJZvsnMPWFZ*R(_9!82wa)q+^yR6;Ue07%j!cI7VAFto3dR|-Mmc06W zvH8V>zR=3bu*g#Ai0?`n>h>AEk|n=tOoZk>uO#lGVRDPyb6Y1PW`mFyR7kH1bZSm zd*gdm$#_R6DIBeV@?l{&VNbmzhW}z|CmccoBS=T;i6C$x)b(n-l-C0xVV0mH(y>ni zYEhj@N7>5jpU@w0nQ~OP8HFe5W)){4`Jj(j=1yD*G2RE%l0hI}7y;LhguAs^d@vP$SPmk_5 zFh4qep*cW4Khuh9nJ^^>rNBxlvOqOB?FVT1{Jg{OC^9tuMX{YyJ4XR99mt>kIy5;q z$}->47)e<6N(l`zX|n$`87nR^<#xrmLizDiot|Q+a@;DO9uG{&;Q8No6^>O4VRC zsx+}8YPFi2j>#mn)yPanWa~*=jP==fN_?@UkRacO@cY{Xrp0`T^KIyTqTj<+L5%k` zqz!kOypZjXf?sn1kK8kCw!Z_(k3>DKu3wD68{xa4Bp*Hd%dkQ(_ozdztPYw)6V8r? zopOT5#dLG1S8E(U+>fCHbSq{aSzMl zC6jm#n&_bum{_mcvUhs5QyqcHS?7`*jYE5@JK#DU)bz+^F8kyv+OtmbPl!PLTBp9$ z)?!XpCDuFTY*mDGIux(UvI~B-c`pIkSr_sg;B|!C#YwF>Wtora$)vcPQus%;RkK0e z9)`Btd`z=GCme?YADW3$I%i=77xQ99O)W+zvb+|H!V~8_#$&p!Mj7%1;~iN@I=GgT zAohJ>vrdNM=iRI@N1o0GKjC5h-N2NozR ziswo_<5DL6%B{w59%x5$!6)y|acj-9B$N&a32&aA$%>xfwumd^*oY!)JWzApJTd|I zWtz(r`7RemK~1AczE&0>LNLiPjmjaOYmXy%#gwbQjSh*QVER@K6G>+7!V9MDm&-g? z{;~|ZPR$5Qq&kISOy$NqooPqin);y75+5{Ws7eAJV?#HbI@5I69SO{DJzT~)Qdhu( zOjJkbN!u6d0^VI7r8f4Bu8|Uz3g+P2yrZglgWAPkbE}8eACq1I_MjM3A@jYNRbaJ> z)zV+HY)!TE+5ydt`9)m@K8AGw*Oz|mS~E>b2e{X}W;8QUrl~x)`eJ-qA9w|rT3T}L z;z#P@8?ufX;$Ph${&CqZb*0plvLVWlGH>*SSDnvIE$F7gqU8F(hV?a8*?m;#Wz(I| z_PEDDP9#Qf4N7pHj4D|tnh_pI;=^25x&Z>iz4CrF{oU)vlDRSW=z+E$OK2pXuJ=?*)7{Iw zo9jqD!iVEG&bLQC>r*hhhh(i^#BNjzRr#$gnZgaU^%c2bmcWdZ`!&+ryd$M{e(8Aop2e8Jc{_aAchY&Y?%+(e%TjJv7 zN26R*R|4%MfbJ=DIX+*`dP=aQWo*flzLpF&axUYIvW8wl{{q`Ne~8GXtCAIdm!-O= ztzm6gbsogSBZUF13g|(TY7heI^U10Ai~P$4GAw761}>^~BS z=i~_BaK`BaTd17;URqs_%Mwb&ycpykYQQ#SBA)SGWp=|@FkA;r)-KCBQ%&;W(BPz9 zFcz3q5Dhvq3pC~?0y=l8&y>UbWFJ5uOOjz6SQ7|n*0KP-VA{IXqDIbhkVF>zq0Hs{MQ-~@3^jx*J)=hlx_ zici~6S{$!ZmLq!u1zK7_5s4PrGao%>3;F#OU}EDUkX{+S3#M2D7L;GL%uhY(nF=lx zb(=lI@vsHmsi4YLG;zyb?(C~ZOu8*2Me=!$*tum+ix|U_nr@OWcN-@~;2g)JzK6F{ znRI3t9&~t>B2OfmwOdG^;8_(Irwt*yUSIk$MvA1urPxM_~O&u{!fZ0=P@I+&YfQ~w5XjptCC)5=L+^V0jlQ&DP z8s>Jcw0*1?NoNc{F$6P7_@oNLjpLlq@Sp4d@yaK}H~ke~+||J6@B~a&q0#kGqRCF~u*WUNm=)`hwML z>-X(%Iw3=ePo5(5rL6%ZrtgsZqFqAq1j6qZBKQfbluCcl@07k#*OL$=tR$b8hj5w~ z#iaW8Q|XO=)+bht4VQXX7BCX9QZlV1w+p&)BhaU)Se5|OGZG|Vq@PRa<85*(qF}_`kMIbG;PXSeED`ANEfER5&x7yqF3wdo1;#tw;XuGn6e` z+$fiqe*R{XaQ3FHgz-2aV6w1~YKP2W4ZrK0g35H{28n*^g~N7S-r31*)!Cm>e}}uU zD#$zu*Ev#2dXQIDE#F@@72`u!sFsNxyd?6CKq*zF<^a#7x_}l64SlFH%JyaP4=%cw z#a4XmMZKEL+TO>fnueA|qkQH`V|S;%r>0HbnrvtJZ573_W^|`@lW1fIZ~(gB1LEhF zl4jImD?xyu9EG;olY^;R8I&j@#PHlWyRtl7kmRh5eDttI^M*gnDoqWGUu6wbtki^@ zGkHt-yI%f{<=KXI-$;gqh3JUgZ$TKi^-t}^g#(iOoZRV>c+`Uu=T2O-nfWGwAgc&L zr<^D4AP)|mM%sn3+O(o_pv5@~WwNyj4VPL0?ufAl()I0_II5D}R9rb(R zMGJe3p6<+24d6Rn+TxVmMu1l}UJvT4P#3u3YnlS9%EqD!n=1{pac>qYeiDr95fSSQ z&#`)z2Y%2Vp$p(xXz4gvP#_lYuA9Yy!6L@}#t7Vq2)&R;$LuPF@|%}c6sZ< zbk@#&B}A%TEtN!HEABnjux85NWAPh6H*7pBJUp=!XZ~^k>104Cx1^^LeB#!6>S)wk zPMgJQba1}dlez%=85TUs6Qguiot!b)?t<|hwxYeNJ)HLe`whD#60)kHoVOKqoiub^ z4=2}Z*o*fCV91lcRd1+u|)RQCkxLj2s7cQ%!X300wDuk`5 z-K@%^sf-4^9Tuk^2PKq8aPo8t9AWwB1$9NTQ@6QZEpt)KkD)p+F5_6i59{cy)Sn=` zA;OPgDitV^^~2hasy`bg2rVcz6G}6g1X_W)VDwFjtHElJU5tOqomnEHr#bU#0Nnb})CI-0?aD zo^?}L0rF6)C$)^29d=V-Z-_jwuEOYV#NjRu?5~3m1W^N(y%&}V3xE8F7<5){5@E;# zspTVB?4YEA^qdItc?^sgqDEx;5*co4c~nMmw9_cK(NOM{WtwgyOoB`TX*O5_CANo5 zOndGZBl|X@)iei2g`K|*peit$c(2$cq%uX0t27hqB4m|x4VGy%`&~!gKbtFS$ih-+ zLyb~3!EK5rCodl#rb}x3^4W!k`}oZJ3WtwlL3@Us+1SpdS@2k~wP#S9Z}z z25}l2D3a?79W9g!;oAL%eD3L}G~u8C&Wp(%bFUnzBiWBhcI~^zrMGS95y^m@T z9^MiLh8BJ`~B38aQC zt|kVDS&&H;?ZV6$Yyy@~v#a5G0w8!wH59b^bn#?U`Fsj;usiqNiqS@T+id_l4*Y&H}p`SpcYt)%(Bjc-Srn{Mp!C&$FhVL~b2Kv5KASr+iJ*kLTFqw1Z` zH0aLrQIBi4<_a+{TK6;?sGca3rgG`bQ#NbWjQYN7&7J9)@UOm~E*A>;&_g#LpKy%7 zes8QSr&j%jXJk#V))qNKv*Odzgjz(4T*9>CBm3jOgCB@*=l}DY_ezm?JyE`i5TXn~ zX=4CxX}1V0Vw_F_qydXeesjx<-qDDwoUQ@1n18P4x%c(#egFQMJQ4Q?+gD?3*+9_T zU>l4sV$nYJd9f<7aL=habT{V1uJLpm*~#{WoA2k`a4z}tA4KmDhmGuJ>Eit(j`iu{ zv$U@+MsooJ34liR5FcAE5RPA%q*rs*F9l;1ov>sz2^(TTd0CV;D@ z*)EVEQ@g>}gYmyVISzlFmK(4|u-a;`sFMwn(kzMfR`_G^%w4RRH~i8CjUu%TNL3~i zJRgPWA}ewTW%ePi=cE1nn(0Fb_gm|z2BQoQsos4j&Cx03kXWfu9Gtf3dig6=&oxU$ z_Sq`rI;v50Sn%xC0{?13Q0wmQ^3BvJwi?ZPOEd4nRcdIj0EeE(gfRWht;bNeO@pGU zu`-I8Ebs6q&B&sUyTChqRL14tWv4V6sH$3InLdUh|L^g4$ z_OEB7q4IlTUC{aSOt4PVDi#v57F@AbT(VZ&=I;bjGQ%*dT-g*~DiEUQSxl) ztvP#7)SVShcgU@~qeDkwVTuH|5@)JpxnvZ<4@PE*>}y~DZ&tEhJ#DPb1sG+zC>FG0 zvgtAiAUZs9!l|V?C_K4w7w@V?M!bk^dLSx5VG2+v@YHFl1ouEVu{2QksBHn4?uJwSO8C zK$NDHkUBgKbw~uJom~vsUh0T_Egqb4y*G`{VAC7!By{T7H_$=!(7r?8fz#v9=J;j7 z`;i^^#V{uALc>y+EM)9pdP+j=W-+TN$B7JP@520H{s+1vHx%(Eu$9ACZJijBfDXdxCHEYdl zeQV^0H}SMPyg5ATST}4ObdJ1NwyI@As#;}IY1K_VXp_sHeyZ2W%zRKw#DK+8D};jK zSE&9ds-Y6`*z{J6+6~E6$XaZ1&t#8;ZAn-E4ttZzt^&)RqRs*9m;}IqZBAhSu=+z_ zJ&0%>iaBVh(KI@Hx=JvG8oZY72z^Lr8AZIL&L{f0-tNq=N#;LhL=ZI0FuKE_!;dkA zKfGV5b9_uM8w%%EZe|VFSn8?}^;FDj0x%b!paonCa~x8QdndV3t-IL3C?;&wP*pLZ zSW}{qA(kM-C74|8NuGXM<9^XBQn92!827&W zlkrDi=kkO=&bp#fskp~)rsQ8Ol&@=tAN~Y$I6S#dcN#N?h_e2&2N+asdM#4OZ+``O zM*bjNch(+)HZ9KI?frRxkex2UESAk;Cr2H+${O6y|Ix?d)M(hlp0g$>pho7toBR?d zmEEA=>!wG5T-vtO|LVg{o9FPWGwnHavGLC;2Tg&8hx1}8e}StVf(ZO+OjvlbJpi

VyjqY z)7Y(x-aSIKcrnH5RKq5X!RCAdR<&`cb)sX+A-a56FKyjqo<#$qKG(MI`OmB)tI)`Z ztG6E~Prkk}1|NNK#=VJC_m|bv_T6!O*6=K3k(kz2@39(ueQxM{Jf2cv`~)|b9xmOK zEE885ffjt@4eG9obQAWr3Ev{UZy3{m;)W|k)&Kxvmh=C{O@oc~zi~?#ko_;*0Afmi z2E^4wWR+AgLbO9msA!rL%4UpM(K)+9X?wexTUC*-tTQt|J{>p}NXp^7`f$J z0A0&TI2sMBKV!j#wPEg#82X2}?Gkv<>i*NRIX;cke|g=V)(Asa`JGTpf!*C+o`{nd zvd1mYq{*Z3PUY;+s+`n{O;)B7xVK^Y8G2Roj^>ev%3pasU~7gSC* z(>>yULaMb~CN2(yQvk>eO#VNaqO!AtBaj-{OWn)yzo~)U{(~C0B2rVNs{B)iB7u@b zCzMq6=LEZfy!(&^nfh%PU!|--h5+LG_TOWHwNPP;3f$=dn+9kIst4{G*J@|uQcYoS z+<7<=yowePlu(fx<&9C}I{3f&rFVFnC@P!{=@jlS#rFP=zYAOE{QZzFgc~{2oG)YR zhz+1-K|>}$URj?fGn>(JodR2-2eOncc3JHy+n$oUq5 zefZDgPKV)Ja&LzzR6kzk%fsR?yuPkzBP_a=a->vtX9ii`&A$Do7TCq7`*?s_fCp-U z@_*8Tx|OrJv6-^7wS%*@tJnXsZnt=mf4o8{&@23#qFJUIu|!4&oRri!TRwTjjMI)& z6!6uRT(unhd#T}ihU>b65rS6Ch6TEMAPq*bU4GZlBSo&79TeG07(Iwn**2IMK3JP< zV->XyenLoYg{#H9$i}#y7XPN_>WAY{VQc>1H++@=&Q0yvMy}4VKctSb2`OS_u>(IB zQs`)j$DlHWGfmpJk$bDfqQ)yk6Ke`qawkw;YRa?o{N>AFZ-jW3DhcmEq485dw*m-z zz6XTY{TDa3hIKWB34qleK(lnnP9Q%U(gCC4>!Gw?YM`F8qTl=a`8CW^(kbk$9mKWE z1*7sa!SOp->ZGk$KVFLw%z(C4jD&Kkgk3^+v^ah+|4rp*5-+C>w5@?@`A*hN?M0A1 z`sLQU0O@VMT&dpct&AlVJE2)$k!E6JV zF!+3If6^Sd2*a9Da}+7D#txEic@C=r)e|lAqulSWvwBv%TeV`thN3tE0B@0Lu-5rLN5R2zFbI(zpxtk6^odjY zibrC-zT=&0tP06vBY#hc@8HQdW`u^nMfIc@-jN7`{wLhDE2c8+K)BC<56S-v?*Dc- z-xEaSz*&H1{)!={RJ&WJDKebg0tep;*Tsb@!`1wI*WN;gGL-hygUYQ`AVY23=e`Gc zG*^2A*FYFtzMnz#=Z}ir#3HsV2A%|XZ{l!aLhm~m?+a8PSA5pg6Xg%K5t=6Y(rcyGNMCW&?49*zM(vUnufO00Y7x7_q9KXSL+t_i7tt!LO!xUp-l91n!3fjs|JJNN zym_4x01+PqKK~cQwXDqTP5*7<|7Vjr#wprZWnJS24+hYVptt3cR5h88bO+}!$_gRp{U#r zK0B|1Ba>N^3HJR?4Uj=KxlV29txwE3vAcG>J^YzDij2fd4D=jcduONfUkR5zEZIT} z(rswM@a$|ew%<6CTGwO+$`_vy?+wC%Tr9!Dv+CsZVn3L@RSec)pb`dq7rYz2t0?#e zF(4W%kRhFWsV?Yc?2jhLr1mdw_q62~U$yO$D`nV;38usAI7&E5jivW9K99nM%Cf}t ztEZFFI(<=eDg5;)M)CP9nH_gv`dAti9tElrb@6osjIpD5Fv1+{Lj+kK=CaT@-iS7S zomfUXc>xAa1E<-U z*~ll^&P>1JE!t)ozf{PUDgsojEPgB4ajZ01$}GCe%`Aowq`=hPniL1TFs56%3-nA5 z7h9K+pUP2?`=iZYpXiUZ432b;bPW1P?J!K-zEpf&e0qO?JQvY(fxDl<67J3)(cg!Tsm^KQ@+tjA zGnHy2-F5&rr4Ig)&X!2o7JQBX`unAWGxUG@Fs8_rJ` ze>eXBjhd7O|7+AlnM1sQ8KpAssaycth?$(`$s9)S8W8)(zWF!q!plyss-U=sl0v>m zp4XTg2?~4)B&87`gCht%&g4de2Hid+NtmcYL2D z4W}Iip!<+a@pvu*yrzd)!G9e;Rywr9_G8nv+Zy9lo|C} zZsNWn!;epXm z&Q+S3WR2=Ke8_4-*jQ+>8_+#vI@UZhSoVL|arzj2Gs7V>2mRREKfTGOQq@4u4Rhzb zpYibGR}+bfZ?+)-CTayflK*KUWqT8&zss{2S@{o4@WDW2=kN2wghWku5ekr$*b)AE zLM^>Em){tXKnS_ry%X6>DaaVM&H3rRklsKNgv$^?lDP4?u7$;9aX3bU2_R4q#1=&N zPz3K*>?hC<$B4zZ`u?3m&}gpNlrdqH6w=&roq4Y# zf}jdBVjue%q$U0&H2%=$^zQ2CiET*>;Uk_<7E6Je?1g0iUaS1oOec66y3W-|c1d=9 zdm=>Z$XZAYmbg?LDg+`bmD|$~*GJBA=HuGlFOKd_G_|&om*pa#D#iF5kTzOJDj!KZi ze9Hzxa{PD6d0dav?C9{}Kz3SwA4U{u>gcl-w4+&bEk@Q7G;h`J9<5Ogxz&dkj4{s@ z!SLh0+x&)}n*eI(z*0-G^CI!)o3Jj&K*%llujZJ$FHSZG%z^R0yw6W_h#43;**W}W zi>O%H|9T(tUQ(iPb6$Nv2_>!R`G~>TMgo1K_7&@9F}6q75>;h(FJja%P67y0q|^vy)6ia3D9VYH%^K|pThY?PC2Uj$Lk1M6 z^jF%dUI!z&cl1BL(5r=GKKq|(puu#cfw##LEMXDlUTjRii)%O*3(tZ|u3iy;sLH_0 zFfVit?x4C4?Pq9{WOHyj*b}!FIAQUe_=hH)w1?D_&Y+#+<*V(v2K&Kjl%$3ouDJ=R=dqdIEyz zo<;(1*qta(+_>w6KfPI(^+KxN+%1|}=DJyxWIs6}gaRH};QM$%SK7Q#oB3&VWfN(A z;}oAOB0~`(i*UR0tbXnG6|@gH(xc%l#6mk8;ahU}zSR$4L#zBJnyx>0*aTMR(C`zAP_aE_-Z) z?T{kg#3~1SGv~e+nQ3Ib;moerZDqYVSn4bnPF<)<6 z5{`fsv1K~$`q-aO4Jyj(?h?gg;x$^r%!J7Wx0&4893OLZA*Retq@&4& zXk-1X&BGqM2vwwKsCgfK&^oBW`;c8Shz{h!)tqjsjjw@R*sIz6$ylf8u)j(0W^pKFd{>4c@4C5-ahwJen)!s#y!yPbEPH(o@hw4&wA zU=_W#C>=}^n~FRmg{tYkME{|WECYxg12jmNmeIP9Bu5p`z^c+pEf-5c@qXyFztKUv zJWu>_$2;ZwWm)5-mboo(!1#-epb}&m2jroYaxrxXJe@IUQTUd}%&jdV18ISSXq~SX zPXej^k%qeGV|(Ky!Of-zQ%n2Nn=3m566sXQy0L`yw@I)Xc{2@<@6NIcsJ#2ZJ#G{db+ZYXJ+P2q`KKjhEp6!VOc&Va847^U2z_iPB_ zN9P0pomhW23^4=ysdD4h{zH|Azig_4W6Uq_ZN^IwFPE36gE8W5H`t$OES*`+Py#&Y|_DMaRw$ur77NC#0AhOWQ0!0Y^^zep3yOmU4MDb|ipOI!+6g7ub z!w9a!3$`bPo$wG{(ze%P-fUN!Lz2C zL&{RFKrUU=#!Lgc!sxViez~dNk=paw+QpH-Gga?{np#cVZYou$(UVbKjMDLwD4FKl z7sHcPv>R>Zge&VXXQ&PBtR!LU`b5IQ^i*YSH$( zp`YMCzn%;aEBDVDsqH0leu%KbS!mdT+zT&hROx=$D`_rSgt&m2no?8g`|z(JF1ev#Zu zeA+!CQ(y6!m%y|ZU~#HC7e<@gYIFt8dge93j!_uN&7~*1DlM5QO(Tg%$ zG#fP*E`3~yM`*Za1;-5Fw9l2--|aY{jOpd?xuJ<|oo{!r;ocF9q*e%@Qzl4;^oK7{ z=sF{;**i;gaazlz#HsCqzuCt7)e5t5Z#>0;WQY&(e>t4zIQvUE7B#;izpQ``_09D$ z9507$Y4iHgd^DL)Mbs#G0Jjprw>&ITv$ zLLzb6rBa+><@nb$)7PG44oS8NnyDWxgf_8~;@A|)$A@Ug(P6OCl<1OnGh8ZWND9az zl129+QFjp1K1vtuyqP}cm$P&7WaVygk%n3;(nNF~t9KF&PIg4NKueL`F;jrfDT z=y!v7VZFt7$4`xQ8>4PoGz>863Ifo1AKdPgo0o%aUN>uPc<*1Q;C5CfA$_?t&amDV z1=V~TpOg7uUe&A|NG{t4O)Y9;ESw0T16Ni-D+V3& z;oRY8kB%{3i1&sNrkx&kh^BsOj=F5k{7@5kUm+|BzG5I;sW}j=E7(yiV7MVnGrmvn zSAJ8J=tjAMG+JBwS;;ntv>L|_kdM}%= z_VBqNFzA?oe{*K4kQW?iOP#w2Qm)zvLE*t(z^Wdk80>tSZk?Gl&f-Dje_d-g-AKJk zWpg1QMa@+DKD6_73gZl?Io3gCB7VYm%S5I8Gy!P~BZq~%9aW#rC|E*{n>RbBsY2u3 zMwskR(P6Vcc)loI$j%%rtMWIN%32sR?jc}dFU-_x*kmdf=d`1HGIeP7)Ixah+hIvK zK|O@J)%Ofy$`Dp=^MIMH`g?jVT=E&Syj$dAQgR6zmK{tG&OWlVu-_T}P&jn>Rkw(3 zo)ZU44s&|*hX;`m4gpBpnH6@rkh$ z?ev2tTYfI_6oQj)UoITInjbz4dxb|c^6-|7$*&cRf;Ke2IA9R)WIYPL#w6}McD-Nu z{u?clKN7S49DLS+kK|9mN7&BV&f#DAE|6XQ%N6!wPWI=X35gn2GWg*NN0LbMBt{*} z)UTxzpLO$yA`mXlm~O0`cJAFHr=yn*!s7?5kh)E=`SI9N&rC4+=}dy6fofAPk?yaO zCQDRbC!PvBY%2p%Kgis2F%?w%M|8#;9lXoSSRm@p`I}m2T`p=c8ob5x(4I^b9GN%N zWi|QLqG`$e4G1XO5zsfHw^>ySj)jXb4vAa^B`ViQvJ6AM^5)Silqny%S6x zB^B>6!3|M{H>T;sd)xyhSaUx{nX`4dEAnftvIU9xclvb|OsMkBGYU2isL3P?2c2c* znsAV@=^ye{dmvWk5!EL{#g8$DxFp_Ue^MWI;Lzn0k5T-A+KT}Hz2x%lL8M_z(gsJy zA9$s$>;I%#(Yr4P*#V?K1K%G*{ZF)&3~bH*A$DW`>D&W7x>8APh_Y?L?<524aU25y ze{tzB8Bq!YPbY=69{btJYi2p_8wkRa9M4(Sr_CE^K{jdq2?UctZOT{#ZhawrC<-3% z1fG7>;RQcfVF@{2+ODETY#Rg~ZT*VZ_7??KP<-_9Zx|J-_T#cr@OeH`R2FkD2IRpj zxgZ{f)6^#l2V;c$DbYEsH?H0>iym3q0&j3R?kIud@N9i0F7ZTKlSB&MIs3e1&eZ0c zL?eiIzRlYE=BeBGG-&NHLaaFPg;*h-c1M#c7>;MvtRp$lqvKM+hM75LQ(4LEHyL*I zcv)`Qln+w)Wzn2<%YSWJA=(}yO5m%oU*(Q&<<4hQcf7T6j>CQa@Ep<>Kfx#RT? z`mz@vW_rA;8dsyge^vJWEx)Sd5v$Ds08awK%^#biKS2k2qc#Q(7AF7n=;CDUGM>r5 zAK{8}(YuCSmJ3lHr7%qj%)|jef6T;YY*7!xWePNIwfw2G-Zp<1*+|aZ{W|T2K#VN( z7E?3;q5*Xo%pV7eYs`cScHV);S5LtY9a>3{0t0k~t{+x(C3Vmo{EjDOK9f zkp%jNW3QCCaY++2+kDDZoE#DZ{12;|l9^$sj}E*;8W1RG40ow_%TMe}r}3}5!YDOF zL9iuR^&Y2HWpO=?uwNTm-Ur^*4yLB|s#4*0VeM|`ceXuR%&w7HybyJ@Y&bKaQ7v~H zNSt`W;RcO*4LRxfJzHehGNHQf^MWe2afb5`2DuZ%ThRG$^lYP4^NGlwi#x;9JxF^7 z_R_gCd*_t%@z|%JtlG$zwMe+y93(pz5=}A}J!ka!lzU~O$WRrN8)F|N_P)<@#y?g! z$$nzpI3>C)u7oS&RX1xsjz}%2&Gv?@Z#-PA*7HF6{Jx%d>R2cJcH#CnFZOX*bZQAO zF$~0u7cc+h#Z(*&Y#mKa9E8mc8~~EV#KFSR$-?MwTPG#R+hs6ehn#watMfG~i8C1# zS}*%4#OG6z4^+FP77tO#86q4F^#H%Ro*p(RyQZ?mpb33CJ-dgB5vz%9RLEKsdJimM z`8Jx_D}!V?>RE=d8NrmB^ui{0PVB`79*I`o_lX-ZGJPKy_LtL$QFQ@X)`4?5m*2|k zp%~zF~eVYNZM^Vb; zV!Y|=PAw7NsdU)dJFFuobPARftbnh(dU?|2kK11>T=BCNz=RO?qB+Lw=Z*u15m&#p zVTrkPR`T4w0Hf^4A>4F?tY|2#?^rf=wMa6he-Aqn9%)NBdhc-68Yqvf^OTWYCmBmD zU9CIjlw~$hIb_F-!cG3=z#%P|WIB%3JK)l@WMs#e7>}pMsnygS8zNL5|C^}d7mJ{8 zQE(mU2|ej(W^Tenv|`r5Ek~t8^{M1U)DHMv@FDE=?B>uN4+5WNfwC#m8@Cm3>9}RE$T%iMcew$ zhA!O4UGUWb!^b7Z4xGXce+qSm?=25)PgeClMIGMCvS+Yx_KC%HKW5%r8Xc*Re#h8p za`iv9LLqbXnk^Hv#b_(EjFEe%?d%$Xi(JlQohaJDe*SVQpPJm(mkRn#uJB@8^NSoX z$KLr%GqHGLc$z%HvFXU~xA{kqU49o9u^q;aW`3zWk-8rbXo=Yh{bFi3;X?w6+3?`9 z$FoN1z~w*ouzm!B2)1+q23$v4z^+$n2Z=hl;E@+S*2|4y!#WX{Gm>lHwh8fY?!6K| z9*3jdd+snsme(3HM1D`J16Pk$`xd6$yuvVK71?;L><(FVzm^-m6G9=p zfax)TqVLZ!z}&&k#z4l-=r=mt>L(q3L5HYE(=s2^Yj1=#tx7qo#^!1yVI5}KJEjw~JM6g5*@YA*7l%96gJTcjj}?N7SzIK;WdrRNfC*264VP34P1_ub z5pTu2bx-`{u997ZfaeSbrE6I7I{iBT5V9)yJmf-zN(=As)yLj+*e3Znb>Dn=B_jro z#ylBiM4b5{NGbNw@w}bl67;aSR!UVNBdrY5Z;L&%;`|KwmjNJ=X7%kE!{!cf+Ny$u zL$&hm-48wq-iaPhRDiw{j5^uY`EFkI%Izos`6Y9+x43&HvuW{$RoN6*t#ra6f}ZHw zi6)rDaoH3jbxTILjK^bufe|LJGbaZlqE0QgS;G5CKcK92VP?Y4TyD*`?l`MKLF=WSUO zjh$RHTFh4nw5$|SAr{$Wm3R9nY9TpTm>4RqH(ce~8dX8E=}+2EPrL}>iDPNXVOdMr zXL$gnm{IDXm`Q%J76`$luNuH~T+2#`La!kEn+A4klGLuk z!C)b@ic9$@-^1FRJvSeiD{q(E=eKsyan!`f<&-)0gnK?mN3M*g*$u@af(X#@Vk}Pv z;?AW@o1=>(RJhc;({ESaQERG1W|YFMc&@^*{5A^ zrcTtyJ~>X76Ir+7)8b<#(?_p(aONonI;-*T>0T!jb#z>2K8wF;(E3>7-e3bJrU9-P z!JoYA&ot|==0*~r$@xcmwj6+0<)2Jg;jd5;>xLR9%OZ=FkjAtGt@z_~VqS{RZ8$qQ z>!$0*Gy#0ROW*|NFIr=jCMA!NxR{Sx`VDr^ zW;W|on>X}5Z!0eMNs++hB1UsS*9oYMI_oQKdPey#B^PiKx?on~g64)L7c`SQS;D!J8sC2u|^ZzN{mcc}RGXG*YT2_|7YFMMN7vr47L5tq>J-Kngi{tjL^TBAf{1KDE9J+4)@ z(P8`^w5~)?T#vtB(543oE_Ly6dcJ`7HuVnyDvIwgSxAXzp4mt(_?Nc|Pv0wtbFq>O z`M9@0=GF#JHVq?!Ma^-!n)t8HEyyYQ2kA1~kJ=w?&*-~urXXZ^rG+OK<3Dzmw+Ggr z&h0Bl#lNAxG?6b!6Q zoSgnCv*Lc$h&A~qKA%UcyhF+G!lfmS7M^;Ux}O>`Eep6W=q#t+7pC!hOc#hW`Y>@M zwkUOX-XKV;iWUWCpq;rd&_LnX=%HQ6LJ^eU(}o?XADQR6Cv!!Ja?jZ*e`L3VF|vDj z&_6n*N#;UG&*CT9gN?RpHbF>Jyu$3AWJ${AP%w;;BHqK8P@Rr?r^Fkv;a0~Ee$r23 zzCzRN>AfblFArtUN4TMf_&%7krU7A$Ui9E%%(x?DKFef$5_vBfoQAb+{gqW2br0Bh|Hundu_7> znD>}_xJ4VDiv8w`c$IQ%y4xoT{wGhF8L<9IGpAu_7bd?`*lxzNaL--)03iSVV`lZU zYxW;DPsGH@z{2|P%qlBER(?eQS>W^$gG_GAS6H?P^R1K+8c7jN_zarR{2(C}T?bM6 znrI6KP-T%|=!4iC1=vLGb*5!qA%-xeP*{dwxPiTkh-K`m(zo=l4ondP>n8S_f({nI z5kkfjQYr0}PS`?LvlAFkn5|XhE;R{I+(@rk7!cZcujX?xO&(s2;C@m-SwP&KS)z^H z=0A;`S1+cnWS1)xVLe%7+*)R|zEmASM9!%c0htM-LTbMhR?8sXObD4^bnEo)@iRHk zIKMC>`dHBQ5!%7U_Z*)4xuL6wdH;x{i+OjI0~V%IrYvj|cg;kyHOJz12~-AjPTCeX z#*Fq?@rf%tNF0?*kZQ3hwZigwm$g^hTKxK~?1h2dA}@`1;x}NvHHvd{DV!2kMsjh& z5nl6EYem2@^1b>_)A;1!%_iZZOJ&4)ZS z*S}kAA>!}|(mfEf#77BpiS3*?!QXX#_l@ApDZM@E+od6vj|^eLZ*96y%lt7nz%>g2 z4#6Ltzk;2`zorocrTdwF3NlYip|o`&G_PA|p;fV#+l^N&@T|?G;{8>BoXRp>~ z+jZT@W*6AAzs-eIMD`TAcGKRHGqtsL>YGGzheqo+LYJ?}qQVU`8j{H__-_yLTC2+xobYROVwqT9LD1etKXc;f1a{5f^PHkbJZ_pPd2=s$7@yd? zP-#)5o6qtS>EOUVi?37QI11JdE4^={q=a%U(5v~HO99tz{~3c(c0|`llNVyc!-bDB zO;~htxiJzd%LT>k&{2mWr5P(?bN~UClh_qMY47OZF=0vj^rm}u5rK9SUF-IdBFnPT z#boT&DSOaV(7v)Gydy@!^o0vmc7Z$Rq-!L5XG^I1+C3|8GG0?2`<7wFEj0b$kt^qx8xfwuv}x~2(oEU8W*!{AZd?JEUz zbnVw=H09mpa>~Zlqn9od6yp4 zjdT|lUBAg1UcJ+ge*s|D_`mL_*e}4zKPP7cr}s2}AGS)&z+0$<=R~3|^(b%+K?~?D zR;tmm{gp^0lQd(r3b2!sxqv^|Ya4z@sE}?$=DBb2=M@7=Z16s?wB=fK)=(&iJ2P;=g&=GiCd8yk%O9y09#D^=DuFzgk?a zvXB#trJL)U^#~&g*|6Oj&}YI{F&X_^zaQ-}0@@G+0~1M2P%?vmHG^Tqu5RHrb~s#4 z`kPX;{I@l%2-mk@A!yY|S_~1d-xPXGvTDENb4k`7!m?<9lEp~0W@w8pV^I+fB7pUi zBC}t=>RK_1Xk>3BS@Ye|mj(~Za&(Pd=nUEN0tdz=ALe#F9H3flN#=HgN(wF>9qT_0 zT0g0htx16}Os=w>KFmrO5+!+z8y`bqh9I(@!9)3FmPu*^|IoiIZmYq7Cl1=lm(}|U zsjfr9D}WsHU5R*)dfd#SPU~g7Z1R|1d&_|}5TAY9rJ)dsZiNecP_Lb5-#cYLi_N&YI zg4Q2bkBr-|CW(+Xz1Z5g39=Dh8kAXuJ}aF!7oSp(s#p$*rX&^srL&Voc}leUN5_EmFX@F*aDU}QED?IY^;pP)p;0U9_qw)K4ArSw2}$K z!>4oJZJ~rS%?~`(rk&?EG(~vrU|$^am#N zpp6SUM$ct%?JWODJ~^nq%z$fIk-F<9gr?Tdlv#3s2#}Sa!q(m571v%nl`Q^;K4Wu& zFPku4LC6fJN~y|bj>ia^u?Q@&qQt?$*n%mMi@8^fN^jv0!W16BoQ2pBVU>+~?8@#3 zf&`In4%V^CUTC3s9w;)g$F4Hw!#0eQkeNC$EUhl0I#?@0bFhMzklt3iFc2;!4t~YO zcg`dkTEuD8R-{AvumsIWm5_09HgJoJy4EA4{gRh};KaxLS~0`o_+$Mtta70;X4&$l7VHm3#eBn4>2b3uyUvAC;Wx8wbsvb`jEk$RHXA@*px{rgb#D zPKrwrTG!`See?CVp0`|#MI}981$w{=eAa=l-uvhbAM|n}ulj1v}B@xqBGuzSI;r$brySz~uP=-)Z$5|PM z#D$AW5Ij2j{zz}}+Vi(y7%ruO`yG8{a%~sP17P=2F&qN&U_9WB45cfU%_y&EqqqLn z^yfA(jM< zFZ14Vtf*YXeH2bWe*r{ViNxk8vz%rsL)8g%)vx26MpZV zv4b-=Ki(T5QcDf!&qGul!cW3=%~H0{lZnMI{0qY>^#Ey2RHwmFnDUCc%ngErVQ_$& zrY5a}c~u4A4BO@*{qxt>}s>yPW6Xu-%8_``-EasewO;F5{G zjn^s?C2SyXe#(w>=OG1?A#24PIFJpXmxyx8UzVEW*VU+ExZJAU+v%7!WSYHh6L8Aa zw!z<9#MKq%jtU@|2$!O+5u{Y8#;$J8I&sP|G*Ky&P}6VZ9x+r@uGj=xo!5|G(1WE+0mAGXUyVz^nWbZV?Mddus#tf5p(CxW5#VcNhUw z3~UxQd7&x(WyGZzmugZP31OP)M}bSSD-D<3uJdZMv}`H#tN`EP!V#`tuFQtXY7bs5 z0KJDqhplYH@|g`M7K|lUkT^ITThIo(R%pi>TLh(YB6WnQ6eGVW_7Ih?tLO{X9@IEx zMHVAGuesn6x%h-iFH3eX1a*R-)R?&yOBx5>P>mQ#stR1D!~6E7VmIT?DX}E|vMqGM z!RS)kBCS{Z(H{2Cg4OHy-73mR)u$ITakjjI8^(y=Em4+CffV7f$eo#Mt;1K)lYtm|d0zM~|KIY+Og{K%A;3;-fSvxxk^E&R zd7uex3ry4fSCtmYoANoPbwH#f}62eIkOpC-EEQ$jH=8o^F^Gy_9B%$GB!9^!XqQwsN$N7E8bEY#_VilMm4oI5{RT@=bpiTl@ zRl@)9IJbSdL?WuP5S3kHEe+Jq8msO2z^;DXopqTF`FoIq-2 zKEI^0q4PtrZ5~-KZbJkt6#F@s7> zG~2c-h`;#A$3)7X{x-17zOqO7ta+IMzCXqWF>3=y^WSG9p2tZ4p{)N(>(h%hLd#Mw ziAjMq3eVHhN49~_bEIWTG$$6R-uIn1^EV_)IPnAcnULzFZf{fjgqjnj0U!12v^3Wt z%tpv%j`$o1@c29ZkxCH3yZ0+ZI%bzOGCt0L=rRTnUDmR;1sfB(Q%F1ytph&lb2#i! zE#RYyv8!FPPU_@qpGB8+HErxTpevAVOBYQ}z>635%vpLlvJ+J5u|v3|lF{zdJlC%& z?@MQ|<=Nudp<>}>Rjz zX(59;Li&f7YXYM}XEeU@K1Ad3_p(e80Zh1n1+$a4NIm#<-|sjLU(jk$ZF$jm_5a3X z)1C)Wy#Nk=4$yl2BikV^Bk1Jxw}LxJN!MzH3ElhVeamH8(AZL2@BVe+D~Ej5EIXscUNs};>_+Z>ME1Pdz=gm6$z!D7flNY_t6-E~@J?;?t!D4S)U5(J{E z&!-w`wlNeMoxIPhflF<#o1L3j3aX{k*v}G!;Nhe`Nrqa#HwtfIqce&?P^qTb!=2=? zZ|9R+VAp}-{C0A3vXimW+)PBw(9{E`U7)x1`o>4@+S7g!5Pti7EtW>(mdsKJ&wK8oE1CbThbp|MGPdvx<%u*jC? zo>0EdLexW~idTBeMR*peCkG>6To{lUM3R(p@isH+6FQui&usj9^$PPi5V65oc zoxFm41lr=v=g=#*KJxg%D#gUN14^hAdtw$uKQ6tF#ki703_@_ES^J=l=cxO@4arbf zS(z>T1nJQqiqAv6!c6#u%`hWuA<>=;0yAZ%<;dgS4!sghx$JsiC>ELiLH8jFA}vv+ z^db$DA(1?P@3o+un7aU~|KTZH!Y#9e)CEdbJWhlO5={{;R;?ikTn9dA@4w*D{}Jj#x^HrG)3(Ix}F*`Fva7xl&ar3048SJ8r&kp1KnTk_uZeK~?nF zqO1;?F{wt4wPHwtdMgCPLrV!4v4Os1GX!Sw7S4F}U(+W+m6GH$)u2!`-DX+x+aKqN z_V9aG&-f=xX^+%SmHRuPwrOv&gveM#6|1pe)d6z=rD^y2r}>TIfROsF9XV zz>bNJjQOlg|=H~Er!iZA3QRTAZGR8uC_ zxh8}~Y;xj`EhC2j<@Zbq(!6kPLU>?e0;-*r7i z>icBx0jY z<|nsAn6!uJQXxC={3C_>c4w>9#*fw^7 zvd@jnuj1~r@Pqrlmg)>6`hkR1Hpna_c;LHQ~&Oh><;;ND&f8lHM_rTZ#2AZ6`J)F5h zpQIo>On&W^h(vvZ^5WtN$Gu=>@Y9KPuWvA)jj37o%@T}oY6N;wFMK6vyQqG|N9^K} z;YjT~@<|AG>abk4L@BawQDXFpS|9wG0&n{i-umK_!h*F@PwrTKj($aS$s6Hwudylk zUP}9XsF9W=eQXJ{WsF!=tDr1#EO1pI7z0(X*ngAu#(N=ZAOaJQ#2rM8D~nX&NJEuf zwHb4H2k|oa!%D@wW*;z=mj)9>6oh6aPdQ^%BhFkKeddRkvOVYQQG{bKi%8ovVq%^FoBb%Ny_iYG%Kb!Zi3( z24f>ZV}!L(9OLeU(I3CSTS+r*j}qMR0c1A3DmQFtH`ktaeaM)U!sX0RAAzdUFA^Pi ze7n^p80LpBW-9Wc&@iT;9fM)m?pJ|8lG14T0j!2=5#Pd(p1m5Cu%t8bh*@AE?-eTltDm7U#$h1^aK;19KIxzQjIxQX<8RvJf7UfQs?>y4 z`Jt<=T{aLpJtGS-+}xAIAk35IxdMfWD#D6stBB-+Z#PL~&j- z#LvmEc?@M+b1*J7YRHkuA@?;0b=`=?^e7Ttf$^wuWMk`|Il1Yofci~*Kq@<~@5I#> zERuq3>99Qmj3XJstWoz%ZkRpgmVn-G+fO^vm)HY#QLe-Ukr=<0y=j9Z;%U7+L*G{~h%ASq8j}e5|=58}oh{4FqiwMNJ^GQF;-9 zzVP!{Dy2Elz*7u>itt<>^Sl`M%t8bw71T6@74usnS+Mxu*r#`1O{xLKQg}dQr44a^UE|tg z0vk4sJ1R7+GQ?1*L5yNd3SG_7czT^mI&DZt{wY@_Ne+3xvLYNz))i9A7SGnB^So@9+2S)`ad?B;f7)yCQvAk6gQptvN zVHAa}=G_{ijX-FvjE>r-a;A=wxW0nq6%ge(Tm$tGXV)4}JB>DKO7}P;#SfWc>9CFs zndr~pexP*cI`7DpbTX};x!K++9A<_7u@#zibD1@HwarQs441=IKX|odh#KR4EkDNU z#gQ%=389y8A{G(*jcA_g*UP{l?s7*9mb3rJpoNto9`&ZDYzs`5xm9153d|IG##XmSUYq>s$gZLd)~CKPJlfIdWWCiTNdKJ5pcJtKD6n!+%&Qa zG;c2|c~Q24rN{eif?L;?jIyupDRh-4WLwzxwI`|PXaspWL%z(&E82J&M$|ix6iVfm zpe=Lzc&|9twDHdt=GnX-XP)BNCNBJL(SH*)A!fapa{^#b1z>0WlMhm}aBy-qu>Ko; z6+34mb9)105fjJ1mlSvdVfp8hf(H!Dl4Ai*Y)}$8rc^dI$owEUAyxA=b}c-0Ie+TV zr)XA=Gg*06>({47NRUi3T(}VsuRzsF`Y-CyDR*V_GAY5%1K^F3L-R<)6yU_HCtu-- z2Y?iI!_S>6(23aO&9Xy!iNA}26U3Tvn!yqWaS}c1FEF+w=E@qtpjH-;8#C8t3F3gG zt`Q|k)q%?#ndH>c)Tz@mFR-lHNm1sFt&j zk3^=Q8sFU(ezB2|<36kjd*2DqfgMw3VZtC6OH?#NC>p026-o;u@6-uT6(%YVTjhg{ z+Yp|G7#!_=;_u;7vE;6rlhEVbB{RIIS`n_?;C_kf=jH0yx=&WD8{xQh(`4K5mgipk z;a=4}>bfa@$B$+Joona^t0!mM6GyhB=_|WnO^zvfjm+D+M5D?a&X%&W#$F@Sxht_Z zFdHuSU@hrx8;2#lh%stO3;XOIzZDRD!+pUhfDx;KkNN+>i2sQz|1zP?|E1w=iTwtN z$}rRui)`^2qUb*Iq4&FfG!S0#!_Oaj_t?3YNMYUaA+-jCB$hDGt@ZtuU-6>G8M+|R zkN}DwHl!i=3iGzFqLRS~>Q|rOKEm|GeY6IC{lQOc1olh&ceRf*7?c6)01e+D1Ez8) zI~5Rx@XBzIP08BpD7P0S2{}vsRimcsL&kQJ_g(=)thr%GZWA4@S=BYDS%qVZ7Ngxu z%#;Yc(xVr6c%tr2z{Qcd#`$qguGJ6#Sp!?;wfI>TuCbHVG_$GPf2!{Gh@O{gIF5gv zZ`Ak$+PGxLimDW;o{__sQQzzj#>pq1SG-@b4vH4h1o4JoYcQ&OGKhZlP3ICR8Wq3= zk%xWpg6{tT-+v)HpeFq+|LM9{k9^8!KQ~W{Ftan0;D%q0v6$2NI)T9@#6w1S4cWL)2H)Kx!H+4dN64TPP3<%Tk8C zs6t{&9f{Z>2NjGbU?Ex_7H5_E4V}Q79Kl2~i`FA!CfkXoG__&M3{9w+&} zz6*>sVbbqICW1@8f5UyBb$$kCrN#s7u!5}LoIqvzkV{pc*;FK?!WuqnmQAH0CWaFh z!t3oo12aU(H*}o3C?QY}BQ%k?HBqX_!D0(l@J0t`bebrh&F#|3kNf=5O`tmjPih}N zL^PUHWP`h9uP@UHX*uTePI?-qL9mqaiKHFfx7!(R1*$|RCiFSrHN!>KA{ZwzlSIq@ z9kDj4!Nm4p^WHBeo!3y&Rm@6k{dH_M!7`~9kZjXpFmt6iTFUp*SBTen_bre_4C(ni zeN+4KpO_zQsnF6ZJsueP#(nki*xLK=tkJh*4nhq9KvYbad}(hwL#-1+?dSyVoA1us5sBcmqAg%QM=|5yzWj) ze4}vXFG?1ogWws4KN`vT>F+*m@l(01#yudHR(nb)I8~wLx5{ezeGNyvzvJkvO*{zK zn>)O6Mmn%ePF7!#-?KNXe;fX!?k!tr3;6mvv)m* z+Y&-!OX$55hp4F;m~Gxv(`c32O!2+HBE+^2yG$o~T8+D`4}}urw+y99b7%Fkd4AC* zf;Ec5?}Y9T**yjI=fm|kM-RX03*9b+ryK!)!UzbO|H!(F1N|i+5d151N{W$}4-i1_ z2c}H0;(2GC9V^PRB3rnUv6G zF-#TkO81}{;UF^8#mwr|#K8C_{imP@g$(HZGd24`opoE~x{3x|49AgbqluHqmRT=FK`z3#E zc4e(E3TcDSsgvCZ#6#A?O{XWHxxaJ0lQ z>7_r)vc66)k$r46Yq-W4$QKdIUe_w1W1s0)YSYv9u^;&o$K>0l$td+{NOhzVp@)QR z*FldU*N(>ZWx6iQyAPY#ka(|oP`7G(@Sq6Jk72qAP7vNHa>4P;zQS># z<;fbc4e2AL6vF(*)*2S*lRaqkD82{LeZeIyzEyVn#t=U%>xmWBbE<`G>%vN`fpd@G zS3i{yJMbn7u-Pp@LjI9R`pafQ&Q4DMti*|m8#d189FNu8(F)^ zvYan4kD>B=zw!7m-Q}N@0ecPsvFDE+m0#>BV_;}v{TEdd6!TZ1_)JA%vQ5!STqPDZ zqR%u?($JEctUOnW9M&$+i+vNy_XWqYlOMVtz7Ty1kf@Hc90QiN@PKm?n%Gy-f9{hI z?ZKMOg%-4+P7*`bj?y4aTXyC}s(a0kku#khRTmsZUo&-@^f1jHP@Hg-;g}`HroL<+ z6QxE`_+eR6xYeqvR95lA;j#P>p=c>-#4*PlnyE>g=c#SjhCUCTFXaU(XlmKDtM`uV9T` zV+@Wt@g!TeQn*O6WUVJCFJV}{7$)SU`7n?U6x)oE!xSjOC9X66C`1^E4G$ERssk8cahFNBnbk#wGzKjg`aYL1DLh7Yx)`o zO4QSu#oQ){y?jQR+0SijDm0c6I4anQld zQ9{u0EU?a&s0g1E-GYupd`+mHl5{v|5Ofnw^97Y2@@=u@1HUD^h>_{UmU0cuDS=N> zx!w@FK~v)eHj!sicLXBJnguFgjaV-^HQR@`D)SbaBPZF!lYU(!Nrb67rES4C5Ori~ zIlFQE;ek2?AyP_vBfaMd8gf-}yveiHb^@fQq;{&uN|CGmQ1dD{<-iX=AZ5tm(wXme zP}2%Pezh%M{cPx&->VCyj6Q16&V<`V=IWC4rbO4mjAew{Qe4sJ5Zzia{(a6>?yTW z63jtw1|<%NiCBZgM8+h5(vbI^48PTF!}06Ov8OwMQ8$pZ#rWGL5>I8SjebCqq8JI7 zy$6s$n&vWL3!7ut3OOeNVj|lwM879DnB-R(mAlwo`KZ1*N)wMrz2D%Q3e)K48LtKI zBu}1O_Z+I=UabgqYpU4<;c$vNe{?{N*1n~lqi_09E`B(drBNQ$^Q1Sy=k*HrzJj+C z559f|B214zS0>l9k_xTIqDH!w8#;6C8WbraoA95*+phO-j{3y%o(1%?%zM z2@<`YoF_q+&SYmiBJhAvZQt!XhFHJz|B|KUW)e{cZI=na{EwmHUx(2j2>f{vHO9+3 zE`qjw-&G)>&~#6l=HRZ=4@Y)beQnFw4|cMV^t$k@+fhjE3pwhFewU4 zOvQJM^3bm?5aKnRSN8|5zj8AowofXWzT>8xD?s%-31yAt38@7{fh}Asu7LbE7VAo@ zwk7pjdkj=xl)7r6ImGz3d*r7k{&@Ot2a!1oyaDkJ&6l};%L2htMU%;CT8bg%kD6v5 zG1$v;cgA@o5hPPWnz?a`a1CrlZ0lf8$Xxy9a<va-2XrrmeMg1`9$tSUdn5LO(8;@=q&Jwu z`+eH-3aKI^wtkB2G#+C31 z>WcLt-o7aQ_gwlQBkLlcPi~_0ofz?M-4T<} zWU9vQ@WQoxnKy55w*=3vInJ6~87TN1di@dsj8&Tbjlk@&A?_8=C5sRHaa5}VTO%2b zO5v^f;P>w=8`g|lI=Xjg^LMMrbsat>ck@)MtxW{ky#%*Sj}O>KK7;h9_e7!?pWYl<}NvW95be)m|)$%^Pf!211$^_;Rj!nyf-9o`(u>gA1_$Gnflg6G}U zSmbNJ^VgAUUZml>PYInF-eW(eM&^1VQXTysv7eU4AMa|uyEZf$KUi_paKv+@hdwEl z>{%?l$;^DvNU?fzw&bYjXUrw|_?3sxu@ljvYV7MpPurVp{*KoyGoBA$htXCzJdQRT zeAavfy{bc;Z$7e4+?$eXi0d(2+iU7!@3?I|9DjfM_C_uBoEq0KrB(8Ucf-jX`P3cYWJ%o*f`P}XXd8wKUSJ5X@y5 z4pE3SlvOixIU<{o&$1;N7B#slwWG0GaO$#e)nrQaAjlO(uF;9L(P>h^tmBmWAf;l1 zWGID9$kkYd!N>~B;A&tCM8MQh$wl9ql^ix$rMJwb#hD=2Q&x@85nN}J>C?=zCt$je z%j>XxC@RPz^U^RM{}_aq&)_QgvWM_p!{=0o@6A$F`hZ@uhg@5OI-TgS!@{I&w;Z<9{$qP4Ys9j zvB4eUHf6JF6838NBU3jnh0(TYBn>kCU&<0u?&F`aBJjl=%H$ zHw^vEP@6CM55Z1cL6Sb3Q9C3xPgm`z~VW>z@MjYSbxdJV7%X_ zXr(u%`rU(#!ES$?Rb8*9Y%&XD*hJ)w0+nspL#wbhkJT8Qd0!6o%g^vw+)8sWi?2kq zvG@Dn%-M5LG*i*!Ymd+;BRF5A>%1}Ygr|2yv-PPDMZwP}Km&X~X0&u%Pun}s2U0dx z)k}36w-BY8rkn8g$47>rznaXsY(jZJ;<;{duv?z2JWA(3{EFQ4xaW`1$P`zopQxW7 zZtj9E=$a!-RNQ*N`LY-GX6wV8_kV_2n?qY>P?GTk+uBYT+-+HMDT{U~mtxKvTMbi&XbnY5ZntKv&(lmZTaSMmJ#0*0_Mh<`eD@I=rg-; zw&szDM4s;$?4!CoU5kdMG%DEGPfSme?B&rhx~LmE*Gvwwn@>l_l%uC{ksfDTP`EnZ znWFP>>(kwGvAIw}=o=nTJT1VvzpvY3XMU!Z&|#o>hY7EKi0f|;Lt}V(HVhJ~-g3A-u5tOy9js)wj=(aCaZ~g}xgblk zCz$tskn63H71hi@S=m?3+1=)wDskkF;_E@A2jG{v^(NU%@@Fzk{hA zPd;NIagWQPruf?;LPzJ5AWsVN-Kp7tr{me$h2t&f(J$>ID<#Wj766(X;Q1|WP}JDT z+SS<3+WVj6P5Zydn?H9cep1S_C2)+D+G?R8#U#H|$S)C5p)|>`{A;&Y5)RUb8O?Sd>}bnJt!gGHBGlrbv<*!m<_I#QAsA4$5du zA{g|>fu`MWXVibN$wl3q0WQE_?VUJ7#~CKfzO_s0s+$Js*lr;aQ$_Vd;R3cSljI9Y zs*ALxInr9PC1IMdvvGN2d=#zm_(Yfcw!LMu+P5-ilb*-KTCkEq?H1^#$7VcO4eUZN zu0}`!ZcJLCImpPbgfM)w=&^~PTuPswU5kBwe)C}f?@ir|;WD3<{;;HB)>w|u5yZ|H zUf#D_>fg~44vZ`_MFn+ctX&#x{FS=_>H0EuHv>PVLk2?snmCfsDLAOGG14Kp6WZ2igy<$`-9}iy0w49 z*q`jaO$)%-2Ry%>5y?BcxtIf<7Up(h*3N$nu>a;Y{bo5pm9D^=`Tbw!7IuG{Tag@n-l$wisvS7Hx(#c`J9F~hkroEnN2)5CS&A6i*@jkG5TYAmR)j8oEH(o;o=*`H zbsK<7QE3?v~jt+>OcI~S-yq>@ny70?ik@1OGg0Ib@ z4fJ|a_gL4a7l8VDAbzyRwkRN>+%7w(SRU%>duolw$eC^>fc;+@o8it(J~F`j)&cI4 z-)?;=nLGTW0p}NEEE}kV8S?Rt7WuA0*t(KfBfD1{wn+3WCk)radzay$)p^!R{HbG$ z2HWiWf%EG89^b$#Vl_OKK<)=Ho_0DtB8I{-J7b;A5_hf@XLZX`*S`n|WT6FM-udCw^jeVKuvw2FS{uFzV39 zF5_^t1w|9gr9<7HJQLJu^$`A`L;gCA0pn@k!}Vo=65{CDQ_4i3TFZORAQ_X5aN=m_ zJT}DL*DR<^NBuEk>mg6l-sdbPsUAnajGxmEGVVYdjv&6|%iq=SKS={(=I+*}=Kr|V z0iw-ceDmFsNy;X8m0nSKQfL#}v8MSNzjJht!&y-8GmW7b!{SWCHCv_%%>=9(ESV2{*o ztwms;J4uj7@hS(WF52gqZZv`C}QLx(j&Uq?%^+ zL+SH@Rk$fvT@COw2dWI|!wZ&PPWNHaz)exGkH+?}Q zDE*2MAZMsQ7?YY)y{OT|aBz8WKCJx-E814a?rGMxdO*jS+GJfwacm_0tRuB9D6w=3 z%8nSlmtUmzb%~Mi5IYaPGw};E;!q((BIbZqW|L5c5RpU*HJp&+7i_RokXBKBk!RFI zuekSLX+PY-CkjvWDtkA`5!vmQo1iSRD`BugD^@W(z#w^J29!sADjn-w5{-Dt!MoKE zEcDJ6Sk!%gCcYvG@+e|WT{euW9`LA{BC2SJ=$`4bep0Pxv~9AS%{VQ1i@o3f<+k01 zq*k@icQG8Heb>s_d0TBj@4%kK&g{BUXmvy<`odrR>=k{<#`?C_I86S0;K86wl9}ub z?1P*={Q+!ta_?i@{*DO=v%+l5k6&J`?0^Nh5pW5cqWur0P;qx)Z{;69;Hcy^$0ZKb zfwc!sR6iU4@mF!~_8iClNml7d;$`GJ)XN)S!*-g{s$t{NXj&;(v9S4QnJ)k) z4o9!gwjr$tWG@%@@#%JLU9%@xO&?2_Id(@y&}Mn7)>uO}og2XgPc?TSN@K5IOjWdq zHt*OZRwkRjO2$FiXVA4U%553z^7L|Sxg18Q9e#0P!XbI&-1cD%m5v}`ChaHKEk*V$WdZjRTy9#1|snlypISQx48T)vSj@zc7wH8^8L zo_alTHN&#?sok%he(t*{c+-W+i9{mrI47GPEIgdphzfC+;ND zjSXhZ>6&|Z4+gfVqfF+v8&=>{|&-;LcPCa&}Sqm|3bupDxLDWuLJcs$+z~am0X}MlY z9$(O=D#j~yM+icG6xQ4txMi}qBQ2_GuRUzGH1hDr19ekxc`ci;XjsxbX4&EdSM4BH zseBG1!{$RH{hp1lp=neqFY+`3(D*2xn~(>H6`IPmdZgkTi&&$ezLog2P!0F(h@CaJ zh|w!*k~pjo*R9~Sp;L99fqJy3mADzd4f)luJgqFQsz3SaVr5evK_IYP+H$_f zl295@zlfFLw}^t0J0W@ey4Yn(7DC>^qh;cx)a;5Jh?GVJX(|1lvT3RqjFTFyjh4Rn z+)pg7oR=Mk2fLxq3&D4p%7|^;B4YRP09eD zi+lNj5n`7Ti9yv$;BfN6(Ej%J7_~>LTAPuz>jQ$dbT6~%-sZw9%~795+GCPACpCGB zH2rIrM&x|@aJ(svC&I0;Uap4vZ?D!xb@K#8j@NHTT20p8Wlf@(5e~f8k04J;VYGjK zN^+~An<9uQ-hy5?RFC4l!|-Xj3r&p}C3nNe-5qiO&-C3LsesQ6fTTy|A_Hot;IEc#!WL7Yp>319B^ATAK5&c2MP83X<Y7CGNL6)QQCtEhh82d}le>f2uwXevbY;7OOheT0g41y+zwaMerdxKo9tbqh)}O9YS-)+;=EXM_N=SMj%&WaWYAVGdAX7YzAkR& z^L?RQDG;z9IsH^R9mjN9^F!8)`@Xb7TNbMrA^h6dZguPzz14~GXYe3*p$gz-|F$Um zbC>a-Z#y$q*!JgT3tBqmcWthkCVf5|U}WEQQY!T>U0KwFm1GEhY5HmPoq9qZzblGy zYU*tVXFRY@4TT>A4AZ}8AXkNB9QXgeIW86acp2XVZbs_3Cn+dC#5>b7zQkz zTISu<%uz`Aie7``L_IJ5{)zz&?MjZpDY`Kq9(zl>4$2x6bDPjxR>Ha-JQzFG2!6~- zXP|Xepf7%gz}^fl%SMy9<|NFnXV(7hP06#BuJuRCwy_^Iu~?%8aHH`4z9TlFa9Khy9flkKvxi5*4!vVug0 zESdwm>fMFQK81*NcZ}*BnE#dLTi|swg7%|I|JN^H6Bs!H7ImN-Ql2RF$2b=*4trSGWEk@BxUP(Lc?v7Ny1Lvj#R2? zK2Hn8Zt&??D&OWg=$6A_nwmpUlpJ`784_?#%NDEu5DTW0!#cdyQ}+JLO(M-vtDJCY zX7T#5e&%=7gOk*XjWH{FNtJB)ZSK*K-Kq=++17XMK^Q+6Ra=+wMZIWVkM(0{uSw%q z&Z~OSi^sa;=;nWy^_qF89MvA*lh!!@K*eYsvoX-)vYIY>miMT4NSyFOwE3w}=EtF| z-!Iwz9RfkLD1e3-fW~hNU0HK46GvlbfFcY^`2UHD-#=X@){V-A*n-H6M8w!~v%;8V zc_*Vz#w|Wnmi9lL(wPuLpX6E>U3T8?_A%4Rg*SC0^7&7oz3IUb&w!j_#>L3 zh2@eFv1q7BO(`0eeb1^<_NM>XxR$<l;cgpDNWCq#et~Z6sq0 zm;_y;_|&p~RIz(GaI$x=rg;t|47w4X=4GvGx|j^Y9h)!BDqdUxE7|}qqOm%$1f!3t z1}JZ65#sPW-p98ytQaoNknPU6oI18jU)KIm`-Q#jPMq!&24KF;pv0b3;bVLy=8;IlNurpOB9wg ztfuCwuy2ijyyrWC))8BKY-&vv+~>JFK->@%7TLu|MxSWl-;009eGU5+HoU#{Or*A~-y~SS5_*(jOT+_^} z%$ue|{qD1Q!5-9ds;YI#TsqQRvN%|;>z2HAiNpPQEd${qaz%fy(SdEewgA_LQAz)Bmf46c-Y`ihk}`U`nvNsR zGz*6xO3ehm2fJZM*h4={sa`Sk);9-=1=cK=JR*lBLMzW02U;2O9IoUWnp<885uKaA z!E4cLg>ixv`OUQsrmrF>X4=kl^odL_{+C0MUVYOb-$5r$q5k(uoy2bQgn&VVp3C93K3W9D`b_Agx5bi5n1vIW5Dy zsibaI&-+eOe?qHmYf|a@qX+ghv^X5hVPIog=IvOzB`2mfh$K zvPq1>Zgt;4GMoDP3!f|TY4+3gFVjEB({ym-Vr$|GW=B^##X3p8Q&bq;zYC>^8 zI#N!iwzLFxTxTP02|0S8nF<+7Pvc*q$;Ifr_I05zc|SQz?rpDr11yhw?}<)%F<80`BYizc2Att>| z)O#cW($1dr%3!>MNG`1!%7?$^$%JR$+z?^`(rv8g%^(JJ!;dF>yiin^-I`~Er@6cP z*(tq2&7EC)e$#U;_deO3np~dMPM+HL43EF8lbLfli|PT02Lmzs+X2bnv#Woi{P(Q~ zYQhMa{CVpIScyczn2t^>9Q3;vFJuPH0w$~Ch`n$5?a~19Q@fWkq)TSbs}u+fr)X4$ zBIackdzHR4#6c7t;y@v6nL1b-do)?L<8I<`VgVAG*EtGdi^4?+SKmSo`NtVQr1yPv zFLxpwbqtq@5(5ePs;WfklMUO zW$$gqC!c$)+iPs3DT`k<@iW#dlIP>lND#mV{!ZQdv$Db;ku-Jt;AXG%G=uld6}h!?a!wtogNC= zv9A!NtLR*x_E*Y`k0E4v^4Dp9b-t>&$=MbL@Dcc5XXwu!{O|G-MbLN=qz6cu@poPV zVI{(kXPV?L!`Z}}{-7Gze|AcjhZ=Y@$u{Hl@piY6noccx(HK1IlP2ttO;Q&N)kcbj9n{yqE9-FS;w091K}{GgfOA3KWt5zYdvquIm_>if;8ZC$a`E_ z$Hs_XpBzg{Ur1ptkF@}yuvsZbm~vl_Ib*nm^Gk6{y-j&TMVE37NStTz*i**~#1CZ0 zU(vf_yc5+LfyP$x*&W&j@iKKQ0l9|;J1)THO=p(z{Bw}~fJjQs20hcXH&$i`Qftin ztYl0=gSsPAk5v~6AoRQ!%`DQQR`&GuZZQ+Ftoj~s|t9;Tv_wk^sj0ng|etVVu zghAdBw8Qt$KnYg*=``7Kt0~9V)s-j2)|>82PX3nCh!6KC3=SS?CzxWu5^<9Vagh;< z{N<0%-9{azDYQihQzHlkwC)8ba55VE3axmk??NzUXoJEM$ikI`CLu`?OjeCX%494b zi-NfhA<*q7mmEu%7ry5lc-HO(`*V7e4@{H2O6c-sf>TxE2noyRA$>_;+ZKT9f(b)l z&0O4j$)g?tQ>?j2^9(AHK_vEzz>co4YKX)~xcQFN6Z5;WmEhK4qddBZYXc9kDdUY^x5XjoJ~)tGt(e%`!?ia<$HQTMh0WB7Pzpni%z7g#U7BDQ$B

hC(WKo@;2o zmN~lPw^D zq9nbIwJwx@Cm&Nk(02R)!~*_L#QsiTAUG zk72L#V~y8V6;rtjNIo*pI+|nH(wXK+(g?|nAfnOk51f!=)Ka8sf$cwkY@p^1PM{0W z(dorR+UuOR>%NCgxPP~sSK^|z51HvJEl#l)NtyrsDeH_o*Rqa|8#_rQ1*!iv;;(|d5KCHBr&$*R9 zV@>SV!o%j@IXnF*dy}|t#F(aB3aLcOGcz=-KZ~=J1tgQiy0O$Fi`@0}BJS@6DAl&V zDKW+4RTWa7Ej{z1`DAZ5aLE#HvQ1%fdT&p2T{#t1Y@$=$Vbyb@QF-1OgTn%O0C|F+ z@3L*b7b_>lV@7{#oM=(3m3*e29>$U1#e633<{rJq;RF%mhMPU&_eKbcf(&wrL(v#q z**P*UW7niysZ-;7pH>m+ZH$JVTb+~?v+r|)B>uC3yI;E3WoIfM8~_Lr0SJFPg!#|> z@t+9#smO!U#}1$v$hw;RQq~|9Vf0K(jayS@`}KrN6##*xtN%y)@_$`cR^ss)IoJN$ut6DT4X?BXwD*X5WK z5)K8}@Xj=HVV|1FhGir$5Kfd~PD6S^(^u^s!DQce%UO+hcMF2{{|dK%kf&i&!=TcA zNI0CSJgh&--!tz^D<;P1m)WzEN7KQvW-lfkXogglZ_-P+Jpq4n-A+)lo-^8lBcL_X z@sY8mgPzB;E9+#g{BzTqt($y9vMZ1fw2Z(=1 zormi^ofiPvdjPWEHkp8>ThRFOpLk`)DT55Gg8?RtgJ%E?Cmtk)0Ny9aK&x(Fmi~m3 zZu};9>$U^Hr_s?EIzWij$0}**F4M(FXD#$ym=bg*!C(Yu zFbzwXvvQ^|B}qm#jV>T26W+Ah_`!2T{k%~Nen^$6Y!VG(0a?vJnZ0(BupwvV%upXP zSs2HHFAy#{>8hof|H-{>LT%JTBAzcFoa^1V*av6H>%p6l+V&JxoNYbbjf_eL(jy7) zHqF_SP^SDi6%#|m{qppc(+`9i+`%FUaIFu?)Z&_Xw2DJD3!d21?g0`o~CR~15@xIez z;=(y5j0*ka?ij-c*P%z{rIXPL~wIK z0jhMx`H-h-6fV0haYBH^mNcY!jvBN-J)+6G=>?`RQYmDiP0i17q|How5FNgiWlbs%&EbzNDY2`ld9rI zd$mQ4$3ZZm_d#LVs^fGM3(5b7P<{73=EBiwyomCf=oxK7+G}R__*I@P`hgzN(=(`v zaMihaA2l7`poGJ3oCVsaA3?wg0KirL1g-(D_F?Su+D8O=}R|q!F2qoRZeHECX z+TnJq^_3vVy+u?CM;+})TTWAX8J95iNpSy@733B%C$exAp-FUFI3R5zCMmXn(qNQF zV^qp=^=&ah7eFjU?4zIm*PNGIVJ>u;L&gGW(9}|yLUtKF-T0YQ9RZN^EW!if8x{w5 zAJQ>n6e<&v@Gy&9nIV>tqbgg|(Ah%it#0q;aWY2~P`bEJJDVsH~>y;l%@hIUe##Z-pn511yZ@lk4PkXEohbxEG`6 zw~VZ-dcmE1rXMY~w5<=_fj*+2*O2(STTVF>cVYV>5e;k45m{e;?C6Q%qW!l3wf3yY z=+=+LGzyB^YlJ1(>?8$o<8x{(wC8q-iSOP}pFF|yK0E&}pJ0LN4=f;|M?wIh-&jtucufqulE4A*QVFi&D$-D#tDbs>CSPjS;v6)dJ$QMOtM#t|~my)5u zBi$m4dLdKZszSbD$>`!&r&RvC148mLA_p6rS+b|_3<`WSI;`%66}6atx1QzxS9W#X z3|4Q#vDdf06aHC4b=xVr!^S+gchpqzLUMB^+Og6N+Cl+P@Ljz+>uerAC-OiFg0onH zC{tz^38Wx2HmOC3QLiy{R!+yvJ+a)4%A9d&d%9I0PaoUNUZh6fBJCjwhX# zb$+?wt1cm32oTYp8&9>zs*kvO6uQ>$le1`v%W79d*yBzb>z)^{4huj%Ae5tYu zzv4-n6cvGE-$G=-wsy0Vh$xIN+}6FFaq+>WWK;^@jK0}85vRCe>7L@qlN+DV#ju!1 zVM2TDc}ZRxTAn;fu^F1OyIkVr;{8II(z`odohPgi{aqFs}csF z`dyv%4{Oc8>Z|}^p#K{Q>i@z4{ol5~`@bta7OcFN9h{8O#=_KT@T^}E1ti0g>LDFk zIZ|(Wp||~!zYy01#t{Xq^7NudRg+>3#Ae{pbmk_amIfeU;eMr`htWg*ko{87?>&5u zq`QHy9bs}!8bcmo!w|9gUQL}H3ybdHWFD%V48)%NKEbg*AJ<~s6qK4?8>Xcwwn-PG91T`}h8EsR89HBHM25GMv0~;nG5Q0cT&~2YHKtWuGg+F#i7o?2j|!M*O{ViX*&i< zbRHkQNKQ^BV{kSX9Qdt!9t_Gaon@-cU{&Bg5EVT!SHpZv<(3YvFelOoeu!A2Q>s&F zsvqLM^(%_6$jzo}Ea3kThL!J1vZomIQYWFAnGaqd;1_`>JU(GPP+0{s=KO6T{O8Kt zeV8FR5QbL0h=uIWFa2Oqgbs8*$L29H;ZXB@m%$?7=G-^N z{42>D8qh08EDEem21{lZld)xMjjN4C2xFF1iG5G}irvGnGBHAu9$VxBGm^$NNXYb# zrn)3etK^no^4PtaAz&m2Nj0l0MOM~(dFk|{+f8ctLNxmjE6XQoSDNWU-P!zF{{9OS z3H?|X``~mtH#BX_gOljki~-IU-H5U>;eO0Hmd{$E)wwI2;X@3_cOO5>QFWs0dx^kb zFV@F4VSUE0Zu1lt&yiC~#?2<>J@I2vPsqh;h}qG89qIOXs%~BpmXzO>dvNwHEKW7Q z`nE*d{9sdw@F|2!!sBAhrE6WU#*OVcM0zIwG`Xu!?zZ)-3#KQhKK$iTyW20EcfVu} zc_*O3jt-~ff zhGFNGAfy~&X8MZnXpH0WM+dI)uepd!0Im5^dUGZMg?q?^cO;~?wSz;wi*&^OgyLOd zI=$AXH$3T>iW-a!%G8)@i?G6WFbSG0^0o|33uw<~o_RHeEiFU_(j?n#Q#haA zyU{>ZO-2>xDT9jRO!vz3rkG?FNNcDQ_$`-h_1joEX&p0qPLsqPP;u;E7U0%Eh!WFU zjX^}QSK)|UQezV2q&i3q%u!;LnJdS#D+^xV4m3O>G~KNx-y;3HtYSW_A(jLn69vx1 z{|mDJfA>>P7jc@BVt+~@(SDG-W&O(BAE^ZTAAP_zpUX{L?1a2hCcui=CCG|fc0J8D z-dfR4NMI720McElPIOW?R4eaX9k8~D!^qo20L_fQDEWi0Is1Kr%5U?!=m2~Hyp8rK z2KryYl^>7}3#Wsuh-pVC$?Ag<>EXKy$emV$I=Te zy85hK-R1<(P>c&@wXC*+i}SPZ-o$laH3)=TxKe{R2x+PvcmJGE)?Mo~eX`l3=JL@j z77+7pMSC|3j3;wP@egD=Xk+(?;dp`Zq)w@XK>)&2c9M!wpm95Yp)``2Ih+9S}oQs7U9qR!m`(pW~S=Rum3GK!Avs1HM2J?5L`8$GP?f zdp?&pjccL7aV4~JU1%+YBnIQ?Eu__|8^F#yPJKV5E(ChBl?_xmq>dC2)tRxS+G9knFZsC$Vi*;miv!Ur#NZHeiSFKczIpVkyA|mm z6r0K01`CkaEc+6a-`{@25+3}VV4mW>5JaH-^*V!6JE|&^`(3% z;}VJV-Jzr^BQE`WgZ-UtmDy`dM+73Od9@2irmeN$rY?MbS}871TZ|))DJRp!X1#06 zt6%a8ilwCR8UVE9|HrZShmzDkAp_EJ$C*E7TKQSi&lIF-lx8ss=;7hPH=N37Y;9w< z)H`^~7gpX110zYdaD0(&@E3Hp?wy>DtKNJe!Bvyq6(p!Z*d&Gq)$1X7mFkmb!UD1W zbP&wACXkI5Vu2jr_y}T*-M|i;@(eH=LnS;?wtd1UoUJE|zaM%SW>Mra_6qy5$w7yg zi?0UMv8(k)uD-8q)EA9H7Vpx~=`EG^o9XJaoU^r8hsh$-W)={s&v@zMoM1ngwe9Fsjs9q1c=G~(XGFKc(1uq?}Jl7hYD3+lcA$WLpbX#k^EueZL$gze` z^#pI^z-xa_RDUQrBiPk(#J_D}wPx@YnXBTNr#m+xpGC~VFV+S=$;T090Pa-(D`OFM zGqZO5?~^n0-+>A$!iK;o$-^kufsEw@+10eIe!;=E3>2xju;9qYxeIc80N2b8vrDe9 zL^c7SbBCagzm)aNk&y*ODuNE6Zh;M72Ww)FhVZ!xF_0=?2Tl1AhCa1KMyr&Nzcbe+ z;!+}JX6KC|uID7H_5im=61-NVr7^UKtkjSW9g=nF6+St>S%3mokM+)-H|VabOvL6+ zP+P$Cx0f`-ud+a1%tv;G30x}w#&g;ug2{xj$gCLD_T6Ks(>d{2d?s%lEFc#l@y$17 z(Iz5j|5Ef*2(k**)rAEbH-YIpKMJgnSu+j0zF|^ zIOW&GGWekxY1uP^+pS+b1`;Hss*en4A{nu6Lb?>c{-OF4fSbo)3zNrJ7*ke$w^Rorh*H~iZn`IAgbgo8kPA?JcgrBFP3UswLzyFv3P`EwBYm0QpzYsHsNL0@)<=Er)1e>ETduh{hzU<)4~Suq z4bw`@gTh4*37QjUWyIk{5=&q!TlBS=Q_EBAG1+XjSRMz3c`L0YLzV!6oZ)wT%Yt9-}2W2r2d%XBfFZk&Db>?f$FkaXp^_kImV9L&pP~!VOhhc5>nopI#G)- zWs5mYBuY1saS#hy`6EH-4g%&}QR1UhEi6jLuv2i#Hwg5>QWO=`qA}I2HcqSi#`q5> zP{V=PcA48+y5q*&Sy0qg@j|0Oqp3!E(2lqZBG||TovZr6z%hGsYC0rxJZF2jA0V)8 z<|SDl=I|eW8Z&b8nC&>dF)npUvEB+Q4(z!@84_UCArfchNd`!Tvcszns?TbPXw=nc zfkub~nHmIuS+I!cn;<5AvVeUwA?yyKAwr;)21fVb!04X%WgxLiU`l=y zsP`9SDRrpXU?#3DLW;%nJ*`Y)9B-_6!+7F0V=^vshwxo4p+FUc)PdF^ zrU_jvmMgh-272@SO0g#kOQH@HRVfP^(4H+V!5gD%2(fQDyM5uv>yi1qLJXNTm;MOu z2{gMej!TcX(%B{ys@az*^YAE}XnHn5TZZH)OcI$mzK}*!$1v^v&Re1C-FcGFMJL~S zv9`x0Kj9qId^cl~^W{8Lal@xv7NnJMlweb%=Ay*tKORy^}3W;f-9cj(q$3jR+|X_rf)wqtb4D zi>Pw*ygZJ&z99%vRt-v~GW?SCII~)H*}JX5j8IMQ4pZ3PM~@?X7ecbbl&h_?ljk7A zox#Wg9+v=pmi7Dwn0;_sf;PCR+1@HorMgXQeAcpWQ&yXESqYf-tnJeF&6EkdViT8X zQMl}qu?=4(o3yMa>bK>xma!K%EW_MI!8maU2G1(lQa&1w%ka<{h!H$!49E%2F*J4$ z^YS`RKhQ$JEFTD?9`;*~JzG`jXUu|=r7KGj(tWf~HZ=cc`QEliOHigAFh8nb&M}x)+*nwre1s!W@>y@6m(b3x!$2R@_ z|Dfl@8^T*f&1#Y=^kUy1&YvIi7;W@38Mc&4pK>$87Iy3%MP$zbF<6XU{^AUwQks?K7bR1|CcZdj;P-8n0$bt^bR(y=%xGBDgW zo3!MZJsI$a@b5VClvuB58P9HO2G4Gk;A*zwqs6YV zFhWIhBvzcmW?-j;ZCH#>*MaoD$_DNKOL%rDqg7BJ-d5$j~=67DP;%EM=Z;Xo8UI``)6u) zjFtqN3w;QjRX7oktT?X>N*TxHgTuCpE-U%~iU8k`1%|C}0~C{06jbUB$SMg-l^ts} z`R{hGIc*ltP3$oBuGc`G%@+!okJqd~4L9)dDed+{+jLS(xDn~;gu1nBzH@7KEL%Vf z-J>looq?+jm7Ey!+Qct`lK<0t24}#2gn<2iJ2w7v>-C>^53t_zB4Fzu)kY*xZ776D z2nR@l^ae8L9U@p8HB31-wOaz4AP&&x7>C&wttltWQ>LiBEW#NEaPQm6p}rb3g%WS` zV93Wo`2K`A5tBy}&0;W%9aS@#a~S9eDZk3WrX7S+SI+*xNX59_Jh5r+y9W!($VPs^ z)i431L$iTJ~8@)0Dk)|`nOcNoy@zNa;(~r2OcBq3q zH&>46^yu2;9N+l?YXJBJ{_*80b()V0;uvg~%-6_Z?+2I8(xt3WN^8we{4z(2Pi$-2LRg)5+)U;LYuN#qty!73puc&|7`D;d{V#B+1=+RlxBD zm!@j81nuS;Gkp!eUVTJ+0t^tuEz0_PEA+)hHcS0bSR4G3V;{Y zpSZz%<*#Ja>x68AF#d1}#z@_ZL`g;I@W6}e2CVo7xvq?g-nd$jQD0@I-y^r__5Bhi zgx;S2yG^{5Y?P#UkK{l_YBFOuEjgM*OL%HaWAH>tjKbmTOE>D{C>nnxWLGL)GU=vOLzNaHZ5gBg957{cJMoNX}Q5{Xm<3d?unP z*<36nE7)NY(!M}CUEzv{Ij<0RRrM76g&%y!2UmL?D?K8?jG@oTEhB5;%`N7+r~NQpnA;xN*rsUln1fF%AWpS7N>SL{AXomCGrx@J>-qzl z=0_)K$=8rl3~4zn*^EMUdPu{*UhG_p~r@`Be$mbzs+y5#GRlPx7W5D3m)eF8^qE2~VS{M50{6ZssV5H~Nkt-zM{0&2`S*GOG`ANJFO$s5fm2oQ@5%QPBgCXNQp5m+DW67c5Ki2BhX4>%Y2)=_8*us082Ha38?g zg(6af+|7ZX*av1ezuEOY5wm=Sa|K}+`aLPKJyNKtG9z%}_SL#VN|_3HDH$Yr5yj}~y3dfiz)!eBLf^b6{+1?x{3pa7AHc!xy%2(YCObo1$bmW6YXb2oo8qFl=3! z`e|2a@_H(``f*`-wRGNn-Q`L>%TgSBw9kS_3($2Ls#b`B0|I!N>G$`{JXrW51#rU& zmz{-^E{}CJZBf4Sl^8mzqddD4d2N9&;0sV$%DXqN$EhAl z<-#L&LX;bR$`u*QKArH)3gmQG5!ml4dITbMr_imXUn8IW-|e6nT0)iat71ff(beLq*hR??q5?q+&Jetl2sg-DfPOtBx3mn2cN`MpO=$Z|90Vv= zd?Z}wNmGik>>Hz^$B=sIJPdVJqs|j90(+^w5@Outpz3)pX{wJfMMGV<23#B|3EimMLNl&-$G#gZz}j_UWu8h6^0)xUGB zI!_JLla_iKa~iRUEauawv)v6(hx=o!JWXPbg;lQ!jFq{8v2slaWnN^M&HcQ0D&xP8 zTZlN$L<2bL=b-o7<5qJrar|ez`y2RqM+>2#^^g6!NfBz3w2Zw;W6DEYlKN+XO`4>f z;GNpx;k(r|Vh1?ZjBJOZcGMeoVYZKX_A+%!lU6M4h_%2B`MEK_HAs?V-W(~4C*mor z>MeqgS{JB;iFK-7a{b&!l0$Tgh021g&UD%WK<)3$CUEkUVq%{`?b2!JRAn*H6jN}8 ze8ZQn)W_v|7NoHDs!MP{w@=mPOXJlzflC%I*0K(Th7=)2bx;ahrUwf!%9p*;+nXbt zct-~an(hf>+8NA**@OzKUeYR5jSt{u$ITu90gvaLcwuNVJA=)e`i%H(TOs$y!VYHu zpO$?ztBkuQqm{9%d)K~6;+|;`=~r^2Y>unyNB!xpEfM_8q-BS`g|5_Tv2r|@BZ6b< zjQV7x)lJ=x#s$eV525t96yCz+FN-9} zs4Oud^_@JT;mChggcLT@3PIhPCNQs_3b z_5UuenoBZ8X2d=HJ&`Iy2Y=6yZ)r3#S8Gp;D$v7N8qJs|xtmtlLmDL;&79hO@Fp&g z=q0*)r=pJWWix47PokkruZ4Uql^O_G*Hv(ty|amAVVeR%bab2dKK_M3JT-lPkYk`H z+v-dkKvOe{Q9doLE0L+bD2V(-gG@(s94T!0+7f0T*=#@lx-ja?OY$vS^==FQZADp! z!SA7s4$K(-ua@PaXi!H10M7Qw(9Qeg;AH%IB zhk{72wCN!0YS9>e)n!Jeb@sfw?Q0a-x6;5baQoG$^Dds);}(z&rTP$RCt#*Ivg$WS zWbd51L{ktW2C&z_-i(W_7_(&q`$9~ya!EqSAKH=rU8-kA+7+dk-eu0?R-=+N=a zwZEtVyh8G5es`Q8^ntST=!ibBp0l$l zkQ@|Y_QgkmV?qM@HJ@bGh1+a+ z+&<#2LSUb#J8-E*sN<`8l%E0IQT}=4sgSQDbyXpt@Y3hccK5h%f7##G5+3L#0s>kK z@cp(l_<41Ne#!{_mW63tw3KK@#X+7(YEfnhP}7Y{`hQ%NV3~VxOwZSi3KrF=f#f!p2S*+ zwAx0YYmUpCjY8KAKN=X7@XbdVB;O})LSRh2u7(gHM?1v3O)9Qc6$+<^@rR+c*K=vD z0rrK>Xk`i@#wO5#fmP>``n1d2N8=ZTxf4BSr^fCGuv6{Bib$DK2oHz@tCmgo=uxty zFW(7b*83inP_SG{7Z=Jd+A^)xCx;iVMQ+)MbylN!2Aa+E=D&GCeT>tx7iDdubExhN zt)#QB>z{t?z?ZQvk+CiDYEb8(>D6S^==EUeE!e*^2I31NljpYgvnfMl@k96HBv>hB6hE+C8!8FA^NHFnp{fci1l#gVF7GVyq2DayH<3zT;(w z0V_FzV-t#gfpCj29ODGeXl&41<8+{*YKAG(jxquee^Pf4N`aXHp>@M>8 z7MZ$;fU^nZ7eBo#gh2D^nLkOd@DZ-FW2PKCn|Q-pQ`gN>|BB~}+0m&amLM-4gXd?5 z%VY;=Q0#eFP)|tRJZ61 zIV*0V`ZPrrH)PLVPTr+W@B~+r!j4_eHMXrh?5x5^JE=Hgy+Xl^sltt7QX#)Ud-uzn zsF^HA?3p%V8~BKRmqZi|oX!71YGV`qkIi`)4nR74J~KibZBo>kQ8}V)Aem0iw9B;N zjm(o5<)UFWpaSdxr~r2&8D;r@8(_U#N{5sY)Ob_tWhS+ z=)>5608PssYLx28OEi(WM$dy12vvm5JH0V)_6Tx`) z3+@EtHXVZxIAu5BO8n20ma;Xq`!nEV{KC#rE=EmIDx5tlJQpu1Ra3Llu`(QI99$0U z1x_bnOvwDfQJ_a5XCMwy-iHSwLWLanLj)pvc~J+_5cazuq&4!q&?^;E)nr%;63@t z)|Wp|;`X&b%>5aPJ)`yIy07Gm3v`Fj*cQPfMmy>#x+P145w@o>$^_8+7Z3?}UeEOl zY@vu-w~d-u5n>HFo$X)i^@pS>*`2zU*wQ9}yDvV{M&7@(yeD7&_D%%f9zDtbW#_>;BrUn07I?$vWs^Lgq+k~5T{>PR z{~+G06N;%5vX1>py!SX(xC2!utBT=T(m~)i{s=pVOON@ZfdPqsPYJh=+f}?FhM%m1 zfJ{x%(rDZ@l}3zRb)FctNEL1lpde$<)5KPzjf2-bk_&IIk3B|cUg5=(K>eIPVmn%h zIc3#v3>!|?$A_K%Ec3^1c}I#fkOV3jVp`(ytrWuAi?Ul~&_i68WUuOmirFe93Wpq5YE_IA*_&qlbtyoZp|qT`&P8Nswb{`jD0CWhAY`pS&A zO`ohMwT^J(7np$I0Vb*?aM-SZtN#{uDrsO3$SVFf(czzrZ@{`(p(j&$RMv)+wpg}0 z^O-7{b-WaB@(O%SlOY;_J5^JXae}Ei@i||G19m@PqPlRJ!P~?ocRzsZEWEMY9>9qq zG_Hi`U@;$pvg`@NiE^`G!4t0Pn)VgSKpGGdp%?eI>*8c!Xl$YOb+$kex=w1@GM~5X zFRXEfADmWvZR(uC&YprkJ)eyvD+baaH*J!J<|a$aQUY!UssUB)YS^S#@aM}rlYsD@ z#3pHfVn_;$o;%IM(No%CdH(iC^NyYoj}yNA3*s;(Bc7_pc&&8Owy?fGae-c-I_g399_f*OI*- z5075i=(Sl4tqv)Pk-)m9Ix?GVie1&3&{=Ju41JH#t7?UkBP}<%2>ilKkIiSM{y=nh zvP@G6TC3!jc(WN#^ftF<6X`st?dhp?p-{av&{Eu3N05n4(NouN zW_O-^YKCk@f~tm=Kty^%x|RwOq=!DisfYflBL|i`Hv`r}leClw9K-f<)c1uRtu|@}f|M`(>7AbL2|8GuV*U z@Efe*vZF)>s3RVHPZqG@-gJlPkil*U!2~#avjbpsO++y;HQ<6lHV z$t(u}nrw@ds6SpL`aZ@%ir)8Y8hHhKV^c=O?PMM}{|!+pDQs)Nz%~{Aiwy8hkt|Iw zvxV(9#T4XRT`b<(tWp}H3|H0L_4YBLs}XKT6$&JOW)_O-B4UetwSU|pq0R{LtT z)GF%uIos^^utj5$MOpt!hJ>r5dv(qAa^i!eI96IM5W^F;^FDK!}kG z=dpfVf@)w}`96OMV?;STQlRrS>36qj8)?+6qZVb+mWF8Rj69 zbSd07}?=bWBTFJX*4V zL9h-Ng6}&~k;d3&9nZJoI?77=`w}4rjMLht^jpDC(VY)DnCcgtxD_ z?kIY8!rAQt9hJ31P3{*|48qTZKcLr{ps*n(STN>FR>i$zK~V_0M-fMf=Z8`C6=5q% zb|B$$?loi3R9LGS47Wy3g>{N-l@MH8i72>vd(ha4&P++!ApGTAgR<~i&OQ3PKFi-f zmu}J>h3oC7ppLRHNUM)WDqiF}H5Fj^0ity-JyngwR(Ry4PX+dy8N9YGMRCH;#IgjR zTGH0s2B%Dwl!tU8EIjF3N&F7Z(=j&8-mobfuF6=Cg}xndh)(I{J8@eG5;wwq)iNz& z?0k-gy*7S#M6z@~!SIcJa>mu6X$r$NH&5}V7fW4Xr)}1aU~S!plfB98=Fau&f(fbz z-Y3pVxG{3hW}1hHr-HVpBF;+vG4`?5qq~|}f?UFXKdWx+UntuHeuD>GeUjf*>wiRQ zWdj@gKdZ?6f5XhtnQ%6c*;0vcw1Fs{jlUOiWLuLFr@HCpHb_Ve!8OfqoL#_?(^B?nKk}%2cY9m5kw~Ji#MM-zS4SdM;LRwFZx7vdD__i|Kx{`DRf%INRK<#? zN=VaO`DkBbGkKyI4eN^}h7LlstKnEjv`=Q~hptPrxflMxL1nJp)JZ% zq0Gq7e-sraD3de@`$*#wOxfmv4^6R+4`5owp`|eE$)_n?V^)%^h`#CzdNgQD{4~WN(!xi6FlQo{n+y zGlUrU)-3l$dA_g;ICwo3*kE0|4Yu=?TqJKHt=!<-hKwO(GFRIrJw2AImfCw4Nz=J)Jeu+f zwILpbs;y8(BF|{S(JA5j^N81L8^Xz59k~<)9}&dI(oX0r&g6GXKx`Z3p*2tSjtHs{5p$V< z9Y@xmn8$8#q^3BS6aV0$0ja{j8Sl3ksO0@4RR%tOd}MxC6+p~`L9lah_bHxVoAm*0 z#DM&zVwRE7$Hmee!#lbSnZ;3GnA##cFh|so_u5FaVZqZc_cVonBmc)=5!OFOW%BhRGD9+T7~=} zIp2exqQuYd>Nk(ro^Fllmu>zhtl}K;YJYDpwaHQB;SD4~*{Mn+t99?~#H~JS>S65aQpC?=bO`hpTNS>@Q0}JTmQo1&{H1Xb)G0!>{(_ zxqdw(0_)Oo!}6K^XFYxKXP#{R7L+OwNiLQSn$v_<7)?{J|TH@ zlTc8fY$GyVqv|}K8kQ51OI6wPQT0613X$Jq;^UYhy?J46Hl9SeG?a!mEhK}AWWubb zhIE0jX^dg8XiPZKXP)}jZ`@*8ViaVIS?W=MjO?MZ8s+T>JlqG;*PV=mHX9KgmlC{>}#)1 zu|kF0%O2OZ_W?wU&I}D}+h2y{KVBVt9X+^MNcO4uC0Rv=r3Ezrrq}|4mEJ2-SZJDGAo8VzAI3!nlk*Zzld#p3KGbT-pp6=vd z3pa7d^%+(oPZqBEtPP~f8|+xYA>%{&J40>XccBOfJ2ll1N@Rdq7f4fkSysM*Fu*>~wv-Rxg*c+YNfU!xyZ$ zq8|0lV}2)x5+|jQvjO+M#?DfrhPuy zrie(-7|6vBmN|-Y`!56z6?;?hjWuxb@im{)w&~f`tvbS$^QV-(t}P7KAnFKsZB}w0 zELfpwZ7{3Oj4w!JI^h$0pR=XHI%flbyfr( zl#T%A`R{A^H$gwp9V-e4lrsw_3p6FCCPf)ZOwwehdW;m;YiZ#?Q5<0BO%mp#L#yR6+yk07Y0%-hGkx@)fxk{qV5_+hji2 zI7pP-*|OSY_mz5apX6fen@M%70r|E$MH@$yB;q+-zT%PvXo#3pquis6Ju9nuoViYT zw(qKTFk5(qkyHz#0YA0`WJB6!%RTDEUefI{hRV+ zQ!_tS)V`P!lmP>9y}(yQq6=kjzaXeeePVkSD5U_i$)3Rwn#HIR`_6#k0N3;CW2zm1 z9dfMHfOoygMR@g@Vb4P8{+49IUwzT@xT>Ks_?|fmfv7k@Svzvnyaa7VFR{D4v&?t$cM2n`xOI0b zQN}~yWFk&8&8{k>?|qOqxHs$UH1Xg~53vzIxYbZ=(0+96i6vJW!4U=fPPkeQUDA-9OOWFSMh3g~3pzc-|Ozk2ezS1Uy$@^X@tCb>LD4ov5BZ z8@FW(g;5CF(2?KwcOid>AUGcSs8fKl7w&@=z32qFltyCpQWre6rEt8a^qo~!PG-=0 zEi%^}wVOw!`$YjW0zDW(GeyiI`*m)5J#xVTwhrBgIkU*~9(3!fKoDIt0@K1D3Z^Hs zhknJ}hoUdQ8`-beqf(`gq>Fv$WuzG(%Ah?jCdmBvAo1fDD&9mTO^1TK9>euW`FY&*qWqB)XW!?g3y8%>V zzn!4U+L?&}gqCJ@j(^3A;MfVJ43O zFG>F*NqvznAw&&!m;wVk<7DQ$lF$rG`)R`A(-K_B74i*wOo-efrdg%v40ifcF8FIA z7jSJO`m2nI#L4HbI`)Nn?DApn@^+P&ty+1lbrxsf3d#6so@sHK@*wWwX= zkK9GQcMQ;%JGDc-_Y7E*JzausO`%@nNNAu05`XT13ZCVUJpbEpg$Fcc`f{+9uN z3HUC+m==(N4?4M{)#C%|u5yY3&zuAfGAQ_Q93$D9V2ws(*MaI}U<3MEiTzTM%esH` zkdw6@-oIawBRNp%%@vgTUOtmX`S2HHX^@932y*0v5NQiAJ@amud<#0$rI<_))ki^G zk_ZUboNfd^#UsWFSkH^8S08(L#+5BZ_+7QsVunGi5OsE9sLQL06NiK8i288CiCBf~ z>khm*`!HfLf@7M4#Oru~4x`2lWaA1h)@PB=nX<G~3!+4W>)dz&z$Dm!Nq)NuEob87WMF0@ zZ0G(50AJL=+2F5a{1?yf9c@S^fCpX_Mz*sA7qStu16Z3`q>?Cj4cwGvfw8Pvc~0%I zMapw8p7Xtdg>o$c>l+XTnOh;j%*m@H@%hLAOSM2rY)Vb6iMX?&tJjF9GsP5pW-CTX!_9dVWt zfAa;F8=v~x{x1po?HNZtK46EJ|Ep{BA3KQHS^urN_AICHvupEgg2g}}P0QG+gJ+iu zZx)AH$35$a2Q5TlJ@*aDrvpD6Tl}1daL5@P!;nRjgN0OzNhUR5FFQ!&!@q~V2mq0V zq8qOynwS0w5s5E|c`z#R%hC%U?dqMuI^%cq(t*=jHfw9_79A&*87IK~3Zc$Nue~AYXGBR7fx^0AKN{?E%X8FR0{qa5H z8x!1QZJ5ED0fQ%zn&`!Czmiy+TA=NzX(kij{8i}7I)4gL7r-y8uzxWVDm21n>9aA1uFkI=De` zt0Hj1_P`1MmL&d{6aEJPA?h!^c8`b-71&fu^gK_?NzHDySYuf5*lL@CZ-6e8D{585 z$#I_gzL3mMz4nKv3s0mHa?42UX|PM2jwq0qZqs|Rvk`2k;P5fxM4;r@U@5rWC@wa- zg>#^1eTrxFb=ImF>Lu;!ZP})UR)G}P8=+1a>KBp)I|Q^M~Es(hUVj8_gHQo0uF6o6~fM9!7F_U3|)1-N+;|N3kLHu!z3OnrV zi+$6k3GaZ}K|FrX^J1bY1fcwsm69ey+zz4%M{O@dLl+1 z?)JB{qY=d$Y2m^KA3$Daj^*Wm?`+5HAf7ZsZMbu8{bjbq7$`Yo02sywFbw_gYSUi~ zqhe%kV)IuOWfSvrgDV7RTmGEi5{h-lm%|8a_gtty&u^=f4}%s~CaE4yMhha;QdN>O zu2alRxq?zg$2ErmG6oo8JwCdxvCRXCQ^tb6G5&BM%xv9ICC1$lQ8f;1c%9!Ri&jO- zk?Mkl=de!kf7t0@vH58|Ui2uvXhGsVqe{k+JT`LxAKZ#TW?f8@t&oG}2D+B<7XB*8 zw+vp9X0!PmB@i;1tYFx@`StOZ+i#fogU{2_4r(GNdeF&A{8L!u-Dw_Ip5_j7XAeNx z?Yg$|Y7o+HW@IWm+@OfoG=6XUXI~71kccffhkOojt5=VYe!jV=W}-*!v^b;W|%6l zPrrkzk5)a~O2feaV_bb%Npc7k)^jmkJ!N zfUP8e6708Q+yB_=ABiF(PWxw+T05tO__+ACm@{TWTN_qbI~c)t@+##5 zuoAh_`dQe|j0=aEKSomwy!ey%u%fyELNtKK#I^M;^UO~|H0yB?Y_Mv@I5EW(F}jJ$ z$N)V=j5RcL+9K2(*O+|}U=`mp>Rfy(vZsjwhHo!|PUiizGW7Wb*`QDgm|-=Bt{BAx zMIab0T0nSRJN0GbCPz>HpN#NP0FQ~J8fhW7h}nE_m+uom?YzDRwo?)m&O*nB?sN5& za`bS>)WZ36R)lYD@M{!YImLEWLqI)osMR}U zUR2wfvgAVQu%V9zEiWvozlTly(sFE5>f<&ZLVSt2(dckY`>9T9k2$FCs;PDDENp-) zgi8aXlhMAx8cXEO2>4@LvkrS@##kSR%a^hg@KauIFPOmkZUvjZQ%VDad~xc?`$%YX{O1)rSLI!*^R zX@OJo*JA{!!D=@reY0MKaEm8rg;hUmORGwZa7O5g@%XVSGl)V1(~pcR31Shd$oGoQ zfB}?KAeLz!6g>!8G#gdyR9oyYMukr2b?0|k6|cAAq{>0?b;)O5*zZ4EUtD~?pFw8` z#K;+Nv{vOQGE=Jp9fJo`>Y0b-?AA7~lpwVy3LK(1u=P`Jrm_k5fmMQlhce|&^tGGO z4T$_kzWlE5S|j&h0)M(SaL|b*lTrTsW1LTI?IUWGkJ-y+AuG$Z??u52^63Ymb;ViN zsZ_j__`-v+>YvPWo0}9MUEf#hd}Ivb5@L+~p84)fpDA(n3h%qm&h@zMo*L4G=|=1F zFMZ*JCMbDE;2@t7Y`9Cqz`5Q4H9-<@Zv~P#XeH7Ps>KxahK{Y5 zq-c-?=y{2eycc?OQuX@@Pmijo>N=6V>2MK0FTS4<%K=@%J>c%^O@;WL_PQ2aj2x|3 z%eg#TSp}TDz8{Q+t!t!UD&s_D`L(WvGCLQlwSRkkv4z`x)8#nOyx<_v2OiQAm@%ag zrV)JSs?K|Ul2>{MmmkgZa1gSvQV(wPOL3}>>W~y*ZSNu+=QaY^AM}U{X$_Mo)^PbE zIm!UFV1qSt^0N`hNGYW(Cwp*zmuJ<%2Oh5k#34GVDY`L@FS1)~_yjB8foC;E9~jGP zc^2;f2A=1dB`v4}r>zGh3D(~w31t&o0NiQf2)qF;fLFGnqlptBjrUJg;NX}E>8|Iu z;5k~Tt_>4!Mu6<6dWKP9YYALYB<$B-v*1g4dF4z!Zr9E#JHelIf=@F}?)}6`k$A*Z zj3A6hrjC|H?NTo;1szV6rpF1&2ap<%IRdg8| z@iq6GYFu-R2p^`bsSXk?ut(LhBxVJ7szR2q&KW+*0@jY*uBR%|UY*-(N~(_htus1L zo({2SKKXkKcMw?N0ZcwUWSW~8pXy(>Hj4Odpb-Hx^#R{+j zKL!LK;f+8+44+)Psx;eJDrTioLCb;kgl`6CgR&LZ@B6sw^c@dFl>|}KA6hdohW`~B z(}&nnb27L`L2v^wr9DyP4RK^%W8CVPUB!FW=|@3G%E=e(b;+l^*odEvFD^9i_p4(B zWt7hG>ZBn{@5E*Ww_v1|da^Mq!Z;NTqUG1)@EBYsbx%})C=+G`8~9F(C+WdBZcGXC`|iaT=)ACxGg-IqBc8q=-$YOD<{u-Sxj6#)Vz zN{$@(GBUAxu*-`@SOTCo+{Z$f;Bq}{O#{msU>h}WV#7_0K)(P*M z^YFo{%jg!Su!QQz-iMX3QgV0U-W~IjyWmPgX2{4q7=HA=ee!cdnKTDf9&%ig{V7jz zgWMhJ0u)r2WIg0Cwm`A_NsvUO-eti6;zpjB61m7_1j)t-Ir3=0Mhq_8cla4j$Bw;o z>zSP%C8S1*tIk-~#LDLMK3qkPz=UK#hlSM!w!czXsj?WuVNhiCTjmDrfv~noyVA&W zyR_KS*m*OX^Qf!o{2bA)*RId(r_RG=PT@w=?Mc5cb_QPdYc&{vRWYAqNzsz79#ctm zCfs;Hw9qj~x@zuayHm!kV7;EFq1yVe=avpw&Kh$6xeu}K;@6U5d*a2Gc)P{hsWYjk zzDGA&+Q3Q?*GWZYFMC5_<1Eg-Yu7whtcw#VWAjQy0?1BH8d|D_z8G#S;Ys&&LCgNH zPT{O2WgdAqin9wmh~LB=!i29YtaV8uyYfwC^Akr@vEz%Jd4rzB9sQ+Nqa`iY`rxV| z^e1L|6%bY%#0+771POmiTpPBQ&w$~<_?$n9;tXaf(Us}#H~Vsrq6~gv!=1LQi+LP* zABi7!QDK&#sm3LX>n3SQ_IyZ-C8^eH5yhF}vjPgj%$#7{Ao&^N`!0b4SFq#jd9bVN zUM-wYwTX8-B)6y!zwl)h`N_O`e%XTq5%afKQ3ViyF|_+TF}pm>_Ie)>FckU^z(CgOVZ`Zu)tluCc}_VtijVelVLQN)Bm$mUG*`;ST5a@r68P zd}REYxi>;A4UwWMs{(i1gI|2hw&xusPH_MzRfsr`pKU3RwHJAJ?p8e`7NK-P*|%$) z5@+$@N!4ozg&gbpcQ5mH=FL$ZvdcY!Wz02+SApt^fRDQcnvjDff%S99M5WW0cp2=~ zp(w(^d4L+lMuP>h+5L#VDOA$);MjHhhXEVfe_>InxhX$T0Y@(c96izRk`+)Jo2Xj+ z{fKdi8IcE8b%RcPBltW0!C+8IJgtRIvK@@h>$!RNX7SK zJ>UzibCX1tL4vSAsxE8-Irhk!j4%Ufc>`#+BaAx;R=Nlt#*jU)338nkJ%osp-$EtY zF@KdHK=_Pyaie&D!xAsZh$rf$>d!l0Hv1YhN!lI{q&KtpLRBQ3pT<93gG*z;?O|qv z`(`oThWI-YUO+Fy7eX}~u+gMld-jiOdczE6oRwAhW%S|StzDO&<`2s+oAhV;UA5Y2 zoHv(zwAiQSgP9*HRWL6&!W0HjASjC`T}{AY*Rnl0vv%KHkTK=J-(Ey7GE1>0%J9nf zh-2~zow7m6UxvxI*_OnUKiU;kX;;*L3cLGek5t%2lS4Ng`s0^(MpdycAZ-;IE2(^jA3sZiPoQcua=Rv3X;Ma-Bc{UiFK9W#s~8jof#9Nn zZi{a>`(8{w?X$dWfEo;%(ccHd<#l*|@8LeQ+Vjv~1+oa#k)2_s#A?Ib@)x3GU zd9+h~-IYCLx!`l_YIBV&&1R=`*E!BcZ!6Ctt{oKa7BieoYDy5Axmh;o2P*S^somu- z^SU+t*+C?V@`$xJf>m8BvM`@v;o3l94uIK9 zArKEOYEF($S}^-6nXu!Yw+XmNL`yATSSzUKI+*-*#$Td>@KzooIe$f>S3Zr6Fp^~S zrUANBVZB`)3G?d;I!_y^S=)RM=VB!<`Dkw_0Q7SNn{j(4Z2}2@XA^xObtargj1jD(TW>{sAYF z)m0txbFh}|zKVakdKzP4(}HJ>x1`&^o(1SN)1JO+s8lJ!-G6Ht)>`|ZKLZnL!T)$# z0Qy|cPK+v|vaHWP^o5*&wO8lox3%i?AO5VP>Qr^3r-jh8tyjBDyM8g9UUF^#O-5J!?x_i0|p&}NOPFf zI;rBjlhnEXh~^#UU`E+27(%1;hQW)mP#aj2pkgKx(!)hiFlsr4`YEO&ySTb?ll1an znR~OEeLOH$G?Jr*hA)+OW3a7aEpwgncVmpAhO=0EwhB%^Ym`UemhMOoq4cwHh^*I} z73iJK1qYte1$>~Sw96!H<023wp-q-PN>+%-c*>{_RUWy@W8dP{_nRCHm!YM-w>@03 zKj(fO+g0*JA;2-Lmz``LIy()$NM19+1jY72h5q%MoIzf~v{Q9{w}>r1GE+`c%M$6u znVZ?v{K16-l$vpxF!=%4i}2Q0^sT`F9)iDvF$}SKY6e zWO{9-Freycv+Brx9py?_MU^mGzhQ7)lkpeA&05P{2_* z&2dB6W&R;;?E#Bmw>j-tsG;QTsW4+A`{I*KRoz^m%C>u=J0$gO@RHhn=EPU+i6*YV zh9#LvlNx>lsT(%@_lVA#kO%9(s3XOwYVkam3AX?W<9QPQtIq*IH47u4%>0+j#cNwV z3&pKn(uVL!jaMwPDF*0@q*A=u*D0EA4pN?-?AIeXqTy{~kRR|nDKj>T1e+8rrPLku zb{c&Lbf61hrh~}2KyAZ`7{(mAIQ2d}`<&f)zywsUun}E=jwV1eL5iGDy)}k5!=I2` z1Vy7})cz@IZCyAw(xP=Hoa${wl*?gmb%FokkSv|hJ_?Kxy|R^a@db#qbu4tFA{?jM zxX+%B&g(iwty#g|B@q9m%v9GAyAKE(Q(&uvgnr&$H^-+?EDPB03Ot&Sss>7y)gm3K)f(q{0pL$8^o5?j*6u?U$$n(;1 z7E}J+6g`#YL%PT*WC$8wv~lpb^Z{CQaS=H(98*Tdo*S4qJl)ELe4~r>b%S~*%=}v? zN4?F~Pwj2+BficJB5Aa_(#ey%HU{H8Qj~`o!3RN5<*3|E;f#6t`DJ1S1g9l9h|97Y zTku`o3oRd9Yz+;giZ}czq~eqyecwI4{+^#Fzx3qeh0Z!)*6yR$2={#sA^+3p>FW8{ zP4ZSQ+y>i^JLn2RD>04-XHQW%yuJ5$>Zgs%4~F`~w}-ZnORpAfZkca?Nf704O&uWq zzuZWTmF3@Vqz^n+(0YK!3WHCzL3~3klXSJxHc|Sc>%^32;BbRLNNk+h@rRx)lZ#mecgY5m2NWTzCEj$Hz zPf0eV=xNuelNV|aY1u3d2nBwECKfiRx^-_4`$##;R`Qt}4_}Z6{MnCWCnXf8Z^1*? z5#gx02nJxX6KAPyRg`2%u-@?SPMkp9U~Asa@_y^3URl$ECVc}sIv^Hx*9!9F#dRpr zfVZfFtJe8WfFA=wH{H2&^|iZv*f>vYP1=pHmezol@jk()l7aRSHu+U1+4L2U*Si!H zv&l3B=5b`$ZtJ0YAIbHl_G=&38Z?+cctb8@<_{71*{Iy^!=3Qy3lMBXwm76+S?Hai zO|w%s5IpJAHd+mz7=V2mT0y+(DH|JgWqQb6$s^2p_3xP^Th!#I=WulQ`*0*>YvHT{ zbaqVsPd_RH{HT5QrypHi{nL-=pZy5+|F<70{39Iw1c=Eh3b%y)PkM8ch%-rg<@HC(O=)T~O zaI`d^cIL{v6w@W{eK~BUI9w}YwFq~V3T&r}rNR~^T2rfB%9$rXeFdSHa1@HGeuDl{ z5bMg?Qg2!=E#Ht-w^$z^2%(QE9Moxe`85o=&GcP=y0bgjH?;oO`drLXZdpZ_um~N5 zSjzT%ap=Od(K0PFFJw=WRM5+7U}p1!~f+) z2!DE!9y8!Yp8v~>+!X)gMHbIqWXJ#PMK#Y}h%p9 z-MTRV>6DO=MoK_RK~lOq1q1{Hq(Mpv5s;7+7(lwEy95bA0qGoCLRzHjJih_k{eR!{ z>6{NUUuUgZ*Sh11`-x$_VDhFNv+=Q?-(0PkCl#V(B$Qevl=BZf4lLYP zlqm!AR5Xi#`KQK;2)wb&Eu_}BD z43=@qzQQMJQw!#)f1!D*X{{}$0?bp|k!E<%Jayq@o;oA!N+yGCqM*uTQh(_JCdLz( z#dX^A>qM*>vGiKgWS1ffOheBJG36?e=&DLm4x$dUp@NaBGpLazuF#<<)g_0cPT|@+ z9v&uZt@OFw&k}Vd?{$W3lWhpQS}VH-d=#_>>A!ZmP!`Lkd?3`c<|_unlIL z5sGyZD#PG63Z-Slwaxt>T3O(V9!B23eAAhdUBW^RJYW@P*h>4(O__K5Q!rZgqU>7f zWb*si!_E(*Nk>H<>zMgyEG1}1$M=V&o{S&j-(vQ){AcTt+Bt8NN3V0bjvNeq@A%TT ztz*p;Np7%y&iJ$hW3($9DeIUzh_dyAs$y83y6-%^g%$YN7aNBoaU zhPYg<^w7xg7wCok+7SmH{OE|kRx(6K{9lzUZtkJ}e|N+`D_K+#qLRT0Pb*pae^#=Q zit^H*I->DOM>IhuNq|**+;J1#HjcH%p8qx1u{%(yvaSSM?9F*tSO5`*+qt9dhl9bEJjE3^vb-<5 zjpBW8h^M7Y@moX8Ml?jIl#TyqLp&{ICQw5}l(LhC_UqSEqRN0DkP5` zO>9?{GtRZAQ}J!Y&N9-boF|XGYSA_)CYxuAm zgI{Emk_tXLzm&;XO_W9~-s_;mMt8Q+O)Wp8eR%KAQIMref42fnS9jwd`5*?a!N|( z=0Hi?hg-U8Z*xP7xSc7;?cE0!cpcf^S7c8uJBLzvUD?4r#3{3FcY}Xs9LbKqzuSLE zYxrLNXp~$PetFFPOIT||{D-$JBf<%v*-|iQ($SCQkPfXFIw`))?dmYCO9TfyIOi{f z!Hvn1ezU&V&b=>10`Qpt@S*q9Z#1rp ziGjCdRZAS&oO0M>0*hTq|ub<#4zGfHn?hnpzp(-TT)zlXN46 z@C!!Aido5E(X7S1>#hbPtuYnxf&RR4@vV*<{rXq=oxxDvQ6hZZ;%V{hBR+pHl$V|i zQ-mkO)FNWHTZ|R!Hnx%ZR)T_{VahPz;yL}zt!G%{CQ3@gyqS>^zJprQ@~uXbCu1_)ymJ5_`&4 zwmwb_XJB_M@9Uhbb{0O1aV6riGY_b1L++^+;zw7$%{IHK9^Kf=PUBak#j-fs7rm)X}+To37P zr=bl#HoXX6ZR^xul9L*>`qCASvF)6{GClD2(Q2~ZuQPcBhqyjFfKVhDrYQe}kUa1; zgD1UysX^gga)^w^h8oOCGNt|UCALHdajz%ds;@K)YovQ-Xb8+E2kYnT7?h5;C!Q4-a{%hM}1=`Lqq_J^wP*&`RW?>Byz--Z48gxhcmp z%C{q#FCMTe?J*b2cxOC`yShs*!P6cxTp4NUe%-+#O|pYGOp_`0eSz0|3JRgg{6}>y z&&UijyIe-Sz9PM=DqS;p`I=RsN0uA&_{}rVUqJ`?INIXsK`tvD8*oXd)6PWn) zTnOOxlE+pz8WbK{uYMAlPD{Uij4$c78aaY*q8jl~B0W1$kbpKWe;Y3zLu9`C-H?Y|uirEeKj_MJyt&d56q|3agpRI8ki6Pv<`c7aZf*aL+9%;VBB<49O=RxW?aMj{;oxhYHFOXCRCRo~;t?8#l*VvJSp9L?L=-^Z zb*};oX^NV{^G;9Da|H9z85S{T8Yoon-}IxCAmkj=K7A z$W|-Q*>Qn_f3<$3sAxNH-)e7_JOWQTbv=i+N$FVb9)@PS<3}Qth`c(YPfdfZC>|P) ze1i|t&A+Jov7jxg(9tv}7uow;Htj;#Lspg&lZ>cE6Z8A1E&o2m^`gW}4{;e4iLxv0 zFr7@#DlLiJ8xA(fPt3)ih45VyfaN!KMpxdsRr)&g=xmL0j4b)(GtL7ux|hOo4V1ZT zSDp&wYj(JWUc)k5s5YpxVe*^E*F_~f40@b!>zx&;7T?{4;HRiP`c$i*w5OR(>Av1l zKI~%Nu2)mVV@;GBX~ZPh9)5$)2JMB;FW6K81esFtGXVr`oCwWvw{;7$%B#&&Ivz-q zJb1tJ@L}EnadGOEWDl!0Ma9_OxS_b-%$e9}0Y)Y7HN(Ttg-X@tJ8fSY^@`i`7EMSn zJs3-mj9%9t-<93xo7iSen}*HH)(5}^1deNxZH7H~(Sv_q4Rs!qubc(Y`j2@^-U=j- zenwMC*suLCkz6nW6Iqf`G{r)>YLwjj#um3m-J=rJlFHU{A=4(4`PY;p=JLeHe0^s3!S0M`eA+|z{(2;Lir7t!Po?t2% zs3O+QwF&LmI=Jj9QC?*h1lcS1bA-6XKRYL`Bcz`rY8J>G5ijfqo?a#JpG-rsx8lW9 zQ*Dokq=yy>LT~h{g0efB6QbO$$|*i4b8$G?t}zAhHd)bytVt+PgB6~ zU)MK}J#$~=U}~DiO+E7mWemTo^_jcqn}H|cc{QGvf!&9J-k5wC4ze9)qXRgD;|;G? z;me8DsS4E37kbjzdYdHF2D4EH?tm?DCWopvBoZHLhb`G=6n>gzBSNQpL z%HUabhEZL%djlA%avkx{pZD?}D*k)p-v_FDdE>4dW6$H#Se4G1HDCjUMhG*?ghx7X zAQfU1h>P!Xcouvl3?PrfFA!W77coWICG-D$MN(QBDI$w)f~(oeIL z6KLGg0Dx#900|$}59#FMyY%1m>4?%RwlOd>@+xZvDTJ1xrzAI~icEC9rnLEr)7n42 zu80>?NU3U zRh!Pe#fx2L>LJB&MX_>drhnRlNNBt2i!I@P5B7GfE61m|ZdY>lm-FHK^8~-nQ>~Qk zBM^c*0D>TQ#&69{5#-7LR{=U1$ir3r#XbI3fPx}Y$Ri{t7)SUv+IdWtIDDcRGgoM`tFj17<#qvQ$AUuY&vr4oRZPWq#dL3ySSd{MS3RRuNG2<=`q z6Q#Qc=a2JlQRwaM!m(5LQO{7=URi{}2FkN(Ue!J28Lu31vqnfQEr}-u zC;(;P0#tymQSnDbMj{H(d$XGt!90#S`>cl#n#UVk()@j=sU*ZmS19%fRHH&G3y=1P z>Ek7i+Tef@02>|d-U^_|k9DiFY2Q9vbm&aoiR(%Y)e1hQe!Q|hGl#joF}k(y(mgqS zYlUfdZP_6gqw6=LUG*SYGPKeS0Q`{ui65~)0i=a^18@A0QOvE7TD`~fwu%rHT_ElY zU1efjOd(@?L=Xjtxgy~_C_qm%TSKp_j6Z!P!b)(TClr;M zevvE`6d<)^bMwfodyY~X+4isp9P>ojPyyP83Q%o*1F0bISx95K)PqK4cK94^?aaR@ zrKbS83IRwT-ZWOHwSrmvaR*x?s}kl)jF1eQ}bdGtck&~ z&GH1aI{JAG+GGfgB^1(F-koSHld7$BvbwC|r<4*umrC_5xzKwb&yXc~OgT_wW-rzi z)_l&Kv4Xp)R$ltliI%k5vDUF6*Np0N9iz+)!_B`Xg!$#@qXPjfyE=LS-**XfWqMO# zSICyX-0f+xa?Eyn_Iv#L%H77^|FO|2*&{rKzZ9Wxh!h7}-3I;Zt#I*)+gxWLR-898 zY5(d8D=uTsRKTv6o*{g=qD{+WQ6|Z1I@2ln5mUmb{9tlovzd`_Vkpo zxPZ3~L*Aj#DDurp6tvgbJLqLC1eH8>{gln3$z!c=y-1$NMCYAiF4*X5-k+fm zGA?lPXnaN{VTd|=Mert)O=&BPu#s3=o=XWGcnm0~GpJC#H8s=Ajey7C?uBkmWcPD# zI^*N=;sUnrrtWhQAJLVU+uCSOy{45ro|SU5irU8~5c|ZMR@5$*hnlQ9xcj9OszfPE z)YajUvj{?b(I9`?h)|4$kXpEm2>l}5UjW!GL$u1_cLo2!i$y1!Jp*<8FVVc~V0jkb)rQDt@5bKSAUnKhk(oMgeL zP;B4hYRBg6j5N=c%kiB4NAsn8R~+Wv$P8A|)2`kiNM39+_Mx6+p9ppdUeCUZcktUr zcgZr4`T{6gNPqXXoIDTsCm;T+(Lj?6G8!z>U_wTN+VF2igQ6cs1EODy20w983E%nf zaq=f!7oWaj^Cpk-9(?7X3XM)Lk}7>QX&6v{j81(+yHvwZvrFR2n zq6L_}b%nmq-j!T{Mo^Rjov+`C0keGhLou;?l?`Smwv(H~*4C%_zIj~WGth>723xz^ zz-LgxoeyzQhoX$&O^F*jJs;st`@AFSz-O=od)^CKSH@Q-2ngd=1`Y{-=LXX6p`mjDB-H{WK{=$~ z#wQU|+lLSIon@@<{YptGkC*|^irawNCFjsrI;j%k$PWLuqY1^KMhr(OwuuonNvT$~ zb+pyfA8mI?I=D$l5{qvZhjzkv<~{`dV5C~W8pq+we#%Il`IC`4h^B;xVY4%MN}68! zsx;EEfS@&>;3$w+mUa{cwG9y!hP@#4;-JRu=SgXfQH<82D-bkh^)ax~IyY*WKGl|~ zWt4KhFqaWvslX!bzUv>gsU%y|*H^S!<(n=)O?KB%^u;7uoq>vqpXUYVP;ee9* z&`Ly>Q$_qiz(nbbdLAfXOhp599Ve8O_t1Sz(Wmb-UtEJIsYV*lzBho9`bT2ugpzvX zw7et|v1CtK665>6)T<3aN$uq~;R?v&a%#%5Jn+*BxpLNd0AKe~&pDOeVy*}N9(Q9r zmrrS_K@=vxyIvV#xL}-0;MCA_;et>~o28tiW*)$6aHU+F>F6yile3i6rQTFFKRd zz6wP4ChogbD6)rElOBa#H+o#h5d-MW{m6mPmfZpGgJS27A}7f{(Fj0GnUKIkH(Ust z-dAs5b??v1BIoDC`ILivth!|3u`2GYOFt$m={_Ba7fXLQX`BO(uUT#qUFgw($>Y>2 z2EY%~nT)%x?fvGf79ndK;0DlJ1<-?Xq<=t9|ACc>nCSx}@BzmBUmB>g1*9q;#p_uQ zr;D8R4K!sfQ8v(`m9b-?e8O^(f~%sqADeH3N0jul#~iG<*yxxX!%jpOZCMV92)*c# zSTf~Fc4lo5d#9qO&$7hM1!beE(FPVajm@RLmyuVCbFY%s43+PR zdo``lqDWg(gSn|GgVc+RJJn2kRU&8&^XClxCxsDSz0|aejuB!Cz2>I)^|mc+5xu2$ z=?=-(RJ$wX7?N|fuHz|{D@bHSwZ+oMoo_~~kCI*1ar0!DfvUWHcR1lp-Tv|ri;v~1 zBQH>ug>NbK-#=C}^rCGsX&x9@YyjX=wESkJa&xiiF57pbPuk&)m<{g9t=Dz=-pt7Q(yUaGjV#+3*FKuNim^zj)S-`$d4`SEF9Ts{m8} z-V>u<4#KEsM-vHYIj7XaneWs?Z_SeOPe#3#_?IU}y)Y#31jqPIfk)O~QN9`VN{`Cg zR?IoaU(C`=e|K0}E-l~R;MEEP&X_MiPnIr0IAi?xO>sqIh%+Lt0cQ+Q1Cby#utGkx z@Q4j^#@wnXHBOauC<`qaZfpf=ARFYcdgSuvnH8C3TKa_$Sp<1CZFg5BH=)R#f8xk9 z?v%XphNy?z^CBVwloRH1@8;ay%S0BAgl@lsweZr;ajs+`&$H-v46HcljkaZAr+sz5 zf63mu8*eMAVKWG_>7jnJ>8-2-o1PGj^_S;7Q%fE1dAZou3o@rBxq(g3*X7xfPhV=v z>zw0S2Y-{$IvYsK2^Zk>spWgi*I7rf`nijBv=VMh?`~q32~iKoul8^4@-!ZDlpP*j zvENy|vK{HV^Qfxdcm6lK=NT1eaeM$E7^q-3{;XiCrZ#r=`VStV)Btp-t=9Z`V91)6H?Ua3I202R(wrEteFqsyb7rw zLSL2lGg}zmF-O3qAA~g5yx4S%iZmx&ipMzGO_A zAzMLUxuT#lI-=Mujd0+pEHF-#T(P7eE-4KoM$;BXSgux{QP++$ELK0@ClZryy2(|W z!KV>Vf%k(Xy-I5D-e$3WA(E+F9~iJ`bCn)wcZpMSlaF4#12`@djC}{u5wZ$9k6>c- zAd0xKp7V}F!cBRJ2W9RR<82KY*v(({!w9FQQZTd&p3WgSuGs*V)KtwIluFx9I%pVc zfq>(BAF#oP{!T_3W|XyaTNTL8wL8LJF%Gk+H;1w%#=BmM*IKQFbsJsu$co5bf_!{- zSAxBQDvh=YmLoR%iYyrRqNd_eRoqM8-&roPde;&> zfHZ%AG>-ox(oWt+`wPw>E&3@qBAu*Djh%DCy*~;$yC69D^*lv!K}##c)@!~Z*@&cC z@SQ|;mKqm%t4+7_V57aRD9Dg7`Vx~NI&d>k0yhILv$mlvj zL~$siSb=M#z;Vfkp6wlrc2Ov*53}zAudJxxeDe!}AW!XctwZ86f+Hl??|5tT#S-&9 zAu-227ke4YQS_NhpQ3hHG-0;X-2wTh zXQaO4_ik($pG(W)U^>q=GfNY-GF!>P$d}snrq4v=-NgXMJCy5({UKI%yIshht;T*6 zyu894L7;QGm|f4?Ti4{yiY?%vCKKTZbI>5TSVCjfSen!OAz!VuDbQVn-2B3>gT(Na zvMrAQq9EyiY6hmU%PNFx@)CE-wyetnE7*B1?Y`w@YqYPlmy zb>N1@HcUHc;Ss3Hghx_`m_B&=#v)ky)?A*_g-HdZk^Oxuz18ZW1wr8UlYr6_7mhL7 zRwOyysd6dCcMk$oWnr2cleq;07q%0^czAMD#~bIK4l&{ipU!1BcrTu9|D-I1|1#st za0^YfN@pA;55|wVtoU>;tHg-1aEWje^8R43?jAs2t4F^`q~XqSP0(ndMSKXq@n3S2 z*bjd0)hU-g8-JMHxzJC zqvbld%1OaCj5|qWhbwx)qDXWN!zNnNEW47&U70V`HD;7H)fQu%qwqCveeBa zef`IkT=Z>J(;m1uTJcEeXurpc^!BJ2s2b~04Y-SS@LMX)@R2be3cw;AD0$GsAHS^! zcl0fcKrkTDTj2&!@!vj{2VO&`2!XQ-cH?1uYwU zMM>U0xMLwsXh;P1;8)4WRrl>tTg8|Lky9r;iJ-RL%tO-?-`|fw1x(|c6W&82%Y}|j z0ZTcn`LP~RU4xI1+O#Vvx0+X3W+m&0MZ@WTnu{@n>ru~M#NZ3x<_#=j@+)N+_Q zp@Xz>4!IiPU|us`LkDx32t;(;IJ64C)erhD)J_j&Ks(KSuvR}-=s@;yMte12Q z$za8boPxpn%X3+Acd;0bmP)HU2>?%9qp)_8juMGwC8nl_lniaDw z0IGvcL32RI15dQnltYuHznRU7ZcB^ggn*OqHRk!`${^7urd@vN?2l%*8$C zCY&JG=KWT5M-zYU#x-}{a0KbwqoNzm}3ATu)18gmc>Kd{30URTh_P!2p($L1b@ z8pv$CD~pI!%naTU1<9Og?VQ^nnIr67`kU4`X2<+moC%24>eHFGp)eSHZJ`aK`WM5( z%2@8?iM52Zo}YzSTDBQ77`)G{z@&ZTtD!mQoN1!j>0aI|&eA3Zg1L5YgL zn742s^VaOwm=BsDn8RdVLJ9?QXz;O68a~6ZuDVNC2y_Do-6h>^@RO)a7Rl9nc-Fn% z+p|bRgQ7STHgy@Vq!|Cama=rB)3hV{6@V-M6gi0VH- z03cNKoh`#VWy>OVgihEp$OwP;6U3HDz{VjXeCah-m75o#IK?~P`Eev&i4o*|D+@XP zsDq{|Imsx&qfw2oeV4}`9rZbx%LO%B43CHUw}e~X0Bo6@@VvX4JG!BV?v#6&T$*cj zr!NOT_bYzZRswEshs6fn?;3#`4_+ z7zddE>)6e?+I*6r#WAlFN_hRGS&Lv2gpqVS|6Q{t_^w(13rv92G=MGZBV03|UIm)< zF30%12<~mQZ<@9Ke=Lskx(>|Dxtes}H0zc$osETV!JD!ZJ72%HZ-f!h=6#nOV?7p^ zN`d5P9xpT(&@`D_ws^;zYN81uc(fGKwIkEbo?<-Xku!Wa_>PpFY-u1|FU~>jA)& zaTf3Q!&kI)E~_+zk6E3jDwwoa5xP;rj<%*|8=zkCS+XaeBq+dc8p2+VIzjbFHJX86 z9#F6I6OLU1AL_z;Gxu4n(~W6%Jsy%p0O~a}8KPd-M}r4;=e3@e5NB=aoVNsTkfJ>F>`;gTs1OEch1hgZBAM1kE`Bm~4cqaljgr-DgfF`uvjsd+A zo2l+L6pza;T-s!`OguS_QBR%m5NL{f1)<67w(Xg|P$ufE>J2Y!epq^{c!!k1mOxTk zR*FSS89-A9K$G&KwT=9$xyZ8+jcfcc)~Pw4q{{H+drjHgPn<5zJP6}q^XJNWWjPD; z(qpBa_C8UMoD_k2G!fDpjdJDR3G>duvN5?b<%J;D8OQn?u&@nmNBA!OxLX|=e7SZg z0wh#{k>=xKLk7;)?7`*>z(vp#qvV0e;5E^tD{Eq_3fg>?Q; zNss7vqOPh-ex5npE?43RJ5Vd{l$_IbU$Wc#jI>I;(!%FvE&e(;L5At*o_&ubP><}% z;j8VP?xZcLtJ?<#Q+3OL^5Z6bFmQzXyCyWEu?B=lqyt?`HCEpwCNx{dutCkvOWxgH-94%X+D4+Cxv9q zCNcSegEva{GMcLwf_z{AYa{N&Clb! zZ?k5$b{<=!9+5sR-7V_?Bl~zkf5@uqI^Z5Ua&p%C2Nx&zxJ_I2srk7+WFtr|5YO>n zG$lj=aj(b+^a`I!$imkqZ!(G6=wcTgV{xibTkzEu8mHRGmW8Hj28Ve)(z}Y7*H@ll z3DnWY#g4T4b6F#;6TTawu{FT8k{5)3KoqCuGbefH^;d<8C&g*>!kdBkT<{=`Woq|f z4QbuQ8#JlA)!U>b7^RFJ7u|mg+|27HdO@C16;Pc1 zvI$BVIU88%+W;=h!PL;`4^-8J%UH!iRKtP4f-HH7)S_4xWmV*Ga}*$v&_U~RS#qAk}L(HN&(ks+A-RYVdkvXeYD*+F5uHb zR4F1Cfzv8A_jHp1R|&BPR!zAQoqsZmltq0NRHi|R&z8m zVO3hKin+@(Vz&mKVNw*SyK?LMk*N)K1Qzd}+tUoglbb=BVhbsfnQf$Ve*xCOj^#Df z$oJ(6C&{k|>QM6Q>LA5=xif1eUb`jfi(=Q{>rU>sFMWcr)&7~$ZNsR}v8-yIG1=y2 zcY2fv8G)G2-Ol;EUsyEKglk`U(PDK{rIpX?gvV^wpMl zb}rOjqqf&LoVEPaLFFN^BDpZ?OJ=T-5H}(GcGGF;LY%F|As0sDYG|BKrp21aV9z1` z&QS1YZk9b2?!n_Hq=Q3I^$W(-@m{}K;FG}fZ&0No1K5J@G5yx~zG3SRQ~~qoFY~x5 z5ncW3L>W?6Yxj)s(eLv(qVvJ|7>5R%q0T3%8OO5`2X(%z)6VyV{B;Yx_REv&3_m&_ zOsny<^X1`2)X*0sL!cT1pla*js*Fi7kGojim0J+R16^mRg}gT%6zu(!ePVNxoghs( z1Z)%SGL!aXe7{_0m`k(VwVNcr89ecJXefP~wuLqw*e22x`L@Cg!aRhxl(UBLHHB+8 zHse%fwbeBytqjS|XHTb4`$p`HE!Y|Ajma5Pm$$Jwi7{#wcU+51*pT`gv!J*837nj|pbC{le!w(_66(na@ttRRt401+h2 zVHYh=4@d%zRwv}61zh}4UbkZvOBEUFW8xLXh0*sIr1E-k6NYaOoeHcvT1z$;E1GIG zxbgw3;Blw>aQ0wH%|`vmeaOoAXz{gU?X#Zg_Ro5r0>4@Scio=1L;2J-fTzC*iO{7q zQRpc)OOrn#r3^obrvf1n-1}g!MCQmsuU{1Oe%jlfZXJJJT)k-@WQY0)VZ)<8HkML_F2DdJlH(oqow7IQQ}V`?-(Eu6gc@9AzixK8O+LJ{oq$cKc)ws+S;^{uf`F-N1&665cUNEh7>d1rJ zXxW(qRPkzX0U_}-ip!HD=Q|KtCF(QR-K`DCs%Eiakq|@{{(mIW>l6CGTJgE>pyt6&UrW>Vg zMtrbZZx;oG#Pyp@KJHt5aoJ}Z3M|3Zk8!gHYnzjPHm+ZHJ}7?8UP+wZu0AT&DlP4s zJbJY8l_ytC9h;xFvwniD^DpsK2K#E(6p7@uKI;sG9DuKj;j-e+YFeoq&k*A2Lbjfi^;fSJ+g}C`U_5|qkj1uDXjJ-!i z+=tfhSR^z>oSwOytRV0mi{?LL@jQgZjbtfvV+NBvc8x5f@&_Z?B$$-<@B_+RF0C^) zky*ZET>b2AyU`^6_A*(|mBu@_J8nedcscoy^tR)<%wRl^DR4RIn=k{YZw8K_pu3-c z(-}G68P~tHle%wGaCAu{$@WWDqs*uHwE&ajVdk>H4`3)0X~`DTBM`IDr|lC!Y>b7~ zYtouAZJ^NMv-sCrI^O|zXu6u#(q0&u2~E)`c~`|k4zb>ViG_w3Nwe50zwyU}Qb((! z7gBBYjs{7pR*04Sxdsvygm(hpdn61+y^HkYy*Hx5ehpVh%46MBgF75ws(2Y$KUw~^;p*i;((Kz z?EP$r`y+iK*C5jM^c)fiIEVC2441iMZQiH-oxL|5#!Fx(X^cXyt}S=kFWk;@L_bLg z-J*9mTzz-NoO48Y1D9dkwZF~J9Ne+dUvl%Xg+U1+e&>F3`BU~jbR&}t!QMXycWn57 z7Q@d#E(^};BI8UThSQsu6hLD5zb9h&bLv{TK-%gC`TNB))-XX{B!tbnJ6E@N@A7to zfO_@>^9f&8pd|{zW-m1_5CFbx;LJo6ry7^`f-DlMtv<=zOir^~oBXVK#%}J&6(N>D z27PI=Qa=i2*~&MZchy&+nSe#FoFB_N&;KyT)ON*alkVD?BODgz3o&pC{`nyZ*#b$(0i-@`mCnJlgQl9ZD!L2L zUmwEylaY?>epV^Hb? ztv{~_52QY5JKfO`b}=Y-_6W+Ioi(Gr3Mg1qK|faQhwoo#hopQspTL}kunmTV9sT(V#sP>`3OUna5!aCs}z0o}L3YbS(5B2;i-mThmq`Wlrz z^&th|qhKLH01M%w=2E>F%}Iqn`@ zfM<7ntJd*$$Jm45dc&`%zg8;S5IHuq|3jrZd9UR!p!z8pJCxt5qXs2omlZEc4PXD3 zj4c7lSfiBGaW`683gq{yXJg~hY1J~QXR4VrGmFl))&53OXRH_r( zPMAWi-_Mn*rQoI4k4s6H!KEa|d7%OjB^n(Gn(EJrJ_VKbR$H+Ye;nVlJZvXh>-Ck* zp@kuydxcL5zS(wMa{5keI~#yHdku8P^n&f0P3uxB$WX13C&<=~o@>fpjM|Z|i)$+T zO7%K8+_rx={9^mL5)dT{3E$nHi4`0EG|}-*XB-AP+&8HLBWNa#}_;}>2*6RQhEC@9kltI)!MF~3dBmc((S0)DVpi&idTB?eh zbwH`o%Gj+LSrKM=&Y&+66$^5)v^oyqi zh0@8{{b+A@A)tp{{2m%uNf#vwmOZ4lrJ7Q`8#hel5lYDpd!Z$tblS#I56@ zxV6SLP^lV&qfL?PBA@j+we|plA8F=6EDzgrE*rs~jtab^dd16J5{0+#r`Y?qw=qZ{ zU1;Pjo-p~RdTXurt1|q4Dj)iL3?F?!@S`|hc8jp8o!Pdm3a;j0@I|f}r`juL{e0Gi zzitc*VmZGt5ZJXRYKn0-s54{N33L((qtP#U( za{e+$fkoh?X=x60($o!c7?81=Ys;aWS60(T9VCr57;p)|VL*FNht^GwOK029DNB`x zXME|$klc9~A4$mroYKe7fK$4ZbX>hinI~PVO)%=Jyl15}QE_+H{_gb^L zJ--P?13)k`{!=izn*anO5H}hKD#)uzu*~cxz58y}(*m?UYRjq(rrKTi@v0G>BB^AX z@>ko7LSUSi9gN)=pa;2G#T&S~l2WJ|{vx*~?AeC7IM9;`KH!8^A@~iWw2RwD3b<%| z2Zn1bck)AeTlZJ3v+pzP=7H!(N6o>0yev{7uPl02U}%wj9L8>#PX9sVNt*$(td|yL{-OkW)NpnvUn1T| zG@_3vg2Wjmf)l7->d7{dq98_uBUag$J`r1uF7Hq zA#N`Vs2{2bB?bzP+*d&(`XR-2haXP02-F#~ZCr|8# z3VNXBbq>a?vbS`K%6ExnBd=4eHoQ{52m+9rAc4J0rlB`5T0E_ltd^8w$H?6D2!;z1 z*cu{qmsD3}FM>>%WoJcr7+&raQa78riRlUlj|f6a5iOoTcIEPo{d_hyX;M z|C5kHCX##M05H{?GzS^J%)G>@kKXZEi}G231d7S&g}~E(2Pjz3?@liSf{V)tZ-h|9 z{CciwKlk{&YmB8G<=QJoL(+XnCvq0RkqY7U{h%J8OdQ8p^O(f^9$>xR0!lxRmmumV zHCygf%_gdU9~L&yd4c783!wCkzb7HpvUZ^)GX@_kmXnP+nZX ztF_)$OqLRxi&!0hubQWyp=Y}K(+;UaIpoo~0z05P zxIaW9a8CJDB=V48a6#Ow$-u60HIFF)*;-B+E=YMSJ5?TcIsQP@xj1@!E}vkR0fkX@ za8LP!M~$js1^rIy!lWpYRcFUo-IeOgFmQ76rNpwjoWI4fR$+@Gbg$+MxK{%>{nQ9N ze!}nmh=Ko79yk6}9<6f!t~}}`$heGgn|!_3^!6u*gc;DZD{zkLB`*U5AcDWDX#@O~ zuO_Mb8s9&80w{B7fzo2_L;%#^bmmfd#^U60@ zI!|QB%kYWXtojY+6yt1H!nR;x<44yXt%c{K+(FapgoN#}5<-|| z%Q5c3Z<2QPGtn(*e)?}n{U;^$H%R5m{C@zc|1DN=n9T=?*#qMzVm8_H z8sgW%VUZ-NQ|50U{jl8dLzbJfeW5R~RmPl?y{$U3f#t@x@x#xS8+h)$%#)e?)N+&G znAe$Bb6d~2a7rI``{sE>V!MgB1bA*nk&o}DK6jzgAn)zwZPGPLrScTcMZdN~`cK}i z^3_{PT61aLmod z`7djp6}09xkIyN=wiv)&Ty$g^rU)SR2yNe?T08%PW>UV*BV z!~csabs@A(H(VW|_OOh{7&FbG>d5rSz%EvQ{3d1de`v)1!Lzdfo?Qb-*-bK&)3T71 zjsNYTfkFaE%3dI^em1c=G&BF)TeNM}hZp)dK zU6PI@kz^=uxoPL9SFY~?BDQrE?m*^jq>Qe_`_r0-gIMz*F&ol&u&n&M&ZJor*4&j~ ztFXEk9TURcjXU||9q4>IFVZK-TnfT_jlOc((OS{$#+A!S&ha0p$L=iwAJ^*^5RzpY z==b=nbHF?>1hMR8Oz@&PD}k8loAWJ455_&BcgNts$CdX+>Gw6yg5G@<9h9m6;LcBd z@Bgvt{S8&k^YWtKQPq4Z-uxgB>TF8Iw1D^y0R1XDSH5# z-$gSLz#b?`uV_K+0XnCs6CDTSxtV3#8E^pXLHH4%q&lboB_#;42aC#pJ#Yi;L5CdC ztZMryB?Yku2=;s=c#fN3Z%AP1gp!iIFk-$&`1?ThXbL{?KaK!?i&Ol4sHzG7sRMp` zLt}M1RQ+e9BL5>cVGpB5EvQzVt+LoJvq(7g&ww$V{Mn-Q`KabaA?RSq$=$YI#ND(qb=4Ob!ecE{ygx?gTXM*w*iZE2sjJ|*OIZ-%d-rhOWv zZN*M}(NDj{m`8<0GFx&s8C+Bz#@Vgu=|@+uOm6a7$fp9jOoL8p;>Te5O_M4(K`lqt zW8^q1Y+>zD^MCpL^xddH;JUeRiqX`Rg7HPxooaetU!%aOF~&6i^_nOZV}q%?|4(Dz z0gmPSzTc8cq|(r!k|aeEvg%VtHX(%~S;^jHB`r!Sq_PsFjFgcgBr7GdlI&5)j_mQh z?&p1tclQ1KkN4m2_#MaZbU)8?J@cBF(Vo9d6V9q@@BWDFF6xd{ zWOo1hhpa#VO1QEj=`?V?8~sLl9cC zUw~XIbN+6JVgBEk7S3#FU6Dkgg|u)Wv~UE}WnyjyKlp(u`0!~E42_|a5O@#ew@(#H z;0dT3z;Xu&sGc|is!L6pVy+JoIPrwSE$p&QhEE%upZtNsPUw~VAJ6MmQf@dCT&CC=$ zwP%=ukX*^bp5>8Iu3xZFXm-!ad1TyLL!Ws@GY{k?88<)~Ju^XeRhF(c$6hSGx>N6L z23is#n!#ZVa@LAPTs6mk(@pdqcek&0ZG;LH5Cs(;`_e_g#7-Ng4H&tb3o>?D4KE3? zCIw#M-H0f7f7gzoxLB3dt7wC^iEi2?S@M$WFVncQs;tau6?Y>C6_~HyG$e^_S|{+E z)||)+aer>scj$iE1OpHS+YfMzYW1ESDlT^KiC(UlQrXBkOk{)-cCh``N{B3NsH5|c z*3t2iH9c5Ol4ZeU_3Xqes4vSs#}yaU?y$^NU&aP6koq$F%FEBB8#aa+W{k9k&5@gg zuKtDK>??h#{)pU+o2=e|O;!uwC#w}y@XERTi^ofc*I>%Im7rbvNDBrMpT!z)aTZ)@ zgCuWG-Y5t8Wiihg`Q;{U`(5U-4>|FZ7Y4-&X)RGUw0%wsc#4X&#SRG_6uKfWu=fsD z`<&Wnup;@PImk`!!t9*rpqUJIPG|n&M!^PPgy$5_TW5N*no9$D>tHP!@YXpZ{b}?X z)}jH%Ai*dYrq)#n<%Pje7zMLwz9AHrPsdU)Gk5T@>-L&9AF&NnBo@I#wMGc!}G zV0D4cov}x@%pbyjYlcC^s`Y~CnCGvz24hFp<-`{j<$`b*&tkhw+Kd&=7ane$IJn8S z;VVn$?l0|qhI?2d!iai*iS7*lJ`!=m)MR3dDA(d$`t+X6USYM8iIq#=A!iH3Q>d!y zE)U1&T0hj5HlDa;GgQ+PYI7GOD%?Q6O}DnZkPa3gzhqSL@$1fI z$4>d7*m{|#>hT_nt+KbC!=fIQQBf8;AZ2>c1BOGydM=q^EoHneZb>TR-F;JEN1xtF5>4Bh zsLbw=aywbGs=#OQi*U)ymtJ0Q&smjuFwvUp^G#lQpS7a5*`$l#3;#iyrg7_&-9EvQ zsLu6938$*mc>-yCXKK?TUEE5BmZ8wNjW2C!v#+%8y$eK{W&zN}WmB7|GIPj6lZLNZ zD{)i>7T(wuNK}bW-G#HD$Y9UDzZWYjEDwFt2!40wIB#lyLXm>0(08@I$%gGRi%&n# zZ>ta57x-H4cTcDKZ;3yF%^5pSU+op2_?-x%rl)*4CS%Ras}43^9M*c(&jT9YS;5^7 z?~8TiuL+gZUouK_zc49s;%7_kFJVzBccMYD$A7r>sI-+azX}QmVzS?yTx;e)e4(&) z_e6GQ*O&F;uZq2%?RhKA$p!{IB0@`LPQJ#CuVMwPx#O!fH?807!%4=^%8V4v$c!wM z`74V)4PktBOXhyJJ&1znEoRPvHHwTbXXA~-t=|C(f3^qMoX4NC?t%XRb zn8F~+wYW!YySHRWH*{51ja8-#rmKQx{OXww;K`VFhKEtgBfntm@RUYXgOXm)SVyy| z48z90szgwzjKvfx*99w0pj<0XKT^J8C~N1+hjizKAlKsTU-1zXDnB=d@Y5Z)cA(RU zNe-zw*RX*R8(-zv-Pc?b`03Qyo%=O=4=8Tgyg;afj$?7V6wmnyf9FQl*yEOg+d-^L zGwORB*zj0N$9die-PVvyJ8YL*L4P8ZE$hRn_4z_VaaMu*{72TFck6jQ_LVL|c70jC z0ye;ENwfZ&5ZbSC%S00 zlZDvrh~!79yZ8E}*s|1kfuINVqWy(Ctd`s0 z2Yq0el~1AZ6K>Gw9ZvW(0EADCS8{>yDP#U^7O0D&sc0C^_q9++%o;gTnP|HataxTL zlRhIilo`z=_L(*y>(EnG;8m&M2YpW2pZ$GL=>)?EnMLtD+*lhhSRBfta!9xG1vne# ztL#C}hFlo0iVNtax}6i2Ho-|PFIRki|hliOhL+QThPxevSGXCP`<v}L=uxYXcj(KIVY^#pLC^w zScTO^wZnBVVpT$PuO?WcU=@cOCC838@4b+v%rlZy43~m- z%_5(zi-b5});@8Ytm?-V+bhza8Auw0tMD%#0YUG#%58tP)#rHaTvEH&y1wrq2kV6f9-=CN$sH7AYl5rVM!GIrd3RX|1 z=p#YzN7yL{biJhoi{015Dd?LR0H>f5ItADL*!n;~T+=#ZGZ3p5Rm(~tLGPQZ!rwl+ z7h#9AYr_93uo?5GZcS8!Q_w$IvwHRvbpEia9+Iov%Uf^f$+6@wjbwXy%cU`AZ*3cl z+gtIBdnPaIh5^X%fEK2-{d@&e_!RQy>mvF`(|@+aK#%r=1(s4 z{F!#uu5BRfed_xVjs$aN#rkg|CU=5?1e4*fzYf#Y?KtnaqTOG1dCMTS$N;%t3%+2I;_l{fovU7Y$yG!ZLrUiox#(c7f!YtA3tc3n@} zmvGc44@P}LpK75|pPG~To6uNdkI`A0*~yGRn9S&e$&6p1ka}V>D7=AKB~Br=T23`( z-2Ug5cQ+e;=H_;^dam=dfyoTM=bOi5UIn=y9aN6aWkI7pn8I5Ertn5D7>||Q^|IY& zO71q(Q?97wKJw@?Yf&0D<@$>iS04qP?|^<=6OCwvV9{r-_`aZ#X`k7xhq;H;o}3cV z=s#FAW5pV$t1L*za@GAz;>~<~(cKCa-6QNbYxnZa%V1zUG^Ag9;fctaFY#ABz`<$N zkdSK_PeyxX_aLLQ85Bq_r0l^>`-ErKtwIITneA%61#DN*R_n#|RPhDUlP2E1&jg^7 zRoTWn-0Bs(-Hw04xHcwOX3`Lm;CT-5$HHjh7>p(+gcTMh{|#$hm$}it5w!+c6@~=g z7rRMD{rt*$k;7=JqkDy7L4%6}6ASV9n74qoKWa2n=;J_KQDlLVBkXk`!rqLP1tRP@ zM@9f)Ph{&-4Ni|QN(r_@ne`J&-g@_=@xA7)*Q>3T36i+c$=x^^jw_Gy$Qba*#$x35 zK%F2%wpO|?JK6;l7ipg}$I7G2?kcH*MW)S1u*ggru!f};BkF;sM~j)y9ip23yOo9V2kul@M3 z(P2sQ8SU<~xpl#C zeB{kf-QdHb3$Qj$o))xm*48X#eW{Ws26cw>P-loo!>+H?Y1fW3T+Cef#sX{ODB{~V zk8@n1jguBX9HGUsAO(2s;l9YbuLyf_c za~gwFZo8vq8iQHMZ$#^Trbwy`1HWp2QJF`CfWl5dGH2gmY!bg`bd9*;s-&3x^!{fm zzdmKSFYNWaTw9jY#8{u_j(tGL>2*=qB>pQO)gzB8WHi&A`qP;?6?CI#oO{jlgibLN zvx;X00Xe*X*ZF_PGW9c=0&aTiHk?-a6Q?MVb6^(Q5 z1>H7q?gibpzo(JA(G~DAl9}L0Ft1BXsXXp@YT%YDc6+ZQ^WK9x zZGB?<$4hEinqC0?^9XASjtLV*hf|c7XVQ_AlSA~+1~Y!qZ5zPBN`R@^8Ozg!RdbJ~ zqOU*C{I)PfUC!raLpndTE7bmEHXh^xM*=z8a&RQ*dCST(SS9qoQbMCsQ--C=X`bQ34|`u%itM+`?{ya?w4y zE9O!oI}{}jpF4{WsA4^07!5bPWld)@F=MA?|$3wu>P|ZL+p;p^OZcs&OK0@1?s{k;tIRhzQi~x)K7>g3jILBfoZc1 z=RCn$T=>lI?K@O1sLE={u{nDs#dO973$ypsX%yrgQdoLb{Y2?+B<>(>wOkMX&1bX7 zieJ9*1Btjp;f%P$(`TJn+XloP+>9Ttfh=m%6Bw8lMe&4*JA~yE&$mvCJDlzSGBGgJ z7wz)_GBN1nV)2A(>jMK59nFIINM}9|YuglLT7gb(`#r?2iqV4F`pbk5P+Pwc)2uJU zz-3joH~t7>s6StwME4>}oADes7^FRs2ynm#rjwWooMZ|o$Iw6_7EdrR4WnFWVA>TJ z>icfw=Cgt1_oIVj&(FPSIKJty=sa}bwdI?rgVKCa7SDY@t0TBULeb~3{t_>h&MVMl zE@&{x|6W<7l&03sfY%BsTa|*eLR>O?y1HIeT{$Lnv#l%@X@#t@|21wWg+^QHuLR;o zTYVi*4-C7Sjqz#%qOiVOk;Ap7adjv_e|-4vf6i7*i#l&+_nL(L|O7(NIX( zPFh!&u(q%yJ?#k9{Z7f!sL|g!7bLr~{o2b$nyt34Dhr+uhB!M5$R3*%akf8lUUTWL zHHSiqLESIWVYW{LOuf%CWW0Q#xs1=A?mSN5U^m3Pe9PkH6T|y`xSzJK2|$e+d`hmW8t>@PzD3lhp`xUuI*@jZ_8Ok5=XbW% zJ*xACTEBDYhCdm1NJ(@Vq& z&m2gCVA}hry=Bp%g$+hq+U4RSH@>i)+LgQFG7Tau)K&f*$s9GTPyMNE2y@b^!c}W8 zoLX=9Ui*RjL2UY-zwt^^lK&Iw^3B?7B0L@<+;tu#_Y5w64ssDE%O- zz)9MU1|p}PQl}s`D#xO@sj(%dDMA`~#1&B_=;yIVj<_N!l#ME)RZC?)$}Tm%!2a2x zc%oYfbRS;eN29N7c@Z_Ec!aNrA~BIY(_$i-gkmC6s73gs8d`+m(8jUB>@q@cteGPw za%5IaB*cLUB##2{x{?MQh%EDSORz-mU{e#;A{2p-K^yE??3n!+oNf_*sE6*eAdV!O ztP5lrc^p|r=$~YnZ;-ctOHkW5OO|0RI@weisrL7SbdXY|=uN)s`Pf8sgk#Lw@-LS} zpd#vT<%^5G?=cX2ma!EcG`{nDg)ffP@!5F>bZ_5zXr+{uBDZV}$AF~Uu=k;~uC2X4 zo^3K5Fb-;K{_u>hvu}J<8tr3uK0xc49kjk_-*HOiOGD)<*Zb^+`j7kgw^}{o{LuU! zRj$0E8tON^x?9dZ;9$dJ#yxW74G-eVsQKc#GG(qMyDGmG+j8Hk5H1Fl8h3#w&fVi( z`PL5?PUPrxj*d97p1RSWWj?Ny#Y&iHarvmSFM(~0g5(i}&JD>x#M|d!A;uoCt@H-k z$dC?hH0a=_ZS^$(ya_%!-IvsWOuyoWI-_rNv2X1oU-Y00XGGum18 z^Q})uz=Lj(tGUu1^nJf1%P_>8qES)h~wngq`(2{>I;~# zF*VpM(Bx;7i5z^kml;aSy+{Er!>Kb`1=0_qR}E45i=fNw#@;LD7G{g@hC@XIAvEs+nM0o~?|tM|IV6;8HOM;D9nv+h!&JabGZaHtQcr-ht5N7n!NV4OkgOsW0*#K z+3TaYkc)z`4_um+E6ST48@dfR&nsG-?2jwYb%?`uUT;(L?Z1P#@fP!bYy>@AB(q$ z*V{3|Y8e)Q91R0Y9l(&ziRIdGi#h1}!GXBQPVN)TDW`aM3;t?l%<6X;$~xHox5SjT zoi(FY(v_7sSGQ*CaoA5ew>oZPU`=|$5#?5;OVmI)8Er``Fl&KaZH}lP4&7ZsJ0(YY zI;-g8WVSz38@D}JTvSw8Cp1^nj~kSe@iSVp%E_~GSz?j~M`a7K%2bq2&@T^2)bBsl z3SJ^wl8hJsa0w=s%bHeBzNHDim~%w^?uZrrT0SjjiI5{SmgV@tYyQARy zZkz}W!ycG}7&xaXgytaHWkyRmjjwUlX3F+01UedU)|Kp>CgU@zQtYb&-|hq2UWhrJ z823%hGf{-AQ=Z3*KUg4aySleN5>K$guG~xL<=wF5Kjm{GKgw%(iru#ieyN z8UE#G(-Max&+ZtJLS#^u$r|NU5cS*8oi9FaB4BZ1eco+|%`vpc z{H1ex^nwpw+MFgyQzEYtQ?gZm4lnDgjc60>e$`Zbc`)>P-2-M8^A*y8h4$bGbz}d5 z4V?nt7X=X~SH1#Ik1d9%D<^MbM;dWNeVgx>7RB6?eQEo|yZi8VOHW2?KN&r{s0`!HN4mciGx80g1EWo8g>c$ts$(sjG%lCDn7AzhVeg8>=W9MY97nldeBJ0K?F zJn1-~Kd>B#qDL?Q;L1)S}B#pY=rRXMnP z*(fh^v2&?@`_jf*qcNPNc(RSo^><4CpKnkEjjF_opso#%KEjR4;Q%a-=$COjrBb{K=9=B^%L)f7;t}-Chi3 z5!J0MUOFYB82SS-#76p6sH|&yPR88Of>7GF#3UGXl_$8aigG5IJX|dMrsHtX4$FbN zn<@sM_$Nd)zm;(KQgk8Lf4nE8LZpbzWB=FD$PU5Gkql-Zy_3&yC3QsJlbm53&yFis z&WtOsmaLeEq-}w5+!tb;0^?ifL%Y%V7Kj#skzM(17tQN<8aqEIvc+%B2VN*2@IoDH ztLuQgXEGf})i!1LIC8YHAME~H&{u%Sdsh&7ud}}=r1r#l{)BILdt4@t;|RxruTuQF zusCuto{b~=%ChZCpaRNPh2rSY&c9PN|;n(EMTkI>|5s)FbZ%`~ZLZ3p%Qp zde$VUM+TM#*qpx4cHQW|qSp^rmpSGyeQ2M{JWRv4Pw^-&lA=%~<@wji!d4QYTHn~w0EaN(@9 zd+s82^@*NVr~7xtITp5a`2SctRlQ}jJ}_)zSm)k_@9l{)VLv*unv{HpOx%_b>ul@& zh)PDITNH-hrFAXA4MoD(8k|`{tAj9_2uDkC-kNQa65z0tJ!|f3FSv6~*KfS#fKic) zjiDeW)3H_#X155G+cRez>WpR_>Ovo<3MO|x+YQv0GeCVYfP%VDe=-!*+rHh_yX7sv zuxdo25E-H11-BQ2!wy5LvZ;CWBj>7PHMeIdRc6KVX)W5NO9ZRRt}6%Le00DBzybOf)UD%B{aH!2e0qRaK9a=n)`O! z?n}Ryl&(B^6sdH)=z9E3$%$#wGj16RzL$Ir^^(8qeG5muWFy)hIi-p?_0;T_A5_-o zq55YKukFYNO}7qhhdUUds;3fHQE#Oy#(K#QK)PMO6-l=vulsApz|{M$f|G849ShR! zM;~l2cx3Wt{Y3NbU#0eICYIJl2T5meAnljitQ%C(Y-uaqCy*T7lVUoxKW(`7#f?3X zor~P-{?Xs_@?rMAw#vzt8uzM^qN)RK=|T&9iM5iYELroZ)DCblC2nDEW2;MSI8JDK zSh`>NQtf{oJIc%7DnEDSd=mTQPP)X8$?$++nk5jiwD0z=_ z9Pjak+JRA(@bQ~BcjN;#QH&Pn+M0|?>LQIRV%1(A#WiVyj~|oU_Pz4=`^P|APhL2b zZuEOCSM6bCUACK;8-T+4tK&;nyW6LvVI}pld^^2oH~e0_%*SWxH<_l%pG`piJSyx9 z8XY^iyVH@J(7K1a>UiXV{ORN9J!!@WUj`5aFbrB4ER)8$2Wsr~=uSY2GJ~^_%^8 zex5WqkZ(P=eCtQ%tpd+N)*uV}z{u2f$+6fbh4^{wz|ZsfV~6;8IrvQ~3Mcz=b%~h? z=GH_YP$iB6Dr$4=)0HiIdon&1n5?==!Bz`DKQ; zmyi)~v}m(`DO_~#n=V_%1td_FB#vwW8eBxKZ~LobpWRrw@LjmJ%V#< zGD%Lr+?udWYVta}o9jK;q!!6MPyv&sP!GEnI*zODntOnrhl){ZmcHsB=)OJbdkpf@ z%z!pB#`>%o3VpsY)|U406|cSC80%Aa=N~q;abSIVpiL@ahV{vVXML);u;W>uf)$pm z?YkAVUp{{G2FLpRs@CUr227e>{$6=^ESNIddJEGj-2gHH^a5j_Jbp};7iV09W*yo1wNo)A;N9o+LL3 zjX&Sjj&9a}M%()mn*(R`sraU@f-8C19;8q8a~;l=Ttv@eaZGX5UCh=VYEo};76F#i z76Es_Rr>NHiS^uXV3$HQDdZ|02(Hp=qg&e7CaA|8aQcehr7V2E!#E(?rNs9gwu7qF zM-8xNm9Mlv))6JTY${8gW(8iJDjUgDITs2ifjrfCX9F4rtdMnBuYM8@14i+i^Ihex zKk~V!wuAc*_U>|y>d)mpx$SY7xBZjn zO=6!=E7|W_8>Z6l%Z{TF!H?VP-;-PM#(o}KZ-B}p|26J?!E4r$!4 zfudgj%C<7p{aVGQdxtXzkG4*JE^;W!ixCWB>t&oE(s9%=9X)|coD`gXaod!Nu9+pZ zJW3ol_n^5F?@_)Q=TYvwRQ4FA>7KJq1wxjUdq>^d&`jCCyhK zfm^O>Qi8W#p_%|Sv9Ecz&60OL(fm(l5AWeMcNZ_l!IC?Dd&HL9M@9op5zjD}%k^8H40z}i`q1PG4Ut>80rQ-F$aN^|W zF9(Fq_42=#P+lKhx0$yopTjg{xA`k$-z^~*?ef+s-Ynb0d43{TwU_oOQ*iNF$*+&C z?zXCxpWCxsC?ve?#3C1ZdDpIVTRO?1O2ZFpzhAOB5N}+sajtid?O0tcgU^ek-MZ%w znbLW3D+=pcfZs$Md$UB5eUsdNd#~h=EelVdXbumN0ap6M1DQi7TZLcmF2z~>{>EAT zN>qD|xm(8TUv*hkWAyyf7WeK`qrY!Hg>KOd*Y#+z-AXRhGiF{q#{0Cv# z8$tu$)pz?Dujp~;r3()3{6=c^d;I1jPb$;OxKNTeFtk-MHacfZ7*B-TlktB?kmr5e zGii4<0{Oh>D&-DF-xU2N7DY=pfI}e&Z}X)YFI$Z_y@x)s-M#F$xH+2fOPEOj!5mF} z8A%fLXPZtX#`5gAk6B+f;}UbcDC6=OQAQ|q9>p9Aah6If&gXxyyMxpj6gp>I0&tc} zFjzVciMa_%%$auJHH0?0>>V_J1BrQoE}OYn2mem)B+UBq(ipN-0_#h3=5a4#zXU8# zWPQ1B>bgsrblN7+5K?AO)B30x*Q6ie0iF{`K5z4@9ABjbyXgC8ewurJW|M{n4CbkH z?}p|f1FmsexizMD^{;%D?O=k${O*!L7*;MRUNT&jHTFZ*E+(LRZ|qB^t5%ANCN+l3 zRWq*KsZXms-Esv;o?oxwvnWW+ox!rarI1NS7O!+>$NwXH|1H0DyE%(+S=0&0qEsO< zf4T7w6H3hQrrw&oZ2nhad;Mzo*n=!;gDRFqp~PGOCFU(?S~(Xn69^LX*q+QzmsV3S zRXR#4%9z;PD1}UXKSC#&jEM<8F}Jg^wJ;-yD8hp0a(1TZ%d$z4+qQvK+`BE8Uks)S zRb<#$^juOYpDGHi{kntx$Q|#nqN2{u!cMbN)Pqqtd5N#Va7mMGaP}+wVAg+hQf%w# zd|oa2Q@Ra5m{qT=HWZn26U)j+uk<3cvQ=7{OGlk_z( z=WyG<_9mKhxZ!DI@+(?D-bN!P&9cf~S!kQY&fV%g_V;mT-X zAf_TReM0wLdJxG_S6@Ucsahb?bddA(;^EhzOU111tgRT@en{N64p7gdzBHs0E*-p&?Wns0Cm6`RA*)mE85dJ|Ldc zdxA}cZJhSG9j zKbQ)9hYP+ZQ2acV7OJ#7KZb%(pvQsvm}H zr6Ks1tH5q%VEc4{Xoz-h&@cks7EPU0sL}rm<&lKl-l! zvCVQljStf2^Igzx<}b!{K7l=MNBzjCAJD8cHJZ|2In-7RIv!^DTr1f3%5ZR1t}=9# zH$;T+ZL|YL5253CX>J|2YDMRo7PsZ$#;U;Ipp(^IK*Ty@MYYZ zd_Pm@thYsv!A~{ek2dnPD|1}87OE9N^%fF^>UJv|%@$pr0?kzdgphyxrwAawwdqWi{y} z2OZ_hG*?cPmddX^8_UwWqo<4RH|P%iTJ71BynEH^RoU_^-Pxe9Eimx8fs^gN%=v~c zTk|zO+v``tn0#S2YmlOr*zmEwDErV!<~v$yv|=~5#tCWW?RcK^ZCEG!9Jg@hScGG6 z|KQCPqsN6VFBCfg{?YkoO*ryfKlLRyjY*eS)I2?V=t-tRUeR!{{Ws6jUy0hfhlka~ z6t$tW8$(Yp~yDhr{VjU$o6VXWIMb- zf!hbO9XN*B4yeCQSb#*fiEIZzrlDVE83$gbfd-Q}MluaH(=rXVa;g=ctJtujX=C8i zbkBYXqp0>&B(hzKiEN*jJ}56aXXLpRs_)ab13V(&lLse}&#k*D1xgJyiaz=tUePaHO+RS;{SH&l?7V5rXzH0eKk(abwIc0x2`Uba z31;!un50Zy7jMq-=YL{0i4_NwUa9h&)@i7;1f7QO>!;2nZs&Q=Tu{SJVmFk!VtT`+ivLuox^>(Ox(g!Pma<1XkjDFI-T2}|xM`fH zpz*%TfPIzSjdi)_Zh-!Wn4UE6TVsQOhqvE={>Qyfz-icAu*YSs;9qRj>HQlQ?H;Vl3n!M0FzzMbkD-Uk{5|gF(@c7GRZbTmk zd%op=;)MXb0Rgy`v|ul9p{HwVK(O=q>wxSGQ!a>WzZmqFZg|N{|MZ@$sjUho5ON8+ zK0!#`Jwq{y;cuEvNK(>ij;uv31v14GwKgxh@_26^zxr@5tl?MEe!RUP*7@_wYueqkIWK7uW5g=8y*Vc6aWtJkaDc3FRed6r2N z3QU@PAUo3tV-=NgH%wxlPRq``26^}1$_L1nC%ddnkjGbh^JbU=1Cs%m0^2c_S0(;@ zht@aXa81j**KKsJ)^b%`ipDGH1cd7icuE-ZM2yF-jhbm*n!1s4ctiu!^_&0eL^c=e!RCU@IKF~`jg796!4V5b9KTsY*H(9K^rfryAkm|V(9EVJ zC9g#cTxDOARJ_bX_LodBE_In6nSM~*jyYTueA0ZqkAD7S%YmM{bY}+;Jvxb(W?OzZ z*jMEMFR?URu;#QhoA084&78cLe^02J?n4pbu(rG9^WEGXZ_zaVMUuRA6?nWvgw^um2*Y4CrFXr`@tK= zH1xNgD{W7OzJjLs!Tyn>Q091*@L{7~JVVbdKN_J}fy|t1$R9WgAAY8`;5U|yqYwt9 zC=9EJIe52-ZvS+s855=gkL^cq0GMeV*o2obA{vcQCO#vr&(0-!RL(c>3@#VOO)yPsSE{ zWa#bwEF{EfbvjPzZ&m9=skvZovCpSQ|En?of#Sp3?_L8Pn}O)8vUY8#j2s_~V$?QC zmelVsWt8H%f8yqgjmUQFDs&+i`#x@asgSZ9M)LV&%uWh^G0D;^aQKvdLU^dRHT9b$ zhhuH8!LPbQ#-Uo}nRbUoTTD;O1Di1S(cr5Fi~1L>Z%e*pM=(5F@ZnA*|ib`n=yHIs0yJeCuzq!sO-mh?|wcHulV@*tVDa z;X50P;ufYB)^o#3|PBfm9X|$_es zQ@{@bC89x~`L7uE3^RkC+dCey#oQ2+@y4V#_)i}KsOuGb33vw2yaZ* zT8X}9BMX^|@D_@FPuH`YL5@H7m;!MMfk#0hkdaxkn&sWOgA>}_`9X_-$0j`v}0$eMeg8)}x z#72{~z*JqEpu&YQRktHqHw)-CRkN=u5DILoq|YAq3G*qdMm}Y0=^xtX(f84= zEqnuCD@WMkR82M1Www3is?uGIETw4w+9-YBoM`Lr+2-q&1x97dQk-1lcrtn`&EMY0 z+zS%kA#tl+fhz4G_QV}0;hoT{g5`Fg3z2KdQ?>JE=&P3pGEGo!cc6}`v2J*$_u|u8 z`3+%jRAqnv8Re||6e^n`*X>#Qc7=Pim8<2;)#-a6wy-9lUUN8Hc3^<6tfp*4%I{d}2e0?5PjBcrc@(L5 zx1WS>)=m51o7K$r#Q>9a>>Xy?r}t}^ScaY+x6(!5tazW!oN~HJVH?I!iQduP-rCP~ zF?9!F(*m=Bk;s!{I$UX76%|)ucCod8Rw$RX)*Z{-+*XHe1ok~No{%w5a8=vRCHn($ zR%JMQDD3Do6m&fwE&C(44;`I}m2Y=fxFUvF=V~;*xWZY!Pw$e1wfDmQel_8@w0)SN zqQoKXS2T7uxf#Q>hM&Ik;#gve+{miTI{CvT9Z2BVyG^2=LtH7X`q`ST66|+^-F(-8 zLdM9g`s(J_4Jd&-_j1?3o4w~fLPV!rkObGKyC1xg_WNNJe5Q%hGWn3eG2?xq&H@km z^cg0}qh>b@dfy!`+@4HRt5Cahqg>rO@EfSf4tsd)1bj1O-}qEEVWeh$>`>FG&V=L# zXe4%%Y})vEcmAKGMX6qg+BA_Z)G6TLXRfan`OdmCKPFE^wuH4NwW%kTC6iq%u)Qnm zcd0FNoFX`t=>*n|)pCD6!%XZFn_D9qum}Q>f(g31fwirHBjIUDSo_^7iL3oG-I-hx zRJY~w>%jvW6?JwF_Ts8o?YHIfHpFqw7aIE_WCR>nFhO5^uVMKc_Dcs26*SJ6pih_T ztaVpzgldWZ)7w*x%Cj0uKZfbKmkS5|)CvLVH~3gRh~!8P7Uiyj`Om%Iwj~2yn&(l@ z+6T~@vIOfC-PWcLb2zTwlT6$|@0*pQceJgo>vKsA#&HGmeShToKP!s5P3+S3zNp@J znFN;$MR2*e_DZn%OS7p0k|W^*my0sY<$~*=QuEGImy4PO_fTu&YL7DEZ|AZ1M z({;2z;pYOnbUaiEl;2jTV*() z>x}D4z5ehw^m>$6a9oa2X{pM$ZK^|##}pQGl^t-(+HPgtftjY9iFRb%F0-%u_KK3s zrSJU9myS7@9R(NkJiH4!_h=b%K`#dvboHihT^2IAda{)Y=3XF_V`EW!EkZYa1u+-HUcY!H4TMlT(8RWpo|4E~%+8wNTm<7zw0T|WnP7_01|2TM zlis?@UmbYTggRXQIG%K_hwPJ8!=LaL1PZ!OX9i`t6>Sdi;acW+O=dmJvU)LCRzKlv zS;16+Sysbbx%HlB{V~e}_!-$qn33Ik(N_I&7|<__TIG5kYdx`bH)2~J79_&a%FiH1 zGg|rex0XYig_VKYQq>EYdzPmjXuq5uZ<)>pTUL>FlZ~-4Cv-MN-o@rEYz@|e~0|WYtt~geYq7zx1VfuwDVQWjjOIt^ghH} z>j?A<&Kc_Xz3k8t?sUo;ySwM2ziQ7S9$&Y>>yKbMZcj)_!=O#B#htUF^kOKB7VewLKlC`MmOK_zK3#oQj=f zDi{x@D;TL!&pZF~T8SNmy>ex-jiMz#57d@>yauSfhR3q4ivP#rR3IG*rh}5w~XD_>zlZn?1rrPIov zQVy8Hci_WqH77Pm9?N{9L8F8mJF82(e#GT@O*?jq`~6N`{mx|g>!08$=KEUT+--SS znv)CAImjaK%-oyCTCB@yn^@m*Y7OJ9fg^AZ#^o(mx?uFFucVnzt|UJ7+O7Kj(Q5Om zD)lIipf6=VlQdu!&0jQK(AP;lYZq}M)_c`Vm-O4ltDV=GGwx4|ANQAEVEm}UFG(1tJ@`}}evn`DY$;+Vg0g(*PfK&k z(;i_viKacI)|I)$tUfmH^u~_wm@{2FrCn^Z9rp{Q0&cRU+05g;nUZ|kFR-*8-tLi- zpUQ!xh z!nYbIKk;JX_0Fud`<{%+vFT3M)Cmd2Tea`7S3Dk~G!5n1-)FCle&) znOk^5q=AHi`<(Ens(VP~ypV8f#-AW5&WC-f7qFf; zukz8NdF!UZ;NM7(?eG@}@$^k8fK>5+Svms$M=r30tpp&xcElj)DxuwLtOvU{1-K1| z*j_RLR4@r#zCA^_<9z!lz?~?6Dj@+-V(<*mIP>&>ksccy$-sf^kR?0>Cp9NaN)KVb zL}8{7AR^A`j%hgfH`3#g6B$IcbJhmB`pQ5Sv<5XJ3ab>TqcP(FOeB@NjR14AGZ{=7 zb7L${>})9D?W)j|*$;T_@Y_m&chiLm9;HhzII8js!EJ-(Z6Sc0awP|+go2pj;s!>Y z+BO5)2lx@9S-F!%13NTxJxXiypmqHH5|Cmb`P=|G1W#X3u`l7N^vcDv>}xq0N=uI>+~Yw-$)O`%aj0BEe-T2 ztZ&~MX%0Dnl7UA;7=;N}$iN*jH89s#g3#7Q{6Y$t6=P5Dode7@B-ecS8YN6AT|LOh zC;&F=^I9DPz@M;4!fXD0oeZF|v7>=0l{as`g4FO1fGdX|;WN45O$P3Wv8|b|rINM2 z0j2f*`MPAO2!L6_`Un9VZ;%00*3~mH(5D7i#;nDQ-s61$xQ*Z;pY|aGc-Y!n*NGb5 zfI`tpw0pS$9^vj)c#8}kZh`W;P8N2Q!m#{~j`LA?zG4i-m#lJ|93pxoRO9;bC*L}B z$#wACN^r?P{Kx>}O74_**IO+-dHewN6MlquP&$AToQkfw5vA=RRz&Jm7+?j!H50xk z>Gvq%!DelyYi(>mX?M*pkSwVJ%%xBZM!l}-|KJ3;PX<%XTG!mh(7;;!oUS#zEx;SM zfhiYC;C+g}1rh;#1?*>tIWYZSq(|OEGT;ijw${du;uZ#mhQ@lv2IjVua4!}exh4v@ zYax^fZ$wrw8C>ym))r>Es7*{|!{8DwWsU&MBDlGP59@F!IZV`Uv9W}2HVXU2hkbW+ z)&m|Vta0=7g~Pv)k36D;M**s0wHeJ6{GYxCI2HmZhj21bQdnG4!0Mq@|I7r-;L7RD4)FxCZ|ua5%MO@Jc2cdAijprn+kV7=#!X`2MBSisr@|4#oG>EZQ^ z43-M;u_)ZQ13=QB2PnxT7nt>&43ZQTsPxj%`C9;n^ei5aCIh94xDpB$`jj4Nx^El{ z2f*dQZ_D%r!oQIoTCrr{q(IGt3ff`!ug7En=@h&KgwggsjtrWr9aaUQaMKihjbnEM z*lqyZMzA!gcrsu(nP4huM>@^KV?n?}uL9vNlJJrup0b4vHr7CCjj?;mxB;&keuSs+ zo&++Os!lex24-rg!A1cv!=0Po2*BRLMH2!BCz1h_Ft)KY)persNP@+d-#P+-Xm+1) zPnJlg45$Q0h&d#}loKxg>Q)wXc9y}9@NO2pCW9+ws%vxZUrF4qKUX;B!8*g>{2+XJ z55FOUc~t(etu3Ye=x%CBg#!LYvJ*s)YbqHmX=98_sbXMbXG-ZU7AUsLK{?zX`0XTs zq<=>SQo>l*)WS&0*wg@iaCB05;wt^S4rv0S2wXVfF5{F=2KDH183_tV#~rhzcLEaW zml%B}86;&32Lo$rpX{9a%=@+h-bPs2HiGN5drt-rr%OX62WA_4>}3piZGcCZ5msiA z!2_Q$lx&z#LELlHeq*R zy0Nvb9Z(6TS8ZXZcg|8*U&6qK(s$5@f)7_$!XJ16KVE`AkdgQAKY+X4RN((e2cC?9 zwJR-~H;;<|p5^1e;i&*S_KTO;z?!)sbt2rOR(&P|JZ)z}IdS&8ovY&mfWz?K6TYi? zg_HqtY%B`z!qUv>VpV|r2seOm+q+lvFGzXavj&tZMhmuvXrgUT9dHS+o%btcTqI*i zVWF4b&z~m@fJjoBaG~KPlmU+z!?>Nf5tUa%Xz!8ZC|^EEOT0g`mHiW!!dhR&UU7&A zyfQf3w-7{>YXuoh$UV&UD5oASkKP8Hgez}{RT4h+^R;BqPy?kV$Hp7qbgn#~v3@A>WpTYv=@(t&ofrp~E zlKAU=Q5zX7oK_6wO(^b&c`-^iSHsOCe6u4u$-s$Qn3>^ydMT{0IA-B8ROX5WK*GRb z>?Q+Qb06h{=kEBn&%`-4Cx_*cmg&F3kPa|V{{vDi36Yn01`$bS05QbIRht5 z%5aVs2Zfc|ZwYd~4!|i3iQny%KU9FJtyTKMc}Y`%9DubFW?z>E$Uvg)LK2N6n;TI> zok~fvd<>|IA&~YFMEU+f>Zsznum$Tw!^4IezQF-&@l$|*1y)VCBkdTbfRAl*)G%WQ zAGI6?%!4F%A`hAwgsl(gT44LfzaN>5^SB?nznkHa5#C>gF-oX&6zM4hLdodLpRRy< zi3D|OoDwSTV5fEmqI*i{epc3v)AK-(X{2jn{P->tKw&S~<0Q3%k627l?^X8L+ zLZUaLPE6tA|I)75Z3T!oND%ifAdh%N*VL5S8qK|zEzkwT^?=Am5U$M&$srqVM;+aJcpF+Wj3ao@7ufB{7C_a(>*HbUr#8+tos9OM)Fr#B$P8s#zx0Uzz z%PmI%R~&8uA#NcwXGnsc)Sr^VU8s@P>PG7w1KiyNF{QPFGA@BTAq8ai>U-X(zZFPw zCm7+ohti7Y=$lf&bq?&jp%1t_NuJx1)nssqZOJI0G9GKWjkeYQ;64y`;}V$2ppw{9 zQGitxD!gt6u=`0CE4-ErEU_yQ1=P*QcgZUOsw>H2yVj9Gg;bBwm4*WBI(@&zsEzg; zUQ@H3)qfIx^R-H-m zY?eWlhU9G`6rQGlDa!U*=pkU9fQx1$SYk388O(pbn(53RO!flc82q*p0N!RN1305U zOJRM7x85~40Z{0g3E`%o5=U~)Gb*GM;ND+8=sOQC)sv36(GUQIGZHvzC$Z*{f*g2? z^U~o*c;~*tw;g$?!4=AS***AJM6w8R&$e1Ib6jARo9&|%AY zDwY7c2^PAIAc(F*!HU8{k!BACJVxykJczNNOY(#cKy*>Sn-OlI0O~7PD(?-Tzyc%M zwcm(Q1Qo}GJ18Jl++UmI4~VAl%n8qd%ZDf;;?x)@AUcfvc!;`UXr`GEQ4{hFk_$%z z_Gj&EbZjZtDsEg4x|{-tEpXL@!T$3I1w{SXk$nowOlx5Lg9u*lZBXRiDH?pv%M1$+5m+Mpkz-#c32?5Jw$pil5<}DbC@H+^A z%m7H3mK(~G0i2z&!lgP?sFN4_1fFaLh1&o_!q!0v*^OXeb0UD8t2)E(@c$8G2soY$P zwdZ(HQzsjKgh8sLMg|i%nM7fI{%K1Tc>o6;uzR zaN2M;37c9BkY|xxvIbifk~ijZD8|{zVI_Kv!yHG59Gs-um+tB#eR}M zfL}9(8}Mh~w9^Ox*}}O-_<=rOlMEQ~cm)O2XYO)`(3^#(eF&HM-zjpaQ0O~r;Yb0D zQ-~uFa>sdx0gNy?N;^#k3?c_(;8Q?rzj!+Xa;kY9@Y_ZZ>|1pxpiyPGWja~zL_2U6 z3ErJEWbn{z09CvsQ`a@<7)zodj>sW+N1+yKOF{}q@56{O${;bqM;QUf*?gqFrx3B9Wa@xRHdr`(a2pi4lR6OhEjlw$^t`rJB&yldd%fJ}-!nvC;_Q%uqwL z+!q~<&WdmFga|`?Ipl{#h`8+>1paw^74ew6yUfBjCvc9^r8_-+>g5gyBXF`t-#u-H53`dLK_Y zkwPP48a1>Gwg*8A0j(aM%2t944|XO&!|~jx!4+)#QjOq>0FH1|taBxSL;N&qVDG-O zMxbY0NfI$EkaXD+ZW9>WjT#!unVfR+kNC_b5;Q!gj2hl@b02o(i8C!eI(_pZJ<2YV z;LXy?s6j^Q(=(vCzYK^P!c1cGH4?}6MRtVL7S1blv3&CID^843cKuj5G*m@TXMdlhiPs2xgqy&&) zy#Gt?lfdE{>C{%~|Dr*CDcpf+)3MoA%0Yq9mhhFG)BL7} zX`dV>)t=|WpWNkHecz^P%jX@`5FP5(G7l<@KM zhm&BE>4HWJ&jFDQSQ9yFePT#ZjiP>Flt)PQ%{ zebYgWJ2iL{_@`0f-$)O=XVid++Tqmx#JsN;G|^@`trjxYr~Vze^aUkprD>lT*X2y8U`Dii4dHV1$+H z&S{oYTdnfgOBeDnp!tCu?A(4iHC!`Jw;n`RBn{elsPowp9u&kab85gBnrbV_XWomU zm_Q!*|GdSHH70V16-}Dd>q51YJoNv0o5K#azgh{<+7J|k6y&tel%NTE=hSYAO`pl3pUBeJR^hx&iMe8evAvxiZ313B24wmP-75?g)Gg05~R0iEfr zQ$r;7ah^rI4)s@C!hMafxlRq1*vxkp_D3rT?Em@h5}UftV($1&f;rP-r?yIBch6Zw z3+T2GUHnX!of;ysbK@-H&u$XLf2O;{9)7cEoP8u{uvD3pW?rErb+7iC@lzbnE7fY<*KMVQ;YHVad zN%j1RL5X$QXF)Zf-b(~ZMWvk>msoCl7WW5O^bp~aif&}v$(q;|DujdDws-qONiw$XVGu2qJsXfn?WpkI15V; z)iR<*lS&{GuaZ~*Zx&8@9SI!1Z>NUd4+@2TVlA{;ya4EF6D^Opbw>@DSmbIJc+Dmf b;OT}NAs`J@H=uM5|F26L#+6whMVt3Ox`ZcG literal 0 HcmV?d00001 diff --git a/.silktouch/c8c046b328b09d23.stout b/.silktouch/c8c046b328b09d23.stout index 35b4d2a73bc1cf27aecad3daa0e6325c97f990d0..974c19449647d0119bb27bc3d2862702c7820092 100644 GIT binary patch delta 91 zcmZ2Ifp7H$KHdOtW)=|!1_llWgWA%KyxT3Af%N9%mL)5|47*3s7eI{mIhz=_&)LM3 bcm>3p*3Rq-qNjVn7!%r=-M}I@+nIv^jeQ_y delta 91 zcmZ2Ifp7H$KHdOtW)=|!1_llW-d6XGyxT3Af%N9%mL)5|47*3s7nu24-P`AEV%$Dw f6I0?9knps2W>*kB-2=v$(9Y}zQaAl(J97{KGCLk1 diff --git a/.silktouch/f634eee0bf239a81.stout b/.silktouch/f634eee0bf239a81.stout deleted file mode 100644 index 046c5cc172061178101bda494bf79cd6091075c0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 153227 zcmZ^~Q*b3-^eh}3GqLSVY}+;`woYu@&WX*5ZD*29Y@XP*`ThR4?)Px()_vIz>uFc_ zs@ki&*H)H;gu(y=1A_xY4wKUHAg0jc1P22{f&c>}|F7x-aC0^_cVSW!muLH*!%)P< z#oXCd&DGe|oYB(Ufzi~(K0!%tNchL_^*e2Np6;x870HsCZZU=_nT&9>^cvNID@!JF z7k**%_NL6I&%eBIKY;&z-nCc>0!0iZH?l*-&ag2GS7)&*Zz;T|Fl5$`<{(LYC>`9t zFk?DOFM5+@s4UFpcN`KtUyF2=++p znreS4g3h4 zH^W&17YXrdAZ_Q`CuJfW;R(C`c7gfBvP=xJ8&ci!BHz2Zv6D=)2@5btl$8uB6LV6pC8liIdK&g5D#gh@uLV{u5R#xv32|@cExS@e_OV~!QZ|CYH z7_d?*1NFNB`!UI<)|fM|gc4`GzwsFduWV8U9G9~Ks!?$_M{4t{Dn{-aL8>gczordt z{V6nC@f!%ylVZP$ABW-*-Zcc7k%>nYF78G3nejceW_k#;UH-Rd(@*1iR0-m?skBc> zF0oFpoF6oD4ju7ynhShcmUV6AMgi}MjmtQo1^=uq&zd2e?t&?oy|kBDO72)+@Abm0 zPK<|=cLQ|RJ3?EZtlOLRJZT1Xu0%7%a*B#W(#$edUrG80YnPE2$?X?@L!$w6jSSNZ zZbzrS2!9fb$U94D<2O5pE-rryx0wZSwK*|uC+63^3%?X}2v9TqpIkxMGz8{bgMkgR zLxExcUtF2l{cnOUdu)9`|1zmQ9((Svx0o{WHj}EIHmE4OE@i5yf56K|$^?T;kL6AO z!XhJ$Vv%76vyxf6XbJE;4;0(gMnwRVc($vhw@2_i>$vW!R6ZU`5Rx4_+}QGb61^iF z3#c#UGBu||&e^muewDK%FC=cI=fT%=*0;WFZ#CQOYVB#|>U}=)5c;A~aDk|)P($_7 z_nzN$HaC5qnPzm12$DQwZ}z$8yRh187u<6?=CvI=LEYw;UbY~eB3xdwETK{NUIVxxnBbTzNZPg054_q6?4_RRO=W#PID&}Ery zTvJ-ua+@S{u23yx@$|fO2P|y8XKuW`czt?9jq2Mv;XAOf?^EIGz2wy!a_=iN+9LLU z?uu)XtY-N8SG%@%@5L*my$Bn$$>7Z3B^dpO2ja1sPj6kfwom-vn114(!nEOS^ZP9~ z^y}F+pha~>4})b?$mowyH!zjj_6lFmr)7|TnsR${t?nyDoBB6MDRKd3G?CUP@A3`C z+aaaT4Zo{INyV9Pl+$mbO_3rsdfE1Lh2`#kDo+q_$)f7=F|@Jf*~=bKuYY1gX-De}=z7+a1{fDS?YIre#2? zkDd9a_ov(zJ#+G>wgLw7=+%6Zes{D)e_R>h0e+D0@B^X(Te;zb6MlY*gO37u8r6Hv zezojASUT>iOveJ2ag{!LTfbtZY<&p&l$}_$ zn;l#=V*tz1Ut6mQCmtazX$K*d6A)~WZa1+LCR{8s+Onb$7B^c{_hV$KcTi4N4Px+A# zQz$LaaDPdSrz5Z;i7a}z(_VuG@i+}ucPqpoZa6DwL&&tWw@PfV{p7pi<@6% zZ|n#av}VXweujkQNc+Wq;56CjNDQ(YlAPtbngVorS8doD$Oe}nY#P#KS z?=N{gSzj0AuATB1nH#dZ z@Qf72`i59QMN&S|a(VGVaF8=6Mm`R=nywTQAB)AUNKhAMMQb-9!PA|w##j=*?)Wp^ z_5;2-+vWgq81k|mddk0kZfGB?Zvcm47_!A5o1vtup?h1q%CFdp zt`?Y!?5xYZMKZz^c9FoP>Qg%p#b5szBJax2(TYxY%WAxijr zuZva$2wGu0A~L>&`Q2p2(yGkY>CR3GNu>xJ;Q?U4uAjNlcc}bqGGwqM65|tVdOM$PkNV3MMlfs?a`1) z`2G-y(70y*!O{_JE$~CyKM1d4393$&-;l^4ZAmjr%1?^FzoJ*7mOXA;q+_VXm~?#|%+8vp4-{)6d%yvcKz6;SsDzRW|Zt z3nUBk%`G3f*ysfT*VI{+Ez~~=A7}{)*oIpBuny_{n-)8|?(Om!Z+(30x$e{Lnw64{ z1^mcVXm#Xm(fx2eGbNlb7K%*IyK1mTrf3FiIWG`8DEs!T#ckDW(X*p)G(bgH%>i00 z7EfKR4Mjx&WZ7{=5^XBYf2%qm%@ObL_?CVJMYa_Cd&_<+3KeJy&J!Yr51d)^?0p;W z)8@(&hy4!mT{-uDCt99&Fj?~M`h7@DWuLb~k-OYyG3d#@`#gkIFVx7>AZg})G$hGE zQd;3C$Jw9MJj2C2L_L=XQGs$=^~v6QK?g~K zNHEA>{gF@vXy4tyjb|Vj_O=_u0ef&Xdf=L@GszrkS-$>;FLP4Bt)JA_um`~_kA42$ zzw)8ouFeU_>{vhM?;}kvPW(^oZLbHz3%)nR@_%Khk^RA&CgS-Abw~x*gXH|&RfIoY z4NJP>c9PpIj%6lF_B8Ip0aJa+@a@|pg~J1 za8LBv3kqAnap%(rDkKpx)SpNNwWJX}9|abwt9g;(IW|aq!Q|F~1Wqi{-8f4T+!V}@ zER=aqv#j1+O68MxFPgsqaxtVh8@@s1!2Q-`4%6*EU;~o7Pg~l3!OhN?$qov|zv*Jb z#Gr`3lYXQ2=M}&y2aw|(>$&YnS4+3vuiW04qCtD#^kSo$er4V=YWQE`T+N&c3>7Ha z;r2O2(i@-`e$|$lU8&L4wTuP#FZbhxoh=qG0S|Zl@14k}Y6fTfwrO={NHpEQLv{L> zx2>8FMsw4n<6tNR9`>(kUeKdfCXnLB@iqz%+w~AF%b+y-t&W!)P-_!Hweyf1eWnqF zvz(^6WW$fT5qSxD{9_Gmz8S3aMF{fEC-?InHJcNR-VBVW)!_*VYBh5{H`VsE#(fBl z0(L-317w|Mhe!mmV@UQ3LVU+Y&D4&_`v-mjaXrAY@7tcY(~#mW8lI2~4_^WM%~(RJ z1DaUn{WM)9(nqUQ2UWkY-6dtYb&wG&4-mZ~H^nqH%?P0T4L5-S*^vZ{je)!{JK4 z;Z(&Dcn_Msc)3`3yrUgILl$?yAUnh-5a2!w;hZ0n8%Et)awRtuYqP|(YxhQ;R34Zv z^gN%9GTRlVvOWUS9927aUl$co4}A8pXZYUbBK2+dB}0fF8Do3zxzk#hwHn94wxobb z)e-QPBD&F9FKmaq;&jsN(v0UO#n;&^XrzGrGKdkw^ZIEy|9%<_DW*Wy;m(B#6lib@ zRs6QAK{WZL<$2A^^MZQ_d*!Pjl4sqX)hk?rMea)pJB9SG*z(yu@4C8JYcy%MfAD^t zJJWj_!I~tX7dU^7{lb6H{ak^(Gfz)>{NnduxeOhgs0D(pf+G9&Lo(idp39G5(c#w- zT%*rwoI|5N!WG1<(B$QES6upc*Xtdr9<2|*yMy1k=^$d>(<=!_G9g!g2)(L00#qP2 z$%qEpCGU@(U`OdS#uol+EaENTFC%M`%UFY+tUiP@fnCTP?O3yo`R2rD`ecRG#a!UF zF2BgtrUyNvdsssyNFS{xvNqN% zJBF{Z365&%Dm{Na5MiEM_9U=u#KiB46E`9EP>HRs@%K_$o;Ph2B`EE94QX1LKGfZC zVQ?_yuROS>u5HJviDfUWWaN@6rNdIqO7|ajBTuT{LuU$q(=MIONp*H+pP<2NF5V@Lxu_{sQS;qf6fZon(J)tmfvs=t1r zNq=hiCBf^S65tT`3KFNoyt9~H32Y4Xwx zdYC%y+F^w`+H!e|oLu5(#P-ZZ`g%2Dx+WgfNr5SMhpyO_V+z(2{|9H1IOY6rUPLnB ztDbr*6CV`PE`M@+k|4IWfp#NnZ)Y9O@GPl#mZKPJA7gUn#(yah8~mrvp0Alv!aBEk zfubr@QK+_@&;L(gd7RXaM%XNVp#a2d~>iU$KhNa2ClDK z=8LzHjOPaB)2a!1W7|FnlP$jC+CjAbzJy;EPy4P}2zl~sH~8wvAIKSEHJ%M!v28HY zVb)(*P~Mns8>Hrw9SKo4&P})#q26x5_^k{*--i6moQ71oDh;XxrMVvWgjV5=cOS({Gt;Q8B&wyiwbDAH=0x!LR<0H>Y;ZPpTvFMtxt|)pc^+um zJjr+`i_&`eiZRQ{BTKb@NZOEGus8yF0!Hl;XHtMCz-Ix-yb`Ra!(=+*7z0 zL-IMO%ZSVnK-r-ZK19#k?K@|ZRXS=^O~c!>-0Nb0J>bf)4O7jc<8V~9Imk&2d`3MQ z-13zBUen)a=iafp0Bvb)uPsM)i%nBRsh<8=jN)hr{_%1`+Rdu#n6eopvwJB6a2IUm zz~!o_JK#?iWc>6Z6G#pKRsN$vIMsQ!rfu@L5f-Qs*MqjCTBViL-;t7oO5Q0Yr#K~} z)N`)RHk6q)i-L&_ZFT4BK!4qs*ue-$knVAL)^1-%P}?+nOWq(fTweO zn-^Me6Ud1EnEo}c$ffCQ+f0&QUG2kExp0FgS?4B$ZrKGo!id&G)EZ80aq&1_>wQgq zIe+aBo1=bF)Z5AsUATWOb4LfH=q*ah!w)-WR zMLdCEMa8w&tjO{DN5fcl@S?+*dDz@E?Mc}G)Eg(n|1fzyRuYqCI&S#ye{$u@ZrzN< zNx92ir$028+s5+YhvXiGkrSCf8!q<2-9wQlob3eXeqn5X6vh{bE(~$>_iC-y^k0wG zfx0w5Y{H)Nm)<6nFUMQDg4SZ$O(@%Q1B&q?J2qVh;Q3}J`*U?Ve#+~b4I0GD1-(Tz zwg05H64iavX2$OQn%d;-%rEW!{u;>z$bvSJ6HeSS&NCiKYz>XFlkfr10ZkoIjinMu zKDP!(&eF7~u^KrVwHM_|1cAd#MX}Tx$s7vG_ z_ct+I_>Iwv44ldK8fuuIjHehs7{6OxDy?~XLeHk(!f(5osE(}vE~7-g@l?B@VXA$pb(udPoL&ELS2>20 z&r=_bI=Sh7>M4U+$KH7Nv=%Cj!{4fL-*=1$-vzZeKKpW-nEQUSS1Jy^%roGQ5oycD zGOkvVXf1nFE;d5a$*tv~ydn)O;SY)MTuVl5{>r3Dno-q;ZIn}CO4EDevuSuh_T_If zJc@ykmX_E3Jt9t9^X%?J0gNX$gHg^~1%P6Y+?Fu)BB9yLD2bndFJnrT-A!AERq<0< zEp9cZ@S7X}l_ve+qHgzYxn<*6wymHwaXMr(oFGaD0TRTZa91?p9suu_bO}GLZ}3YW zbiXsNoDl*n>kj3dZV`A0?cpZwvHAv=`03qvt89ng#Q-BU48|UP!E7aW8*0M_O849T zy>;aavOUe_#ECV1n-mR@dl4G=?08vUa_?vI+M#xvm17$_Osu{QxC;Pdv_-^zff{&P zfav)fGHQ5f6vo=EFkFdE_?JVkDsrVnnyGLRrS-X_{ei}ka(g^oVX zbDouA1azFUPI=W)bJ1Su(?LhoLD?J8|NFfD>2FgGimRG$un8ix=g#(5YYu3Mv#N>o z{92pIu0$CJ!zwR^faCKN;X7EB{}1aHL^#o}^$ld&3{v=+y~`bF8z4=-PIiYqXKzUs zM0gD4{Xa=WTGS}!I8A$7fHp)C#zfstyfdu}Dp!h&z{9qC^fHOPok!1uv>^`e{E<2i zyvrTn+#J>uoCmoKh6VpZ)hf4ow(^6-Ii>0@y8uB>!(v4h?ZFL%`>SbP?0cBTGK~FOoN6XIQt$#{F-W0-8JASW!4YRh^h4xKqA8hhPRN;Xg}yE zU61utXv+Qz^D_2_!#jueJ7q@S!48?AVIMeacL~Du5{ojBvUp_scl05G=WeKNBKnKk zxn8fvY^{-k=kFUM&D4?Gb0czl=AYx!u|V=iW$^Yj`yeCN5o5)n(3D!f8TVUXdP_^p z6hfsE4!UIp;x(_Z_mJYv0nf~ATv)699YczL3S~-qd}TZx1v~d~i+!sOHoIsl@|JSQ zrDN3*J`SUo9c@RboV`;C7h9gY?1@@mck6k5>~V7^_i}2?NQYoFuBd@Sr{Ip<=L8T@ z*h~v~+J*Us_~S%tb;NutrOxzQKvM=}+gJaZgoFKMljOIZC8W>vJHWE0XmRGil$S-q;;fpQk3W0Q{rJ7Y z0p-iP-uGG=lUB+6IKDjgy>;{#XxuBR%Y3UljhyFBb)Pv4a!0ZaucZT$6n6fEbq|$| zgi45^Xa4~EV`T?>Y5|M&-?>vn8c@8dtkqq^9M>?BsWz4ElP2bh4-vozB0sJ&8q@u` z3p)Y$&t|Iv6C?fO7O3MFv4n~jVY`izOLJPmA%n4wZF+vzvx~2BbBf(m&Kc@Bn&A5K zl)Mnyg(_lrRWB31*?b*rz6!}_*BDaT<=?FDQ)g!jj0nGEtkHO)V-HQv$8)IC>hG=Btip!uYy3z@ zSCoock4Uim+UGAX5FL6RRQu0+Ip*Zx4+Zdzb*E+OI)~c(u(f<}>N=n!v(w!VN~JaG zFHOx$T{d|Zm(E(LDw{4K!0fMIw*GN+QWuO5MGAg|i@8}&8FoRud_gTuQVb7J-2f+- zg&jcW*IgOu9o@vkB2le3c`@~|<{G6Z&FxIf$V}4lmuWSm zuhThvE9gKtZ=>#3-*O$#36 zpWCGRRtM7f!{I%&!D937B-8tErT%Qh@^Lh1-!l#2$N?@H@3&GIIX5&bwp`P%#% zzCw2xEJ4Hz=es)!fpax`$G)bbMG(gA?IkCzWQ5E3@8q?9r&q)gm+~YOIoM4?3F2Jo z=LadiO-}>TK|=@F?L^J018X}irGghn&PS+F-H&Rz+5sffldjEPbhsD$3klgMp6VKD zYv;b)TxnYK?Q_YJ)YxkeVpZO9zdlgnT^hkOV@V(}Xi8BZhV1+^H)g^6OQDWL&QEdxM|(p5oa3=* zU@^o3*S^K7p;*^|Py({<-Lij??cFHp{<8GR=fbTy5O(WL6Mc>oyUDHi5FnRI+6CCJ zr)>n0prl%F#m9v(s%2i{`9#h?TOO)J&#Wq;KiJ#)ncHJk^`v&^q)~!H?;_4BoB7Rg}UlRUugKWlEMDYq0ujv+KQX_PI9 zXgsgd%x}xC0kTuolBP#K_I3z%1$VyB^)@)70sYmPMwDE>?Y#R$b?!U zMwERo;gI9d#Kt*AqrMIAB)^@cV8zPa<~N)Ze>E#%2OsPLXunzYP?87F?bxk&u`Oke zETcI8Xo2RENSd+t>Oc6K9WFH(W$wzVqq(IAnXp^NdSZ;tc)DI8t&1)Ib~G`9!h(ap z>0XQ3{f*YntTd8Q0+Bz@<1?@?zY0oiv@41vjhkz4Xx|2k1zG#nWI@OSWNtZ z=D^NY*ZsJGSYD&*dM5BADDA%<+@F*pamXWlV-cCRd5)RY2JDUvbr*?Jm9hq_Gs#;A z7Tu0}Ecr(PW1msRK@$#27|~hR-YzBu+#A_&v4PiimL}Y27yx;w6W=-esQ=nU%a^K7Eyqf=lr7fWOyH*OZ(ZEx`VDD^G>4~j_yFTu)tMJ-p!edA|qK%eqe&{zW zKK=I4Uiyt-3dTeb+crnvTF_tpjo&oajh5VVuN29(6+HJ#{to6o$qqg&W((x&|E|}g z6gTjAg35qp8f4!{>~8^aVltkF7aKaOv&CA8Jh=7Q#j$b0b3H}_#L3tnR^BrvCqf&z z*dK9GB!XevrUfyxQn=T`oIWrI`h8K;F`!+dZ~MdvqQ}iIQrrxrqe9M@ZI>~ zh;y3=O8M&<_qCuLFEf#9(t5i$E1BrRnI~$ZB;A%&`_SA~s0?j>UW-I#l=G_~R_CFF z(NO7cz_Fwh+@n6eAMS&U3L+)jwKS|^;j--n;3?bqu@udL-^dysmv zj>lCl$LM{D?sl8Nwp-rw z&nT6w!V!o2=pu`AXXBN-E%{q1T79M-O1emp5o-h265cG0aE$2&CWt)}$ziO({j@G@ z?@o!HR)<{lx_pBBuZu}pLXW-s?j$FtJ-te$I0R8<)Yar4uN>qPeW*|!Uo27M=DvgU zQ0ZY1fkA4k5%teG`YXJv7@x;$^cL`*A8AOF4pN5z4$FK16FY#L3M zUcSz2LLLS&QTvw(YD)=ew>{`{(nvT5nOCziS*NJK{jZkX7pJ~#Oyg&NZ9Tm zsk7S{)shJ+rQ|tm#>;B)>dQ@@lud8BHma66_Uu*n6T)v9|2%0T#P8T&W{n)m zjsJu`hGotvU(dk9mlxDM84OIts>SzM5~>17#C!IKBERnR`L!>*BU;I^WOtQ|stZRl znsnzf%zJl)k^xVY)|=XL--*@=>9(M?!+QF5jBqO6u>$ske^$l(@q#JgCUIT8p+-nR z`UkSUJyRq{q+b_let=!zs6$gL=Wxv$F_vRkx2|RJX@l2gpte=i@a-qD`M& z(pkFTQ)N@=F>0A9H;H@2P0Cp=pilt!N%MZ3M~y!^FHK(&-ceW5Pau4l-iyoG`L*f3 ztho-;>h8+rdnvYMxwu^Su6lVciC2sB5e*w!e^QV8MoyaRsT1FA%jHz=nTN601KdhF z6|2)_*GH2XBG8rRO5mfy(zeUbI*3jE3@K-cY!x6KAnS3E&v~RZhNKw~g-w5WG*X1` zu7cMrEH$v5Pd`~v5IO06sZ+I7!|^@-hqU7S#ZXmlGNhhi8QlrI#l3ee?aoIIz8K_b zZ`Q&DXrYl#DOyT@GL^e<8VKS)HeA-v%9joxh4T*n*yLgIs~Z^au)o-+X&q_*$a~!! z?|eQ(ola}zudQZ?j<#{}XP?|fCV|y$M?C&-HqhpgD%?|ZI^BkqppWMM7t}uG0(Gc( zgQUia2*p-VxDI=FO?tRwH6dPwLBI7NjHL;U>&BE1Iqg})fKW@q-;0uAwLPJcI?U48 zcg~yg?u7fOa3E_iVQeO#g41cf=EGv->u>KlrC613IxKTfB2^Ioce>>nTVQ`PYw({E zauFwo6GpjS{UsT9ANg2Ay#ml34Zvue|6h;2wzb5QB0l||D?es%K1~r}yX$OCZS4%~ zQV_uWL-ju2c1nv?lViNg2STvZ(_ejM{lyw)q6{%h8Q@cH9LmmEb6ED{i>SvAU4QEp zMUaadXKuXMNP@~<{#mE%vlZ7B1gd$C&iJ}QY2q!B`b^b`U=WY%)Oq{$;jiqZ78ind zwI?#1*3&UVm?wj|NpG@Z^R#A3An*(O2(5J5Nv`*@y!1O6^vxUrtrKNgH2r);^cf;m zly%j>$}Gn!jeCkJ)zbt?*%jB;y}gR)?aAOmvdrbYApZ535f;??U=d~k8&rfqDA(a) z&o_^55S92d{_93JW`o;+a1nmXFcqs+j`%h*9+zF}^rT$s%9vS&e{=mR&t!0esQ&_r z>i&c=1X5qS@??7uC)Px$Os7+TQGf-c>lF)KaJ4e{kol@tfzqZudrB5=}?%2Tsd~X^5;WFG2`e`pf5(FUm7ba#%BAcO|8u z;Q?2Pb$o=?eP}aIgsp8;ml&h+m7_ueksWHxc#iHv!Xh{c(aJJ<^f;DV*i_(lVu?8Z zVH-uPK8_`mEM?N6{(%68kY`dUAyRdgSHm$N510WrncX!}LwvDUtKzwJbp`fcWHs5U zm_2-;@(lW0K7WhaRsRp%fXO=}<*FI`~5l z^45G9s@?y;-=ra+xKniKaM=fxUvR$GlA95NI$LS=i5Z1T={S8~T4)1!Jon*pn5j(y zBqrky9sJo$Fjm|)wqvu180A%ZUbBC)HwvJ(WCo_0AO$qK5D%pM+2%m>5fs{CYs8ZjLNFfPo9C#v~ntvPvp;~@f(QJP&v-? zjuYNq(0rz~`;Wp3JTYJl8N~-KJP(kr5B!!eu?; z`=6Fi(Fe#hF2rctu2D=xCg<@F=bwyXKJ~ZAHPDbN78FO;;l6VO{TMRfW5XZg3rVA!y6UZ ze8lYfbCkrs2Y;du6xJY}Ri7}>$B2-xKQavM>1I1X2`GraoHZNN4XbtMWXlBh-}^Ba%3btJ2=wEQ3Qc6!QD!e7;a~+3m!I zcK|Ef@Iw0K_&U_Sm0_f^=PE9`yC%y82l`XzCLB>f+wFwpe07U99`Ah}!(V0Q{4rl? z>UkmxdBRq?jYO`h57-UihMevb9dA?#w6W7kL``1Qd}DQf zmNV%QW7%5#d0Rj#<7Z9hNvMV^B%hF)iK#qkp?cvBrnSNRL6SehCfP&g%h{A*CECLNgpAj|A?FK*R$~;&Pqb*)QaL~|0Igb;2A4P{W2=squkWnfQlSb0 zDc3PKxR3e_oh`O*d}@?ngkGFLJyWii?nX5)!cbUkXch+q!^Ty;IsLqp z7l%jU;%TgIxGH&opym0qdH3bkYeBAb*_GCq$vv8a|8C})=*ZI+qU6}5mwlT8;i00Q z%&qT$HFh%)vb-k2V2UlZ0 zqWJ1_ovhAA)jf5&omSaAvGe7GD_lsd$qBjFuX~}shs1d(OYXy)Wm9ZQzM9+!SoXAX zBAT;#V7J|`Gjfl zxDoQ<4h-Jl!*f=GyFW?576{Bx?Z2!!h8ep>r~wN*Xm&(3!t0pN-IvfZ>JdUz6dO$& zl<{f9-hnd{=OBwbnuNA--hE`3vs9~KQC-dJ$M=;`TtEmCK%ZIbaCxU(f_?A*Gya9< zK}GP~5yWj3RE4&+xdgEp+({Q4TMvZ_Es6K!&7J5_rvf66Oo8u>J0nTKXgU31Cu06mph%Vm;`>}eOhP{wy!W>&_0)(%Mg@--_Na9p1}1J=o|%; z0QXZjDzs2pYy)<~ykT(E$MhY`EL6Qru{X9IpFnqH(=af$RgHW+S{-t8XJ--w^J_6F&)^XUSzHR)>iCa;{y%1G$NybJrnTexy zmKo==)lkjt>^4p$;s0S$*R1$r}a0}MiJfz zRZI-ZVf!LLPL!!A#r>`)h1_S7eFk3$)E!Q~I4laO*mv{`b1 zJewgDQR6aam8Gezz5j@;f7E};64~bsdEUpJzdnCm^;CkNWv^cGNcVGbgT9|1n`T+L z(0cYevA{$6^~DjYkax^d0{8rF!get+fXIKZK~E=QQ_4xEUGm&Mga)g;otf`xjy znwJ45FlN`tJr<`-Lh9pjB*Hm*awI{o%<$&&@0F5$`4GSJ`m}igH^22;*bl+XAO0$f z>MGlvX03CX>nF>{JQTD$tHj-pH1f|p*;>&Ezm=8O*gI)7xdK-0d-uY;uw-NZ>unW( zE{sF;w;6SBJze<*;PE_&ZrX<}SM8<|*nh`_R22K3Bb(g%j2-t*%w|bau?NLAy6!@Q_%y*Vf7oyoQHlC%y8fp$+m`Zz z0GK;FZVnZ-fMDJC(Go<4YvroO1n(Lbz01C2N3{9xLpBiQpFiiC#UD$|i%?(IDO z%xTv!G3}qE1fA2y)%`dLi!(Gqf`+z3YtkYeh25eGy7{I)%FRgBT8)1c4uobf{=8rP z_9`=un`z)7FsYm{H6=SA&sd?ESclBE7>Q$9fOS^d1^eqRJc_>PNLYlzV2`-_o!0h2 z_U=LjRk0$Veqf-4J2Eh?7nCFb31x%$)N<=uKrc&hQH?>=&%o8dw^Jh%mG{)}@hg>AVc??Qt~)E|qdULc=ns*J+q* zy+6gJa5M}wft5vv&K1A^iQVg7(r0;*2jGtH_j-kllPqN*9X{YpwjB<-Z}IDT;&|O2 zIhiv8x7^L)kq3p7#F8XdgkR#?>ZCdac0)(Y%2*s22K(HwopG`X1% zNO1J7)kQBK!ATHQZ>389@qCEVB!=l8~cF7;0*riLeOV>IQ|E&HmV8_Kjdyw0y zK%`3C-^+1R<+&U(V19IZYSld(^|PY#g+{sip|KbKCr-u19PQ-=>?je*Z#ulL-jE&m?=PCzT2i&7b!2;c-B-V0Z5}Y6l-g_FRHt; znuzCtC%2_Ze5_2; z_t{TOFN)hm%t-2aTx7mnPibM?{f#v#KXChsg1sPjzmP2|T=x3YpX+2jTdW23<=K!L zrEZKai0~(}qepmT*K(iWxoNqT$yWIM~Zqpi5Lm%T5*Z#|<@bu>+ilWffgIEadok}Rc!W2|5yC$S_iFE2Rv zd~|8^g&q?jMuOSgNPfxz8++C``hjk;kz{Rd+(jrl!6ks2ETgf`Qud^MJpLh4UEsO% zf;Q2=cIq6lK)mi-Vf=|T9d@)n__k1bcl`)zHl&=L|NfciyKHW8qRn(LrwTz*)P_uB zu|VY1^mG77M%3b2%+GXl=n3PDEO6Vfwk!YEI04N}{mT%y1s!q?FbUcWhOB zo@#7#2k0|?M7)Wk8?Y$sY2_RqXY8u^x##OxDD74E{;kIQ7j3Am$>D6MbZ+g;?}oOl z>0)`MJ%G~kX67Qo?1WWT8*ZyHM)%U%jK7}`7P)2`iD#%@FZl0dOiZ6d($v+->qjk8 zQQQ2RVs48J=D^sfHrRIHkr8G_eE;OuWQI*K|C%du#wjnHfA76-L&MA&2HIW|#o0Nk zR2E~V2Cwy_i*s4A^>*E4S+ArZe-*!2LGM+zXOP`T59|4M@IMDdYZMZCmhfsdws@tk zqa|cfQ+5Wf@=Y$(glq})G&7h$%`{T+-&d~PmIbHeURg|`D6few!oE#18pE>3h?1W@c;722A{4&?KWz$=psLQR>ZON{L(~u3*&@bUWRcy$J zBOdK_o$k%pfu$uByEaziz~4MHj}!G|?GQS9l&kWeC5m!tHf*~GoS3v2V#2`8JwjKHH&N>DLVlFLXG#%m7@}#*Hsa=1T2l>|=`iJv%z4mi1 z#CQB&oYC3^Qo0~{Yx$7n*@!QplXN4w= zrIpl>bf#az7=P66`4W-D)%?ba6wSa>>#>ASMV#>H1;!m+FqatxYL{$rC5#3fGQiG3 zciAnsmt2qU*%FSlPPF}ao#S_=k*a)BSb><4Xwzw=^44AC;(xZUXoBezDYveKzfTS? zQ63UN!d>LpG?f3nYYWMjUzD3G*YH@b;4a30IUamU(Xj5{5O5-W!DBj@1KjN751r;L zML(IiBJawUwN$}?^wgo~a~QEkslbI@ZplyQPB=yedU$OyE$d7mp0BMicDcM9`10&9 zQe~Q~t(kruRI{*A&0P17E0=FHpubX#Pg4i`WC%mz7}&}p&l1&vnOv{(_FC-);Hi?d z6n6*h52>q~ZrThwvPRATPk5BT4&_PNXDBKc$FP!W^(6ccY8g!q(?|!FJ&UlKrcHbN z=s*gyC?g16y?l{rG!55CX+RXfwtjOY)uLbSF#HB0>sHv_dMbL|biD&~Wb4{39NXyFcE?V~wr$&XI<{@w>Daby z+v%{AzxF=gx%ce*pKpv>qiWQuwQ7wyAHAGOUiX8z7DiK(wy|%O50`r#yxWu2SDDR? z4$^(_ibwhes*}N$_X1@4j}x#tq|cu%$RZYH+5*67b@K4Ho_`!d$kQ1 zi`+HynW*Z)m~p&1ns);ynesk<63h2%$~Ru#qYUBbCEn2A+$c=47F7drs2QPPmpw`5 z3~MppSUif~qZn)vcyKtw0N0>W$D=8WD!8pfPsXf%rVyA&;50qGSUJ@jb_1hOxA_!RfM;UP%{eo32UUMFz(P z)J8avqB;Yc&=WFqTcA^i+T1-c+O!*i0kb}J8U*d;Pr+-shbUVyxsY6rAM+jx znMHmBa1jQ*wDlz6AF1TQ5rP9`+A~zWabzSgc9}6--m}v*SX3Nl`4N87c~q!8-8w*a2Zli7bg{ECEV=W1T8P zQNm6L;;2Q&lv^))5LRO(U&OCR6?h*yJ3>9a7US>R{1fj)R6V|jsm}w-z`se5_Ntv9 zQ!f6{UA)rGI*DH=l=KQG3`2oc1 zmlVV2$m?g!>j#z^A_T93{{=w_AF5ff{lad}SrD}dbcFcPK+0qq_X$+v2Csbi30LMA zEnNQ2+~o6ilFlOxb@Fjc)olEIIsh}(I1<^??oU5BvNjU#6nhLOP)Y3$1_Xh;L6#G z$f7?KRXVAKS3mMifGkmn^S=5RK*NZFZhyq&1%dl4n%-D&S$bt^V-9EZG0_w$&rW{j z=KUOJdHkY48cT?wr4JnPZ1K;rD<=6g?*oAO?bL%FZ>lZlr0Rro_Cb(K)1H?>eFiqq zOpB|bEyrfL5&qGe0&mNKcc(t*#y{t#xX`QS#B2G1clII3`LXxuqu0|H$WvEROseLD z?7{>3@k8zGv{rk@&xH32{q(ic`7!z8l?L#deURkRbl|O3pP|V+X?AWp_S9|6S>d0- zIWr%4>NMcB^UuLM8{PACRi8naeNg3EcjUFxn9<5R>5&lgJMjF(xp=kXpQ&*kB*=Bu zn3;{YkmI^<&EZ{cgnYb|68q>g$bEvt!`hY*#8-DtTe)@nveO2J{ zJoNN6=KTS}`$IxZPJ0HxIz`@z+1Y9O#cTT02i)U_+u7+2;JM9szwkC&vM`0JpTnnf zLz!ij;PvwT{qQMrLYK4BD@Uoi*%CK1BswRnr#3ZqH@5G!_Y;=}u;?+L1t5n#XZLRL zoC&4lae!lV2uJ8+jW7o5Y5MQbM(>hF?$8GBlz$#z#T{V99$s8>)5Stgj*~Ry3V{dhU*`?Fqd< z0k(Th06)mG_8JOYFqr4`T=XBGk?4Q@Ri>9>!7@-V33(tW-v z|40?}z4_=n0xk$8}LbyAUMwYf>|=APRhQR!TC7a9*9z6Hx2d!w6ugl z6PIh}4bU(S#-lm}HwAktC9|d1gf0Za_SJ*|wpETkGAV6nZ;D+W;8DccPQod1?F@P;t?gqM54O}OG_sJ#=^)_vmSgLwF+8+9S4U-RRx?GxWK zxJ3(>&wFDgWiKWTZ)n9{uw8R~9Z==E81P}3CLHsD(6oC|=rHb4Bwz>fWz|Ah_r7RW zLj?0`k&8g0Db{mk<0yQtz4g86R#$zc8oYeY6$Iz`=7DUNtKJeFZo!8dywgFeQ0|BI z0GTe=pU1k~vtug=ZoivBGkve1rg~iSQ0wrn;jAIqz&DUHg0A=}47dRkyb!FhTS!e^OoX0@#`xG*-3riWY&oa%Mzn}6&M{rFh= z(R=hm@WQWs_N{E9I<~#;t&B#Qz$O1lAytdO#o$Rnt%y&NkEUx4jUxgZ^WiuGBsK1} zpf|r4x0nemrqxJl8<)%#BE4|1row4R&1Im~Pzph9AFemK6-AvS4=x$sJ|t}Yei=eO zG|mNhF&pTl9AXl7HDLsUJE(4`2JFoswE^ZTz(7fNC$cr@u|14Az@yqh4|Lj^NNRiY z8{p1c{eU}*h(Oz0+(xBZ)zgdy?xu_TURj{-79qAAG7e1>D%aD*w|N-B=-L@czh2lx zQQ3Dz6Dc#mDW4WVT8~wFsH`?X?n~zB0;zS9_*Qd+sJ4;Rzx~$4nHJqmX3J*{bvi`r z<#wbR$Lr1@Y=OKBt)bQ5go!4ZV;0UE5FgC=5rKv$4T33LKyMWlFgCol@e3WYUmWw) z922~ZiBxn8cJW}KykKIsI4qyFmJKmmkos}9nBVIxGM~l|q9rYiu69ZoPf$~4F`GX- zymlH((Ct%S>$;m@AF1ggv=wz1PR|@v!vIuQlcc@Gw4gErL3gj}?4x-q13`PKD*U!M z^f&Mb9f;BPTSqUMF}Uuod{HcGyo(1+^u=h_#sbV%AeUDD!ubcQIk(n9OCzf~w-&0U znHB1(GBN<3>|XMSFq*!G0>P8-Eul%+ySBs!s{BE={*mU^<3_TZ0^+D<#727h-GfQo z*Wiaz+2K>EYH8m?C)0vTCwC(5s|7I!F=aJ=K0Hch?tv0TM+7^w;fhHiAn~gqM2&t1 z{!Aq0G4xCFA&BxuUJ6EGZN~k4RPQx-@?cGHQ}4(QkdfW21A8AMySps#A*wk&@+1lGODnm)G%8mPRqG8@_YqXx z22}f;xcw$N-#QGYQE*IEgae*`8^Vh=B!3MkV@)pW%XQ`qw*JkO8GQT0aU*#vLUaH8 z+AMaRCsw;Zn{@C}s^g?tGU%(&$w1AiRFkX_xz zTWfvFr{0{I98PCULPBR6RXZ`j0NBONcd$HsGrM^I#glle`nMB9bsYp8D0!NCq+XZ^ zaHM&c>Qkj=3Pc8DcU`0YTa|jC?+R63b4@7m$#4*owdebagn>@;LN?k4vYutpM1OsR z%Spty4E&?*sD_Zl#dge$Si1v^M1c_Ou67{>{H~z#ChzhlcT24evAE6Dw4VZgVeQDi z2(=wXe(ayZ;sR?et5j;}^^hFTI24*2^y>r?7>N5(Xr))?E#F81uRRc^!T_C!1x#FG z7nhdIp01*}e;kM$NF3Td8R$Y?Idt%H@-UwIq-3yW zXx%p%hEX3{wfLn%!8JawjH1@BoZKG_xFYYGMm&FdXxMY9URwZ`6*B5g@mFuY-nnvE z&vNGYZF{ylV69&1_xr_Sb%NMw%>iz=Mf}-HSX|H!rvR<`?znr6nu;K3&{Hf%pk4%& z1Kr)Mj%{T~NurX@#A`q_S8y9l2hux`1karmv-XH87lJZ5m-TPt`N<@j!qdHq^^?w( ztoO;W1f-2v3SaFKt{=SvMSTTkrh|*{=6trZ682c9OK^LM$U_bCL`R3^=6tua^5LNd zVX~uLeS4|TL+#{52QSUdrM{DUKJUuedTe8%sBisfFu4~$MnezKiEXAY8aC&-!AXDfC^_TqTU^$`R%kkDIZa+bLG`lM`_LtDBRPu}1ao)>_ZQosN zHq3pfonX`?(MSFUvQa7V`}uo?w#fh&s(;4>pDX;jH34@`&B5_8#4rJtqq~tBQ1@y) zzxM=nokk#?2V+#WK*6^Tlr;vn%c+ptrKx&ew;lCE%qBNlN16sXZv-A++3*KEgE#qk#Ex;o;kU3Hh68ORk>Q9~^biolhQx4)VIDkD24|{J9 zl0~sQP!4+Kov}A;Lnwpn|dTHjsHm>(56#|x4`UTl1BsaVFdqw zf8t$hkt^EpIp%Nn`5kN*HY^MDN6@H?3mt}W@{2kn+)Fz6*mqoBDj@%Yq<5~2JTvh+ zqFzsZGYL{{*vni+_|1Jb+eNA-Un#J?t1QXZQ0q)d4h+n%uG7kaJ!_UFdWO(hjTT|d z?H4-~Ag0euXNDT+Pw;vof6qKUxqd)IJ55F10Cnl@#vZQj)!q0J;AJtG^lRm}TyGAR z3wfQGUm4}B&`=$fogJS8OCpz@4uW&>j^izMPXFW0w z2u4rfH$Su4ft=Ci5cel9#T+xyv;-#Qsy?M&LL|i$tV;y$Q}T@BNm67Q1|0f(X|n#( z9mTgNxR4CEVE!5EfP_R?mv7H_aO|i^0zH*rbbyf&6kQxRIPj&i8-vj^d#D#)H1`Tw z`>14LqEw;N0!ihA?=1b}B*BfWZ4S)(4yCSu0!mBWk33gwrR0dN39e&+R98a^p|19mq+o*IrpK94 zwITun$jb0f5IQ&}u_ygvcLfbEF2OxusB_+7?$@8#0tRqe21JBkMc@%|OxyB*F2F=) zlrx`dA~Y}XWUY9yIBL5PE=!Ow7Ig*<&jI7zCbX*4$9xpd2@q_753|Ynfz&JAk1b6i z=;_%~b^;zqD`ume-j@_jATjUK$ummDwX#ch#g5fcrH26)WncN?HxutbWJEIx>QL@_ zE95NJdO72Si=Bk>trPjK0poZ{Q^O%lY)DU5WT%L!xf~e;_dGDLz&!~RO3h}!n;2`z zN+>U{PjWr*PM!10epddpC^HJ)chPqz<^Q=<{`2W1y~?O5*Y6lkniTYB{8}{#+meb$ zlvzS}t5RAkr9A0vQv(01X@$i?<=W4J9N1(QZlL zzQdss`BnvT%&N@$Lq!1Tr=tc(Oaw>Tl`=fd02C_;2 zeMA)SRSlFadoOQw$cBl%oQS;~=w_p3Ybl&<@qHOPbICd-5coF{fi%o|MJnOxno{>( zLrR`2KK@E>5l*kQsN_i4cUk?}q(Dqsfw_%1d%)qW&XfS_m- z%;PX?6~kHPLK>zm@F=7M=nlVUj=d=}%G1qQP@7E#*c_Lww<$V%TYfWZXE8#^VvJ5u zRj~gf`evGyzOYHyi?vu*g9R98q)DA_Cz#>u{wjaJ+k#V<00*8~%Of;KXFUO|81Lx& zg|!D7GL=c=Qug;KWxyMg-z#utviiqSD4NKOn7fn2uj=3y4PG2AtA~fHM!PQ%P@XT5 zeSy!qcc2wE(XDUI1g%1UJRE=KQx(Ge#vW16tKF0oCxPUc*RZ81crq+|;!9uWprlGb zNo2U7lGO z=>fHoCh=|N$IMjcwtQxi+0Lf0UhRqY~& zNy)UZi;RMCKjk!@$&0rP%rbA0dI25YGFqyIAU*ctQ2ykzJ_ry`=O^qZYEf>>RJdh0d1qsG#D5gCoFK@@`2MtK#FU#(llyG`{*(B7h<__Xu0ATu z&5-(@-w>J8PK0&04Tg<~$?p6f5%_);@}|PR2UA9#$hA66=t%L}r%%gX?4Bhr_e)V& z09cxm_{#+yk5^gu%<(=*h6mLk+Zj7ShNpVafr%NiEES`=656~3AC^(3BWAQjS9uS| z7tZuM5ns+^e^&gn{EiV&>HMSG55#nNCdK8oGi<_+8I@tMfoKgmdFZ4{I=Aij%fu9qaV zFajp;ruMtTm>hMZDJCJJhL8E^NI+_s2aHEc@$_KNn&m>*%W_1IHptN=S7vMvP@I=T ztf7=|{T#AYvi>gbtaSY(kFc<&5MHn%2osSneZ$rEJiO}Ms#DM^I5b`i!89sUi>pKd5q}WenyENIbbGVwX-FxVyf#(2pysjG%Pn z)BqE5_){6dZ>Q3jD)TE}!m2_EvLF$q0X#VKPx1Nff}lh;L-z3vf{9%1=0@QXO$E;~ zWf6T5!Xkjb7ri%Iyduz(t#u?Ds=c5w%)194g4p+r%K3)zvBv(SBJb}Fe3;GgT+W4e z>_lOA?o#05 zr*cq+*&c-I5J{?&RpDyvu2-Z_i)b30ANlL!S@0m%x#C-`cwxr|o)GT++y zb%*O>w!inmI)~I|&SD6lpTWRq%o?3HBBz5dAIb4JKyQ#IlS|whQ&e3H0#n?urJJ>R zG>7vYd%%Ba0#i z%$UsrXPD2buPS^MrNcBEu*;YY298L|b7O6LU^bsGBNB7}R$w2?0c<1RRGYKQ#B%kv3BqdMt#qCEC14;SM-4q)!Qdowb4+ z62T znMhK`Z!%?uz>z;0*;t$McRL>?(^&H8p*08@3`mRYSVmcF=L$7H>L=jz9_7Pw>30ro zSrBqp46!+9X5n`h_oF=Vxhgd8uyTvG^;>Iu=*d{DAjDZ@V?a?N%YiC{D4j=B{i4}E9r0M`P&6F zCX~#ni{6i!lpqSlnw#`fv6fHsF?(o4u)diz4NiDwp?=r+eR=W51;eb?t>QE;*`U&$ z9k=`??>tphx=a11plJe-a#;W=mu00YVp@)*ur{_|DEk!LSXp}-2U)}eC?AmIKsH^D zW|+}$(gb?M8W^KfpwPN&^GP6Si^;7NM3nA-24b6`7Riwzam4DAKCeb&+#93Jj&~y& zq#f{)X8NckyV+GBD(s;6k&K&*VjCaQy1qrtDcDk0M1szo)3R4rXk}6!Oc3$r1ZT04 zj4T)g--xIj2i5O8(p6X}jvP7~JK9ojA7g||^dKq4I}j|$^;8UIYWE2tAYY83dP^&h zaz6-$xh?w)az9jX-E^}JRPtEVEFN`pF{3;>ZAVs)f=We<)t8l9RKz41ioDnec|ysD zV}EqFrvxl#Vl9H&3e3>gq8K*R4lNz>lN}kuS6pBnIGu%*Fe=E?4D%D{FgXCuJps-= z{dJB=2d`%xXMXs$!hEyz)YHnS!k1_M(IZxr|95SH-dCj}+3JWo;lb6aDL6>P~8peQK zSn!p5@3RgkLKIXOf*`Jt+!fRqB4>4W;X3W;Nz*xwgxO)sqXeOjL+!?xb>zkIO&Iau zT4iTtAq7(WSaTyj>s2iYH*?wN(TFC`fw9Nk=N%(4@hpBy6i&xrU2V8lN=jD)=~Uq7 zq+OHtCY%=T=)3F1j{;__&aciAl(Z?Y_x}u^V|~{fz8AkrUvdA=SkC#-9x_dcDRX?b~Yloxllv0T#k|alE5g*Rgj2DGS!U)n7&9*Kiyd|sFmuKYj0D59YEnN zX*0_ET#WSPohB}HeId!U|Be@J{;EJp0(klez|#wFZ%|{KqXytpjw_c1L#tUcP$4&r}_zVZcm^H~*ALSsMh72PD)ss@~kW^DW>V@0w5`j8= zQUM&TWC@vjY}!+6+2Os^=Xe4>+b%*Fes!c*q&@01l2)jkI;E7G_9e$ zmL5KX;kyZ0O+0O}0Nwko@0fPHMd2GYbKNV`f++~sQvKSGtLLUUVZ0LT=yEq!5X*qf2PSx1VhgG@ANuGLg3fQzXR3=0vXN@uA znbzyGBTr~xHI0L3k(S=2j)v+~jL}-Rs!=|C^0dUyKInApFRl(*@Kf7M*0{eTmE=TP zOYuUplxAq0mX`YbAz0xTGYz0ib)g$&g-FXvbybglESVkPZ-4<-6q`CglQO0CMo)h5;Q?g;2 zkFtPX(FVcMY4GP5Mh|Nz^X%nqf~I*#O)-41u_ix3ij*wNOpliy zu3a4oacy*?G!NN@Q9HkBR9HBbey7MTcE(FZObUd!I?#uzKNmqY)>P@piN($u zTQU}}6Kri+L0y)Zu5A&p5(LhKRIcV0JvkSRSJzwDR$0#lf=$nMU0RspEt;a-Y&Ca% zVVElTY{jL?ByYZA9zy1nF&eqTh_j+hA#oi@NkGU#_dE7h@lxBf&J2&jWho4tgJ2YIv0 z)T5%xsf$s@cjar8+hb=`lb0QTXezqFeWJwg{?=2F^)Kc!1pYi&1Fh_+~3 zRQLffrsG_*ak!bZsKq@D&tYA1x9yJQ-v*q|lYm`}vTe3CE{@LEgjvJ>EasU5k&qKh zaYz)u6*lRFWt?UyMzO^) zS36=Ub0qxPYL=-2JtL!x<`G@VgGBU6CQ}6_+IUqxAEL@x6E|MjjsH6-ZCDiqDsvU* z!qtSqQeq-#yv(q7&=C*D˘NZJ4)B!fqWre8D`QEG?n*ROOG2E1sDSceSE?n*@3w^jRNh_*#iLh>=74%c^iCDIzsV7%=LRknG?t z)VVXZViNd7B3d7`)j0@@OXmC{xW)PM%Ho13NvC;Yi?C$zRQA*QI;}Z(5peM9EVv-* zuApaRM?Q2b`FoK`_8ikJ*Bg`0JWn2Z2Hp_f0?HuQctl63hri5k72s@TpkS_bfrLyY z7&LV~jIxak$SqZZ7R{4p;zrFjg4y7ysh?MmW;8Cwm3I{?Z(E~@+vt4bT6lXTh@R_k z1aumj-}p2)UW1x9(qYDpw>9K=dsP z|I{a40P|&}OLTFM=xF(ZW+lcj>YcYksI{#q!I2zWPMx%zu=cW^VLBDpSlM?eyf0Ly zogX;v{b1>3*-Md?BpP9L*QGi%{26u{)Ya){PW%UO0~NpxR`&7Tu4LJu!c!>vyDpr; zj-Ki-Tq|EO)qk4%aUEs5!VQEvbcDNt`@E0sw8^0Py>h6FgOoFpH4@Vu*Ep~?8uA|3 zFp8`MM|88+oVE+k{mO`F2XCw1u(!SVcHCks)K;yPw$UDa(qb!Nd%>2n(H;yq>27(?>*kiCWiRGom%P=ltt3V8*m%#g&Apky+c@*ii# zDBHOcW3R2@o-*84^>3i7Wi^+jLxilaE=NJfFxLAxQoYHN)?!3r`h{33LIqLevCa)*!=6xh)5iCI=97;>Q)fY9bt zIN-d7EbkDJ9?ROSeb>apQgjqidnBMOb?q3Qt_o zK(AGrt(BxI0iG#7I9O1dpZOuR#e7CE?-2U&>F?({HuJ0Y^S0ybPsbPRKQ*1!Sf`+0 z0a{Mp01Ymp|DUGQU$SS;b~YA961L9&NAyhQFZr#In|GS+LVW2a7)8&73i&dE*=>_d z>GeKia%*xy^skOa&2q?-Cb%2E8)lPmGBr}rrSHL4P(ue>*w0*&c+o1mh?4R|=7Oc+ zNWa3%Nb2*UOv0ajetlareh#*Ej+0{T{Jywlv7D}uexOC9EhA9@# zCz+qBSfPa`J_cSnl1VUoc}%&uF5Qu(-%tw_M#T$rBBwA+60fpQKh>BGeh;3js@mo|{8 z9!p*@_WxlX00*K`HcDL9PpoRLeE_`^`j}gM54rwbf!%(V%=HDexu^Ad);00-jAt&u z)fn%cL%o7f1AH4fX^e=(s=j>ea2+kqC|de^x+w=9*VfaTh_Oq4Glp?Sf?FM5Dj+)c1M0_PQX zNh!9_a+FxLg|k6gaWsyMuJG117O45UQ-NAjinS3#BYhfm((JNSQ^tJ-3TurL5}UVus;>3=g< zc}F{YfJ~oT7O0Y68#btc{Qy9ZvyP;| zR+kEZzR=dsek;Fu#?J@gg1??E#qlz_hENA$8u;fp(ZaC4l2x*l3V#eMihxPNuIJ8c zjT{v*32eDAbhNEZ2)`LdJKy|GU%x$LVCC84Z$n4Uwg6>iB!F{JWI25~H9RX`e+nxV z6aWS0mDB2VR3Kz`nO$-gwb+fuvW6UDA!sg*3L;BUb7OYZwQnIq$TydYZmgbSNAtSk z*hA8-twMr&Qm}>_GVEp2?F?=&Bj%b0^x!^^Ivj>>O1&K>QTV>hmWIS$czj(`hnaTD zWr->5PW3as8|(d(g)uS3V-^4l!~hlu{~HSua)0S0x;Xt$%=jk*{}M{HP@-HEP6!M8 zw@~7{SlPat+dTCX(lg7X*L&u3Kay$%e}j79!mcZn0Pa!UY>wnv68SDLyt&{k1hx&5 zu?Z3msTnA8NZhk`MXdaUu!%vX<>jr{)nE9(n|xlt3PXC%4m-qD&%ql%sMLWDu9!fAzC6t(M``o$3i8(E5&zZiN70WQZ5;q2+ z3J^*(wmi5<2b`&pm z-{O%tFdbA7E%N+YEa%5zN)_@5*jpfe8q%uJ6nEyM#X$&9~xBj-M%5voee$X+SVaCYHUePTpmMG91m&U%$4*?Q~zsw zUwXfnSUL&kkD%?m9j*Gt@23P$U(WN{p+hiIBpmX;*5jz=d}GJ^kf=)>;reXkNxEYB ze%e?;X(BY8U-PsPZ}%Kwqi&7))x5X!V)I>%isK+;c&L?KHFOSMb{NeLZGbi$Nel3? z@9EtfPQ{i)#Qs6VKndY9UKT$jZJH zDA`u&U0t^%sY(`LM00-BKsI@+AVSz6b&|DZeKb??IBmh_L6Z)LM73CEptgU)Py4t>HO)2t=ov*l|m7tWrFclc}v-2 zNH0~TnK^z^uts(usf}w>uaAbF@LC!|gkwx{TqB<&#y839f5Jr@j)4;LwN$zgRPgw` zCj)>k7`R@qm z4NbffZw>mQy^kqj3&)yK41JGSdDw00z9&#ET^iJ5P>L1X!6D4u|9^@eu=lV4G649i zfP?72fiK`mIxFu7fA#JkiU-3(^lI}Do z#mCO?X6lf$s!9MxUBEbuPOzn$%3v&<8jlWj6rA@vQC(;bZ=fxYVJwjZZuWlL{1$Qp)Nk2g0vo@u` zI^Tsh3qoi8%oLR&aj8v}%C-+u>eD3T_&7G0KmVXoL5qP9{U%R%;y~x+G2nP%PuFyJ zy3%C4bHS0pbLH)22vdCta-K~tAeK-JRk9?!8r&m!b>~vUw}kOe1Lqm~9ViOG*9c(X z{}p3FYZF^zng1-1`YikZE-cZ4D8Mtz(5vWp)lmh)>h;&9s2a$Pv@<3{rb-r5y1ghY zEnw0Im@a+ar+(DH21LY5O85RNO_QjfMxa$N70dC1iEV9K%VN=3`m(5w2IE)2e%b6OaV-;5sHPtW0EVfq)s|!z{s?V!{J6y@O3BTz?rinD|XayT|6gP0_}Uz!>=#Bh8gKA z>^bpcT>b{r*WG9&fxxk*)Nl)bLB###e+S-4SSPzF0D6 zq5>hd3wfV$w}k-{p9wCldjqwcpTNo(-3Rfk86dJV*0KTZhxGG`>+$9s?YGc6Y$F$d6r4#?vFRb%>ZIz$bOob4R{hl}Vq8M%LX1r2!?X&*5` zggK9XfViUO{Bq=QTr-}&QOAb$FHx3Hw^9`)R-`kF1&`kzJ8P~uxXAgFj1Yyr)=0E& zDE-RlOvj>>(9ZnulEjqotCwl>@tOjTSR-57}FkN8&1Z-F`Xv z7}_M;oZSrf#&7+cw&&ou&T)Q6x<$jKhktEVxzS_yk{LXRwM-~g_D^I%8dGYk5UEd% z+UjV!Vh-7W(=m*}4xSv+Opp>^Fz2hQawmn)qpgTeS%FT@y&s)b(&ZOG^D^SsV|6CK zcIRpkn$g>q@kXrKJuF^W=X~CjV7NQBDA4?%cez(1pBLFp`cGlN-mS{hUX#1W-)C`~^LQ~gb=+*Zc-8O0jHd;g%_HcpV@O7b=sJp&(^vs_>}-<=00CHU{=`j>abcb{v~n0V{yx z1OtK?gd7Z8xdLTNsVW^*M%b}xMAaB(Dmk-3qgGwPJUvn zKvbumSwusX2j0$nq{Yn| zw+dOTYpC%abJjMj&hsaybQq14R;Y&EU8VU46hxf&FY_;B?c$5U7J=v8p<+Jt(X&C5 zcHd3XjaS2t*hF{6&I;+_xzl#0h~dQiH^rTQn*IGO6f`#gVtatu|5uph4UDWzjQ*{okF%whNF}b-t)W-EY-KAK!p~ zB6ofl-&NoqFH*_yC-_%MY8gc66r@hPwvO73C^4aM2U?w8X1Q7hg7cxZ_IIAYIp;l&n#j=0cKq`_a4JCWG_ zQeDmKv!i(y?|Ikrduzv~-jkgHkyM&Q!(`&N!&m*9SpM=?MLcbrzwxOcdWUJnNIjxp zXGrI7yhNX1BCmElvF7n`jR@<~XL9Oarf`I90|iUkCESz53t(G8MyW4oy*mQ9F}Xn! zXmWw>=%NPpa}~4)XJtAD25U8NGh1+ShfyUC9sT{~Sx)R(4`kiI|HOU)ON)^KfISlc zd*c6ElR7#Yc>E{y|E*R1HbT58Jg+TWWSuC{o;De>6^%4>b4^P9G<#{0?(yJt^U7zf z9AV4|TH1$))M=mG+ht3cC~E=onFlNbwa#A*A4m&l7<^bo;Z2Z$Dt3gp$fTe#suGUZ zy)?y8!|drT{^^`^$}hLhF&&Si)92cDhd@Xbq>K~PvYbRkO*nv^&R=fWI?cVMl1t1~ zAx|n**Um@b^o}l-2Fh)Ht?`>`FGc+OPs)8x%jV;LY_r9m-0=14i#8Bs+lYwKkDxwpPvl~@~D63;vh&a zueHm}*W)f19Vq2MWdj)1pe+)PJ*E&Z9VP1Oc`$DQ&j3}gnrF57!Xh+GY}BPe>3{O^Q@?yqm6;Hh^>pw{}e@2 z89Gh{;(!A654w&Mvu3kZ5gGkjc9%ISlSy%>zZUw5ryPWcf<8Fwbo60lyaW znz9f4CUNX!)qEA;f9BrN>evR=T);D-ai>Y8yWV-YXh$C6uqV(4%wF&EgHlCfY+U)g z9_90aQ+Q|(PO7ZT^&P~kDoAe>5gLJA^OSwR{7S#9jrMwmn{sM_>otg+-kegqw#-cb zQ#|*wrN8Z4cS7p!+Enu0hV9AeASfD9+B9Jb>6_PbHaAC#XFDGR zDYK?SH>o@Cb-0Uo2#*^yNe)p!8vNSLGpAcJW?N(nYguk!K-&1t%uE|IX3aAt%V(!a zK@PzR3v(M$`!&N_NV{jUcBu?9jt;z40-K9wziIT`x2g9)zD*G1 zmBZ#d{esS$&P;Z@{3bb~yg_R{V^r4&Z}(Pr>8)&%by%t9Kp=5A&zL=@SlrVAbpqKq zdI?#rg+?5i?14$BovZ5uZ+$>~A$e=USln_wcky*Sge2+%T`2`@eKM)Uj>9br*pieu zerEw?GC9OByEWWAJJ`~tI6h)EW%8)}$K4{mU8to*349%mrp;xr(Z>pQS=GwToE_Dn zN};ArpB>e_&9Z^W3v{;&2c-UP8c4)p<_Cw0J?uFYsV1*CnW$@S51Ek=zV_Vi7&^D} ze8R!-r57C=z5E@#7kA7h-D7AfhShIM=LV{E&@!aA(=}7L;EA?csO7g@@C65Cy7tN+ z22TYBBGbXXMRqUXmga7@saI{nXm_H>Zvj7JagJq1*}D+^%h{J(uF_wra{jpR+}uHJ zfg|`z51kSGbwp!D2nBN;SHJ~w}@8}C+9uN^g9tJ$?!bUBbVG;*g=>qW_!}rf@rN>d% zn{8I#`qWrl;Mv+Ot@HVGpIngGrYhPq`YLv8M%gXUPG#2i(X1&{DGp^zUiC0wH>+E7 zSnGa)Tiiy+Ds1taLz=&N8mhL_JB9QViOa;|!gCj}h+W8hE`us=f44!t;tC~-l)R6R zw_mLJrC}~r+AE>Hl6)xq0n9{}D|3B6JKscB3&v9m#sl~{R!ebXMSLlvH<3kqMd~Z_ z6yZ?5(!mwfu<*mw+makKx;L93gVJAfF((co3zeEDEM6fg-&Ia#b&)&Vl!&BGL^vtN zR9F0iR#S&)Qpj*sNvzS-868P^gQz`mtWL$udeiX)X|1R#acpcn@KGM4Cgvf@PGNQN z0(4XvS!nC6iHwjC&V5#34b~C7QZ~+q7QB;sy1LpBX{^|ZfDcq6w>G=Kq`G;d(VH)M zz$S2re-{#kY%Fc;{!w}WiS9pMr5?=b{+ug85yJ|4UmT$bVkxeK$TR8sjWnXGPh291 z1j}>ATWc4c2am{U=%s@Qc>Zf7E;B5?T-H=`lT5za(_m;|T2w0}hwCIs;#Ic^7eaPB zNdFFJdfqG-kA&O*+wFQW?>fLA$vZF8JPbYsGcW}FiBpMj)vfX$_#dPQ~wJH0J>{hdMNqo^uudbX4RjzqX-pUR&iFoO#v$RYD9x5iSFHfZ# za&7UI+H{E68OAV&_($w1wGlfu9Uif0g&(LrhzQ?{ZytUMH++_`dM)kOT9V)OUm0)I z9^)V@fb>3aew%gufwrQ)waMQNb*q^F%s*e|coJHWr8@%Oi3eC?*#`Xo8fL(zN6HU8 zpBK=$0nNY-lWf;5M4@T6mxOm}`wm8cMM`fH*r={W5rfF7C#VNa&IJ+A)sH%|WSZ3ao2U_rD z+4Svazl~Y>C|k%#{$nBEid~(G-F;(M+>HsglSAIHY?2mVfoHNDtgr6%r67HC-5!;V z>rvm2l{|k*bt||;YqJ5s6M;6!Z+qW=fDW|2t@Q28jQ$=X1;)zQq`&kBe}pN>M(r7N znJ-1UmB2R1GZXnIQm7bNjW6qBIL&~?u9rP`)?4T8Asfn?y56SV;fs=n++&LPLpGqU zg8RLO<`_4kgj=+u_R*F1MTb!oAjbe(qwR+iSxXr-g?Qjf9(|q-is$=$_PoX&amVJ+; z>4)Mb7?#E4Z?UpS^awvJYKrGZpoi?Zht(lb(C8mh9#)@OS1#iCxtBD8)EYrm_G(Q)DEVk^r%qcbYbo7Sn;QLB`>3?xiGzvcvs zu(w*sH?>GOT5QC-*Wyjm*WFiic@zhwBFNC?(_7b#a zD5h+uZ*6aEWG7^*ZwK_djO@(p9n1{>wsm5>oJ~3tcJPHqm>N%`q8O8Yf#s^Nd|Vy{ z*+7+3O3^U6tO4Tba5wN<=ZljDCFc~DXf(m8i>pWIXwjOOM)}NT!RlN-n9H$@9%&@= zG51o8?Qo`?L=dZ-1yPVKTw=}K?~`|;qkfPZUsrB>xri0-C9DP z3#rfzFRW7sbn-XJSpLU*y17ziPdmru&Ujh!;DU$;QEcP33ugf%uhuWyutc3YE4c1K zz$rSi3AXK_${PymJ61n9nR z*2ManYb-cl5L+$iDo=j|7u z4Mk%GaaoCyhgxQ3Y4Ha1c2fR<%xannm+Awx+fQBRsWx7!ywkw?O5KLpq5*=y8H|Fb z*-cP24$B7Sywb+e!c{>Ab6=>&SgIwFDH$YsRMKX}D^#3~)JTvB^0v+0EgkrwJ&5%I zgQpeyj@Jbpe&lNO-&=mRJzLa!7j}3m$y~v~+a?s%{g|sZH#}7v`;M{O(xagIvaCnIO`^`jv4ekBZFNhZ5#}j?i*jGe|bLeb3^JiD(=V z0(Gvy_-w@Y`@B=AF5hdjn2rzjCcY_L5jsOhG(;=~zR@-82*CkFEV%Gl6PaVQ5OPD^ zZ-;qNWRau-3#Vw<))ZGDBAS zVJJz~v5DN>qGI&Wg;oj`K|{@SlFQ}pc`;skyc>Ve2$TBu^bu1#cr6uyg5g>@*H1sa z<2@7Ho+)uk!@#MMtQ{W~Rld2L`Xe(kH+zb?RxleEZCRAgaMVi0pCIarY@BO=i=UOw zFi^Fmhe^9V6}p?gM$ZOw$vn?yA2II=kJDpFmgoqNe-|KzjaZGU&=MmZQH>^mJ!acC zzQ;)#|4oDi|G$YeBULM?@c{O+sQ<6T$KLk;m;`6ZIzUVYTMYErRAt=!eUnL;%O0rMT?3HC1$9r3iy`&jya2?V#_970>Fgyx_N!mw4 zm8@lzP$&YO0S!?jbZQ+ve6&i;m>UlZDCsC-CCzJ((mnNI>WGK9eE)HXv~mfIyOt`F zc>@}!~b_UQjjmrT`>IHGP>ng+&+RUpQ z48P$?BE0Fs^%46?chmPS6fe1;Z(9br3#n;|M{1{!p(8-GT;*tDvD8W>&=DtNRzX-X zg7xz@h*MVTB{+k)0Y&ivYb_dHTm#?DPtitq0ahWlaWxH@R)wyxKHvE7xhL|B2(v^8 z;`vQWUm_aRnIdl{_ahB#w)+VrW*Ii>?<`yo{4&fbu3?wXBg~R8w8J})HFkw+ZwllL z=!Qb^ljD}9N)9N#IV^a|c{StK2!>Zz?Zk(6FDO@j`Q9XCcma+n`rUKtn>c^`{K@B$ z{QT8nwh2Jt-i3us`80Jf>X8Q9jxSj4_HoE-*z)qsc#ACK@a)XT6+gC**8X*?4*TY1 z)zNIR)4{6cq&5S%l9*ofPI21J6Kiffi#O5;rKcOdc=<|8a!lDb&t`X1!z;aO8)>AC z`*3R`7anoiWIiFcdmaayD`luz5 zEmZP9w~whTJbA9&oBaU$cSz}d6Z;+;2r1OSwZ{M5Yw|~0`Bw`mG3FmkidBEyO1~t6 zazFX<7#Gx7nHMr%D$@##!jFr|MM)l)k*uW5yRJLqc!NSVezy{{+SIKfkDZpUH}HGmP3W zq}t+p<7VZ&T@v6YQe%-SDTk4;oQGO+33p&MpLwCh9a7ERio-E=-q81Nz#+RMkcHtQN^ z|2L!yXjYKV0F+GttOUP*iTK(TFU{e9f`h^-Aff?`}I8$M3mA z^@E?1{5xzWQo@yc7E%k|&At5d_ll7mtfT@S&d;C=8-wTD2H`;>rZ^l;ytk%iWaRyW zv>ENE?N8QMbX|8dkkZ^zLes!%xX!Znfcmd^YGeCn13Pvf{YMd(TT&7ZPOqK~>+iOk zy~{+{O+kyNM}wPxlr1bLGVgY%V2M(W9PE+V$J-SyIga=acwismS?cH|6S>{Voyvu- zDdlOU%3VYL8@dZ<)iGuOwr{{8{2g@i`j$ox4*w}DV+EwZnStK&1BQ@X<#tt*U&70M zw8%Y?2rF1wVQb;4m#zz>d2*)IG=u+w{^r8-+Boij>G~D59&9YJHA>xsCn(aof?2)^ zSZ59h8W=na9gGuc2%;iF>WDqn6Z68S=^SCgoUg1DKeF1v8Cc!i=$;%>C2}C8=J673 z!N=M)njodf-(mJlze&tulQ#&LBs##DRGE$RQsfTba;am5IPWJmU88Px_uLRYl!LbA zA=uJ=RUO1$(||ZmC$hhC`tF%|MeJ;ea%Pwfr<=y%=;V&YyvT}juwg?}#T=nY(6mxG z8%+2}TY6*@vuO}}#sg>CKE^$aKguF0Cn8?ZPI~SUG9&T*LEAh&<|F0-PT`ijLci%U zZiVcI&d#~K-}!S!I-FnP+(jtbwb8HBlSo2w-E9DAEU5oAxq2Dc{@FWSHLXHDllqjkCnQs}pf>hYL z;0P_k*T%1v+DvV&x2Kj79vkraGP5@I4^ zH&?;LbwnyeLAC!7bFM3-gGKu@Fn1O)Bneu@)|~kN7o9c+-xTfY{f7a?M>o z96UVFgIP}=POs(trA8rjdy}`36mvaSwi#Z}V_TF+_@UDEBpJ3r8f>IpDfe{+*QR~m zN?cN$npu7|=;OQuQ99rHD1O#leX8l?>a0j;gjQ1PERkR|Uk}$@rDxpu?EmKrazqVq6At?2U6pCOiG+k z!(r*H{O=}a_d!tPZ9a>L376sH(AqR^E!AFjfFEYwmk?AYqwLGXeydr}!MvcB?v31i zg(y=1QI*+SDAPK|7*2V?IpoA2v$6zHxiQ*s*bx10C2Pl^vx`?Nv${%t6(w-LggYJo zf-kKT(fU~`@~i|*HMbB~ceXTj(K;gaOJ@<22BD65lvkCZqT6QZuIVP?4Zb30cR9n) z*Yvp8`nRSSA^^mGANzlW43Gu9%*OtX{g(7F3h*O3O(SF)(#E~U;Hp3e zvOE#4t=P!ry3?i(p|v`MvJ3^XmUMZj9aSr})oBJ^h!34eI>tu;tf$e}lqf2mRU_zY zcHt8)C-sb+sfQe_cg#bGlnBz@zT9LQ#HvKd@eIUkc}u&so{y1|f;ndBRXoilKh$MI6ZobU(vd_ z`!v6dNVAQudH+P7Y2N5$H2&^_HE<^IP{|&_9wUDC+KDnN-<5sZIfAvbB}8rG@hx}7 zc<{q76rXP9^1~+pwF&?=yx)a=MI*z%=ZRL)6O#S>$N?AE=#KOLp;dl#?%Egu_x>X~ z#__UmQXGOuAR>3#*Yas;+iy#$%RZIKDt)LTBPbO_4oHewe~;A?8%m3t!Q?=Ur0?f) zvjf|7CCu{?8!f(w>WSmnD<>ayBV^SP{i?5`e?}&@#Y~er`F=NvC5iH{x{~yq_MI1fukL; z*0WfRSEKbK=g&Izcav66%7$wepyku+j*M3e!iH*t2y>!3*cC_&6wrK$K>Fd8_a+4i zJhO7-V|V)Isl;{ejT==X?X_9gFN~XaUV3pL0A`K<%Rfc`1>Aq=n15fk3e13e==hgJ zqb}t%U;|MT7<*T!(y;uMXe1FgW3=+Kl8`z<{Iu0F=!-9xX*eZduwOVE$E8gu zaAq_V?6Gw+MMnm2&~BsU|Kbh&DTnBM7c`$B{)+Yz!7CcsNCGq(uVi+U$rs@dW=sRX zjIlz|BD)~L7?RIWH}}es4H@j2WLe%t!t?t0Gk2lx{#v9Any2<#oS{i;phv8z`?Rva z$YS0}3XKq}@^UV62@BYP&P6+pVnt;s;t>=cv=+(m3WqcF!-hNd6s4`JyZaxk0ih}_ zaaPyQM~BPLDX00&Yu+>B&8YnFEbJ3n?^)yO?<6}v%--UM3k9dT4CeDs&I8OCFBVr7 zon<(vnBHmA_~f=83^f>MNu@4g!bhcL@PB@c-7J{cO2tQ zuZvEmfaN{$SMUJB;mBn12u16Pxt;o8um70HlmHW%S&~KZO-O)y^mw4;=)*~j1C6Vs zAH4PPG4Le9SmCx3UKu*A9zfWzHE3T4&r(1MltU}LN}mQHQC`nqFlQYmgFW-yAe*GI zh^2tmc6}93z;bB)^h5i%X+orJ50*Ag{47L9{ZfmN7lgN85UzZ4LO3J71R(5SR+e04 zPSnIM$wNMSi&3xRA8Pu&Gbw{wLOsaC=CUHqi5{EZ{4P>;Zj|LM19DX^MyQ(_k&Sm~ z{sWCf{K&|~f@fO@!5mq8>_A7s_0xVzB?=d4Su!t5h_Fq_#pZaZ?@d* z?IROeIIjU@C^0?q=*$2FL+iIhiGBhHU$9dY^&EWxCVK(P>0))vpS;p+DeIIhG_fS} zdrZ4(>t3I~=A4v|IKS8UFikHti`QrizI(0T3bIREL+8g_Q$0MD+v_8FnS?&+c+RC> z+=7x8&;E*}*#O1i^mTAzSvbU+30IA`herd~GA>^4G7A$6FZEOc-@&uQ?Xl@CZ5n$d z6cZeNy!)saz2m8bLV#0|j(J3pD2yoTK8S>7x?SB-OQNRdfEMU??uZ+^q<0#Sc+__8 zCs`hx*p_G9RbyK$7`aZy1dhFoJlEDokQ?MuhKfkX-yUt0Zh4&xMbzLDPWfC%l)p9P zyxl1Z^MXnsSJg=|e7t%8eDf~Mtn6_&0I z9UHPf%nD(48Doi2UR{j}hSR<3qm8ynLxu@o8^1%2mKEN?GLDWAXQV&AI1SO#V2%|F zMwld3jR1vw6?Ro~=D9<*fst~lxT;xHJ<)0wSO#T<-9}7ZH%x zmT6|wqW%PYISNB}y<`Xcc0D0)kw$~INxkXo%8PiBIydnkZ@Jxv3A#rUw$3&!g#RWE zld)H)sRB^z0KV~CxP{H^Z7ua({~3egWNdnw5MDSkn3O3EPKNOm{jo@}u-K@bGH7s- zQu&P^_X{jH8lHKB5kYY{L~c)psx!%8$7O;RbD`w6;R9SaB=jXC7e;aGh_F5oh4Uj| zF#D}C8w4)4zmr52uSQS&Bu^>4OTKfWH7QY1L;UK@7GygFkAHDs_+uvB;L7{3@f#GR(Aul)ha8qt+c z`0tRF!GjPb2$+QhFw1Y}7k`;W4j5xv1A@5!qu2+=C`k1&p}#~g2KQBdu1r7a?9o+$ z+9IRKd!jdWw^i^>5)z8JVb2?DGO0*H*XVX~UG|fivc$2FG~wj$5Uqo^>qGh!oy*W= z%^@8Gz%_|Y!6VsV^4^3X(wKPKa6)?RD0%v5l1Rd9Y3%x3INn9#Mi3Z0wKvmRN0PM~(-7 zu=hN??0MT$bc7gi!~^X5(Vl97n%|wC{Zk(Gj68_IwDw}PkV>}Y1@}d&!W#RYXLtn5 zu0nA|1$u3PUH(Y;k`rz(NSXDPDZb>|VqS4YLuX%+buMY`-Dl8Df%vMOkSm`dYAwDx z_axrh`uILFJ^e12y2I=%x722ZE{m1?d=FKD5C)e zW$oLxpbrGDz0q=v1I;MjwOy2ItD>T`5Q1zSiV&aNlsboGHkP9GM=!V zj#GhTmWsuV&=r}pehn^ewPjjgQb4bUnAXR*!9ON=MeQT!O*j$vD8m%)&x8Y5Fe~XZ zi5ss@^{&InHH|vuXAior{$F~7QBj%9Ai%}X28MUPtq;Yd^&K4kreg;x>R7BXp?ls{ zx7?Hlj<2-!9NreZv&&OSilj3!G{k0CK&=&qd!qVa`0U9pA#^fm425eyHS=)!%@$^T zys`2I%pCfgraxne-!!X}!u+5{H} zRQ(L}L#IX7-YZcQC6lZR`~Xz7#S}x0Hu?g?^Xl9h_>}g#`Gv`qz*<`M!%R^~E_SN( zB|?>TElQeo-$e4YB5Yi}XyBjxrea82Usqye>FIbqx5kP@1-{BQ zB>E75<*3t3X&STr^9rPTjyu^Qqxh5yzXMN}tZ>JUd*^j$25OeH1T+V{5DnwO?mOI% zZh~tdGV?ca*)%j@gIpf|MB#1M**RI5lr_a;C?{qC5@eBD`Bb}Mg=CVGk+Zz_M-Qu! zb~K^AuihpZ2OzDMD+Ivyi;}gN7|eqCt5bcK*++Rm9rFMddtq)MP(1a)aHJMwij(Zd zd<KO z2^!T50(-iubE_P4Gv{1^U5T_I8bniOirrB28cth00m9&Jd3Y{6oT=l6PJ#%{xFpUvb^sRMywTF4!Twev7|f)gQvTAuE(P8KRMPEPJ7nFp&nZolkKq z3HoN!e%fdY_2FER`z(DnV@(yC^^Pkau;WD(%$|}WwC;Jl!u-V5CqhFX?66Yw^Gibm!LPs z_p2w-cue&xb_r-L%*82Vo1sJ?_XagBafJelP~j|NU=u8Y(p9Rt9?WCab<7np8j9*U zz=oiTRxVFgd%SExhOn?q#Du(E;7ZGg757q#JAl#a#3s$pn`)fWGAH(#}Hx19;Mp8Y@^2e=bi~Eenu3RHxj8ynJ}d zgp{D`b5E7&y*i^y7tMdI?f-oI_;mG|VS`0uGcpOSYl}|QjyI~8e$KYoEH%PLDK*lM zNP3R`=aIE%O3<71Vu^kfiH`kueCUKbzw|1n5y@R%(u!N)(EUFRq-bPmq;GHZ4?9Ih z|FiV`lb)8lIFD&SB7-hKW*Kkxq6(N0)qJ6+sT}wC+iNBPldY^1ziPz-oVPVNr%*kx z9oWWgxzd`2u=l=DEI?vW$OiL^0Pk8tLe1RvYqra#bIhyg zNfi1+UEDFAMbTvBjr&O`GNTxC!B1BZ? zvH8#^T=)&M7lPWuh$$1Nzj)HN6rjhLe9>dL=c<1CQ;%U<5Vqu0)>jMU+0Y%gh`Tz0 zpcZYJLFS2Q_2?_I7b40NVK0t?Mc(XHHnOwGP|L5eTM@&d&EIDS=!7qFB#ZQs-Q_;k z-FVobx{frmXLB?38leXGLaQ+?zq zuzsR)$J=>U^H?C5hprFU{DHd_EPfzPkGYM|g7`vO_)?TF2#^-;|0FE{u48V6VnMd# z)_W)L#H@^;^Wr*%RW(Bw(s%wRSUe0s=n5sc`A}g$4-tFQ`(;aw*knifqwJRS#?$Hr#42^s>RDQQE>&1IUMzBkW`v}mH~e{#zE%Va zw^%BZkiiKNA1PE0R2$j~ldKjY+o%a)PTu%quN=dd@NHR!IBaYE4t)E_C&JJ;7Vf5~ z?<3+Kp}(}d;@V~wWB_Zl{;%*QZswqDWbXjj!_o5ZR%_(nqsa$!Avt=}Je8Q^Qtw%| z7z*;0_?Jv?Zr}s^OQz@LOj)TYPKm*&KoCaeHxALWQ1ngbOsQWJUGOVvgt-H-17xUdbH>3Um+QP| zU(eQl^V8vbp;20x)`tGw^Ot;EihA*Vo`kLfi0rg-f}E8~^5iDRq>!*xcI=sX#4y0y zoDC5~l@eb&;^B0xr$ETDyp2?~*ME(Zo?|8n-#i^N1>g=GMxWi1d-OL zF}yU#paFZ3{LVv!^sNAW@juk`o`6Sy3m^nuT+`ak`?qUCQWIFf3oi8D>K3)HSld!+ z)YY2euj0nKm6Q$yY>n0ok>?Ku?^iR}!!{sCCgrQb%CAq=LvgFghtb?- z+KP1e!f~;HC4aCjjX!rw-qA1@m31|X{NuA`Ip87*xLeZCaO5__GyB}z?SI9tSE{TtD9Lo=)o3YkneiI2Ue00z= zVU+QPcN=n|!12iVik!2_gXmm98g(hEVktX@SQIOJ;-v82v;9qxtJsV;OOpU>Q&r~i z*njmPA%Etv12DhLlYd*`{0XzXjlJ1F>P*KNotHW@2!Q%k`zpT{P-j+~ZxmQc4QXBp z7JN9VG2GqzfRrfW%UX{b`jHDB~3uQCaBf4k18M%t3>pp zLNtgR)rfxJEqLZG>ncc!nC(?nT|T;N`?=`opQP};&$R-rvf*Qbp@jqD$VTs)uRP=) zuzMv^HBgxx2tKcs86>Kj@ttRiLn7%4Q8Cmv((rr-gW6W+jwXAU@OmCT*g10Y;=UIo zF;|D#AExXOdKRi{mb8A^eNzPDR}fmE3#h~*JM~XPmDbdx?-1<_g8WrAG-&K3_M!4k z78`J9LCTtJ5(0%^*UqZmesVyh_dU%7t$gBDmt7KQ3X7+TG|1w)a*Jb2|)F0<%Ugo@xE-NT%iWKK1ci#)9EYoB;rg@hTsxtQbt@9S=ZOy)FV z9kWEy>%!q%{_x}0z=@;XH}hOCpBhfir1(M3n6PpqyEOJ(80Z3$F%Z2IRS6MSe+J{b(BI=$3tnvuX zBjr8~4p9<+6?Z>nU7TMqC-`5(48?02K1~2;E+Crxc77(NA|d>DPWrbt{wD^StgS7) zseG@500L}Y?KffZ`Ua)t<#V=2fr_B#bITr|ARa4YldQWHSfP|~^uiv53b1w&z3?II zqS28Etz5EcNLH%Q9F_!0(#uFuIt9%>Kc;~DUiptcI3#f3tyI&y7W+}}2yeKrz799i5T}i=V781Csc7bxCX5HH^9Ny|3KaQm)7*J3MGk~x;u5=pigIL<$e*gK zu&Oj;uI|3N3F=!b_iFYAM`6^TEF>o|DSpl#?}Dr4Rk9zX6l<(iuVWYUC$Foeq5Yl| zC4W&e7vabMHBOi#P%Q8Ml2*S!3@K3y4Uwj*@-j%ZectWc-jOF8Y!`S=z4r966ZR4Y z1I)a2C%oB3QfE)uf(9$Tn6x0*7g&lBWeV9 zqX@!Ag24!FAwR>}4W&B+!Cgx=ZjTh$^#*9H+{$+>sdu;THoeH06hdXp&_h7f@r^)V zw-ai03WELNg9&UK5*)!4u%R~y-8<$FATEiL8^CI~6;|pSL|@*yTld&q%?WP(eg&Ba zNx#Cm1x!E!9NJ)bTy(p|R1yp7BIQ&PI}la5e20!B(O-23r%DqmP)Zw5 zG_4_r<(_sSa_=sqT*e;M)9i#a{e0A>OM%=BAr!{25C3Il6k z+7EPn|LGfnz^m}*0!4ItWm7aQNa`JdS(w_7q!gOmiB@l{UN#dr+n4OLx0fcm#QNx_wg}e#$ipo@?&l?nvTuDq<$zK^uuazp0Bf9AmspUHGIvOR6@~5Y{g3unKr7$$=-$yK`^LTiuiW zYV!h|_x!GARVP-T%(o3~0!-Tri$O})uynaECpmSjNhx~kow*?W}3x4H1{0KGI{NLkN*DO-jPXva|r=J z-T+X%Xn*$#tD4z4IO<#ejlQsv{om`G1`-5pR$of6Cye|IkisHjl{G3A24Bfisz|t_ z!m{aY{59HB9Si43+p?#-$yFj4^StF`J3V^$&AZLXC?33CWzhmUSX&%zN#sci`1=Ye z@@a`mAI4!HRftvoDnw936g@#gdR>?rq zmCkv%ar=4a__!~9W^INm#qgDqa+E7J!L7IWZOX`k0!ttVG=I>fQPZs!;>s;2Oqkt( z3S9#>8oFu54QK{6=|McbxA?B)c-P@5=j+O$5Bb~9AU_^Cc15jB6);!~JuXfKXq>N} zDxS-|Iw;o?+`*#Cm#Z3OKPOpIelBy6Ew^4p*P;9zgru5Yh_2HgIOEs8sS?>Mwy`8=+}};if{Wc!ZRGH9o;AjgH zPDVDj+nEEFTo~3*^;SG7lj=x<($Dsz6P}f2MRcl^nX3wdD$Zf(QhfEbYAcubq>h;j ztfvaa8gsqjggsDd@$b3ZdES+}!5*-gk>G{(({PF7?O@#Ta#%sS>v#8Gey} z;6OXBVhiVJ_|=e)0LRE$J7n7 z0n3g$nsD`#>GTwVCa>7Sp+LlbgTAqsP0^gMZ(1G$bKod{Bfo76<96>nXJX6CGVXyp+0_(2fRfe5<}W!=6Z_Y zW!!i0F`R*=wU}eQhssABFOS)cGRpcm&U>2$k_PjthVdMh#!Qmwl`iU}8)tm`n*U((bi)o`_tDoO}p!AnjS^7i7i1EteJGWcZ}ZbyB(5)WVf9R7yN915&n+`7Ds z>U-_b?Csp&yPw7NRdesk_1!tX)3dzLd2@-vx`oQER-!**4C z9R9N{EE3oj=KrTInNZn-;wZe-& z`^`RE80IaenHsPLh)$Dj3SwWbl`ubZ2FPt+>KH#?WqFAKpL29W479e7nV*q|2?-Ok zXQ3iHeCZiAioIjclB;l8qKDZJI5SO&69);j$brvxFK>WjKw1_kR+JV}wJZztmO|TEAPT1Qd2Zgu%HQdFahfE>TZ);+oi`X z4lR!2gv#}DhssCm-D^Z?`J^u&jHQJbNe68)G<(T(G&|6yKCuVQal;AP>+jG{817z1 z5us|_jG1zt81k~#vqbybu9zJ6`JHDlp1Q_Vp>oYQ)}aOSihdw4dMYu&>VVm?{qW4_ zIc>9W&qwoCcy>MebGu_{Eh|rb(ZS+PZ<=nJ(#6N^4z6FO)3Be)rj!6{4g)dnx6|pr zJn&CzO6waKS^ia61xEiB>s|_1OqLlM@oxzQjp%a?6x1{%Mr$v@j?L03@Fm!l9SV$R zCH?&L^9$jWzj#%w`8cr6iVK3Bz{s|eZogMtq#J8K2S&h*Dp3?!D^i^#b=8p@sg92q zBYQS2vMwl+u4d*U@#ie7e^LBtx_zc7i`uGfbfhYILErF(Zw}s~q(ud-NNWN8o;oqE zDZNG&8=|w5Df65itpvI}ZTS)mH=FW8)_Z5DHhm;nX#eotCy8e~MFl~!;TpLXzQ<=4 zcly0!HC9w|EMz(vqpS6b^854}fiM*Ne0 zbdh_Tj`V#D5(aqkr2@>6=S9cyGu1zLD`zPCeGPVBA++R7Pdic<Unhch&HAkHK~{2>5dfHKT40wrLLXb`xnA$QMPAeJ<0^9OxK0cc?Iu=2IA znc@_F;+1R2;dnj7!xls%E?V0RUJ5@vg5AJ+BzQ!Ru1<>PP=zfE$o%ITUD(Xa8|Zoz z4ecPJ@D)1`fIiN^CF=LPJLk@xZ`+ut8Ul2UhFLeS?g-O5lg)n?rzK%vy$q`#R$cvNfXGHVKX#*mU=XhjmXx4tJ>csIR3mvSQpjSYE&;mF$1UWqhK{~Q zG;!wA=Z(yb49IF{<{DFLQGDK6f8xtB>puFgZJz<%pdg$8*suQo{J_lmgPFC-KOQ8{ zzy09xrE5H20PO5`5nn3_WTXE8DFUom`fHd1aMLIssDt~i1 zOGK7KY4#LpWn?xeS}QG`ef^?0yvY*Luu%sWcU&{|98)fxt+gIwvA2a~?c31-$xedB z{7jQlHB@g(L#XzdQ&W^!yD#UN?@d>--D`YMzhDiIy+?)^&nx0zspM;rRpc*1PhRN% z(YyRR68&j`zoJlMyv$41{-;1=PyTu)8fHIXwjfMW0%J}Iy%LkVo94Evkt-@k<;mUH z3VK}3Zx;R4;7O|MmdW6*Dm;|A->N>s2cIu6pDzs{k|~yI$&6SofzdBckGgoINX*;t zlspP7s7lO;TXgcm5<`)Fy)x9BuTt@9cAJL>3x^zx2p!XmhM^oqiv`G@xB>PtoI#^#`AC59|R``5ntDV2+uAO`N zi5D@&q^ZjVojfgl@J3~=%H5yj5|a{331a8KD#F$^6SSy_51L2LCge!mDLjZT{{Umv6#HX^n)@>V*ALX;oyZJ_go=0?)0v=`MJB#pKnn$8g-4WQScO^1c$Ke^)Z=;PdX_SURu?M; z&s(YqvN9LK4syiKV2qcG*bs=e(|_+Atg4KG-{-bp;k@7d2qOC)Bt@$1;kwlLxi^PB zRc+-&-)6$Gyp%^Fmd2Axh+$F{HX8ah`zmKd%gUW~%-M$L#wXFM$;OTEWScF`-!7Wf zw+yX6-fcDA^HnHRPS`VWjY=ji4Q>BI8Wkek1p(r58=6`7>vOfW`c0`@hgu4S(1iJyPLx6N&5|#tJ~I3I($}5ohDC5PMb{^9cPp6Tj!iM zKV6p`?{uDTT)b|-L@xORpPv>*8xKw7-Z^ndE~4!T`fBTMR)|{T3`{O}L!j z3k!m1ND3_G-~xdt_5cHP_&N<_&s7NIYX>=qtCs}G*B@aZdk?I@@9!Xpro4$kTp19U z1hZcL1u1Y0frADdP~b061LrkxVnFs<<$(WSRz^z!Au{%H^@o}wSR@LxJ%-MFVc0T= zsBaz_0V&(7DPqw&G8^iK!4Qm}RVvi^A!*7(6CH1$=g|EOg%uO&)P~sJCR>!2Q6CJ2 zG0hy=2b0fpkkN_tji+1m(d*;(TrluFbUky(>jh2kucHJMMxe%pr{|yP?r$N zBKx}!QH1bc_nb6@lnBZoyEE^PLSQOOCc%=>7Fog~OEDKp`5cB)zXubRl7>Yik~J7j z0YO1k8ifdnNU@`U$tg}?1*Py+harOZGlfA$G)ml)!B^2#l9$$>7gmWa0)JNOmnvON z^D_u5k@%{qhCZ((JXJP)FM-W$UaEDBpd>siSlss61Vw@KV3W(yvc0C$o6~-u#5b2T zxzv?3FG%M9W9%&hs$92dVWm5yOF}xNySsbQNOyOm(nxoMba#hzcS(1H5+W)2y}0)| z*X{P)`~6tI*1vZ=&wS<_bIdVKgGnw81Fr{{!WzSs$_fic^=x1B)5Z)NbvEmVAy%_l z$1vrIF{g6K1md#6Gw9@FW*DgNh3~!^V~{&#hi4Rfj(vljBZC0hM~Nl;fpMsBLJ(`m za9=NkiOESpgcFBrKdTghU|B&k5J?9qp596IXlwDc7p3GdlPt*$sdj4s@>yl$CNilP zv|$h*nU{J=PcWl;Sx*w9dPR>vqjnWopWR>zQ=sK+7^8ZN=s+`;s_g+Y)Yk^|uuizw zWQI{#gP#PP@uhbm;f%b?auO`#-gCL&CWu*ztt2r>dYsR*>t5RkM6f=FG+bV|-y8U7u|I0&K|Ak^y8w zOfX|kuiayIUe=>{F~7I(o5Gp(J;^b!I1U_N+_K0Vd7VaKpUzRpp&DldG6dOg=ik4lK5Wp(_3A&8-i{_%AzxgrBq&gGXx6} z0bUysL;cC3vztCbLtjg^BI+3gZlXmvEt51AqcBSmPqYQ-m=LjF;Yrji8*ug&vSmp zEYdoYYl9C?78a@Gds~Iu)Q}BNCtfIB^Rm2kb|`D`F#b&==<8{`ZeuNtnrot6-BODO zcw|2QRQytcbjx=i?M+sb3BlF6``y>iJty2>V^}(nGFha{g3VnOX}~l?992&hv^^F#Itk-DyUpJTn9LfXLyOx;kM;cjhFtv#D@&V+d_{k+n(9A4czJ(2${$I&Oo zg@L!Q2Q1vp7E+83DFo%EN?|KlWA}L=IB3A~5^{}!VMAvDoO3>dq6wE4UmHs?C&_dp z#8@lQz2h*`J+ES>3g_@pQCS0>I@u%sTbQ5}t+5ik5Lt~C8kD{+-zQ8tUL75H)9P-^ z4UuMC9r%JN4SmCB7LYTq!w#qCKCy$~trS%k$2Nr%d+oNO6`1FFm3nmv;h^iWZE#)QUHmz$kp2f;Xf)^fNnY2-Fr;bvRISmC<`e^NZnM z!`rcNnC?WSzGTxrB27bWORBq+`6k|+n?GMz5z`j~y|dKo6`i~LdI5ddcnDwUpq`x@ zpXM$wnin12`sN75OrdzDX!cU$gSe<~Cn^+~pP?Eq=w@iOpA6l|3N7{aPLWo?Toucn zIZT=?&e*7uuwJTg^fDaTf;pZ3^16y=c;>r3DO}<_MdhQLx%SA$BJXlg-_nA;+sBwWJ<`8Y4gJFkw zYSbIxH~3}k5l4e5nbd=^rSCK`w6r>WRzV+GQ5{(-d3cJag#B6sdBV`Aqm;we8z{hdxZs@mFr7kN|jBDVn!w5 zV$Z~xo+g-&r*84RYkKhE z{?^2{ZUGKsvd2t z$nL}XO}Ij~QEN<7tHEkrV@&NvW{}9B-nmmSBDw_b0zVasC{hEC!i7xH5b zwMO93jkp{yvVJeXGCdK~KLDSc3n2FX*jfB*Tu0d10U*8qzDwcJlNP{yyy)5mhH%CU zvmG|NI2QSk(jG8LyjnaFt&jzEL(dPjG%jk81?Owb4w_Q}q)YN$S0l+yQ&v#PnprOD ze(dWFF#6Fjjcl#ud1_+dyqSJUv;!E_cUU3zTbr+o@%w9ZB#q}k$5!FJ|* z-IYp8`Ck6l2vCz{RT;gASdr}^jR!c+8mI&G4J1aPCfeq4DSrOjv3-z%}%!5 z!SU*Mo;=%ckZ-q--X6X#-!9b_Gaf8$cr(VnEqKbo!p(tIzMVp} zH+GO`Blc|OoaLib4lQ0NJX->7wgKNF2ir>}afJW^8OFV(#!)`|&@~@lO+2 z%Cx!WjL|Qjyt>Il2d(D$g)rJ%VhcYDU$Gpv0ao2?2mpl?(+dWSJN%r$67r1pJoNC70|L&xOf&}-+t?=mNhKsyBe;F-66IU-a{(Rru2wyCv6=2s-jo93&nM zl@~SWO`ZEHwQt9<1-^UdtVnr=F2Pl0(D=DOs<^Ie(D6ZjI}rW4$Fj&Lrua#ER=y<2 z&Fk14m7YD-j1Ti)HpROnYrIcPsu2*e{y3VbU~KaXRpARlOrcC{3ukXv=C%seVz<^--~bW zk!Xq4q4S(!xLkwDl$1RI!RLh+^=cL?nk=HFvR=^I;wAVTL37CGf^jqgGn+TvoU>yI zLDG2qA`xGJ8I-b_Rr2L@!I9Vo&E_`PLQB6ZqfHLZ{Y?nFha8qtNMLFX;%$sVs;$p6`Q|p zfh&KrLHT6ftq9;j@~5gFz(d*D!0Fc=a4Szu_ou`FszP((TpVEX6fJuUWTazA{@wux zh;Y@On7kq>$mv$x-L(6$WF2I%c#@eUpBX)N7@d6zyAlH9DQejcU?CbQy9r79%bb(sr)Bl*65%H7R>Z0gyX{jbTtvHfM1?wm)Z{AAn7 z@cxCitdMR2nHHLPn(lGZf~zfSK;e!l*5e% zAxVV|RX(vj$=9iX%}H}@`qgC&M)G?Die(PK_@U=#Z`61#MyROe26P1xJV(l zI5xh4U&^2U=5O<2wC3b#SHRN<5Y_*{Kv>^S-@x1o*k2`SV`BSv6#B0o`pN0$s8d8s zP&!g23vjwQC4Is6Qw`m9ED{c=p;c+ve#TOKAu4gV0XS&(_5CpvEqmjkY=C$t?_xon$^=H%#O%*@80M1LSa#j+U za~LnEjV*JV%w=sXY3_ZgBUWEc)VP9J@qGF|nHX3qD!F;8AFS~jE;cky^=z!K#>n*f zO>R}yO%s1g@=YB{c;sZKZoV@%&M{af#HY7IjZ+>J?xZ&wA&})?UO9=kLKwh zTW3Qv5n~r~L*rjaZJ?3xA3geR;RJa-oKlalED4kW&1n5xrELDFK{Xm1-qYlvWbtR= zUS34*6YrDo6X9$}7C?;-qy1r>js!OHbFvVpER>r7yb;QPkSwO)5uHJJUtPvG?{e@j< z7vlgu=H3aATE%_QOJK{=q?4BF^AsD(G|4aDnR?h=hJ^h#g`c(S*Jwk_YhYV%5)Ezk znq>44FL%2!anZwWsh|%`>OO37rSj(v8`0%FI+ai+54&|Y|Le53>Kfb-0^fNH`28_w z6$3g4{}p}$bA|F?Pi9Vk2@};Odr%^XU}3XiJ(>IBRy52GT~f>~wSiU*mBG4z{OEA% zNo#Voe|*s-q!rPN9$ulUw}pCwgRES*4n%}TL_q=w1dP6`j0Qok1BHNf!B~NZge)+V z5N6@MVJB1s_MH3n8uzzw@q*($iXOEx1XjBx2FQ!73TVtw^5u*+(1;%Bz9r!uMWby? z!l4vw+*`E)0v{|PKBPyVh^~k~?K)&mUe*n-=y$E0Bq*&7?V9d2e^joax2!jvNjuJc zkGbDBfAz_NxJo(CYcT}=)2^9=!#1d2`@ovm%IKm@V0BnC;=7N^i9KE6#`?DU7%>$F8Dy07z^)-uvmXki zgUT^S_1&EdI8zCcvvvEJ=+kt~@^g|@k7*}(O;b_h=RWNCaYBMRhaHi(B=3ZXH@d}Z zM^yJ;(}x(f4A!Wm@Mfx1O9~LTNDK0`)4M0eV^vEKPFXdHEqUoKlfjI5{Mf}=nt@ExB{kIEb3CK6+#KD>mmGfYpkdx( zI0*+tP{;(}-baX?$iJsYEm?iXPl%HQZ1D!OB+oBENj#e`Xaj{R8;x=Bz+JPwG(7Pr zHX>^+7GJI?Q;}X`j%8_{b8*v=@<>h>uO-X3V-P-aaHbAA zrs%r^oym*?g?8`H*`l(PS5wBJlv#}4aZJ8nQF@semI0$Dm$XK_y|pBVzdSL~aSW3k zH5{Jhi*Yw-(2mi!)&$oYdM;cGcYm= zUMgGY%^>ykttq>_z0+Wh4U=(^w4jXaF`ZJ23Hetj?J@AKUlk`czP&i1ZD5@2@811R zu+(mk+mauegdcb{#Umue12^KgquL+Gur#QoF9Q)>Z}x-3ZU$wdswZTg-8Pg<)s~m9 z%}VVSnmHkbIifZp8?HH4PwY+i8BX3Zk_K-DanRC7vNWBMmI(b;|Ni4gtL8O_er%-K zl&{+(mB%?wq?>VuyPLiCS|fCeSeMwANm13kFtY@oaD!^5kvV3>u;i=c!DU8h-{LnF z5=?$n7+KeHte;2De0BZ`8`=kNj_JF}j&NcS-Jp(z-!2kaE=gSRU`^<`pUV4K$lD1Y zUqB8Dasf*PPq1(C;7h(=Rgn3J*YUEZUqit*WYHn-t#L6L8Mwmcxt)7G^N_U(WS`TJ zKZbo?0oX=Lx0TISFaxaV5aL-1uhOk?(@c9dSMwnTw9PDEDfry|kH+tHlkn4K?(b`R zx!P;dMwH@hkDRHaBXD?pWmS-IW%Z@&X{8@o=c3EeI-l9lx6(F_FvaE+5>2GymQc;; zyVK=1H({r?v2M?@uj9H$ResG9v71uTkssn`kflt>X8ftYjs_$rf9$Ud+ge-O+Wd?xf2So+hLHa?;5+JkV;!pG zQHtTO8Bk6^6>}`Nv~EIfWD5Ue`(=?wLXxB`vFm*@I_#L#^rEN}&R?(|X2DCd1F-?5 zVGrabVL)Dj$|DZZ@*()8WXi}kCwhDE7kRTBk-3h=nWS%?Hj#}+POe&BqsHVuFF8VX z)x|F>8#9cxDgj#@Mgz1YYH_?mhRhd*PH=n9DR}rw%i<08MwVuc;bgvxavX;j&NLJ0 z=j#T5Y0KA-S3#APFHI6e+}XH~fEBfxEi(;fMy*hlaBmuK$jVZRj^>jl%AMeR!#87U zdg|lQ58S&}nPpuyW89fD_sq*j4=d-P(`YJ|+?`1M-WD|Qco8a=@%iqDO+6M(#V{OK z-blN1-W8QO*k5Q)0V=hqb^kZ^2|qjhU({KCnlpXjEL2)o>{q zrCjF}o#P-!ZftVSSSEUvf{Wu->On*WX&b~hS8TZz?_3yoay8@(tY}ol5KBCqJNrIG#c zB2@`|Es^MD%rzDH@lq2unp#~U;(7bd&3kyUtF3d>*GkXN2gal$0=B?Rx+QDDtPzb4 z@m0yRgk4~vq|tpxCDuQ|IHtb|ffkpp<_Ze2Oe79IdOutSQhS-=hgs{{x>T~wbiBS=-faFC(o?NPQOqkIy)2_71I&R3|c9|R-R;4D(H32rgk$s1}VdxSw8 z#Z$yGe>3X&6fp3%yq}nyZJW{qm`EIw^(Peh&p4s(WLiT}F&gd+nDiYJ2?q&P7NK%j zcdzPw-1He8Q-32M%31(pz)d_i#B%i%i!4~0oAz}tgDR)UXlpOJrYBDy46CoYtmLva z-bg*8n~0~<=`M<%kBE1;5UcMnza;1IELSEZX4JZplQysHWY7t*Z8$S3B|PVD-2-qDj?#?68+lOHL4HRAAA{Q(9sB9^itgg{ ztKDhGW7{Ulv#J}=Z`yI@ME7Y|01Gdmi||KbQ6}A3>Y|J0revkcPkIvrn*HTm!;;>RnI$fmE&Kp6!Q&V^3c=2%J9|3 zE=j9qHMUC68y7Dnc_D_Rh97%%^ql{q*3x#UhI$Wl-78c6$hUE*x<7=bYQ?4#Uw>3N zc{3lBs11PxF$%ZCxoy3NlKcYN41?ZKG~r_x*E?G&Y0XHe{@OX`6a2R=53qqEy@Q-z zub>MHs|OC?La}lX*0A*H19ya)zhXXM&6oRlKBh5K6(c01%8%ckzWuHL0o9tWe&39s!b>cr+|51 zxmxpscPFKFl-U8hC|yQvSF4{WeVe2dxZ?z%D8*s0rm<~g%kqc-)e!Vg)evR4C`z&@ ztzs;^AEoa#1n4f9OBIBqq>`CvE7KZ#Cgxgm?fN7d@~i6MRI-#(m)q4x5|RcCBlf9t z@}_VkN~18GvelP!-&VBC+S{t+*HU&QFOmavC!0$5bXq3wamS3Eo8x55A)+3YR1&;w zDMi=){jCvUfF^;+boTZ$U(v*3x3hvkD{eU7Vx3b=Ke=3(_{vfdml@pF&aTJ_s2+wJwa&Hg?WVzk>CTc=x_X)yE7*yu%-2(jOPO zFDWm5D*Wi!#1&2z7#G82L;=67G&kAxJ_7p!dJu#b z1Crr*dl-i!6q?W5uTcA=(oo|06~;w&h}8hMD#I_luW6f8$=V&GVKSk&g1xuLK$U4D zIbgYCM66?34PvHJ6~w}!G84cm!@+LtcYB+wMRilv5VjVHB;OXRsu0!SeJ>lq)w(xE zMNg{P-{+O;y=G;U7Yn*Y9^;d$ zJ6*}{GG(26w6@H=d84tX;Mv1v@x)quY@Y+y9RuU}N366BC}H=`)TJ`Bja&%zjlf|=9+X_xuex%&%JYVVgjc}%KKvCLooZ- zuTIH+2dDHhb6XGqhwp#grJt>XKRrjk%$WW6IRY~i;>9scaFJrK=T5y>_Uk)2rp-q2 zyPRN|c5lDh&7-0PMJ(z+&*)Ht8MH{~q=S4TQ6T~TE)#MJ#wd$8l&Ar-O7Q3n$rO4u zbM_7Vm!v}cxZ=LxHARl~>`8|V?-Mc--{V1#F-1)aJ>EB@7!q#;;5NN+`Kij2-kM8}t_GVUwg$?s`-_7=&vv5L@? zySw*WsQ&5WR>)UN#t1d5#UmcdBj|g%lLOF8H<)GEMa1 zd%i!;(=IIYzFW}p^-%n?I3a^<_cjDzKn5P8KZdlQFvtQ<62Da_3jcVIRLrAa&iH25 z>q#N!#jz$Q<)x-qE|^UN@6iIbq7-_HFbw^Pr4CAmwpby2Sm%p*^iEwlVYf`B{w}Gh z4nni{EMPbT14O~$f+Gq`U01%(x-g>`Q!x)I;U#i~Om!6(=9@BmX?ebRjpOh}S1rF{ zjO(;ux>82r3JebGB%vUXZuP--G=e6OWGm=7g>nuRf5ol@4+$AhF0?++xPy^X6mZ-K z&7L#4qVm|x?;k&)_qx`Ye}nJ@Fs)Z|@K%xy4TFbadn0+VA$P%fxq9~9VU%_tplXUt zOId7I#Y0y?W8HTdbDEBR$J?_*{*_%AE>cNa&<0j&(_@8nhHWU4j)Pgl8EqW_kQ6j1 zyAKk5BR8wZ)>T?XdZflU4OIQkt7`Ovv+U~?iL*@0LN1->++9m<1s2CEdE>Z;M}u-J zWMNjfYzg&iEASH4e8Cy1@>9YStbYR4)od*84glr2D|*1${3Y$1FRqn{v=CJISrHk@lA9cuP*|~9Jb{-g_W8xAzQ*d< zZIXENo1{S$=Ll4FuvDV!P|0WVpnVB-N!)8+D2Z25K5+=X^VmJ;b)()DO97caxep?a zs&Sk>N?Eb=MTI+QfE7OeuGcthYgAR*E4H{U2c9!D6fWPWuuh&=1d^>jFw91f1X7p< z^P?9f=;LBGxtMSc)H1;x^{UONs*``%rA!Yf?Q z9BIVjQy*?^r*CYf<8tfFIGQc_To1fNd~yenejV|d3kFW%?)=x|pdJj(!LRDkCW(!& z*HS;D9_4S5pS-zu3D?E2^T`-sC~9JTN%I2pQdZ9$DI<|P0jm2;P$*IZdH82k)!Sit ztM6O)zqK@6o$hF#Zd^0~*&nF{V7T+C(fTW1=`o7(z)qkiD@7YOUubq52r@pL4hTQ9 zE-$9OxT7xIdKdGS17Inytv-~m0Ewqr!qRQJqo?Lt(1&0J+^|mSN?2cZf&jY$I2=cs zIEWiTL@5$V#N;U$uOd|DxLLQ6D`K8!d3cJ#Azd9px%=BRDxV$3_Vw`}F5O39d8w?; zBLY-$Mgr03pT9N?j+-@eATuORL@|uWC3+>eX|Zv`^_A*nojTm0GDGnMD%b)NNJo*i zY68DDbLB+$4Md_KmI;p^Y+}NBV*~G_OZ7Nt#8oVoC+9iGhcS_62l0!6%fPBnNy=E; z+FBcFWv@xTig~oC%^U?W;n#z3j7bX~p6!Q>U`kG7?^f|q8tKTu z&1?3!v-uT|TWtmotV8_ppbi(?NEX;uZAy2|v`-`a+Evdj$Bz+je_zpl0gX&+4?q|C ze}PU&-^%Kr(EVNK{_K-f#tSKI%040Ylvvas39wtavbSi};y$+21pA;6MZZij;ac;w z)x{HK*uaqr<>Y`Y7l0|qfj9<{Iqo*b2mlt0!1jeq5R?xcg29KW1%_Y}2_%6{wa+mm z4Geo=tzKot;c4t1*c9(P_16P3;sAdV8xU;G1}W|PL3}1-1kEy|u^ljn&k}G-N4+M9#vw_cB^!=jNB98}qPK3G@FcTT69 z#l)k(kKPXp&EvO_sAm_kfV4>v61*;=71x4SbplMwi%C zt_-^VZsFq-$ng;6**Q;;CbxgwmuvQ1jpOzw;P?RG%6*mqmsOy-Wrf`Z>Mewqd5@qFf-=&Fx}2g!5feAr!N1>O1_5};A_ zaMLMUeIe+W1p7laOb%|FQ_&;k%Hk4m(DR)b!IqH1%bHSNumsVWUER)Mr4P#??=l4y zeeU7GIow?%yB+v!K%bJp3AkpamslN%BhI@J`O{%7L#lEqttM;Z!~%fXe&Lqf3P~gd z^db#M7m2A3Agxtc!jaP}dgfK_fHoe(c9Sg)^Diy{W902VD7x;PS;D}X_vs4(HFNjZ zSG_q=BS*T6*4MtEPZ?nmP3;BLa`GB$_=T9P#JMqJvmhp#Q>*y+5AUds9^tsb|DCaa zi&*q901$c!AoRy_3P9-J`3FGi{Y4-B=URcf{(G%{f|PE;-3$7wn(`%`7oHv&yIoyM zgnBOH6qeruk@Q{};vHAWdIWVW<*bna-vk&AM0HfGsDd=G{&8apNENeRWgkLo!YL+J zPT+8P$A0+?OEuTh21DQddIW@oW~}Zuw6^jt@$l93S*w}Y&I`c) zH@_ynrI^0ndz_}Y$x1Mb)^cy8K4d}Eqov@c-hiB0Q(Att0Q$St+{zCV{F#8yB=mw! zXNg5|4PxvWA;vYQrHHOwKseOZ8AQoNt+kYqqpD~Q8Vbu5oOQrcbw5pXNo_YGsOal9 zJU%Ikm{y);hc0#>g*lTYHXSCV*;*(TB0GL({-}n1*-C%%+ZOXrGl}6(auojmRrCTV z{i&+@1Igzr2#|bXPb42KK=QTxm*iXNHeu#IYh|a8&=;gifn)xLz$YG@Py=Dp#Fl*7 z1GVjgG*49N7enB?%GL8CyaF)dk4nR#Zp(^CDe^_c!2U)z2d$0L{E>p+I~p!i+(pOB z3O}(j<#jfG?I4lyUS+iv6O-1!L^g_y6xg2ZKHlLQ9*)JBNl1`(3%Z~Yg_Ty(?n}VW zQafCX9qWGh0Y$ahKY&fgjf?B}oztbx#7$4iWFGbe*c-(v_!2P^Zq=b#%LA~I^ny%) zc)ig(xQJMyViQVYjfuTcAljRF`Ea$9TlXSV+ZXO}TpG5bQ$Z)hsNqbc5BVm2b@;#y zU|vNgSd;GA-FfeLH7ZH>CF@U{Yu}B&yi?1VTJiFbyQeE)AuN%<_^p#%FyKn|L_T-| zIQ%i;d%7)vC#|uA`>!$0TT%Auy0l)Y$#8UbW&>nv>U&tI=-dmVFpWhY8#7n7C92$~ zM@StUw>C(Y`L=D>x&huXJ(G$Nl6)P3SX;)hF=r?@gcT=>&`AKw2OoVK<#Qh~rdcC` zpAFU~bMBpVExPENF3r9D9m`@|PTO;a&~|&^1xnafcPJ&mK#|?mhZ@R_igHxfWGZ6A zlK|E^CW(Y{l<}6olQ`W!7sHDemW-E1>2Z;%PcZKTdJ*du9G{x@-&{hW6oKsyRqhvk zYkVqi%hf0*!>CE$znGNR(`vV%tj{5;oRLz{i#I$R)m8iG^tx=meT{uyQLY_Py zm|N#vXNa(*X&oTee0XptK02C+#M)f2;Wh96NfAj^7{MsPHWTDOGFCvhCv!>$lo}JL z2Hb}((JEBS)z=JiUU}!omS%mVt;^+Y4#voFBHoktr_hXRVB~@0^Zm`;28Tyb+Z#aV zY3uJF%ih0-0RNre{o|g{1Z4WhK4-xeLHja@T~iCbGI7k-vSh*f;A;9DT=4HCA(h>B z?n!bfCzZ>k=E46$Ky6D6SM0O=QpN>RlEeDo%$f z^c_8n+R0zQ@RquwFh#xa3UA`jrQ)^ka3-R1MrV?=w8!$&al7+na>zmi>mV~zholqr zRG!vMP8Dz8cLT9EQI6IDsaDRY8m0$F5m9OV?1Wti(o!MbjG3n3jS(uGr4Dd`I;6V~ z?J|^YFW$Hd!CfrYMAc(_#;s^^6BNyqQAou8NWy*O&7=~Sg;5*1qwzM(`Qcc_xHLE+ zr!(u|AX{%^U8~(d6wa|*=$E}M8!7#~~@&Zi{Ob+$#fYM*9SSA}NiQWIw9m!z|($N}31WK>L zgTWvNR}-31iM;93Hr@Zms)Cos?13HB?%B2{AaA7MFhaM(fG2l{9w$jeZdpY;K)Ogv z)Cm@#XFz9{($YG{)tfT|Zw-PXQ(+TBS$d99C!-wLmkC>@bMobr_vCSx%npNMU_im$ z(T|2fJ|==A5oYSdXHuEW>2xcK-c?7QI*OvzkO9@D>C8*iCRhhYa-;!LHq<6eIq^-4zVVdL$ypbQ$}eF^7=#a?7M)Y zwyT}rEdv?9R1!TkW`%)x_Gc%LSaW$RAb)s{2jQYnEj*zWq@I1MlDml=gO!1kYMW5j&qt}@>ewh2y}3rxukZh{;i#Sy{$QP zIBx`c>!gA7p{qXL{5XsIptIM^$$6Il1X({%THS0bpdjbt?Yo#(j9R`B6DO+YwE}9O z!>*qVsOk&N`VNadDh^Mz0zMIsCe#lzK>sOg1ouFyl_qMB2$mb@KWP?;>G;AweoRo( z^V9!?F4k}+@$+>$tNN5cEJ3r6`_z9z0{Tx0n7o6cI*FI`)&s7?);m-yqXh-ax{gvn z6H4LZKk1}p39VyG0FGM#jz8P_{_TkJB-;a=QGUHY@zMWC=_pYUPhrd$g2_L}GMcQ& z9RxlBB3c3nibGjZlw}UHtabK0&o1lMf&yX+X=FN48}W&C#$Gg%R48wto3CTl3gG(C z#u=gZERrM?zQGW`=Od+4IJMTS$|)vNhJ?CJ@iN51Tp5e~*u()Rc4b7cH$WQ?qzjw) z{&Ipbb?P`%MN^g%lSJHRMe}LZ4D8E!01I1IOPNVxO9obv9#y0BS7IJ|*}7kCmWU2YdDs8cQ7aF$t%hs4!dAiP`yvkbpT zm;Ww$FK5k2a5+cWi=0BrF%0pCO<{RjOzMwX>s!lmqqpd`@C1}|pzpQ}TWbOJow&R- z5*%)pXkXbT?F{1^v@cB0f6FPzmJ&iL0nifvA0h8Azo1_s1F~@2>Ay{T6;oSUMsBIJa+fTuycfJbNp}vx73z9UNNf4T1g?7U1O}8(c$5;O_+t|5 z>Qt-;W|yf<7zy%4`OtzfVjDoznTYtYUGv~Y>N`LCQlG7ZUKb?hnzZd1GVWkLQSjr7 zt8NBa7JZMP7mEy3NQvmGZ#65ZCu}vktnQ6)IFe|ms%B4-r1x}Zuj#C%wF-0wi5d)( zi&%N01)d%YcfcGLmaVSr82O$8B{;mX-+s}Z@gtTgKeu9p2)4sPr?7MI<+!0fw zw9;P4?_yl{#t9n6J%uqF0mm{vciJ`bx3-9>c^3i@2Va(y{MtnciAO|^t80qqfNySqJt0OrH`U*oNE-^ zG3nF!e3V-eRfB8dF-A@o4DDPj_nsvsmy~Y@oU-pw1{g~ZBm$NWR$i(PjTcDK4&&W} zf4!O|COx>IvbhW{yTD}$4mlj6iVOPt(x{vHcEty2j^!m>xWSo)z?nkhWdlW zWb?bVRuU+oD3Qxb+J@V=Yp!#Bj3Y*Y#X`WMn_<-KAEW`?NAc^xYL9atOu&&3Q_33k z`su1_V^nbjo(C6R`>2YY2yqS;dI>88X_w8cOJL2%|;K z(lAw_VpbRy35a+}->)kBU#*pR)SD7QuoTQ~nIWnP%%>GtT_;{TXL4g}>yjo)5@LSx z$5D%L<5?VSm%daS*wJC>m4@qpZI0^I!e%8|A~x)!FM>yCkb^Qc_1+cAoztSveQ78g zCMlb0@DX8u0ZyntKaDLAQ<&a2;BnkhQ#U+|hhp00t0eWDv}SsucT)k$gxtg|B~X3c z1PuvIBc}72DB32 z8m#>@rmBS}ECuDJik=^rh}|Ms+e|L$pJqAjHZ5{oB;N}%KDcdTEN zoPIT$iq&74iT)-W#|`S^E0JLhu!iNv5f20C8-eF8FhEL7G+#!Pu4xX{==6g**LX_)5FWqB+>1^0i-_Xl41l@pgTbet?u66;&F0 zmTjf0J$)^iDSTm5G`e8FT;rlS>pvwH)nv4#XG1lU_K!I=SH80pvuSiQ?^X6gLgp$h zat-_YK%<&1nbn(AGM7`ieCi&_g(8ROS^*=P;X_{76OIc03ErFwDk)()Qt*%R(xVl< z3Odx;OYWq5Pd%+4pj9(e7W6pGn!kElzN{kh%~1`;7m1fwaAyac(6*d;Kjyts=>Lg> z9Op=|HGl)l|GF+ewdj9|q<;;P-U@%!UMCevcD{aPV3Q~jUZkYJyXMBwSGq!FWd-Dg zn59oj7Z9=LzW(&51Wuiv#Fz)Yf57Tsw`}9MWPAk~Sg~JJ!mu4PgS4UlU8j zg^^w3W7OfRnF{gAuo0lQIGHE6c31R#2`OM;SZ&o;TeG0GrpEZtD>pHC$c@(+yfzk* zoebcU)X?twkRpoHLN|hX@9xYyFRUlJ;n}PkUe?;T+LWAm$hwfYXZ0zzS7ANg)mBr~>n^h12VV!6|HzB>8F*sZMSM+909@v zFqDw?7T^-mQ|L2dyhKLUhxRC?;_^4(jjc z)@l6R-o|#7*?@?7%pvapF&7Zta_eCX%u&gxPd3ds{GFf+-%>b_NFYfSGfp%#FHAsY z5l){Q0;{Da)9W+5<5Z<3%1!Mdg)pKlEhllx;FP2(Cy1B}(~`6k^^Z#(Pp7A1;tD$t z`gUPxxhL~?EOzu6I0L7Lhbwf&C~_Pn{QZ*^GJc5MH9Z#8?4@98&EjIk#m>6NomK?; zyx97X5I9#2yNDs*TtcZNRIS*#2|M#nh?H?@E6^Ns1WHU@zB8*q_So;@5J^R9*Q8fp zj2`t{Lo(uMd0Ks7%~p`R(4+nsYz0HyUMV|AGsVuhn0SBW(zn3Sj;bn7S|sBBJ#V8j z_l3&rGocjk`Sla_A|Za+3RiP}YmcCBpYC4TiMl%vT!H}(p?OoMY2I0tmVIrt;T2%Lj|H=_Y@)YDOD z{rf1qPyjLtL?Tf*s$xG5;3$0Ba#J~psB1xD3hHTci#n?mcWt|=1U*TV7TO1}*p)E3QU0zz_7G03znTm_Co z>Yx`lmblM;La8ZX6B***4$Er+Y*-wP&~lPj@fyB8aLJuUA%j%Njs<0*YpQhdsAL?) z)`1<>hQ+w$m@hrH46)NbzI$Zj!O0LLVUY|};wPnE;VW$Wbp-nB0bL3n+=n-1 z9OL_BU~k#BvepvzWP49fLyLgJ&_@g$22oKX4I=WHITs?Qh%|)APEx|T zGcPmq$Qhp>n>@<4=wFjN2~`1BCF4~9tCD{cPZJ~ErVIfGg7W`zApT7{1F^yKDK>mn zL*V2L8v1~?9GHen@!aog;80!=N{=S4hIAfI6>`7DARxKgL{Y0loY6;RKI7dr3=~c} zKo~SYis+1oIlZ%aesxHt26)@v{q(j~s1a14@l$`ri6`DoOndphSWSs0Y*8qS2H~9U zmhKJ84bz)XqrHkm9(r3n;`)t&+b)=inUq0c;etyHJ1MGBhJIZF$(RnWyOu@wHcKXH zWQ)OuSB+puxHt0SEe`Y;I0Mc~N+JoxOmn0qK#0tua@U}{Hh}BXjn_F=KVze$D05ct zU;FgTGK@l-y*fd1qSSawM;x_CGmIKl-syr_(dTpXN2U{aTEoK)%I}UNmaEhj6z) zYHOIU+F*g*$~?U|RTzj4LHTJP3mR@~KQ^=)x-C3DYy7O?K5|j;(qe(j-#BsSUAK{} zE6ehk{aOy)j=G=?;|ip0i)imqr-^PAFDVcn`sI1EK-LraN%>bEem}zL;hH8DJhzgS z@?iP#auz$UZLLmLFBP4)D%7qbRd`yCap@QYf0@HngFL^709rN|MX0VIN1K< zk@!_M2{M}kR{Z>;D3%$SGBRCQ`6*M;NX-tuoWM``X0qBpVuRkPOo~m58Wis*Js|&8q@Fve z8=(z$-6tL25-A$D_ih7L%q@;~4#@|NRwu&N|IC)IZa&f{php%m7GF!;Jj~Rn!JQYd$X3xD*VBW5KyV?UU{GG zaE=s;tY!KQpfvm(c_3(5U642wB&6(k=>utj3DJVugX?X@6uYNz#|ZKk#v@Y#w=8DZ zxLST`FS)8Y@x= z?|Z#(pcWM>$fZlaV#eD4I2T$iXL3~Zv6|mMpiJMy86TzJ<_LxPol*s_}!7V?vzcB`MD4BzZ z+yzx;P>~}%p7m|gBjW?a>5f!F@}0Cm#@xdE;c#eq{K}xTo57>aYdjr&+Hp~!3@Rz( z$2~e)v+eRj7n~*Et-OQdXE z2k~>}lc*2qxyqOVn*E=bY0dz$iwMu(ijQtRFsGyxg?j=TN-wD6IW7{63jqqA)07GM zc-FOH;X`1(R4%3}$gt~#7HHMf5I^cS(rUnx_4yd({Zp_+xC1!YPCP*7Tb1`0~w zFAcR8`PGJoUfLE|Zg~DN)&A;I)#o?ZlKEQU15Y<;Uq<)Vq3SFpSVu|{DECLLLxG!A zXS4Sq4dJg=-e(dsZ0veGAfS74!_2( z|7z@RX`tjae;Hhv5~eavP2Zm~qByi6sXuRbouy6y^xd_9IDa*j*dBp7Jio2^u)k>)Up4AEvCAU= zlnhsAIBq9MsfU?P;^rzwMFa9~CaF{mO2A`*d>WyEXXL_#>bOkD{1v<%XbHi`S{!8E z)O`6D$+E0Xt_F}S)&9vW8SYF#`&8yqXMc`xGK>~jC%i9&Wvf3EY#k&7x}cG-ni#~- zikbb2(y_#KM!YaQm6guoMFkA-w-<1JEa-FslSx+cXuyV+}+(> zi(4thy*S0CI24MzySsaFmqM{3-$Q5SoS9C~`&~TTaP$8qJK0J0%37^%YCbeBNM^YR zB_}2DmM$;v83#@p#8}Y&#hiMrl~J?;c%%~M#S8r31;IZ&k|?db#Dvs$`iO=j_f-K> z$Q-5%`kRGvXO1iu0$iNpk;^9o>0&bBWrVdBT1`thP<&dN?l--7Vk;?K#{}HgkEM#gDbq?c=O3+Em3i5rG@xFVkX6DQaSRM)EqA$k_qn6Wrw7|tQM!xBLm@Z^t zMh&xNNxyUGaK}O9M2Ryrdm@hA29YHxVi}%2fLaQ;J%h$1yF*33Ux~un+ILB`WJ(9^ zUS3CM7(pGTfmTlvGCxgpaGGAa@bTJ4feh_>4@vC^+Ngn@kml&fgMnZkN=L_8LXV1Nt~E5yaedP^2o5tuW9#;)_L` zyx)!4hM>n2Rq|SC+u&^Qd?^GW?Al>%%rZ#i+3<2Dg_E50J;Y7KKuUbjz?H_uc${DX zLFb4!wg1)j3wxMH{}8n$?`YPA8wzsmYoD7YH{Z=4U90C^sXyBB>grqEM-2H1E8y3) zKbpGBe(PEyGR|N{FqfJr_NV#6zPhZ&AMGsS?PFOUKKR1dUzzg}rA5T&mv>Mtp@D89 zAX~Kn-*4~zpK&4hQ~Kji;FRq@xOc`yN{D8ZE!B~&>Db(nV{BPuG2@cUePC4YPvop> zNKPz0eq3>$%BFMC!7b<_ySkb=Gb7`#t zw(QJlpJ^{9(1BNg&SSM{m-mk*FA8!ddd|;G+!0`>+J_a8G9(cm5C>MRn(omfWk_E} z2w>K}J1(YRxsoa>kXf{2TB}V8Em#ZRvK8&DMDz4FpXtprctL%F)3O(7W2TBe5y#{1|YPB-eV#^l*-w5ZN}m&QK~SPBy60u zKvEBl%EVeaYMK)PahLUzqiXUeM-}-&zH9mbSa-Y9Ie2Mkp_N7n2+#d!^;$gx6+%zc zm}-6yfB%Z#^sCQ+HmthXu9Q7dA53VLdf2+z%B|cry;2E>)DVc()FL`a z&t3jvOr!03J7L#APtWbdrMoADP9l=z3X*(d+w~KN7wz;#rj=HriU3M{$wnT}Ox`nH zxy0V0I$9G9>NmUyE!~nxip0qgi~Bv5V?YAOrKxSt(kzT&6Ge-K>l9&p>Ch6byl09x za^b5Fv%$SuuBN{HgXu6z2PDO{WW1-K4+^8l-t{!yWshUW-Ia|8ejtCQSNJ>nla-3~ z-f+m-`Zfc)uNTf)sRj-h9!3U-3~(A!--0iGq1|mJixz#}uigeeqTgK%3Wm-Wf1_-$ zjr!Y~DGZ0DZT5Udm>Almh%=*7*yn*HI$3~yr_Mn7$%}H)C>s#k_5g&oJCTgiiEEPl zS=Xfkh(gJRBMNi?1x$c*BnT-Ya8UzHRihhcpvD(UI2w~*mC|BJWTjJ2ef}$A@6$SW z&TioS4EQHd`bd{FV|!WnLrc7PU@S1K5pHV?y#EP&fM@Y#8F^E6>Ri`{Rx}exp(<$I zJc2auYLo(MFAe!H@WQTl^GC_V_dS4^EJ!29I0I(%VQhe(rsW4}q{_%kG~u~M&%JvBk#xDj4acw^iCZyvKv{#9|g;{rN<{fBQ zrpvL7rIq?#;%k8 z%Nl#BC^bQeQ1-0QT%3etRnHOeYuRkbN(f-V} z*p4<4+YjXgKSCJ)4SKHkhvuEMuoD}Aj;v*EsBN0_pB;eFAttI7VEN~@ z_TQq(Bn;mGVqE_wS^JY-2Uz|n@MJ2D%-WFD7R^>;K34(ccO`j}R^Y3ei~zyKDpf^k zCzz^J?~7G90L={(*@e>#-XG*NH7#7V}p91y#-fhpd98nR7Zjdoud;d^VDd zC`g^`v}r1un+z>WF}OLXI#i{rQIlT&pUqtc0bzvrCTV{{P%?|2JI%xKQ|eJ^-gc%% zN6(1IDeu80afqTZcSU2IRvKwr$YeTssG^o1jb?`O4?Ou;DPE7gP9=+R>MJxq#<7 zSJkF;)*C28-@^1NTA^e~OHD8R8<^>_dCk=xh<=(gLMpqmFz4&iOAb+?E(ByJ*HvA8sIq$DcYXB+>;F6%Q09*x*ERw92d~dWV zk1c>ePd$!*2LDYd1z@c!Tvso6oC5rkOz#_FEnp(v($m*<6oQCq)f+-t`H zJ0z+?5F|rj78VXXg@-^QVBV*HhBFhX;aI;l9l}tDAh%|01OpPa4UxwX`I>Xji^^0MBC zGO;F&Ir>EA10<{ukG(f&3pE9eedfDA%E;!!}Q3@$+tKYyj75$5J@J-AZTx zw5l$YPxgMq3QMs1jF&Y?^DXoKT~$?64_`aZuqZS-pwg)jr@r4Gn%I+%y%TZLuzaDi z7ceyEI;~H$T&Ch($T-B+#{=fwNi2wb^L;Dc6->evC#5!|4O>J ztD}2m)%9}1$7%|UMo6S%rEtPP_Ul;CWV^omKw3*y>tZRN7B7IN=V)RK4-dzBDN$0{WzY3+Pt?w}OGMh>N)d>$Z% zi{?JDR$n6i$ZKYO`d7sD87ZD$04_9x{67;U5OL4z+5gcCY5`;&09?$otV7N-E+&=e z85g6X0^njURa9qtc|NFrb}M}-WGZ}0*QBKAnMW2w%lw?4yz6c5>dGCM*RPba|C~BRt)Z)Atgm zeMGM@MPWmXw`9zbsECbVL6Hx*M-fAbP8fe{G!r=ux>h<>*W} z8^~-aL^#?&md?iC3p%!|N{?09baNXdB!=Lc=CgI(d01Uqc&1`Vk`aV12bY7sAJ7H6 zu4RL+tb{NTM)*uzj=*vV_2z2`3yaQ;9+H5wNG|8NP)PCnhDnu8T5UUrnu#gn>cfi` zoJ%8o=?@K6*a0~enII`(Mu&Ll4eX&Tuo6_1z(xb~^5|jfBX>`gGOVeBu%R?2YRK{U zPC{Bf+_52KqkqTqhPWFzu^E$CSEsO#&y#nhe5o1a1e_Vl3ve8omd{@f!jDULx3^^) ziNyPgUCq>cb;MKn4Mu6+_0V0n@kLmbKRqU7oRkq@(9Mm*dI@;IROr9W0!}=nT zp@R_ZYBLtL`NdyIdg_eNOpk{DcOfKW zYUZqDX>ReKRUx1f{Ykm`2hU@7?I*M-RmBih8{W`(TNX(S&MHGU5)lBhs7*_6#8+Qn zdfftS3X%D$>`D;88o=t1c83qamDz{~8rec``Tb-;jdX!3b_{_>`N1WH(*KS*nXwS_ z)0Kji|I4){yKq>+I?jbU04A`v%AH7%R|QYUI9U$?sNT=Mx-88TQU(XFr2-qQX}868 zo{|mcDWH`dd|#J7giPjYx1^_M9rX1r*yh5~k%c4gE8jdTBGv9r<#W47-73zUIj7vg379?rZ7wOgNuaO+%_IfX_@K}w|vD`umX{1l)&heQ0+yS=Gul( zQddU~1wkf)*jVZ*ec43~9f*cXtiw2G`u*hqDOPUSVcXl_ZxN2@WjLxaJ7w)pL~nB< z7R29*Wd1W=qBtjI!T|ec0r5iizvD&N#mU+JFV^h5I7Mk%fPwHQ1#Qv#m6qt2<-TI7 zX_{*O0nz*c8_pzIAr@_o9zYw}wp60De23a(=k2bEkS8A&jwnM6#8o@FAb(?0d)}9H zF^*MV8!A8GsubELeK|^^DEdJ;f({Bq zjKlWDhnfwJg-vt_4l4!9E7hx5-_OA@G8S@i6yp;0O+44V=U)d#SD!>Z0%h{xKs6e> zca;rg`8Z>yjpjXTe%_V`J~h$8Bd8s80$^6|O)%pp?LnSs zT1J>5@S}*$r2RzDM}i)%6+eU@mE#}zKL~DI6OG*BS+VS)Xc-_j3oDdtL)dw{s6z#x9aac=iEFta@&ZU2~BKYkU4p@cmP5H+u{4N^@ z7|gl3%u$9h#@7NlUWGNr6H^ECz>>5UbI>l_&oN$v)BJ1(=Xn#4yB*PG?IDyv(J?!cQ%ZS-&90#Mv62^0`w`zJpz z@soxtZ71G*F9Gq$um`Z)goiS7l%e?D*DP#27h|FHvhcxNH)>4D^;seF`Tq7dVHhZY5@z9~67q?&+ zfvj{o>JUllS109%vd3SvF5PYyQzQYeG6Na%w_dfdG|@M5ang7GFC($-Pq9mY0qqAh z1z(LMxKwJA74Q7({B9W8taAgng-$e%P6ka3WA=A$!JmpCuh9=ZJ>XZquDv&qKaPI}g=A2ch@aI^m&zA1i#7@ri4G;I=dNwte`eH1HlM1rw`(<-LJkPq#^cUUwd_m7RcXy?{RJW;77FR%uu(s-7qAVd3E@8 z^zd>a$-C;8%PKr1HJ}b~#TJk(f7`V`yTarrC$7Hbe@Th+;wG$t$BW*z2X#DeD^RCd zJ0>Z@CU_W24vE!Xq)M0C9-H)6>650$Pe0@|g_<~I`;5wwCkxiR*9KDL40o*Ikny2> zouRhxyHNO*U`E3VUT_OQz(92~A(74}B16KV3>k3;ZfD3o5L&2wiWd!XbD4twqPz5Gkk{buMFxX9vD5VRTD@G(?>6Y^j$W|hig?sEkNKP)iJz80&idg$zv6XXuQ^UD z4e6oxB+;nu_gdfvOjO?32yo5BrYDc`Y`)1O+Y}b=83VbzWtpQWebYeTP_{P}*H{G? z7gzNqb(@}D&AKC0DQ`;2>)O(A4WfpC$95&>!IBl4))uqk`~<7Ne~WGE<)H4U!Ios$ zmcI-UiM6?mgmB>72;^P@+ipyW;1M{E+}_z(tc5+pefu+?EM0X3)<<%+uv$^pgI$Y3 zjB;JY%v;gf_Nc~Mb;WCrUSYqaVodf$%%8jMRV4<^Riu9F(C|7z#-I6-?%9 zNK8$NFp>bezEeMSeT9H|O&BEGoAm4!q6`leeG;lQM|@y1+e9QKuus z3)=!}F-T-;T~U_ABK*okBO8f|9c0(L&do!nqLP9$7r+5mQ2WixHCT!AaqY=NzF{WN z&x{-uS4TQT5t5a2U*!4zn%s+i_(Ys-G7oGVBvST#S@nDOm0D4s#A2(#q#D+MT-%(2 zts_bz@fvCTqiu+Hx+xBExdwos)bR%+bw>Xptc!{8cn&* z*Bb}K^EMb&28F9Lzrcd7TH9Bj0l&3C$|L?=Q6gz)=`3brX#SUerR~^?9I#~xzW#&1 zCxBMAI$ml+zu6+o0v)Czp&LsWgF8O**rsX)XX55WPVr?&i&gDf#;YkCA^p*4DVcUE zCRi|@OXIzwFciaFl6AzNnxg%Hrf8AaaEy$l_6SAy6YpTFu(Vt}`LJn_%e|87YlrVy zf=Ex?OU3?TQn)9~b2Pz)OLdq;RKCfRI732;B-DXmuv=g$k_hS-i|L=W;A&*ZL*b-U z_pw2ujth+j>R>@3(}gY4GcyUAJ}d=EY>i`@aLLc7K5&k#vc6g=79-gO@e?Kmbm~hM zd9NlbGlW*J&^JweiBtW>MDt`qtH_djzgDTLD1UgFYgIErMr7%kEFoS0J}mOP;mgdK zFH9kn4oqjKUt!WXcYjoWcmz4k#)YdB7+QF_nRRFn>V~1@YK_SQgqOe_uh^JE2v5ExHvv@uuozp>^*p$?H^onor}cmi|BE!m~{ym<;gM z5%B%?HATkW*wDuG&xlBm>5u}5P=ijN#b0aJ%hUv=qErPnO2%74<1JlXIg>`{B-J!} zfX5Wt@9P6;LN^x=Yh)e>ffHLGsz}&I($Thd()F7is#x$m(eNGy;_U?7S77t*pFZfo zB@a4LJ=L4EWebK-2-wn*-}iSRe+(ly8OqejN7)PYMvGc>f?P@^v3{uwp3+hFkkD(W@ho7vPQTSL~4~lE+d-@8+eY7$81FdtOeE`R+mD$1Ri@L?%uLgJ_Q7 zdZcpF^kr}erOB~1Aqm#)8S*E$;0cMF%tyuS7)-E(a**jh0j$t*dwmK2VizR#>V$uu zW$gh)-EW@*W$ev`4V_KR?H&J0JApA1cB#*z$sS=jdNq?`i`Cj6uV_H(ggzk|7AUdH z#^B0@sFuet$5mRMwhGS{Hx-(ey+6Hndjze*-m(h!Y{yA^StlL>OR+v0(U>TQ4e#v# zQ|+4D7}>-anP=KABxeDx8!~v&XVN#q>V3ME!zAJGO>rs&pUDP2rg)r%>E|2*9&7G( zOM+9u1Dx7kEj-U0>pa}T3UQXbQj&%R*@hwG@X2B^%Y{w@u_n>1iqL(;OV`tNwpae) zJsWoy_ix{U>$pZsANNyk0sz|72dkM2pPA~T!uMp<>c>OXRx-x+IeT7$OOGNBdlgy3 z`vZlLGZv22$8w|ZL>_Kra0K`WI2X6_C3Cxa=Rud-C5rakz?|_7J=!D_{Z>BCOqn%k zZDaG9nx5}(f|V3kek&*6{ft7;pIL8!*cx}pM$31^ES(&s`dK3Ri=5i$*;Woehp#S^ z7*TXBP-h6s7&F zr;?dGpCKB@Tks++E2e)nwHTw++u&%Xpq3D84*YIw-<3u)Oa-XlruJJZJ}sg^D5&*` z;mYUH(#K=u2YD6t_q1Y-zY6Oxs)AV|a^Czn5{D}1*Y7Kib;-zMHfqvhF`?r_P%SaG zIc^`5#st@iVJlU~gYQMTpwBo)Uxxa9;a_XU`#j>q&je{M|7+kNYwF}=Xl^QG@Ba52 z=09q^f2dZ=S__uATUcv>+L8=}`AN)EOgRJZz)hjmVW%f#G{@Oo1*W%;_K*A5hSVtW z5XyyUD%xO6ZrH=B^vZhB`#S9Hd9Rays z)u)3LQQD{nhuWDCg7~t+KCu#zPfd9(;6F=h3n_ACVpfR?5te?DXdPRelTWsQOP~jw zn2KkiK}yq$9Oc`VU>d6k;CeTQF0xti1iN8195rL2mH-~X5q`%C{$dIbL2xcf(wH{( zg2n2q-b%f!tsw{7x z4yQm;Fy7=?RK6+ba5@SyMCzpH;web?b#jIAN(pG)W&F_o)pGn|SFk>XiSaCIeZtcH zu3uwa{CqOKDhb?SkN#vq@#x@5Bb>8=!Y2eCFU(tW?VtCGWSXn}bK3(3_=)~^HNb!U z^ao!2pWf2`Nm2q#C}iCIz=lLo{d*x9da$yQv``|MM}&eaE7EOU>mUH)rh=>vNS6$b zRHs%axe{>H8nMcx_fzY&PyA3@c~ zs9yS#1el<;m0N;TNh{K6W~xJ- z2eRf~3FY9YBE8p5b(FZO6gzeCWnCQ8GOL6g(E_N4ud8FETfUZAzahPUcRHa#5asE= zD|{P(f&5JhQ}5{Ao}e5;|MrH)EvU?ZXHfMtLQq>d|2|f5d;MyEr0eg9Vj~N+i}{FFT0m!GD0h^aGKBq8l$KnwR9zlR(0^L^Z)lXrDA{K# z2c14+M={vWVRJpLCaH{4Bq{^_Bo;WH?+NIp(C6W3E{&(cen#SodB!#VTCfJ=1Q%Tv zxy2lm9*SiBr%|-x8I$*n7QS#GnuP--g_9(+7FxT|Ymm1?3g3xcY^D*^8awscvQL!f zAZ6{gFn2@soW*Om323F+w>Ias{aL{22DF@?HE>X1Y@*@KiZta)GI&;MB}y4;6w$d3 zj!=A!g{?U58|@5V)~N@>3*%1UfTN1%djZpOH+ zxUb@)&@yH7G3ubKKQ!wPuXKk-wxh}X6ZNT~u0x8RUj+^DkXEqrb$AA>bI>|NpJ<(=p1%7N)j;H6OOof4b&R^aP=3cU&oq zkao|d+B15hGU+H_VP%r);dC@VOf^M0Dg8Rx+>9$Ad30Q37+^VoA=cxi`x?_ckT7K; z@Gctg3^Q9dRIy1nL}Zl%8(!x(iNaOkQly$dp*gHG{9Ah+EH)pl$IBkY7cEFU=Tu2J z5+}fF;ow#@GV5ZZOqne7E8xu_&eB&I`HsOW+I~^HaQ`0EY>{ z+g;A830jnlhe0AQkj0rihYu<{Q2H*^F5VHQNXITb1McSSFnhTLH<~=npulL?Oq~2WrLO!shj` zkd%~tUM&x+$iph&#sI$F^=HXFaJTtU6zjk%FM@S$s$s0_^ zvYqC;(n^gd5O&vTR^MGKhsN%UMjI5m0YBMDWCokn*|<8MacmsBeQPtN;?PC+zU^zK zI-5rIji@*4y)0HI2EQ=Pz-X*c+1YC`+(CttuYK~b-Qib%nK%db)Oua&3Of5(cb9KDYLhG~d_L z5?6fMZXcNf@~ETn64$Zs5r`!=@GzDYi&_jpUS)w(fYpwdi;gFV+C(?Qs$dB{juqTN zxd^c#)aLgRwC$ci&M`K&4f#0v9thIb>habl;`Z+h89=5;QO#>P(<@sR`k`o}fuM`6 zHy=BFgbatYrg@f9O{YgPvF$$AvvVT|nt)<3t17t|aAygW;Vhrt3M}wfeu`TVx8?Ae zmf$4G0#8Z4tNDV{zlfWcfol09=(e>-gr!SRd{l*uPWT;@r=o2gG8~ahu-IX>Tb%`F zO&Ok!Fy*W7MFKl#c$61hkyGDkBCEIt2&)Rn{Is#!qM}&&l=TmOS&zL%SL3Y!tZWH{ z$Zv;=e_8r(AiTgBLHor&sXx*ra#I9~RTSmu;Zab?6=mcVP3W(%z8tL7n3(E2 z1+k$`B%pC*iePJ1KBt4<`h$&36?@nWSM4C z0K1S;Nh$Qxu!>&5nh)|?LwQ$EmVMQBDuXP^-YBwkR9Kqt(IIcC-~tMactEQQu;v2~ ztoeXxTlhB795CEr)aA}C7DE7zBa%4ku1S}%4(ixK6H`~u z@~X;=)H_y%<)<)DH)q@TM#|}M-jJcSRt&l%lk!O?Q^Te%CgYtNiE@usIT#4$_#8m- zQco4Clw`JoN|}nwE_$sm9m>*-_T#;jz&k|PhAq_ROxB5?hBoRM^hpiOoU$OQ#RBrG zVvALG-2qm2r8p}A@W=ombhV$VD*XScRRxj5+?BL5+ZLpvX(W-8lIZ&*bLcqlWT zgm?Bcx_;sN@w;tLJNsC}`>X>O8-bp24NlgSvsCCC`_EhFMwpDAJX3h$fu&h@z6o+{FW z*+%Q~FE5_)O;B=-fFYlu!oST_&x!ypj;4af#z0s9r%he{LUjM2{?Ak%$(XuYH3c0k zrcyS4--reGDoUg06sXX?8vshR&45zv1{Sa)2Z%mDs}4_)#J#ZwNf@*iZU@z33NWB! z>m?~1BmrJ?L`gmfK02xR{M_w{EUV}`mAUC~5xXe5pAr28x`KQ7s;@T%;#;a_HMl4_ zTCbLKX||FwIC*V97!6z3Nd8p%sq(U>uB8$?7pjeKdu@@W+kMmbabPUZL7<-zAt#O* zT>@bi#(SaSyyqivrFZx}(;^oKAqy+z@Gh?er{cHh9CQb9#H|UQ6j|} zE^j!;XKYXj!!--?^AX5!NyRLuH{iZ5&*Fs-++OjBLv)f;bYtobGFxo;1S{XTG8riP zz*scpSYG{mYbVD%aX}5RwjNM`vHq?t|0`nwV@XS3@T=fx>I5*n8vYHV6&O7s1&p_X zPA|}cb#0k=(*0z<)G~|;*@)wcAYp5I&4MrG=9V(`xLrFd?*!KC1fHdz-usA=B5{i< z8$(0}nuV_i>U5^t%I4$P!jFUFYxo=B$IlWME)yqOq%0ceAosrx3iGd~$SE_-fjzq9 zS$cQaD2nKN|CM((G;x+a-gwgndO*irTY73z}$Y<@??Ru&Z>D9Trrljh~+d8N7 z5H;L1GZelCQ1`dEflwDj0>aKqN(!~Ky;JRCn*D)Vvwr;2%%#>9k6kAu8V+v^3 zff`J<258q^?773`Kf~H4ycCBofI{IZXiQj`?6Tkwnp0Ol9c9$h)#=nyEmr}Qn|cr* zUMG2Ta=%inDn@xpK3>DoG;T##F{h})8LBcMRNxq(RWT>n?i6=tP^;@@q`Kbexux@B zA_{8jwlY?CaWlWvf&6G9xpspKJL)QzH7R1OSHG!|^tG^m;5V+ATq(_$W~aj2CNPy} z5K6)bqPvpL;}Rjmus0Dj)|s2H)iMViGF%{hk_JCiJDJLSnp{D9 z)aoZM9hQH}&GiW;K#=qnp2vl^KhV2%G<3ot^MTn*uYQX-wQv4fdSPkkC3l~paX$v7 zcq@F{F;iaGo_>h8@v%es!i!*rnnlx;CvzfW(I1$$kL&kqyq(+EX?-EPvR4J% zzS!mI=9Mn@%}tE$VgBANt# zPG2w>lwwaCK_QygN={#N%;PjNbN4vaHxW8eE z6JW#>@lx^Sng2Yi37RPN1`nh+qv%paIFygZH%*;OeZcKuX5-b(Vw^4UHzYj2UWNuj zRa>yp#N9XSnQMB(4Cb8W75Ja&L%-R$E(6^ErQe(MXZl^W+G(6Om%O#ur{)8hAIg<6 zFF8Ww2T&j=izZ!7!C}|3Jvg&=4KB%;KEdBzMlCW+vL;CL$n}U}@(P}@LCJj&k!!On zjw64x&#%xftNjx4WB(0OK^M&@y5Zp4U$%|*-$%DH0aiW)K9c`sWifk4Tf@H~IY1?C z1w3XxSJM8J;Hic5Xxg4gISNc#Rt$M)nsLkwvSytp`3BN!EmgBdh`^lYVJGz|%2*=_ zZvaq4={S8B=<SP&Ow+sd_!Z3l(B!we;poDzU$Zk7qSMP)uHvH$+dgrLpi4HX4o>yH0r@8=W! zi@pCwJ5JPrK@%#t*+C?N@`$xJf>l{9yfB|`=~_o&0j$rJKp-AjR-GQ7wg7BhOxUr{ zOD$X^A|;kEtYy@59ZbGD<1bM`c*>8EoWCN`E1kuJ8A~v}r2*z*A-!E4@$>8QI!_xZ zS=+o17ox>4`Kn+iH`nJouN;u^1(gx7d4gMw2I0}8jRS?UhN03BBTpM`D_rxLa;497 zn&1SDD0R}ezGFQvSHIzHZIFT(fT~^W6jDaY_%QloY=mE`>PbDaIsxQ)GTF+mOd8sv zd|*m$y~fO^T8|=MryR!#4n3r>cd4hUdI}CI;nHOB5htA0RSmK}P)p`O**8rsm9d~{ z!L#bEgxkQLCFnKNp1w-3WC_BLf9uaFtB$J^02T%Za>s8)>wzlP>A$e-e=QFAB@&eQ zDU^)QgoordP1!lSQOHzw(mc9R)+izBu@yu&1N{o1$mm9{)DA-;{295jNA%^#Wku5* zW000CKzS3knhwg9G=yFWE_uL->K!w?{&h>^g_0vxRk%R`lRl8f&w^nysISvNF-8H$ZQ69+AcYvPThft9B7gbHbjIV|-ae z(c~1L)Hq*~8>lA%Mq`3Hoo5uRDLkaxhm8e;%ld~EMKx~`i(}UC*rz?mOT>?L6`u=s zy59aWHmSDpMt{b7RfGRg(>j|vIXf{bi^#A(|Irt80+!XCp9dx?&;R(drma!YjhbRY zdOP+-V?~+77gQWPO^e1sUrF>-nC#3C$uUmWTGwc|Sxyo0ds~&9)}jD8*M5Io-00}& zuqSRGz?o##i3dFT3Lwp4QtPCM?M_nX_##?#Sb!O4vtS60(i;UX#z1XgO@fM=ic1X_ zLcyqhD$q|h6W+zum7S!Q1IyT()#&4fv8It2Eiihiv>T0W9b=W_l(!pg966lD+Ow5^ zRNrV0Ed43HGFWNk zDwlnWN8e|1FjShB_TKJj<;}$_&6uv@CklR!VZH1mi{RO5=tc6X2_`7EkIM9#2A>9b z2vg70_}s#_c*)E-Nv(>d7H4i|Q}PBE4wVwEP#Ko4Xv71cl6y8*kd@zh$p_4)OH)P> z5rDp0GLehepjTGlWWDNs%_QAxCy4=7Q!VFUrAZx{H8uqU^A4+^E#D`VQ{f^Oe@xzSi+P#aA+W&f0qphSMNCmXG^)q4C=R>XVZ~i6n}M?#dB& zj=hGL5ewZt-lRj*0o_E(0p1E|qFsre_`K=2fw>sVEB!68MO!Uz2;)cj?kgIcXP{R( zo1=LL+IlzDzQ63-kk98RnC7@4?6UZny7quYu-lw^B3M`a{!EB5fqn5wx}s*zUwPX- z!5xzNE^tZpK4apm_Cynxf8CPwq-hnOq2vu4{s%;74amdwUsR)_RkXODL-`H>wmr`w zem!#l_Se!Fs1^Tl(+zX_;bA!9l} z9gS{?8dBsu>a8)f8NT?WLMR$l6NUVi!MQ=Y+|4r72r5k$G!J-bTn%ev}Of*mq2`%GE!Ve>^~xGOo6Qu68gOLx;Z(6 zVp(XHvFhWccD;2QC9q;&tJ?6gZ4JkJBq@*50}lhBN>N`m zg)-*m<$V^-Cpas{L0p#E*n;osUTFE~VrOI&S+wCxAsMR(`7Yv7^IKl7+|rY`7dq>J zdAql2Biy$+guE}KXR8-qH_2PMaO>6jB;Lp@hA!AM-W4 zJU*o=HWs1!LN>C_R($A8fr)i9W`-W`?AsF`S(WbLmI6B|!9dZT>P_^~uBRFyT) z6xswQm6+)`uju2w%L!3)#Cp%|?cuI@fjOUq3Ak|){-$Kb_cqlljpF?e)j_-$$Ks`F z^|h6q_PwjubD44EuRdR`bq5Dc(4vtZkEd`8HW{!TK>F^u7L&uusCb+jqplYB$;G5G zhAxb}PbrRdebroLmhE`e7@emTJXG5<_>x%2tis)?6G>k@u3Ix+bx4z`3%XmF$UJp8 zRIvFa+=1EP>4uh{H=NZ8>F1Aj$X zKz?#?$(zZy|IxL9(aTT;fwXa+?XHo@3YI7E(L*|5HZ)!}kaKcU2gqVkT+|Sds_% zFFXwo(;vS6f!PLH`!%n&jWt;wxEWe(?&)<^`?LIn>wy33a>Yx__cLBsQjG#{X?i<5qhCF34P{#k}F|EJynEc=Jn0>_B zMyKG%s<#EGiZ52M4(G*9WkDAT8Z>;TpXWlkvwKSWR@iNnzefT_CJt32A3>a#RGthqAdzoL?XyIvGpvkq~6(^u# z{>)=b=dL_U(OqJ1&xfrQhO33G7vYXmfW>vu6xhN98*1h6wifYFUqR@_9R*`6pP+B^ zV_aEVD$GiySpe+@x?E$>|6TUa9TuU3 z5KHL|Z!EeHZK?8d{-;C{rgmr7Pix3$tmT)bZj+J9jcqk3V(k!Vap5?K-r$edZ|0-y zUR5`66bE2?FQY@~ra5=6YP!pXj&sLUrQRrMX$@$Z91wgd8E7A2lhb3CNn7*K+@+wH zO`;*Nh$X{zTMypLB-fWbsD4;;Q(*r17IN7xMS;S0i@ox-7i>o)Gt>o=p`Devdm$F=P+e1!$Xe9KUq`eu?AmR#U5=$K0%M^+JWO03iQky_vp?_m>jSn!ol z$r3*aE4TPnBEburTEX4q9nRJ>?K!5|AE=-SaDHgsE9_^F_D(B&WuYzfH6&WwT-w-N z!6;m)JP^6QL}(>duZKN3xuOxm75|xuV{0+5Io&Hn9J-mG&-=%>o0)THlSbdrT0M8I z6)#vx1zZjysoHlc>nMW#})0?6m{~HQ19vcOFQhYB=>X zB-E_mZK0&VoqQ8Xe<;L;JrcXg=2&{T3fmbUI81c8=TV48d$*3q-kMjMv6*Iz5zrY8a zc86-8aZBsK@ge^A@e%vY`B}01N$386mZP_T^4U@_i-s5_K&)88Cjg!kDm#)-POZjm zWnm=??fXh{4eG0Gi9D2>LA}h|oiuD7S;I1zX^cN}P{uYB>z}n$G@ySaJdPz4EiGiD zz(f0qE$|*u)CKVww)9*}J?9{xmb&WYL`&c`(&;6Qzc5KA)=)y;&-<mb<+I|yIry~4|T&!=1 zqbF81^8jz&-rHMET1qoA+yH$4__LHcOck3nbCmrn1$}ri1Xy7dNDHHk3#b8JJG+R5@*~gSbCPSNt5|jOe2j=Wc_Eg=; z)%f~iA3_AMDYAD zNWoaL90U)-htzgjOCH0g(&K^M*f#fT#eJ6kOz!Yj?k?@IHXQroiI{rXAKFUi(UT(- zlu=KXP%Ec{V}?ia(#!VWCgKsVJ<3lu=ej&kbM*f?oJ(MnFk}UeP$E!Dk^K7zDFBda zKx^n9_gMUd{Ld|u3-vU2soW84IOc3u34h-JwJfd57MZCn3QVi7^Bud+G|Erc>2a>M z*^@!t-?nlyeXhOD^{3FpiUou<{OZ;Vpf>J!gJG9alsrx0&p>{T*QaNR`vHNCoO3eZ z5WVfASP>2l4a-u(0exq;M9zTL*f^}tjSN0M&ppOZV{YBg|DhW#mpZ$Al$d=sesEbR z6rQC6E$nM8Ok-VoIBtPmLJUrSZJEG&rFm`g#avPF4V~}9=BC>h#8o^zAqs0O$<1WS z9`2|A$J~3yW8J@hz*i-OkS!x4dlOkjX14525<{>Qj=cmAG~x86Y#7RT@rX@nm!(Md`P*ml*LKJyc|V5^Rzz92aoF3Z zNx}HSHJM}E@;%!qD1^t~In_4%k{M)lI1hV%NBUSkzE}KG^9M9#W_r4y6Ts`Fjx2A~D?GMZnHHT)OTT@DFXg%tHH2@h8u?f< zJu66vfHwZ!7G46T=v>vu0cjU%QrT4eS5EI^P0PloslX&gAvf5t=Z6RvvbesvlKkuHgD3_ImXTt0S zn@t3;YiuE^)pEEV=MFQP%GY(rA=5I-Q-~u9f!(-LK@X@0|4Y$I*EH^>eV6r>Map`{ zf9Knou!2~uVmoH|;#lWE2E)LDvMCp4wE2a|Yv6*?->~w?v{ z!1=~Cb4EK0gZmLV6X?oeR1LxV0#3q5IFh6lwb6`R1}#J5f^TEUHnrdyP$9BI=WFgJIR(@%9UDCHI#j1da z{U&C{8%nzkpVcdG-_TWUGDy zUHI?&GKpL$@-m7PqgaZ$a^*1j^BbEy8a*R+4)&gk-44dRusnZdhG%(?Rz7jh#^rb6 z(q!J2Rrk0)hJSJ58gUKP zuF$oT+hh6ZX*z2|UY^^W&-!R-S9Gt|^0}dbo1GH6+4+z74Y!J8mL%74Y4k=OPB)fE zq91Z@+P`y)&-ti-E%(+s5v~DvE8Y;PoN^-)eKCV0>`Lr`U8nteT7o4aCEH!1 z#w0~2D6N-CrDZv)Ky`s<;Ncf8Dp5KnRkC2hH3QQK`#Yh*PvbVca2jmS`DqFooO5~q z)FbCb_GL|z_z7QsFy`<(T72Ea-uFF=$gB3S2_LlqkwaemJ zwue()v3(B?_A(ubuU~ib9_2Yv?r1saMX-qM*m%xWUawl;4_|{0uAD)U#0mBkG#YTQ z%Ok-pTM-A>QuKC8^PS3@{onWgaB$UJdlh>Q;AiwN2iG3}^vm~i9-;K!4Sg-;iFcrQWZOkhZ)RzkJ z4a7zFI6d;e5C)J(L!Y0Q5H&&FA@l!wRZ2z~DKe9NjJwIwDyieclbS9-Ud=S|Z7OJh zgUgBrad741XK+<0JAuC3k4QRn-mwgGx^^tN*_sT@X5^FR&)%EM%T|teMM41jmoIfg z2LPgh03>o)H=vV)@7#OS3l^9L_z?+=Y%$YQQGG(x#bDs z3Mu7JHCv)MRP=m={4TS6v8E!RqTeG6wKhR$ zm6$(l6@7WL)LxFobl3rRY*aWMLQq|?0(D%M&(DMF7M3QhbqThfgft^a^TNkfxUOac z>gq~(<3JFCx_Xu|Arwm0@>XQz&JoS3lp^h7ZSk!gnQsIu0`xk_J4(hKYQ~O}J8F|T zxA?G2P28m!t}0dxO!ZE>6A5osezPIm>%!iOb>W>_+XDv^_Ot}(*O#NOd*ey8e<&dU;oT&yvXVGis3E}Se9kf9%VeA z$3HphNTmlN*9f7BUn4{d%D-r>k44-aEE)mI7n3rUlNv?E?q+~v%X}Z106AWMJxNaV zjICj|0cj)``h!HH`zVUhcL~j2XeLXi5`ZV4%onfwWf{Wo1-TEYDrl*O=ntxxFFP*! zne^@3&yx#Cj;(HQ!`qV8?pTtCqkl@V{}g_I!98oSMs=OkB%yvPfH)_Pr?8-otZ5|p zMqVKo@1w?I0HFJsq?%nu57ma{lj%B#Z|6Lae3fY_a+mTYS`kT$S6IYGNDFsR(Lzfk z7o$o+Wn^{_job|)+aMGy)PSD7bK)+wP4%Qdn9pZe#cr_Oou_+f_TmM?4^!>@aTrV` zkyWL&AUaRx4Q$!PTfO0Lt%4uAug`3EQ{uKtvByz#gMBNg86JtIvzj)sC^fp z0mMWl5FHhT7(i{NH!p&F9c{+9iyykz8=KSoeI}_S#YvYbb_rCY!zv06_Xg<`BoABR zfH43sKHS}9z!)6qR%OvPJYKMGPu-61NDb2pIih~Lyfrm@d24-mbI-YReDc;Z^Ums$ zeGX>FDZ@ooKUp&LK=jo!=TJ*d0CWuk zkd`RzwOzb3dKVOHHc>0Mq_()Rg%@x3^YUg{>B--7NAs+4DE0XkB_7F^6cXEXmw;AB zKaWA1%on1Z!nTDqH9sOKr_6EH7CJdyHi;9;Nq}3W>Xv-igD+>u-ndWLQ)FZ<)D~2K z&6u);yQ)@Pnr=sbvjSU%t;;u|Idfo^nqs>8H;1yk9Cq3l#ImiW7xejD#@oW=n@GSKreC^XV79pZ~{;PstA9)A?-(ML?7}A}5%;86hzi$d0Z8IPWq3dgb^_npgq$+#@C$u{%gv)O2f zEq3=x0J$-KzVMO+lGUa8XR?MDsA&+a`I>ZBwpGoS9v=9d=$KF`w8hkwguYo(&XC(- zyaHS72A`S}GH>rkq70X^Crs$gz9&I zb6(%R*Z12i`GFI%z+!DV=%7hhm<7}I4_a0*2krc!y3N|;e^X4_Bf3}xmyFA@) zey5bbZqK_pBxE^H$Et1DN_7pltAw@~{V?xFk;tc&nvM3hVba;UxXh=IQy{kd2)y_P z=F6?27a#6HhdK1(dlvi7LCMKDHlV}Ku&_Q1y!ecp<<}s({M3uj^g${4|9J6Jda$$4dz$hm0c7e#nCs>q+`ZdUMaxXg|ucq&F5!4l%XP%;1U#is;b zd|?e4e}C~EO1xN>^t%F%Z%*Xha`R~0q>d>jz42dPe2z?Mk?8qD0?`bxZoYiNA06&StHSv3TEkR2j#H zk3U{r)mfIyY`aY~=(-Rbs|b+|;yzjRPXod+`pwYVFHqX*PG!?3NZe7%5KCKLeM4kE z&+8jbAVVu>p_O4njFbEb&oT+n=Jrzob5{-k*)Vsgo7)peZRvCLR_4l>d{7#Y|4OEd zr>qXSCUPU+PCRq-{>l>=Y0jVuOV`A;&uX7#mr&d!AnZ*S(| zu253fT5aJC(I1Q(JsM7c*L{8SeLh?6ElOg>hcS2qK14R0ayi5xaZX-|@%`CW2WEWPUizrAoQIoCw|L2@SgO>zb_DME7gBF|;DF5~=<V%{OH_G6m#4_CVbn0G&~_VhIP>QJPoW6b-k!opJ4JL$>Xp)JTWiu^N@`R%n1 zn|HH5JmZp2THhc5B4JTMU1HNnP-$KvIykzFp`|JF@73P)<7yxE`sHd*427=t+0x!@ zm6rM50@Wca>n~$w!oGLavq$3DCYmE!RE?PNX+smv@h+gz(#!|r7Q5BaZ=X{_h21$m zyk?cV!!CNq!R`XCy#_h0W>dGqOKPjns2;!H!^T=+GO6&(nAY58btNg04zWsopui%k zCyN}Pz9qBv3PP%h-Usc50Y;qvc2S4Nx#JgQn~nfWLHO5#s~=Gm-`L~Pt#VSWQ~1107)wVNl;er)a5Q}qW{R!Slr~1A@~8a>u(EG z*&NcG4-@pP2Gd2)`UIJ<6)WG@qLsB}rF_PEk%GIts27`momY(XtNUzRQIX+!WfOJ( zDISOR*ri7HK;>i6Sr)7DGnW3T^oFAfd zdB$uNpWWqzJC7Zmc4wwLvXTve=zI+!I&aph0?~QR8xoyA(<1OxzXC+(sJ50k64fEg z34?|?Jby-n=*(}x`StuCMQ7PWNOTq`D>O>8-sB5Ug$7x5s{lfDc6fhzlqG`c^Hf;! zjE@N>`PF|QDw|A*vlJ_>YSqtTU-;7abzS6}rt#@at@v*(1A4Y}4(Nt*CaE%P@iH>@u2y5S?p^ zWRBY34_6%~JFns9$+Cbgx^-_b@l5UB(g3TM#fk%;+WF@qx0HGx9;q34(l#5nuJugv zOLyc|*fp;_Ian%sM4HtQ-ZMULt@#;<&TwzW4+LlflmLwJRR?-NQ(Xj zy6`_;{&VNWQV8^;37&sxx=NchSh)to&A-15QV6RIO05M z=xF0U_G+=?3$ZZW_Z)oT+ll*4kn?xnO#SNs6M^ny-%K{bH)Bf^1!+AeL+s2C>Y=-O zQTZ3&Omo7^W8X|T5=KbK=uJTN!L`+@2E^6{H+9 zlm9sD=2j{?e<*zWV_Y*I?JU=FCdwSEKCExqUT?VdEq2;>w}+SPtUB>F-_&meL#`RL ze_b=nYrr)lOapjQ-ibw68y`3OT7JgFI1g~m_&EC>diA8HOZ21GreyxzOD!`pbkS$c4I)oy#?>QnpoS~=|7UPd}0GC!OcVsZGQ7FRG&J>QX^E+BOk^}rOx}j zn@1C#GtCQETIAo_B#C&l@36V}oU(WXG?G0*odeNCVAeBRW&l| zzGc1Fvxz}f;PI?Gcqc`DSC65RwP)#^3HlB!I84SqHM-Ga=2^W()_IFW^YeoQ?#wM&*%HZNjv1bo_i2UzYE>*Pu$f(OABQfAa!;6ZRNz2oFT zkh?0ZNz?)!1XuI?M~HNM^uK$Uh#dvHr_fM|$5Lv02EUnmZGHpoP>AK4q`3-rGp6Z< zF!^wPHNLG?*=q}#I8|obgzF`Ov2n4z?ya|PraihQWA1r$Enzck%%N5#*03X}KKxMS zjJ}?H1lQoG{i2n_tOTz>m`fD!0cxr4Ck$Q>FXS+Eb`B8w+NlZrGy82hBg+C7Txdph z^1sWD22Mu&r~ry|V3|UnJU+Ed?;L+bUf2Y*E?XG?KGiIbJMQ+BNL&pYXe{UNMLh5- zHoK#~>oYJE%kF(Y5l2DG+D=i5Zx`-RfD;xPiQWHQDr&`TYuH9Hre5^KMMEN_tvB`9 z@vn=|j$HvuIkV}h9#L(*m$2HT3n}fJe=4|ufvYtJxj-HV7`UYA zfPpKgBenB7UA`F2oG|;aGR1P4l9fS^jETm%E0$oK}ri zF~C$4h1`HQ4lE;X^_o^te^z?yav;k{%aZeGwXVN%{40-E7?^4sV5&h6Q83j!)=db- zVsMV9nhu-P^BKrRLqTPDa1C+;e*4}V6P8nDrW%*4J?SzzyyTG#;cYbrgmlH z&sZtxw_&^WehL+7VmXP{wELct=eHz|ud`~1)!56HQwLvr)a9S3*@~&ClX3`s%Z3#- z5f|56mcxd-gT-*TSW@Xh09cK*Lc9CE0pTp~q6vBtygUaSiuC>)K3M#q&c8i&R;v+RIyB*M+x}u5Ju~>&z|YCY&J0 zx^43n?1MngIuqdK3+drDvny;-4J324hxhy1+nr}MNic6ry8EAQuVnjlv-^KoA*2nT z*gP>m1tiM|V5I@&M>MYI{a8wfWNl`tHHW4;7ZNY-HW3zHXvn8u?2Ml#GTnv8dsRL* zmNmth#$#&VpLt?L9;~0l(fyp4=UgsWkLmPruT&9M<`W>916!#^Bhm3VbEnHhhJb{d zDIBsQQ(3noPOxs91&%TuVqnM8mql+$_o5T}O2Pqbr3SXS-%+g}g`)5&UE=oYt6tUt z>rqit^>$h@G|kv$o6}Q0SE)Q2fQro;qDxx+Otkl1=pehiKl{<#VvS-OsTngEW`LQW z_|!_Y5?KA}QE+%LN$-SBTNTjdxi;*!QU^x;!ps{NKE$SV!U+O#Uw($sXZ${pr-C=glEl3E zu&aiDHbq5C;U$Am0?F*Md+lCgJdgLQPZAofbtaD)&sy2Ms*ki#4wf@LUqyaS6YJr* z$QwvyoT7O2#$uP7L$69QI4iXIcM4NTfBTkWal^Xi%LXUB$?rYd=VGf*3WPd@V&s+7; z#tuy$hQ9IhA!k-?o^BV@E;I!!D{~4GAzNb*P%qi+@{PK5tiZorcFr-xP}mC`EgQl@R|5B_RF)g$xw6{j=4!^6NA=K0!FMF%DeLkQCTZ$2%s<4!#o!{Mfo=Y3@ZS0tC} zp;`_xU7f{iSpzmZx3}FRKM06I;CcU8>7ZKh0*(s^2u2e-K-(LoaC((9+|`0;dqxCp z-~BIbe>NHGl90hgAr=%M8)hSJciUdUhyl<0 zq;~dg;CUB$UUEt{9I<7|m0$+Cv-)JlZ75~|U!8A-So?+Wa6mxhi8udCK(J4d#ld?_ z^Nl|becAaIpeiRLd1Jfl%V$UDIP+|<9>zu~6&3!U5YVQ!dyE_S-$uoq9jXie%9oy~k(W>YjTPYG_atg~d%=!7DDpM;14x zst9?Scka3#$dgf~?lI!%e;Xd;Eq`k@s_@huEgoX+k^8`YD^CDyv{pd3{ili$!gtBL8E-w(h|Dp1j zeb9i|2dBdxM>F~0M)SeZF#qNViyOR8_T@$9+|=AK4BT}m+`{G4T&mhV?LvZmHUvaZ zLntD5OcezTCv-5J{$QFBu{1Zgv_O2Z?YFV?$2Z``450ozM`!)v_lt-8ezn)lxLdv6 zKySdjb|^dXi~KBlnIN157I<2ICio#gp96kBh`5*PAzU?^Tmka)4(I3`AhOi{m7n$h z@&=sKwP#_;(WLuVer`_FS)cC|x+yod{r&sr^>6~(ydUaetoy=Z2~ZEs5`vE z?99ER)|;)|GOt>ox-~iVx~?zua?(5X>Rb04xAIMhl4%)78nIHYAtY!v`0F>l?Yzjf z_hjnM0QwY?pkG7pz%y?PaSiaL+$vYmUN3xEOXrG8 zeZ+|6F_pCfs4Rp8l(?;}so4s^gwL8a{wz@;?xsQ9%V9_8SWkeLHi{hbvs^3b#pnf*8QDG|N*l8k5+-kPua^ zx0d|m=-p)X%GmaX{j|er5%Ilov?_Fc;{z~3{nECO#rS9R>x7U06PkWY;%IV1Nt{?7 zL=xv0T9lE1da4#orL|Q0x-VZPHRB=oD1ESg+VRN*k~q1vKhj?(Clh!9f+Wt#3$PtG z5|P9K>96L}G>u7@ddNjPi%p>^i&C$^!-i2H))wE=FNZ>RfYjHDKA)A-(4{i^$pcv z5{P4)nDu&75wY~(Ll)07$4gU>!g<;KxwBte%*1)>vC&RGKYsT)DuV3SSZMbv)T`&l z%-Z`)N90SD=Y!d%9O`bwg|A~fz<2ORU2DnUOEm+LAo~S8F<%zy-{Ne}>~FjPv;sXb zY90vVFp0gnx|&8vN(2@hA6nQYGv(G zv$}4Jw!2@ER*09I`CY9fa&r=8nGYY>bxDC|pB*`T<#W3mX>;nz*8cs8+9ePfA&j%= zJH$OL?+j_I#zAoU%WP5uuQ*GGKcVS2Wm?4ldFFG8yNdLb)fb5!Z(lTDv?|D~URcgn zDpxt;FSLK7O$SNSo4deV^{F3x12-~><`dX)(nwb9lH;E^`JzFCtjlqOEQ0~oR6V8Y zTT(yrU<%iiw~GjC!&}h9#PykImN;I%D@YFMDr9W{pB%!YA~Ocoh96l%0+1z?0a2VX z`l{tJ8!M9@VH1tBubPZ54sUjMGbgf;K2OK065xHZXT55=ij1vMhsbr6?3BWmrMO1( zdqY=T*2EZTVcFTMz5NU0yF4Z>`qTp4pRy4A6p$4C7fc9|KprCM5xv56F;`m&10(57-WK8tmv>}gW;Ue9w)2VpF!#QlCs3D7PR4>rBaMbi^%dpKyJ8BQ zi({B|r-oBvS!-J&e@qQuU99)s8ed{usM$g@N5H58{H@~9*b&K{Ev@xJy$|aJTa0cT zD`fUnTcjkIC5-MD-Ol_@4b15#c|vEn3K&j*V5z`M4)G0mQAGXye^6B&A!`{6h1&Q1 z739c^r5D6ADJ!D}8((DekTDcRXJ+=Y^=G|j8PL#vL3dPLIQFqbv+rBdG*a6q{`RWt zmz&v?P9mzJm$}1#Xw@gQCy1y5+Vdo$Do7PsO_%=$qN#KNtTbT+6$xpqR+Ov44o!SB zblDl?d}auz(9QnTJ047f@Ns=ac;g$ViC3{ocbH87>N#8F1$)TCd;L6^9w ztcv7N@JhBuMqH&MlI`eq?I>u%M!y^Sheic=A(76YQadvNMfz zZZE(o4qIA9i)t%V2s7DCWwd<$Z}im`dABdrFj3oS9L!iu!>HT^m!;;1eaOr-664228a5mkFT~rJA8=zf zu7t&VWtgwJ_jeuOZx4ig}v@s|4HnckuFHIUGwV{lfwe@E=@TkL9AvzSQ0 zeez27@nJb86C04);Pxtqy2SdQ{|TxD5dbPr7;Y?ZKnU34_CZEa>QIwM-tW!ZW#HfD z>xCTg>-M_3LM%f@NfVEA&;9cLvWMscN*P8Fs9F#8b{J?gN_36 zp0n3Vw(XuReUgX`iLMH`=6mNh?8Ymc21j%J?$3dqt7tb`c_>@XCPnqqUsZtsRrvLt z$0!6S`#u~yv&iMkRJ9n$R#5DDX8o4iwzpvAkj^k7_PkJWy!vbpcZH$IpkKYTi3tTz zZ)mGnyq!gp*_;}@@9%&4$iYRC55pZ#VDWz=)HlYvovx%V@%8(GTDb~W*aZR9k23(m%Hew(6lsLd-R{gI>xmKuUdT$s$?Ej7Vu1sABrm65y{ zIvQAI3O&|EXTxoEXwPCIjD67dTS>o<@pJnbgY6dxlJsL~t9BRS{iU;vPLlNZ29=ap zw-<(m9Es|(l9RbvFYI}W08LN{(gfGWj)VqWGjh2>lKvH|fXQ^@t4O?&E6z4myKzh( z^@|Tcl0NW9l0K?qj^`q0>2Z>t7(u4n`%k$@ezNfHR*ozR=!oRXX&o?QlrBb%Hg}E` zK`cP~5Q>`AZFrE)v`&!LRoK-=aG!%Ds(w`y+Si$w_%+O?*8c0qsDiODQe!O&FEpMP zJUeDAJvOVW#%(&EK=(=BZ<>cTPkLB+-lWD6mIt@ivNco2z~R&22BP3sROe@hPwqgl z67!lpPNHr(YFu*gBLYlR6Yk^?B8e(3i?z%U^k%LsSp&J9v{_rRuXANEs3~Kra8iIS ze(zg4O^*YhqS(mVcM_kKiyhqAnqb$B);1;HU#YW=2BP5FO=d5*P5$_-v-SBFAW%PQ z`e=1y+|SzO`}QZr?^(-9lUr4XC0ZpVJ>!Q?>)&~E)YP#BXxrNsGsJw*MFY&cTslG#TB zXmU6Qi8<4&O)*}e$w4^EloV=mIQDeGu|!Dy)*vhs<1@pg^oi@{!l)?XDZ@ z?LT|LVJ}l~`z`R8hPO!pGF?6A-I&@x`-{GNohGKuOmLw$`!4GKHrARGCBpLGdak>f zMMGrzG$7Mulk?D$OWuXgCL&HS4Mj(K=FiXx7Si|Oo?a&#IKkc!!nq)4m-a*d$F*$! zZ``EwQ4_d*%Tr2{_%pQ3aay)MxGM8)P5T&i+tE7qv60DdB`TB~9z3_n59u|E8bm&_ zp<9}sbr6hdz@DQyd~2q1o2L`aFlf`Ay<}@w zZ{Rf8jzSm9k15l3maks`Wm<%wOrItGOPQvzDV$j2Z(rt4Cdoaq#-k&m_zyu8-zK2{ zwLKIg+m}$R#-~jB7|_9hYI$rMK13 z4CvGPi>~fAaZt8G;7RWfB`0h>gAAeM1V&`+3J_8Y+Xx*iIfrK;eVPm8@H3>AE$GdP z^TUbJwa+2)(940;HS$5URrPlt7EM{j3GpEz4624|(TF=oH9 zmzoy{06o!nW-OXZjaz$O4hhXhpJa9_yUDfn?u^;not&Yo!mL3I`Z8oCeiSTn74Nz3 zsUwUw*OhNZA|e*xNHcwW$&`?mRb46YYE`xk4vtR@g8+UEm1HgBI_`lPKYmz6#KtYS zbeshE_|{dcIH4(upsG?M z4_g^)&y{d+C#mx$kvg$L3u_+Ve`&D~I4?*1!}q%9Xp=m&#$3ya-Z%6_+AZNr0^d8|V&~2sq_NFSq~L5m9e09OYFyGpMp02H z$cUXAQEm{qo6Pg1DdE1$ieY^0OLf!C?NCn1FrmH~_T4@!CMrAX170|NoW!Bl@Ewq} z7rc=Ha<0zp2afIX$TO--Wa$L8dv-0;!25uiws)|@n>|~Gy9*cO-5K4iakvc|c@$D- z@cq>HQEWox+0p-xNp<{zhd+Som$JfvcP%<TM^xC|H!xd`$ zew|d!`7b?xHaA=W%?*rm!ucSCF+3DJ(VO||1XS9atwquT@%+Ad*p4<sO z3ZCV62XCbGZ`M*fXZP4%fHdcIz*OV{%{e`Pt9rw#gbFm!ENbKlv3FwRm|QPHgQe@@ zn#jFYDLQE<}F$Rm1|I@y!V|{qgs0uzA zRYgrYU{qo#uSFPugS?hn6)^+rKk9Q{x~6lP?7iiPNJh_u>l?2vzK0|1tdc zL5bLZY7Y$!AN>hbzbS_IWIQrbu><8YAC~$d0s0H9zkHw=w$FDbxjMikvr68ushkz$ zg~5;9wgmZu^)r9y&uWu^r^rHh>W`CQcZmbY0W~jv;;B!`B!EEWmHDMDPo^?z-ODK4 z7KipMtE~Z;RP`}LVVFt^C#JwAUv#4t}*152}*60Z;xY37vNKorXI!evIlZo3w6QD@eb=0uW(Bq>(HND86=S| zH1ZXV8UItYxmxpG8U8SpAEOP^OCRv5s18?LBQ0yDwk#?`syG>ZP^w3%cFWklo^=+e z9l=Vnqclu=OoNc2o!&3pcYJDsE8ecI7`URTkxD}q%qiwb&H)~kYE$gn&AJg`6@iD| z%Tuz{wK%}01(6g=fTYlA+i+}@ub5W-oajVQ+h$ji3Up|5>8-_`p^zCK%-wv!fh|3w z8V7DLs`B0&tezTGTgEr{A(rAV^gJ+V2|1eB`~gwF8~%<7)zlP43P7m-67^ZYC4j^p zS|Ii?U~jjalso)Dlm*y*H1u(?$K`B4>G?RVf9ZK((E630A9qP^3$V=rjs`@*jK1vo z7M~3Dr$23`yufCPW1B{3ftts^tgWrZrS`+0b=|Hl9qq!n22!59+(->c6;ahQQB}4` z$k8Bs7*q(l*-EmZZZ=nh;g7M3d(*y*PfpWX-LD;eodK6%Fp0~~!@gyM^U~SR=ar>P zBHn)M#gy89oDfCH3yO`7e1XTbgmhHBP?AjCD9_C>6QCn25GuQ06jRKOQ zP&(PV?Df`yFgWMs`eWDo=t1I8@dmE0lr)-#zv!(oJN7|tPK;!NPdMR~h}WcH+QltH z1zdFgeS=ljJMTifTlQA0vK}(*&79CjB&wY3CaY3{dtO^XEQ z{KD;u(b&WTJ`Cy6m7Re`_n~!I^W&TS*$3>~=)d1nWC!=}{|~tb;7M5j(Vr&NpYT+a zqDcM|PZc9}Ti8=?4jqh^M9c3gi=7o5ShzkKcikYJ{*&ml*83=Oo?4Xe79=sE2eZQX zlkmQv6MaDyB7R#eG=}D>o@^Z@2C}O-Vg)|XH|`_BH|}#b&9ooda((9J!$1Ee=SHxL zvUp#p>&txV$11`}K|(_hRZxqcViQw&Fo18|ufgHs$X z$gXOL(p^$rk-NAynQYNs9ubb0GlA3z{0uJR{dDkmZ<^ZaFI1Du3866OT_&=Kdo76< zriJE{0#gP?_=?Ry*QEnn>FMQ*BKiam8h8Z&LC;dOjlb)b6F3N+pYkO!7Ptx_P5~OM8Z|gsMx$g-$x`LH{^evOBK_b!mLn z(Nzb3qqsxVEy=eWA4B5h^y0^>)7^@?jD4mCXIi=!y(H%-^frY@Rz+hF<%?boPJ9JpfJ;`hTDsPD#-sZ;$03ED6?n?_cc5e31c& zB=oefLI#psK_9Rq8#e_Tyv(@7rH=u7szvD=Ac<;x(!6%E??8qO?7Nc;8K{m#NYS8q zZ7s*7muGa&CC0**a`iQ%0qGt@%Rdpsk^bo(t$qsJqkxugkR7+n<0FVxW&W3M07+=T zpmsuhS6g^^U;71CN1WA+_0sO9>)UQm!# ziT0tIwtNHm7wy}{52XDV@(>KF34Pdl*vo^Ew-AH627;`BL5*bUaRLnL9`Nlwzz^UC zzP+`MBC?d&Y)70smqQSyQSmioyzb9&U|%#nAPGG#UBhGmR2RupKIyvlf3^n;H;Ns) za+E7-OD75HXb|FI^$y0UOC^Xy*YqI7L->h!II_PH1&N1yDD9~T@o;&yfRJ?iiciP& zCchS0g#VpE>G_3BNIcvZ*!J0p4&$>sqF(O)M0JF@9Nt+TEojFH7*uY+pxO!WQS|j< z8sgU`S13T8YrMhBr8CC0{^^D*YWojI1Q#7w_z6iY)!fMTPX%-aLQB}7$KGF@pwMu# zv$g%>Q}2`$R6{@F!Lwp%3a#Irpw|BUzdJz__TV;vlb1Q++Yu- z?G9P4?u#Kfc^9*o;y6}YE?I6!=m9AmgwV6Y`5#1`kEh4y_6l+CQy5kU#gNB-Qhulb0nw`N=lzo2_1vLOP-?I*wzSn>X9`?1P%g}y56MCFOS zZ|e*8omw^>%~lYT5)Sr-7|NTM0^dCBk90&m%)yeD)Dd>)cIY$;)AQYXW4qiCvhlWE zZnb9I3E>4bKaiQ7xC^|XAW~thR51%1bz^Gg{UX2rAvZB`Yor+H(alG=r%CxLU$IT- ze)>D4{z^&x2~s(-{~ti=e`|+79S&{(OFJw%VurLsen>m)8$H$z$pWj1b3?+TNK_}x z8k~MQ90VYT!`Ys&7uYKQy7(kuK8>G#bvVFt9%LNfLqjM?3TX(2dk$?7$DtT|hd1-S7{p*!c_FJu%p($nm|6)pA2y4}iP={>B zqO7AaM$EHlIkYp@1PG~oV45lNc9~v)_MVBM7bYO2e(b$!)DOzQ zXDs(6mnYF1dgdJ~hgH8m^Awa+I!h+C%v2d>mw{=<3}FnVMEH#5)F+znbR|ePZw$8h zr(2!;fXTWd&|e_QX&bLy7N~XC4mXnFr$2nynx$fo196aVE`*u=<`Pd%5L`Kv(M5u0I}?) z%<#flOTn1Qn{&;Fk4D{J?To;ANWn8t>GU(toZf8(1B|J^aOWo(h`&7b{)DQgxw~RN zP}PKJvHkK3c~EN|S2^pp6$jMA6O)4)rSF0yYIIr;qQ>@^JAWG_7K#?2o_tbctJo8O z%?JYdDs$6nX*z8?!fIW|L$PQfy?UsRa9(^2H>4>Qhc;G8g@(Bw8pbHEYIaY5=ud2uT|zdG;CNEQ2G>a_ZR2} zA!PfZ(uB^NPa>djN;n1D|fbG6Z|@kKmRz{BbHj_NR6) zD+GH$@A`_hW~R@g60;hx2lUnO6ZYVCEewjOawt1epRfmD`CT+60qlX2%(5259$;{Z zInr@L7Ka)3?LK?J9z+}hN(x2=C@CR`Jy=i%?13v_4`A{{Gpe6YC@F|NK(OaSA+tOL zy90s)$CQ-Zg(0(5!qW$p(*(Q^^3TWsN(%a*?J0BLztNgMA63;6zihzi_cWF#N7Y~B zHSfM)6Lv9b)PQN#-Xe$nGLwW${|q?O$$b~BkfWOxgrThJapP4t$f|;`<0*i~tFYVl zZO6%L=IVwD3%Bz2EO*mGTZz&TXZjN8o5@!!1bs8Y(+ie} zaTNrOtKQ~$e-MkvG6ukU1NvrCAYggYbwa?B%*b5!P@v=_cz7iYjRFPqh2#NXB?Dk( zj-3Fj<2A%eX)y@`k6)iL4R-<07VOF`-EX($$giB?U9h3`Zt*7Ma%+OGqNPm_)3#tI zz38RiWXz+&BAF>Zn+&>Y2XS_)yLvIyE0RBW&A+1px=g)JYSNdGyBo%paDp1n%%>>v zme?ZN!)E9B{q$X_KvcDw@U8XBaeuY3P4>ye z{lY#;lWiOhoY^sdZ+5oUL1j06Xkiui;FQ+vIBX`3`F}#|FUQqy(1Ma%2x#TV{sJun zD7j_*Z*uE5X#IQvGGaAuP=OfqS40f@C$zi}&;l`NCjhNuzaQ!?H^V_LV9bh1i{-&` zgf^iaZf|#}_9xL3zaJ6!b^!4Ec^>=yT!t&7l zgN3@-I(n)C?^oTyPoSB_;GEs7L$$**ltfu=x%Q@bkGpq5n$?PzC?LEyVS5PHF1Zecy z0x9e|eO+2M#Ci2%)Y%;VG?ia7E)hf8S`NlItnwA@U{%H4e#mtkFjT;oCHp1>Eg7V@ z<`AuFDNKyuVwckJ6TLMd%g)CH`LbRz&}`*oD}swXmhvVE2^5joz}bT@WT z1j$sAEiuH}T&{DRvGkEw||G|H*tm=p%sMpqe<)qhEI^&pJP=0as*IrwM&mHQu zrN(;xR$`1e(Wqu;Hu0CDKA`G5#Wi@XRYX8u(r5UA;%xXtz)Sjx@&@pdLe0psiYJ|< zT*&*K+jxjh(mpFt)Td=Yy6`sJgxr}M%OBf<@ux7c0$*l0nt!%+_Prb zE?YU3ZgXMn$yrtyO!t-`uK=%?%nh~|2=4QU*buWg#sU=eF(AH6frbb>!|!bz#{$2D z#DwPU?=nyJhB3&giDEj1v9bKAv!5A_Z+x%zF|Y5TMrh_GQ*D&oP zT-x@Rj7?hznFdt;uAo7cN0H8fhhAJjrqQge)oQ_M(R;D?+V)C);#bW?z*x;X-Q4q> zDL34^L(rJ_3HAY0H?Shx)n2H1k?HgNni2EW(s5qj*=E7$;PMLae#$V^{-E1U|{)&P&25EGOiYEvo*YuU=xNgDg;0u zpa>?<73b9^Jl2$nso03>E^~Tco(jB7+zs;w*cuI2-g*;-7wH8;6jRYnc~inkZB{kG zko?C!^%7BDhY(wz|qaw{Je{OHa4d z10|3G&k)$kPr!{m(aB=+3nos)Yb zcCA36HDep7i3-BM8G22k{XO3|s0}iQu-L5?tVC7DGI>VE=c-{!i)v7Na;@$K!h_(a zeHc?)2|2{?Y%er;&9j98qs-(D6T0u$ln(~X9qOReX$e{1u~p$Jdp0JN%DJxULf-;2 zWaij-+Sl_~uvY_gf~c@ptb`<_*w|+Ahkni53|iJ1_Z{RZfoVQvx4^Iy0~SB_wD*JKD-^H9>$gKPKW$z(^K#n zzMJCir=neNzOfkm4_R3V`Vzoj7GiPuFSpi@g_tW#!F15Dxb&G&B){G7Eps^^{Wa!; zWqw{1N%fNBC^Le<`ZdZt9B5s}aojTVv!DU?qoCoO)(eW^ikTtb<$2 z<4Zhv8baM{EVRG^_@mnos&mf<-E0$Ss8%a{{#uX)5Yf#B-C8U=w#(!-5@SmP1ABed z+|^2;jT`5O0;rxfj}eo8cV`BqytFk2#^eoF_7)}|Nn#MM4HSZIzidReA3>b_0d#BS zJV=r0*{Y+%ia|34-E0)}>zE%ww_n?MJQtdZwF8<)R&o6B!!e@Eh$u5H)7s>4bgTA# zI!?`19yxN-vryFx^1L{!=|P0^I9ayJ<7g@XE6w!&9Pm|u#}YZ70ST02#TT~iKJ=ig zRa~p9*CuS{<;}5*=7`wAH+5Sn+53W)EJfJWEQ<&;KR!>`%L~mbZ~wg1)N<(SCTk@` zBpyUfEsVXm$rlhEe@SWnm|irJohz+3?;H&Vm#458+Q~a$(}w8Dm3uI}QtXnKBjFnni zTpf(T7f#e~p;qMGh5osGv_apQ_|Y~){X+&M+e%XczAD9&T!ps%{jX8-Y8dsB zNO`O*2pKR=1eCQ&LuGBb;1f;FipJOGCb@jSBJO4>Vo5RwMuN(KPk0 zR2NtKBnYA&yWdC7dRAyWzP|6Ff29<>3?W5^tn||J)_VvJdd)En^FY2?92lz*yr^!H9>Q2vkh!V}8jKK(LqLau$|Rdp-CcIq zhX}@@7k9j)A7UJm(#I0{3&Ogmzn9vv+OX`zT9HMifHU>}xIJHB34zi7NbB=~< zw@E<|6)+BnAZj8ah+2CRL>&&R+gWD#ZxGf0_9X8Am{y4UN*s|!{m&XK4j&2zL>BZl z)#PfBaK6WD(xZqHrK;I+%NGeat1LK7a%2}5`&queadl{d{0i?fk!q~tUb)xoG|MTy z%sgBC0cx_neOYaigr;dh5%DlY0T&ih5Csx1E$Ce+q?A(nh)LB`{nk*-FiDXMc?VP> zm*1WHMmgH(M|TlUX#Gjyg$el{8y*^TVO>r#KdC}40G|#Bh-GN3o} zs6qw~c$b9t>xG5f^74uCHP68oj2r}8aOkk~0aS(j8nFd|T@R%N*_{wa9n+OP7&H9eYF`S<=VSom+?k6_#CKSuwvc!EJj@hNsgq*Dcnkx?oLgfl-@cq z&}a*$RqE_lZ$|iwd-^Pa|4(aY0*%%7|Nm|!nkS-B8InwuN~XF+=9wr$=FG!m%ygBM zN~BO3D??^NijXNukvSPdhRi8M@%!xOF+F47^sj6PUF*K?KIiPS_dcKD{q6_} zseK{6^_|PwBYAd>u00@$eE!oot_bGBdWJed(>ozh1e1GDpB}47+GpZOV?xU&5A}LO zs9sNF-4VzKqS7k0u050W_MDLeN|Vl6caH`9R!5~(8{86O}p-!IILGSCYX*0O=DIT_57Dd1+Ge z|F<{QlSFSS$dh7wQ%E}ygDzrnjaXmVa57e9y1aCsFF_aIq%r*I1lmQj(hsG>Y8szF= zICVn)Qki8f-%$gJtby*!I|5UK3;kOK{o1>2+DBJB)3w3?_K(WPd-+V^=kH2KWbSVniK$uWu z6U>XsKKWBhHPntuJ$wB*YD3`jS;H<2lZkYaoRp+^-jtmEsZGz67L|Rn98lypDOif# z@%WysNxD^k6=}CG1lcjzAp2t$kA5D>Gi*``Pidsi==eb`ap3B!NhJ+?|8`Mh&WnJ=8rO>ayVK-K5PQphjs({v_O zgfg&f&v-h*JLu`2qEs&I&$$tWtCGJ%xayJW>MiK2Z&%a!?bw|Ow&EwRdLMxH2-Pp# zI{UsetNd=T821PgqdO3N6CKZ;%`aS|uVVuVZv9)d+R{)@<*fo$pZv!}x4p@M{Ib}% zmg)m{mCD*Xpq{o7)YHCD?XgX*FO3}o`;wzliqnG5_NPqLSMH}f5n7R!#+&A_ z5d4Jlmomv!-9*NNkg=IH9=!AT85^r1w%@BdStjk#s1J8^?-sVD^0ww6eQvu${We{WX`u;kb&j~;#M6)TQpIFvrw7XY2IdXfF?acn-^`2BH3)oWs^;h1cVQbb`1w&}{QWj{~atT(a z*IEzUajVmjFIUsk??p*~cM07SkB2A=c6s*bh)s{7LFN> zXcfzR_W>yeuuhGAglhASHu+wgs5fhhbL&wPV)=Fo_0IF$7*ra~X3Vd48NcFM6Tg3V zNRR5dCx2SKLv#3r6mKVQXcfNU)?rWQzV}CuH$%vSLWjm>RcvXRV4W(oc8u{TvQ8y% zQSYsnSxTW!M#Rk63fmV=;+%yaztUOe0r4vZ=(Cw(-sE@%JbR^0Kcw=8E6>HR_E#^; zKtC){p}R;UJ-p>N^sf41UZf|oN2%20y)!%m31Q$5n?6T+yJ*ZH|Vgx*!K8RcGm zpS*`Zb&P^uDG_&aXf?L(*Vr5|w}o`3_sH zDAPYBi?fkyDEL{f&cbHXz1iet^4fuWHg)dS^{#1$di5v$@`dq9|S=6=!o%?M8k}?no#q4Od{7|7o z=Udj2Jdyv({nJQ`!|*p!k}^Jn&IggsHW^1$MLT0sC879VfXLkB5%vqv{k7NjMGCcX zv{*MnR#gsUZsIHq<|Y_?bCdg>R)#n&$Jws>H)of>Ou4=my6PdOz-YWk%W->N{?(J+ z)h-%HmvU!=D@G^U{$#g2!JN0)<5}RjdgbZw#eCe963Al;gU9eDf>3Q zN6yZtB;QSzprp;u1#=U_P-ISlb;lW}1}(>84!(2N>!|(0mZ0G0o8B#;vt7P-f=Xo7 z^I4tkdZe?x;=Y_5C^_b?@XsBW$~qP`rNO>u>6SKRaFWb1?Cz-pE%lGy2f$3~?Rbte zIN?~0GdM}uJ7;iG2nHt#m`!Xv414$TVUsncGIZ-rKT91`FF4kg;`Rp(_z`yVGuc7{i zwTY4}PgQ=~9!Ju&E&PjxiMZM3J0IxhZRr;@KZF{uEsib1kc^Y+S2nOTY5+Uf-OB=TBYQ?GHvGZqhAs)4bql6NxZiZL(TMk zBNx;*!Wk&vZeUwub3Rrf%1S`+*#8H|Ss*AZssP~qB;>0!5 zuj7L1;vW~)`B8OoujFJEyYV%S<~*s9Wl-b+m7wx=PSeS`4Vm^0K`#$MF-)k%YMdhN zdr+jE;=l9kAt=&fYpg(#R#E-~XvrLWaK8!L$b9SI=}(2CindjoEHBeza_`mXW~WU= z>hAp|hDxkqvsTOHyVM-UDDba^>^)~DD;-55N{VucP>l6vO4)V|7ZvC&Z9rT=hv zB=2zU3Z4nKZfDrCUqtr)72Y`}zZ9fnrHf`m>=_VZH`r*33$af##csn^$vj;p zoXb0~0*d;|t0B}NG}}CHBGJORxRgO{Q7J>UR&mA|jzy&mwy1Zjg87)Rp!2lj5B(o& zp#16-5}_TN9)CBuKSRh5m0$hTg7T|`gpv5v%#IJ%Rd)*2Uzt8odvf3OTHWE5pO17` zgK`6#0`obg$8j31`@Vc|QU~P*iT9IiHFX*3%|G5e%y`$(tgdQOEqC;roh()cxooqT zOIV`Q3bqaMP{+>8ws&O9ro#jNYlo?p9RgP!tahjd(hju;C*EPwJqXZvKn*(N}Q8~mU*mpXknl3Gvz~T zpNOy7l*WUtU}z0yYHAi&JUr+zo`1qxL+V?Hmzw>C9KYXn%^Fb{#_5k@YZ}rl*J`g# z?#yhq(!}&Dy*CaPikOT>@}YWpGpBzwW=`p7UHfOc@{2r1=;8O?o?^G8@qB{MLdz7V zG&G04!yIBJ{w!3`vAswn8+y0WGz8^p{&08+v8S6pTp{(M?_}^^s~`S5YR97PJ&Wmh zDeCZ{{8I6~-$S9bg5}H}hd)k6_VMNY%H8UtclIf+DFT(moSv`aTWA8TpKk)(e7bfC z)>!9E&q%0oCNxEugbkvmh^W-tuBar&Mg970ap(~cVMyLn0@YT$P;KSd+}HvoF{X3# zs1Z{=JC7VO_G5!TOGipkNz7GL64O6A6xyt2a^zW^|B%a{Gq^Iopw!H}1K4@wV!SYq z*49_E&>W^$U~WM3=)}G+g=ikVVlkXiHtAFUZ1FtZ@Cis@-3j;%e!Q2om9YvS(;$Hr zR26{Hyw5zZLR$hVw8dK|sCW;_iQ{Hc44O%A?zPB3@p|sMHLlxTew5uCmlg zj4Mdx@SPcS{?lW*Ue*F?jpY~}a4NJ1x@J{qWo8TbvPyz=1&;Erexmk%6TJg=CP~X| zyv?deD|@M5WH?zj$p2FBaI?>-pWw~;3(DySl}!LY|!d>Q>uIU%8Z0TRjv^xHIjMl<9@^Ly(2^lsmfS=R7N z^!>>N)zB57_`fbo!3;UfHz+pw%@-fx`BIZ@#h6;7}p9kqPB z%j8J&snMghxzh;&n}e|S&K4YOP-1w4^2xymZGUZ3 zck9z~xPvWI7^=s0Y;~`$z-DM3fH<~(HxkE2-n`e0q5kEQ5>6cZc>;)Ii$7o~jWGSr z@TY^btID44&&uYwV2NBdq^RJ>xJ?;#Y;~`G2fAronPxMGvnQI9ZgRotTrhC(^XO2@ z!@@&7_0yeA?hU`n8;-f<@Gtcx6nqr3Vl1H$1I5iL5lah`G;Vb){A^tNh=StrkwV?4*mCt$~@~eES`QjRdMRMy4M|A$Qxg+{a6%@Y|-2mHN zNc%;NaJ)RwV-k|wCraxHnvd_X29~qMFS9NZXilxlQsA_RQy72#x-i9T6)~M?`{_ku)fX&KAF5 z9Z=im98hQV6fU6P0XU%I^c1)&pvmT`e>0bUqN???%GWpt)FI!qP!HN5aOT#ny(Lia zBTS8Rk;_o8nPeCIvOYm2Mcf~J!xNQ5&L~PVeX9TV`Y{xPW-J@eG5WTJqxqzQ4)ZOn z-nuM<*KeB5?)I74uW=;`c6v{5-c3p=nLVXL40N`nsvSzI#07kz^L-!pU=9-Lpntf( zg+~TTs(c)8Oq*|jk}8oION$IymhcTwv3KYm<3q((G^L)DHo6|%pJ^6u%{^9|^&UzT zPF$EO1`l%LbXt%E1a&8<~1uNX?I{>WDnMAe^dF-@cpj>63-1p^ynOMPQJ8wo<$ z7u5G|u<4epimk@!rSo1mf{mez(lm=@UqDP@u9|AWTZvBs98vdNT(jrx);&j`hSDKR z-Jr-U`iunZB8946SfT30=er%MdMTP+q+)Pl3SKnkrna#^*5J#&h@c6TzfGQMX^=4A zfWJIUsL|zG;bFP1PQSlREC&Jqv)I!0$yPt%8k4N6UFNd_{*p%>Eqm-!1j+-!gFg2X zl6^_XdeFDI2twL#B;Sce7KlNDZPz>KT%K!7WnL*IC_M17VR` zF8M%-PTVid!>)5Rn^&(o7Zkk+LeYzgm9HwO(z3*SihmqfSCFepjg6|WYZ?!W-JW1e zJsVYrTB_Noy19b~TBM%M*HZD!)>0|Cu+G*}@zq)}_HxQ;r96J|0#{4*QDwyKfN zp-gApkInAS`(nCtFkEsi=5J;g2*3RNEm~gvb>o9Y3hAj4ZhZKGgh#uP%kCpOx?bOu zFDvFkQrT(2`%k-~PGw2ah#ROjfft%f(}L%vgg~GpD26{|E3QJ1XWr^&p^{2?vFgjV zyk{VnU5?xMz~yoWa!F;}OIS(O50zA1(W|oPcS3NTch)8K#lWX@>1hFn4ZfQl-E6*3 z_Ku`=1kJ0y@XmOFOKLS2QhoUfhF!=dRZ!1zMSMkrKh|a!Vp1=0I>%OXI>&dw<=+Cfz6?Ku>cs<&6{ zixFBildnp(epd9Q5Q)AxzZXbH&fxuRsKusM%7H=kENZcdIby-<#ocnUk@tZv3}9KG$TBF5+E3eg0J ziG6(IXP&V?O8s9+u7fA({J&(a%Hj*XY06Bmq_Y+p-#1t_@-`>^8mPjmuOn$RUu_V3 z^jiB~fxqj~r?0L2&QHI(R6NXl1m#Jf<$vJQM`(N(3$AbYEMQWUXrv{g8@FR?v!TA~ zc}sD{$QQ4lzYRQeZqEMg8O)}!6VG#vKPIs8i6!fUYWCSOu!gueeB`;P0z+KO&V%hG zY-XXH7OBR*yF>r8dqXdGtD1}5ObK0W9Eb}ZSr_1wi_F59V==5;6|(yC(KsQ`@bc!c8HeSw@V+k_s)3RxlB{7 z<58$2@_##)H-5HT;5la%&j0Nj&i_rc5&Yk*lJ&h@HZ>W=zT53Scz*KRtwCYNlP#Th zJFNT0{?#2}iw#z`5c*T1V_Whdyl`7s(5u$LyT9EMkig!I=D`@fyJ6>)_^4gDj6GHq-^5+?|h7ys3V|fa5o{G@Y5h{?(6CeY9{e_oo?y7Qo61nu&(|sn5!G@d1Me z5>jZrtmWiPn+(?|=U%}O%Qw=%>wE>E!?QpV*Zt(cA1iR-+1)W#y zT!hI&;x=89+*B42E%zI|E@( zJ<0P4J9PO$pdZ2bJPBb>B#+fX$}zgH{IR* zY}A>d#C~v!-_kZ=|MikfNePu-v~PYGSi3HuqqaRXvUB}luC8!QUi0k$jvtpSoz6|V z1hOTp438^m8|c`TS!w=*K)g}n?9NaDn0!T)Cf{j8Lqbn_g30&DBz6;1rT>lVKSYX# zFK@{D)YqvpRo)b)jPvF7TfbB(sy$}Z$==@3qQZI&bHL-h?_Y1V;$3bnEYVg~BXAdb zZC>FfUlasCO*Ts7f}cC~?N?XQ6+7)0zf|~7K@Eoh1g-8TfbN1Q=q}XV(NHd!XqJG< zw?+w8GXvY`AGC)O{I=T0-EZpLH6Eu3&8I5H=axM99E~*gR93fy@?({&?CmFCjXuV# z(K}ZlVN&9PR+0v)b5b3eYsVZZ|eAdeyZm?ovV0#In)I{viF^3X*-a-GN(RJ$tZC z5yjgZHjcflt=^Gp>${;--pk+^8yl5HJV*^qxM>G}P5SgwaqF617tJ1Poth;Y*3(YX zpt9#lbycmZN@k00!mi=HLj$Y7ftp9x<|{)PoSQapDwNqZSonC~x1&GG+Sr-zOPaI| z*jmu}u(WQ3=F|6ujKOjm!V`)kG4^58TkmM7Pz&GOlgO|BW^Zg!-Gp}GMQ(w-sV9yh zqhq($PoClTTqdjrewHP=rfenM??y7(rz9#Zo1%43MCHl8DW3?jue(y!m8PY0azaH| zPHUz?Z!0IE829_Cp<<+++y&E*gm&6RV|{IXtjN2zF`?TMfpqe_iThaT+Ra$$+DE0b z+&;*UTuu=yovix&*-|83OCX&L&CjEftJr3npQ*6Ip{V&8SC@79n3t`za_yB(%-H7V zFG0~cS4KsRVtTWXbZr$@y4FPExXkHAjfCA0eV>y~<`JZ$M`GM`e#YiruhUDS&wZ~4 zDVZJlHwz2-DnL4U8BRH^L(+O^MytU*%5Z&TM(2YHR5|J$aKw#o?2_X+|2hA{OQW(b zCR=mFtU*ntn&l$>EiveSZj$rS_wbHOay2W^`1uKX30V(jZ$-U?+$BMEoGRs7^v{$W zzC1Hew!sQDvHK-JZTD|6k?^;XdR{E1=a!qZz^cd?y>?LDZIa7&7u z`Y`hnx1*h|y=UyM1X}Q&a}(u+P*?o$Be9C_waRXNfx-SDU27#J-Y2FF3hz3}6(?{t z?$N_C>iZ2?H`(2!FTQvay6T1XBo4kbHVAm=_X4`=1K%M%nbQ4^?VQj_D4wUy_(PU8 zd>ax^3mQT@YMX3XNr3q83OMrry6Z5)0HLl7uIZt(S<+y(bkV*nf^kZ<6AaI~?3|PD zq^M%UNpJ5P5elrAenaDY2*|)oAsP6OKG=9Y2nZG9ZkJJU>MPmnqEaDuCnTsSBw8Na1+p2M&ho198-(k(s-Cr2*`&ldDOa+8ek?*BWx)`$XP1Ea=?tav)+B^N$ zvz6LnASC48i-EU=d6ROjpT8#Mzf|PE)nlgFW2aNIN>F3kNgke_r}uMvsp?X4|JJs76%P@_d!l`mfJY8X0l)lmx*0Pa}Djd)7sbdLU)9-m#AGGVmO^= z8+@ZAt>FZf;I+*8Vfyd2Fa9$Jqg-M9$6%9<4bU;;VG*Afez<$h-lo@A5?ktU3<`1;Ts! z4{LrAZS&?vr#|GrnQZS{ABw$|ATvXCo$ANQolX0CxoS6)f; zvwR;+^Yuy{-sK<%*6ysj(`=5-!vx1nG9G9wpT6W-mj!-8iem`2g;s zI(yL#^+D|CAK+vrNg1pxlQiH#WzpaQ6$Jfdi-b#Y+9Rt#xRkJxRTU~(t(7NUq#=oA zsM=Y6$Oj3Re!}_obkJyphv&IEO@8~a7HoiH=hbjIYh9=l_h|o`Ohavp=f14h8(PuV z5y^TjV4@}kl-xif0x7wHLaIS;k07NCZ!@xle&%z3^bF4U-1Z^ z;ZyIuUHDx@hXJdSB&Pi}o(F`x2bqyd(kc4jS$CE0dh|6L`JT3X)(2`Nnqk)kyA{dd~mdOU%og-cxv*WVNWouC2zWi{Conn`I~AiQO%k!4iT>UOxq z>7(zThTNG$qdD2u&vX8fCp6H!s}ik23vlKh&u7&Cqp)m=chGhs}otZe|&plW6Roy_HWjXP;Ytv0=`yGF@t;0IaNufPaF+8 zE08S)^-qlar=4lG?pJzzz4Jrvrmf0!a!usP9j>={c{A?-2;+t(&USJ{x#NU!pA9Qv z&vwvlU2MhEujdp->f;pF_HUFz{Jlp{Zznwz@(kw&1}IA1Wa7+7d$YwyRm>{ze!W?9Ti;o5`=u)FJqzEgShrtuaQmgTNw~As zHu`=O?XL0YGuArjn|0P~tf*%7v;by9nCS52@NjckOMJ_5ShPUG8@$V>v^lalYHPhf zhO2vYL4K04*&TawbK4xg9lXmS@dV}f10fAP`)Cda;p|pS7kihxBD;&?5wvxt)xYGd zbww3o{hQIcwcc4~MDMbw&5dQFqbdR~sYkGVv7#rmQmO1P#kmvIhVMQd#8rvOaU;7G zn~Z|X+Hinl9W;%Jg?S~v>1%hPQpjC3R*U^VWOIMrZf)#%-i8iv7gP5CcyYkQBUEU{ z1qs`{^DppDKYSNkgHQWMQ?djOa9fLqqwg4)oYIY8FVMU|ds^K5ror&5lkZtFsG4P) z_idMMp$8T3ro!-tifZu9P!JU|+hJEXFI{~j#)p1wTG`$UgA z-G+5P&qEP@9z&zxC&qmx@oxmBDjA!y+J_Q$<*{l6^$z5JtFqmiC=d zwh~(1)dd``IRX=qOuSCXz(U`^#=wTC&PPR49{gNg#*@#E=t~d0jCx9Shly^LQqAz5 z{;{aIxI(SFo5w;MgsHFYpUH7P%Fd#2MxsXE$Ou9vV@DwXtQ=v$nJ+l3yxh*_e&L-y zv)CN#EuH@@FK0S-`OU`5xhzF15{>Af1Ye%Eb{YHXCpu4Md_3F+vjnp~_Be*{SnppY zYIOTm&(pU@{9MDHvR~9V^##<6jHLB=9u;l5n!iQtttOq-&?UMUeQuxHBPo4P|Mh!L zofKMDAA4$8NLIRb*sZw$ESw^n(MmSJ<@NBbl**`bF>r9%HJ-o zmhBLp#_w#V+FIkp*1t9`^`}JA2S3AtH`$8%Q6U;!OL>*GuYOWV+4cgX&$v7G#a8S3 z!w!ecV!FE~ z|Md9A>l&5cJJ9vVK<9O_&SGza!`m4R9x#4?cM5TT|Z>FQVPaV}jaVf_aTYq9Pyhvkb5#QyTLZ_%p9|nwhL*gm zbDB7NPUEr;w0EXyf?IZbJ|8=FuC~R_!CpkU#=)pguG5nVRackrPkrDwg6eAU5Z)Zv zw&n%vINiNyznL!z3z|5eC)RSW5eWXO5eiaX5GFZ}esrLYDFX`ic_NCoJbT&Zt4d5&5UfrlRZ5HWtH*R>S_$C zu4eeYzI@QsE=TW!@_mtP;%w&Y%f zs^Mgvs?0(A*0y&~HyQrWamM9CpBMZLyB^~ml2~L^Ri#wNq&)7ZD7%8A`j}Hbi?vN3 z)&%21oZ|)-$wPyF>nrnCzPeYla>~J69884Y%$f*uPgWxn;TkXzR&B2vu#_y;ld6}s z5T1_NlvNSne(iI3(2Lg2yX=fZ7|Z5sPjqtD6IKB|jp$`L3X2yRvod8{OB?w9l(YaL zOG6z!yrWqLLB#FNav7|O<&8lR7T7;g4-psi5LL&D{AuN9<1&Br-+mt<{?g{5KC_a= zVUM2&K)I_2tK3B*?2#1{+yAfkM(pl646<%*LY1}qH0!-zFKeFLJ*QIdFOrmC2T2L$ z9+`vSRnT0f3U!Lgv(0M<2Cl|p(+wbES=`Xj*UeVK76Z*|Z;)A(Zio955V5?=WxUp@ zt51Gj#PX+VIQsCkZ!IeEs^p+$#=0sB8e!ue_HnGMA?|^V_?AH21H|QJ!%=hX!50~Z zNj75wK~d^g%bw@F!^J(Ei#D`wGD-;1l|FYMe`C=ytW}vCvMMtyD4(F#Gw6SS6R|W3 z3V?|3qm1^;L$G%;4`X8DcV^g9uNqa>P zeJ+rTm_3szehI+soy;w?e_S6!@Z;9O;^ADhceX1jdrnC`+4n8ua9LYy2Sj`|vNW@6 zj|IBeH&I7nwB0T$X*ygUU(2W-HhN+i=H{gDVDXTnxee4<=TTQ{t$@uFb9Pm8|G0n} zm8S@b_qxZY=Bvd(ytlH0SGuwyOSUB0>5qA4zgawAN#BR+ujyLQ!FEq5#@R72|Ih@1 zdfc#=xd4UwSU9p7s2Jma5kRjIp5yT6$n@peUPtK<*m0|vXiKr18te1iu@4BjNl z4yVd2HIAsgn=SwyBD_iu3uNe?u9UV~(F7XLVPCB*$ajc@?<43C5u>kmiQlZaM00!J zC#*+QuM8)uXq-))E`?&Dm01dF_|AOXX~&&}^muWyUgq+%8UZXGnI$ERT8z2;F4R!b zxHm&Dj5hnXpb>~ptjB5uV8$XIj+;l=W5?(B#v`*v$lk^ zG*0f+SLJ{tM6_a!*yL%XTyB4>@{$aQticf$5;AL5E4Rs+h5?%!w!C*+))@ z5-Khobb9(_8LVPGP-e|U{FMnCA%?g-$OKMbSBHMmiX^dIR5MrFmv0dvyZL~f+tZq+ zdrEaxZ?%{P_VaSk$8|uuUzgu??#yV=M1NRhI)?dR_I-e;cHJCE4z+qq?U-e4tmx{ zJUr{$31zYDKZR~EaZojxq~3cld324`RU|YqwOg`y=6-f`WxBx2y_tujA~n8!HhaSk zLK6p>Pn|rQBev(`~z}A5FfCd8yPq+`7WA zMGCsrUXJxQC20PLubCb)^ZX)>8Ty&<=26VQGuzZ%`z*(~xI@`>3K*ZGg4i6Z0gm%S z5AM8rS1j%F$eTV(^})-McoU&v8|X1w9#uXlpxMoBsQ6<4u6@vB^z$Rs1sP~v91Q5= zv4{va`8D{5O|J}UIgZsqx0>De!qRVHAvd%$@{G>7>rRez)_j@SCNk6b4#V(g^iXpB zFa2_H`>f2-C(T}rkF^z~|5-}Aj25N~&62fO#m_k~vS=LrXUP&20zbAKW|&_7`; z?QHZ67CEAy#6a7Tt+FjFQQSrb7TkImLg1CbAsaIQ?q7zRl?y-z_ww&prk@-`4XATz%2A8A$!0?Z1=hYwut zP6DW)qi1TMPYGDPRpTHJ01p9>3GWX6_a6!1NgEp-CrZ2@vgK#d>+A+R{MUKNg9HyZ zKp7n;OFMGw&F``cN#(H1r}5&7qvi$~>0x(;6cIfVF-seBaG$ZTGbeK&AHVZ$L6_YE zzddtA_&d_$`gIaeT>69jl5@M0=gkp7eT5(XT^#c!hf~tAFe0~vB?yY8h65{L8R6<+ zdXpRv76)@38)E}<3t36&>BjlXpmPMK0P{n(LsHJ%vT1G^t_JUEs-WB79gw{-l^F^@Xv5Phm21so>BZZ3Y-4 zJ1}?7T{!$5=}{0sjzT2f8EJ_Knk|-5|RN{d_L|w4x_pTQ2d+L8cYgkX-xJ& z!nkzj^+`b80u=sD+Zaj$C8j`u_4;6Z&orzdd+^%8DR?Qbq+U6gJ`<-^5*PfO-SJ-FUbik4fOfKvRYS zt;hG+Wh)?+!tBSNW*$#S(3I`4Q6(}rO)i0}nj2t^@WY>G+)<=pP8eGQa}|_9Bm-pO zOMa*dFijX8J}@+z1W?o%V`Zk}MB#EngxB0Y1wbTDfWOckeo7uF59_i8oHEIuWR5g; z??M|=HT>`wy4+Y2Tro2p%*DT*j&9!$J-7tM84imw{)=%io&-}|M#t8c+`*$F@$IVP zFgB#{xCd|2m?x5CS=m?`8k>=OE>5TUjkEwK4megk+_xl>I6X@UNIKfWbsLd+)F0Qf zI-(~t20uk zLWZg|y8nba5C!4N@mKI`FG*0v&q#`rA)Rr|m)Hj+4y=^T zFE#*P8SwCr##dgE;DMbKI&qm&_`Ki}xBs;th)aQpf27-=OMwW}(*oBwPHDKITt9|U zswo||d=9+F^C*u5T-Dgd)(&c0W=Ab*fFbu?$*#Zk5EG1gJHVOnz=QcDz&HUa3U|Sl zT!k_q-@-NH zZyQx_{)Uv%(KR3!+v$s}^5q1s3UKlFH}kjTxyVh5%s@R~|Fc8@fJk>7f1saB$pcRr zLqDd45ruo&NR`Bj4)MpS2^Wy_Wq;+88LJ3m$3IVicLmNJyYVK{^A9ALa4xc-5QsYL zba{OcTzN4}BmCVmsFnmx+Q7-&QlHGoYT5KJq2-bbt{9(XQcs$NaU%Dr8sWS))Eig= zFdOlgjpk1zSjyNlk%*lQxLA-G-J2l$P7ZXX@WX$zpMEAmT(B>n*P9>%?qX^cMzdTW zE*t+WxTA>#7(`bo%)}(kFZ)m=K@ng~cuzN>nKVq{&=3iv3Y=3d5i(Rs3oARE+8>#VPZ*2n zJPFL>L?i9^PJ)SDhW>s_S*h||^?ES2I5XY^(3Nh9wSFx zBq&XW8aJerWdYPRK*e7>svtIkpWcDY%)&xU=}|e@{^mqOy#rAE_vtERfry}RV4F9W zBs0vP)ayB|fq0XM`0o^H;=GeQ8KT9FRZDe%$N)s$O^ApZOem?jPU`_p+<8{~sFAk?gZ&lH5f4yhaY_t_cq)`1nhN6x^+f8vGzkY=8O zkMcQ7Suz*DRp{h-SAe2uG5(a-Sw;d%XemmD`u*ZMAtRtN0Turw$U;S)`uE#<@LS4m zwBC!rEx_kiuOQF;`>kz~&=@oY?i6tGzyEb<$aC?`#wG zxA>Qx1E~q3wF+M+oD5Tl`8oeXV5-3r$A315w~=7}eZJ>xEigR*z$y6c!Mo=5J4gWM z)q=^4@8lkT12sV95#2(!og{Gcnz3YXQg2 z13&yb#|eQC(x{VIAwM!>>-n$ONgrSVFh2b60Uu@(Kru@*@+st3EPkia0UqTlcjG+; zE>;pOBv?t|OJ&Ps$QG2KbAXZI(}EzjM|7!k@|R?;Q@4+PvkB19w*db3xDg_8L^PZ* z#^1h5EqkAPqK)Aj%wzm_<25^3D8$GxNCuD0K(9<^S-S)CA<>dx318M^20AB%Muu6U zt2ip;DPfU;PFO8bLg|?uFii11~LOhQb=TY8?@AT&{wn$ z(G%JR$wo4~c|9C5P+z_(nHvC&fI+h04f5e3vQQDM9ts&^?fot3_kd^y&m5m<2&F+} zhKUooAVYNc_4%PB5K*f*K2Zot$cTtYw?NkpqfH?oar1hxXC@Fk;i~Z`dkG&IqW*#s z0-0fEw{7U!571Kh;SaNrp9E9_(yD){DjLgu-GVm$=WyYB@E#7D2t*eyX<>}b(vS-< zUdlUrjRkQ1@WWrq8ettF!r|KQ$z1Fn=YqB9E$o4(jK9tbLavGg%SZ%j_lzuU$W>77 zKP%%Y4?q-i!Us;BAPxM>&Fd8ue~-RK?TB8Nn{Y-W8sS3g8cIizyM>Y=_LgWWqUbyq z-V@;!p$NqtODLfaglm`!0~%Fm;~%0+;8TdgcyVY7rHucL9F2l)dC5OScS25#BAHT+ z!;LQA3CnCbAtk0T|?kYLU=s8N~;zvxtjQUPZS!^B@m8007*DMU&w zw_N1e2*g78;lKH-;TaO$Q(P|-nVWbon???$%h4eQ|ANmdl3<}Imz|BlNj<3NCHGc6 zF$!!zr2<;;$f4A1{!gUGJ0%jxxqB#MX$09_GX)z+_EJvqpC5{sL-l6&RuF!sTdR=x z4-huukhv4={A@ueOL-E8y?cJpD3lTaS3`7H=lUzi(0c##%SA`@KKL==(Wc<2O_GMI zwIjpJbF$h8=fEZTL_AXngAnmh=Lbce@|llnyMRRnSBsxvsDz|15pT8)fXv|1&0Oiw zcAic}IEgsV|Fgu_0Aov3{Egnh#qD*31>k-v>H=tNldz}bzcmq1?m&o~tF)#>lvtw5 z#)pV7Nc2VRZEW)uO3u{y$K#6E|C@v1I z?{#qX_;WGEfQX1&g3(PT^LQ}bWzW$T*9NpbbAyAwBRz(Uh-kP{I7)*HI4q%q{MrKH zMl#{y4#6h}!R5|Y!%^a0(p&QaJ(yhJ;jiOSX2iUOf;dV{&Hr`}qGUet4cu)>%tUo; zlxVrk4}wvTOe@h1ykJd4!P&peV*sD*BPte1yCz>kl zusPb|zkAr?I7+mycdmaR{cKqriDM2q{k*#BIZIt4ke^0V^KZQjU0k0h=2S!565C#{F_KvKSK$;@s5TJdOF09y4iyW zj7n%I!J_vXB%&DlI@tHP=dK$29`Eubf{`dAp~Tj^WGJ}UCw2}W=@IKi#GVa&&lM|B zSb7e;7pft>^h{nS!a}+aviFom`Om(pnGJ9U=8W7IMk#!g2nR7v{KPXQvTNg~HfiCyuu#Yw+J8`a+d*N|e2NO{VGrg3+OFmvwN9*65!pZ`8G?XNGA=yg_ zn^ADI8THx;5Up3%5ky$Rd@m*N-4`u=q`_|e5t*;9<7iv z@c!Zlo|b2k1OJb=*s;k}8Wq|SqqSd=L;sJrIsABU>PA3o!Km@8WMAfzL*u1|DcurG zn)^D^w}c+Pc}d^vMVT^6=*Qo=^+>NhHV{G~Kocg1DS^i`-p8Z)L3|u}TTBEd$`4Z_ z-}twKmh_N!za=6QridwlF#*Dfqz@+c?})&Qvc!~_srS7z&;msKRu{e}#rz+)3__>* zg*Aw_f)w_Dd_f59#uu=Ll|on*Lkxm8M7LT9N3tVtIc>|A=45|+?iXaSqkLk2sa zVWq?+beLJ-ZiG;(E&i5^ySs#bGlZc;LZ^`had8PqO4m*(=)8an`$dFX z$nfFT{l5j22^D%5;QN15fd4hPN~qGhz;&Dc8<$wKmGBM|Ds(Q;+n_>;;B{EIC4aja zgu06hSRDvV5@6>NG=wUQgkvR?)LVcyLL{F6N-VHPh$EC&TfprC3n~H}VU9 Handle == other.Handle; - - public override bool Equals(object? obj) => obj is BlitMapHandle other && Equals(other); - - public override int GetHashCode() => HashCode.Combine((nuint)Handle); - - public static bool operator ==(BlitMapHandle left, BlitMapHandle right) => left.Equals(right); - - public static bool operator !=(BlitMapHandle left, BlitMapHandle right) => !left.Equals(right); - - public bool Equals(NullPtr _) => Handle is null; - - public static bool operator ==(BlitMapHandle left, NullPtr right) => left.Equals(right); - - public static bool operator !=(BlitMapHandle left, NullPtr right) => !left.Equals(right); - - public static implicit operator BlitMapHandle(NullPtr _) => default; -} diff --git a/sources/SDL/SDL/Handles/DisplayModeDataHandle.gen.cs b/sources/SDL/SDL/Handles/DisplayModeDataHandle.gen.cs new file mode 100644 index 0000000000..df5716327b --- /dev/null +++ b/sources/SDL/SDL/Handles/DisplayModeDataHandle.gen.cs @@ -0,0 +1,35 @@ +// 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; + +public readonly unsafe partial struct DisplayModeDataHandle +{ + public readonly void* Handle; + + public bool Equals(DisplayModeDataHandle other) => Handle == other.Handle; + + public override bool Equals(object? obj) => obj is DisplayModeDataHandle other && Equals(other); + + public override int GetHashCode() => HashCode.Combine((nuint)Handle); + + public static bool operator ==(DisplayModeDataHandle left, DisplayModeDataHandle right) => + left.Equals(right); + + public static bool operator !=(DisplayModeDataHandle left, DisplayModeDataHandle right) => + !left.Equals(right); + + public bool Equals(NullPtr _) => Handle is null; + + public static bool operator ==(DisplayModeDataHandle left, NullPtr right) => left.Equals(right); + + public static bool operator !=(DisplayModeDataHandle left, NullPtr right) => + !left.Equals(right); + + public static implicit operator DisplayModeDataHandle(NullPtr _) => default; +} diff --git a/sources/SDL/SDL/Handles/GLContextStateHandle.gen.cs b/sources/SDL/SDL/Handles/GLContextStateHandle.gen.cs new file mode 100644 index 0000000000..49dff462a6 --- /dev/null +++ b/sources/SDL/SDL/Handles/GLContextStateHandle.gen.cs @@ -0,0 +1,34 @@ +// 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; + +public readonly unsafe partial struct GLContextStateHandle +{ + public readonly void* Handle; + + public bool Equals(GLContextStateHandle other) => Handle == other.Handle; + + public override bool Equals(object? obj) => obj is GLContextStateHandle other && Equals(other); + + public override int GetHashCode() => HashCode.Combine((nuint)Handle); + + public static bool operator ==(GLContextStateHandle left, GLContextStateHandle right) => + left.Equals(right); + + public static bool operator !=(GLContextStateHandle left, GLContextStateHandle right) => + !left.Equals(right); + + public bool Equals(NullPtr _) => Handle is null; + + public static bool operator ==(GLContextStateHandle left, NullPtr right) => left.Equals(right); + + public static bool operator !=(GLContextStateHandle left, NullPtr right) => !left.Equals(right); + + public static implicit operator GLContextStateHandle(NullPtr _) => default; +} diff --git a/sources/SDL/SDL/Handles/SharedObjectHandle.gen.cs b/sources/SDL/SDL/Handles/SharedObjectHandle.gen.cs new file mode 100644 index 0000000000..1907124238 --- /dev/null +++ b/sources/SDL/SDL/Handles/SharedObjectHandle.gen.cs @@ -0,0 +1,34 @@ +// 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; + +public readonly unsafe partial struct SharedObjectHandle +{ + public readonly void* Handle; + + public bool Equals(SharedObjectHandle other) => Handle == other.Handle; + + public override bool Equals(object? obj) => obj is SharedObjectHandle other && Equals(other); + + public override int GetHashCode() => HashCode.Combine((nuint)Handle); + + public static bool operator ==(SharedObjectHandle left, SharedObjectHandle right) => + left.Equals(right); + + public static bool operator !=(SharedObjectHandle left, SharedObjectHandle right) => + !left.Equals(right); + + public bool Equals(NullPtr _) => Handle is null; + + public static bool operator ==(SharedObjectHandle left, NullPtr right) => left.Equals(right); + + public static bool operator !=(SharedObjectHandle left, NullPtr right) => !left.Equals(right); + + public static implicit operator SharedObjectHandle(NullPtr _) => default; +} diff --git a/sources/SDL/SDL/Handles/TextureHandle.gen.cs b/sources/SDL/SDL/Handles/TextureHandle.gen.cs deleted file mode 100644 index 115bb0167f..0000000000 --- a/sources/SDL/SDL/Handles/TextureHandle.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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; - -public readonly unsafe partial struct TextureHandle -{ - public readonly void* Handle; - - public bool Equals(TextureHandle other) => Handle == other.Handle; - - public override bool Equals(object? obj) => obj is TextureHandle other && Equals(other); - - public override int GetHashCode() => HashCode.Combine((nuint)Handle); - - public static bool operator ==(TextureHandle left, TextureHandle right) => left.Equals(right); - - public static bool operator !=(TextureHandle left, TextureHandle right) => !left.Equals(right); - - public bool Equals(NullPtr _) => Handle is null; - - public static bool operator ==(TextureHandle left, NullPtr right) => left.Equals(right); - - public static bool operator !=(TextureHandle left, NullPtr right) => !left.Equals(right); - - public static implicit operator TextureHandle(NullPtr _) => default; -} diff --git a/sources/SDL/SDL/SDL3/GLcontextReleaseFlag.gen.cs b/sources/SDL/SDL/SDL3/AppResult.gen.cs similarity index 84% rename from sources/SDL/SDL/SDL3/GLcontextReleaseFlag.gen.cs rename to sources/SDL/SDL/SDL3/AppResult.gen.cs index d16c9339da..506492c41e 100644 --- a/sources/SDL/SDL/SDL3/GLcontextReleaseFlag.gen.cs +++ b/sources/SDL/SDL/SDL3/AppResult.gen.cs @@ -8,8 +8,9 @@ namespace Silk.NET.SDL; [NativeTypeName("unsigned int")] -public enum GLcontextReleaseFlag : uint +public enum AppResult : uint { - None = 0x0000, - Flush = 0x0001, + Continue, + Success, + Failure, } diff --git a/sources/SDL/SDL/SDL3/AssertData.gen.cs b/sources/SDL/SDL/SDL3/AssertData.gen.cs index f8fdff2f0b..dc6f3acec7 100644 --- a/sources/SDL/SDL/SDL3/AssertData.gen.cs +++ b/sources/SDL/SDL/SDL3/AssertData.gen.cs @@ -9,8 +9,8 @@ namespace Silk.NET.SDL; public unsafe partial struct AssertData { - [NativeTypeName("SDL_bool")] - public int AlwaysIgnore; + [NativeTypeName("bool")] + public byte AlwaysIgnore; [NativeTypeName("unsigned int")] public uint TriggerCount; diff --git a/sources/SDL/SDL/SDL3/AtomicU32.gen.cs b/sources/SDL/SDL/SDL3/AtomicU32.gen.cs new file mode 100644 index 0000000000..7f1a3d16c7 --- /dev/null +++ b/sources/SDL/SDL/SDL3/AtomicU32.gen.cs @@ -0,0 +1,14 @@ +// 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; + +public partial struct AtomicU32 +{ + [NativeTypeName("Uint32")] + public uint Value; +} diff --git a/sources/SDL/SDL/SDL3/AudioDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/AudioDeviceEvent.gen.cs index e97529009f..9c6c872a33 100644 --- a/sources/SDL/SDL/SDL3/AudioDeviceEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/AudioDeviceEvent.gen.cs @@ -20,8 +20,8 @@ public partial struct AudioDeviceEvent [NativeTypeName("SDL_AudioDeviceID")] public uint Which; - [NativeTypeName("Uint8")] - public byte Iscapture; + [NativeTypeName("bool")] + public byte Recording; [NativeTypeName("Uint8")] public byte Padding1; diff --git a/sources/SDL/SDL/SDL3/AudioFormat.gen.cs b/sources/SDL/SDL/SDL3/AudioFormat.gen.cs new file mode 100644 index 0000000000..82d69bcc1e --- /dev/null +++ b/sources/SDL/SDL/SDL3/AudioFormat.gen.cs @@ -0,0 +1,25 @@ +// 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; + +[NativeTypeName("unsigned int")] +public enum AudioFormat : uint +{ + Unknown = 0x0000U, + U8 = 0x0008U, + S8 = 0x8008U, + S16Le = 0x8010U, + S16Be = 0x9010U, + S32Le = 0x8020U, + S32Be = 0x9020U, + F32Le = 0x8120U, + F32Be = 0x9120U, + S16 = S16Le, + S32 = S32Le, + F32 = F32Le, +} diff --git a/sources/SDL/SDL/SDL3/AudioSpec.gen.cs b/sources/SDL/SDL/SDL3/AudioSpec.gen.cs index 4c4f29f184..e75c279114 100644 --- a/sources/SDL/SDL/SDL3/AudioSpec.gen.cs +++ b/sources/SDL/SDL/SDL3/AudioSpec.gen.cs @@ -9,8 +9,7 @@ namespace Silk.NET.SDL; public partial struct AudioSpec { - [NativeTypeName("SDL_AudioFormat")] - public ushort Format; + public AudioFormat Format; public int Channels; public int Freq; } diff --git a/sources/SDL/SDL/SDL3/BlendFactor.gen.cs b/sources/SDL/SDL/SDL3/BlendFactor.gen.cs index 49a35d8b13..e88a5fc2e2 100644 --- a/sources/SDL/SDL/SDL3/BlendFactor.gen.cs +++ b/sources/SDL/SDL/SDL3/BlendFactor.gen.cs @@ -2,8 +2,6 @@ // 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; - namespace Silk.NET.SDL; [NativeTypeName("unsigned int")] diff --git a/sources/SDL/SDL/SDL3/BlendMode.gen.cs b/sources/SDL/SDL/SDL3/BlendMode.gen.cs index cf046a3337..4809b83665 100644 --- a/sources/SDL/SDL/SDL3/BlendMode.gen.cs +++ b/sources/SDL/SDL/SDL3/BlendMode.gen.cs @@ -8,13 +8,14 @@ namespace Silk.NET.SDL; -[NativeTypeName("unsigned int")] public enum BlendMode : uint { - None = 0x00000000, - Blend = 0x00000001, - Add = 0x00000002, - Mod = 0x00000004, - Mul = 0x00000008, - Invalid = 0x7FFFFFFF, + None = 0x00000000U, + Blend = 0x00000001U, + BlendPremultiplied = 0x00000010U, + Add = 0x00000002U, + AddPremultiplied = 0x00000020U, + Mod = 0x00000004U, + Mul = 0x00000008U, + Invalid = 0x7FFFFFFFU } diff --git a/sources/SDL/SDL/SDL3/CameraDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/CameraDeviceEvent.gen.cs index 3ef14e1a5d..cf6ecbf89f 100644 --- a/sources/SDL/SDL/SDL3/CameraDeviceEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/CameraDeviceEvent.gen.cs @@ -17,6 +17,6 @@ public partial struct CameraDeviceEvent [NativeTypeName("Uint64")] public ulong Timestamp; - [NativeTypeName("SDL_CameraDeviceID")] + [NativeTypeName("SDL_CameraID")] public uint Which; } diff --git a/sources/SDL/SDL/SDL3/CameraSpec.gen.cs b/sources/SDL/SDL/SDL3/CameraSpec.gen.cs index ace7f407ca..d48230394f 100644 --- a/sources/SDL/SDL/SDL3/CameraSpec.gen.cs +++ b/sources/SDL/SDL/SDL3/CameraSpec.gen.cs @@ -9,9 +9,10 @@ namespace Silk.NET.SDL; public partial struct CameraSpec { - public PixelFormatEnum Format; + public PixelFormat Format; + public Colorspace Colorspace; public int Width; public int Height; - public int IntervalNumerator; - public int IntervalDenominator; + public int FramerateNumerator; + public int FramerateDenominator; } diff --git a/sources/SDL/SDL/SDL3/GLContextResetNotification.gen.cs b/sources/SDL/SDL/SDL3/Capitalization.gen.cs similarity index 81% rename from sources/SDL/SDL/SDL3/GLContextResetNotification.gen.cs rename to sources/SDL/SDL/SDL3/Capitalization.gen.cs index 7e7b5aba10..5baf9fa3eb 100644 --- a/sources/SDL/SDL/SDL3/GLContextResetNotification.gen.cs +++ b/sources/SDL/SDL/SDL3/Capitalization.gen.cs @@ -8,8 +8,10 @@ namespace Silk.NET.SDL; [NativeTypeName("unsigned int")] -public enum GLContextResetNotification : uint +public enum Capitalization : uint { - NoNotification = 0x0000, - LoseContext = 0x0001, + None, + Sentences, + Words, + Letters, } diff --git a/sources/SDL/SDL/SDL3/SetPropertyWithCleanupCleanup.gen.cs b/sources/SDL/SDL/SDL3/CleanupPropertyCallback.gen.cs similarity index 69% rename from sources/SDL/SDL/SDL3/SetPropertyWithCleanupCleanup.gen.cs rename to sources/SDL/SDL/SDL3/CleanupPropertyCallback.gen.cs index dfe70b51e5..ffbd0ae98a 100644 --- a/sources/SDL/SDL/SDL3/SetPropertyWithCleanupCleanup.gen.cs +++ b/sources/SDL/SDL/SDL3/CleanupPropertyCallback.gen.cs @@ -8,25 +8,24 @@ namespace Silk.NET.SDL; -public readonly unsafe struct SetPropertyWithCleanupCleanup : IDisposable +public readonly unsafe struct CleanupPropertyCallback : IDisposable { private readonly void* Pointer; public delegate* unmanaged Handle => (delegate* unmanaged)Pointer; - public SetPropertyWithCleanupCleanup(delegate* unmanaged ptr) => - Pointer = ptr; + public CleanupPropertyCallback(delegate* unmanaged ptr) => Pointer = ptr; - public SetPropertyWithCleanupCleanup(SetPropertyWithCleanupCleanupDelegate proc) => + public CleanupPropertyCallback(CleanupPropertyCallbackDelegate proc) => Pointer = SilkMarshal.DelegateToPtr(proc); public void Dispose() => SilkMarshal.Free(Pointer); - public static implicit operator SetPropertyWithCleanupCleanup( + public static implicit operator CleanupPropertyCallback( delegate* unmanaged pfn ) => new(pfn); public static implicit operator delegate* unmanaged( - SetPropertyWithCleanupCleanup pfn + CleanupPropertyCallback pfn ) => (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/PenMotionEventAxes.gen.cs b/sources/SDL/SDL/SDL3/CleanupPropertyCallbackDelegate.gen.cs similarity index 82% rename from sources/SDL/SDL/SDL3/PenMotionEventAxes.gen.cs rename to sources/SDL/SDL/SDL3/CleanupPropertyCallbackDelegate.gen.cs index 14d6b1fd9c..7729647239 100644 --- a/sources/SDL/SDL/SDL3/PenMotionEventAxes.gen.cs +++ b/sources/SDL/SDL/SDL3/CleanupPropertyCallbackDelegate.gen.cs @@ -8,8 +8,4 @@ namespace Silk.NET.SDL; -[InlineArray(6)] -public partial struct PenMotionEventAxes -{ - public float E0; -} +public unsafe delegate void CleanupPropertyCallbackDelegate(void* arg0, void* arg1); diff --git a/sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs b/sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs index 3581b09b71..7027c784ff 100644 --- a/sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs @@ -7,7 +7,7 @@ namespace Silk.NET.SDL; -public partial struct ClipboardEvent +public unsafe partial struct ClipboardEvent { public EventType Type; @@ -16,4 +16,13 @@ public partial struct ClipboardEvent [NativeTypeName("Uint64")] public ulong Timestamp; + + [NativeTypeName("bool")] + public byte Owner; + + [NativeTypeName("Sint32")] + public int NMimeTypes; + + [NativeTypeName("const char **")] + public sbyte** MimeTypes; } diff --git a/sources/SDL/SDL/SDL3/Colorspace.gen.cs b/sources/SDL/SDL/SDL3/Colorspace.gen.cs index 350dde93f3..96012e6d6e 100644 --- a/sources/SDL/SDL/SDL3/Colorspace.gen.cs +++ b/sources/SDL/SDL/SDL3/Colorspace.gen.cs @@ -11,97 +11,17 @@ namespace Silk.NET.SDL; [NativeTypeName("unsigned int")] public enum Colorspace : uint { - Unknown, - Srgb = - ( - ((uint)(ColorType.Rgb) << 28) - | ((uint)(ColorRange.Full) << 24) - | ((uint)(ChromaLocation.None) << 20) - | ((uint)(ColorPrimaries.Bt709) << 10) - | ((uint)(TransferCharacteristics.Srgb) << 5) - | ((uint)(MatrixCoefficients.Identity) << 0) - ), - SrgbLinear = - ( - ((uint)(ColorType.Rgb) << 28) - | ((uint)(ColorRange.Full) << 24) - | ((uint)(ChromaLocation.None) << 20) - | ((uint)(ColorPrimaries.Bt709) << 10) - | ((uint)(TransferCharacteristics.Linear) << 5) - | ((uint)(MatrixCoefficients.Identity) << 0) - ), - Hdr10 = - ( - ((uint)(ColorType.Rgb) << 28) - | ((uint)(ColorRange.Full) << 24) - | ((uint)(ChromaLocation.None) << 20) - | ((uint)(ColorPrimaries.Bt2020) << 10) - | ((uint)(TransferCharacteristics.Pq) << 5) - | ((uint)(MatrixCoefficients.Identity) << 0) - ), - Jpeg = - ( - ((uint)(ColorType.Ycbcr) << 28) - | ((uint)(ColorRange.Full) << 24) - | ((uint)(ChromaLocation.None) << 20) - | ((uint)(ColorPrimaries.Bt709) << 10) - | ((uint)(TransferCharacteristics.Bt601) << 5) - | ((uint)(MatrixCoefficients.Bt601) << 0) - ), - Bt601Limited = - ( - ((uint)(ColorType.Ycbcr) << 28) - | ((uint)(ColorRange.Limited) << 24) - | ((uint)(ChromaLocation.Left) << 20) - | ((uint)(ColorPrimaries.Bt601) << 10) - | ((uint)(TransferCharacteristics.Bt601) << 5) - | ((uint)(MatrixCoefficients.Bt601) << 0) - ), - Bt601Full = - ( - ((uint)(ColorType.Ycbcr) << 28) - | ((uint)(ColorRange.Full) << 24) - | ((uint)(ChromaLocation.Left) << 20) - | ((uint)(ColorPrimaries.Bt601) << 10) - | ((uint)(TransferCharacteristics.Bt601) << 5) - | ((uint)(MatrixCoefficients.Bt601) << 0) - ), - Bt709Limited = - ( - ((uint)(ColorType.Ycbcr) << 28) - | ((uint)(ColorRange.Limited) << 24) - | ((uint)(ChromaLocation.Left) << 20) - | ((uint)(ColorPrimaries.Bt709) << 10) - | ((uint)(TransferCharacteristics.Bt709) << 5) - | ((uint)(MatrixCoefficients.Bt709) << 0) - ), - Bt709Full = - ( - ((uint)(ColorType.Ycbcr) << 28) - | ((uint)(ColorRange.Full) << 24) - | ((uint)(ChromaLocation.Left) << 20) - | ((uint)(ColorPrimaries.Bt709) << 10) - | ((uint)(TransferCharacteristics.Bt709) << 5) - | ((uint)(MatrixCoefficients.Bt709) << 0) - ), - Bt2020Limited = - ( - ((uint)(ColorType.Ycbcr) << 28) - | ((uint)(ColorRange.Limited) << 24) - | ((uint)(ChromaLocation.Left) << 20) - | ((uint)(ColorPrimaries.Bt2020) << 10) - | ((uint)(TransferCharacteristics.Pq) << 5) - | ((uint)(MatrixCoefficients.Bt2020Ncl) << 0) - ), - Bt2020Full = - ( - ((uint)(ColorType.Ycbcr) << 28) - | ((uint)(ColorRange.Full) << 24) - | ((uint)(ChromaLocation.Left) << 20) - | ((uint)(ColorPrimaries.Bt2020) << 10) - | ((uint)(TransferCharacteristics.Pq) << 5) - | ((uint)(MatrixCoefficients.Bt2020Ncl) << 0) - ), + Unknown = 0, + Srgb = 0x120005a0U, + SrgbLinear = 0x12000500U, + Hdr10 = 0x12002600U, + Jpeg = 0x220004c6U, + Bt601Limited = 0x211018c6U, + Bt601Full = 0x221018c6U, + Bt709Limited = 0x21100421U, + Bt709Full = 0x22100421U, + Bt2020Limited = 0x21102609U, + Bt2020Full = 0x22102609U, RgbDefault = Srgb, YuvDefault = Jpeg, } diff --git a/sources/SDL/SDL/SDL3/DisplayEvent.gen.cs b/sources/SDL/SDL/SDL3/DisplayEvent.gen.cs index b44dacdfe3..ded25f35b3 100644 --- a/sources/SDL/SDL/SDL3/DisplayEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/DisplayEvent.gen.cs @@ -22,4 +22,7 @@ public partial struct DisplayEvent [NativeTypeName("Sint32")] public int Data1; + + [NativeTypeName("Sint32")] + public int Data2; } diff --git a/sources/SDL/SDL/SDL3/DisplayMode.gen.cs b/sources/SDL/SDL/SDL3/DisplayMode.gen.cs index fc6dbbfdd8..a22d1879bc 100644 --- a/sources/SDL/SDL/SDL3/DisplayMode.gen.cs +++ b/sources/SDL/SDL/SDL3/DisplayMode.gen.cs @@ -11,10 +11,12 @@ public unsafe partial struct DisplayMode { [NativeTypeName("SDL_DisplayID")] public uint DisplayID; - public PixelFormatEnum Format; + public PixelFormat Format; public int W; public int H; public float PixelDensity; public float RefreshRate; - public void* Driverdata; + public int RefreshRateNumerator; + public int RefreshRateDenominator; + public DisplayModeDataHandle @internal; } diff --git a/sources/SDL/SDL/SDL3/DropEvent.gen.cs b/sources/SDL/SDL/SDL3/DropEvent.gen.cs index 098ad9a6a7..8cd63bab69 100644 --- a/sources/SDL/SDL/SDL3/DropEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/DropEvent.gen.cs @@ -23,9 +23,9 @@ public unsafe partial struct DropEvent public float X; public float Y; - [NativeTypeName("char *")] + [NativeTypeName("const char *")] public sbyte* Source; - [NativeTypeName("char *")] + [NativeTypeName("const char *")] public sbyte* Data; } diff --git a/sources/SDL/SDL/SDL3/EGLAttribArrayCallback.gen.cs b/sources/SDL/SDL/SDL3/EGLAttribArrayCallback.gen.cs index a796fd7e25..1938c3ffe0 100644 --- a/sources/SDL/SDL/SDL3/EGLAttribArrayCallback.gen.cs +++ b/sources/SDL/SDL/SDL3/EGLAttribArrayCallback.gen.cs @@ -11,18 +11,18 @@ namespace Silk.NET.SDL; public readonly unsafe struct EGLAttribArrayCallback : IDisposable { private readonly void* Pointer; - public delegate* unmanaged Handle => (delegate* unmanaged)Pointer; + public delegate* unmanaged Handle => (delegate* unmanaged)Pointer; - public EGLAttribArrayCallback(delegate* unmanaged ptr) => Pointer = ptr; + public EGLAttribArrayCallback(delegate* unmanaged ptr) => Pointer = ptr; public EGLAttribArrayCallback(EGLAttribArrayCallbackDelegate proc) => Pointer = SilkMarshal.DelegateToPtr(proc); public void Dispose() => SilkMarshal.Free(Pointer); - public static implicit operator EGLAttribArrayCallback(delegate* unmanaged pfn) => + public static implicit operator EGLAttribArrayCallback(delegate* unmanaged pfn) => new(pfn); - public static implicit operator delegate* unmanaged(EGLAttribArrayCallback pfn) => - (delegate* unmanaged)pfn.Pointer; + public static implicit operator delegate* unmanaged(EGLAttribArrayCallback pfn) => + (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/EGLAttribArrayCallbackDelegate.gen.cs b/sources/SDL/SDL/SDL3/EGLAttribArrayCallbackDelegate.gen.cs index e66e556e49..9710e4fa06 100644 --- a/sources/SDL/SDL/SDL3/EGLAttribArrayCallbackDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/EGLAttribArrayCallbackDelegate.gen.cs @@ -8,4 +8,4 @@ namespace Silk.NET.SDL; -public unsafe delegate nint* EGLAttribArrayCallbackDelegate(); +public unsafe delegate nint* EGLAttribArrayCallbackDelegate(void* arg0); diff --git a/sources/SDL/SDL/SDL3/EGLIntArrayCallback.gen.cs b/sources/SDL/SDL/SDL3/EGLIntArrayCallback.gen.cs index 86cc889bdf..0b12df26d5 100644 --- a/sources/SDL/SDL/SDL3/EGLIntArrayCallback.gen.cs +++ b/sources/SDL/SDL/SDL3/EGLIntArrayCallback.gen.cs @@ -11,17 +11,21 @@ namespace Silk.NET.SDL; public readonly unsafe struct EGLIntArrayCallback : IDisposable { private readonly void* Pointer; - public delegate* unmanaged Handle => (delegate* unmanaged)Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; - public EGLIntArrayCallback(delegate* unmanaged ptr) => Pointer = ptr; + public EGLIntArrayCallback(delegate* unmanaged ptr) => Pointer = ptr; public EGLIntArrayCallback(EGLIntArrayCallbackDelegate proc) => Pointer = SilkMarshal.DelegateToPtr(proc); public void Dispose() => SilkMarshal.Free(Pointer); - public static implicit operator EGLIntArrayCallback(delegate* unmanaged pfn) => new(pfn); + public static implicit operator EGLIntArrayCallback( + delegate* unmanaged pfn + ) => new(pfn); - public static implicit operator delegate* unmanaged(EGLIntArrayCallback pfn) => - (delegate* unmanaged)pfn.Pointer; + public static implicit operator delegate* unmanaged( + EGLIntArrayCallback pfn + ) => (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/EGLIntArrayCallbackDelegate.gen.cs b/sources/SDL/SDL/SDL3/EGLIntArrayCallbackDelegate.gen.cs index 29bcc6d9a0..a4f18ee3f5 100644 --- a/sources/SDL/SDL/SDL3/EGLIntArrayCallbackDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/EGLIntArrayCallbackDelegate.gen.cs @@ -8,4 +8,4 @@ namespace Silk.NET.SDL; -public unsafe delegate int* EGLIntArrayCallbackDelegate(); +public unsafe delegate int* EGLIntArrayCallbackDelegate(void* arg0, void* arg1, void* arg2); diff --git a/sources/SDL/SDL/SDL3/EnumerateDirectoryCallback.gen.cs b/sources/SDL/SDL/SDL3/EnumerateDirectoryCallback.gen.cs index 1c2a327845..d8d53eac13 100644 --- a/sources/SDL/SDL/SDL3/EnumerateDirectoryCallback.gen.cs +++ b/sources/SDL/SDL/SDL3/EnumerateDirectoryCallback.gen.cs @@ -11,11 +11,12 @@ namespace Silk.NET.SDL; public readonly unsafe struct EnumerateDirectoryCallback : IDisposable { private readonly void* Pointer; - public delegate* unmanaged Handle => - (delegate* unmanaged)Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; - public EnumerateDirectoryCallback(delegate* unmanaged ptr) => - Pointer = ptr; + public EnumerateDirectoryCallback( + delegate* unmanaged ptr + ) => Pointer = ptr; public EnumerateDirectoryCallback(EnumerateDirectoryCallbackDelegate proc) => Pointer = SilkMarshal.DelegateToPtr(proc); @@ -23,10 +24,10 @@ public EnumerateDirectoryCallback(EnumerateDirectoryCallbackDelegate proc) => public void Dispose() => SilkMarshal.Free(Pointer); public static implicit operator EnumerateDirectoryCallback( - delegate* unmanaged pfn + delegate* unmanaged pfn ) => new(pfn); - public static implicit operator delegate* unmanaged( + public static implicit operator delegate* unmanaged( EnumerateDirectoryCallback pfn - ) => (delegate* unmanaged)pfn.Pointer; + ) => (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/EnumerateDirectoryCallbackDelegate.gen.cs b/sources/SDL/SDL/SDL3/EnumerateDirectoryCallbackDelegate.gen.cs index 4d47ad5d22..864f1eb80b 100644 --- a/sources/SDL/SDL/SDL3/EnumerateDirectoryCallbackDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/EnumerateDirectoryCallbackDelegate.gen.cs @@ -8,4 +8,8 @@ namespace Silk.NET.SDL; -public unsafe delegate int EnumerateDirectoryCallbackDelegate(void* arg0, sbyte* arg1, sbyte* arg2); +public unsafe delegate EnumerationResult EnumerateDirectoryCallbackDelegate( + void* arg0, + sbyte* arg1, + sbyte* arg2 +); diff --git a/sources/SDL/SDL/SDL3/EnumerationResult.gen.cs b/sources/SDL/SDL/SDL3/EnumerationResult.gen.cs new file mode 100644 index 0000000000..fe78b6ff3e --- /dev/null +++ b/sources/SDL/SDL/SDL3/EnumerationResult.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.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum EnumerationResult : uint +{ + Continue, + Success, + Failure, +} diff --git a/sources/SDL/SDL/SDL3/Event.gen.cs b/sources/SDL/SDL/SDL3/Event.gen.cs index 0ce0184bd6..1da971d07b 100644 --- a/sources/SDL/SDL/SDL3/Event.gen.cs +++ b/sources/SDL/SDL/SDL3/Event.gen.cs @@ -32,6 +32,9 @@ public partial struct Event [FieldOffset(0)] public TextEditingEvent Edit; + [FieldOffset(0)] + public TextEditingCandidatesEvent EditCandidates; + [FieldOffset(0)] public TextInputEvent Text; @@ -99,7 +102,10 @@ public partial struct Event public TouchFingerEvent Tfinger; [FieldOffset(0)] - public PenTipEvent Ptip; + public PenProximityEvent Pproximity; + + [FieldOffset(0)] + public PenTouchEvent Ptouch; [FieldOffset(0)] public PenMotionEvent Pmotion; @@ -107,6 +113,9 @@ public partial struct Event [FieldOffset(0)] public PenButtonEvent Pbutton; + [FieldOffset(0)] + public PenAxisEvent Paxis; + [FieldOffset(0)] public DropEvent Drop; diff --git a/sources/SDL/SDL/SDL3/EventFilter.gen.cs b/sources/SDL/SDL/SDL3/EventFilter.gen.cs index 3ebb91690c..3c8281241f 100644 --- a/sources/SDL/SDL/SDL3/EventFilter.gen.cs +++ b/sources/SDL/SDL/SDL3/EventFilter.gen.cs @@ -11,18 +11,18 @@ namespace Silk.NET.SDL; public readonly unsafe struct EventFilter : IDisposable { private readonly void* Pointer; - public delegate* unmanaged Handle => - (delegate* unmanaged)Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; - public EventFilter(delegate* unmanaged ptr) => Pointer = ptr; + public EventFilter(delegate* unmanaged ptr) => Pointer = ptr; public EventFilter(EventFilterDelegate proc) => Pointer = SilkMarshal.DelegateToPtr(proc); public void Dispose() => SilkMarshal.Free(Pointer); - public static implicit operator EventFilter(delegate* unmanaged pfn) => + public static implicit operator EventFilter(delegate* unmanaged pfn) => new(pfn); - public static implicit operator delegate* unmanaged(EventFilter pfn) => - (delegate* unmanaged)pfn.Pointer; + public static implicit operator delegate* unmanaged(EventFilter pfn) => + (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/EventFilterDelegate.gen.cs b/sources/SDL/SDL/SDL3/EventFilterDelegate.gen.cs index 036cb240f3..9600242a3b 100644 --- a/sources/SDL/SDL/SDL3/EventFilterDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/EventFilterDelegate.gen.cs @@ -8,4 +8,4 @@ namespace Silk.NET.SDL; -public unsafe delegate int EventFilterDelegate(void* arg0, Event* arg1); +public unsafe delegate byte EventFilterDelegate(void* arg0, Event* arg1); diff --git a/sources/SDL/SDL/SDL3/EventType.gen.cs b/sources/SDL/SDL/SDL3/EventType.gen.cs index 92127cddc8..c972017c2a 100644 --- a/sources/SDL/SDL/SDL3/EventType.gen.cs +++ b/sources/SDL/SDL/SDL3/EventType.gen.cs @@ -24,16 +24,18 @@ public enum EventType : uint DisplayAdded, DisplayRemoved, DisplayMoved, + DisplayDesktopModeChanged, + DisplayCurrentModeChanged, DisplayContentScaleChanged, - DisplayHdrStateChanged, DisplayFirst = DisplayOrientation, - DisplayLast = DisplayHdrStateChanged, + DisplayLast = DisplayContentScaleChanged, WindowShown = 0x202, WindowHidden, WindowExposed, WindowMoved, WindowResized, WindowPixelSizeChanged, + WindowMetalViewResized, WindowMinimized, WindowMaximized, WindowRestored, @@ -42,19 +44,18 @@ public enum EventType : uint WindowFocusGained, WindowFocusLost, WindowCloseRequested, - WindowTakeFocus, WindowHitTest, WindowIccprofChanged, WindowDisplayChanged, WindowDisplayScaleChanged, + WindowSafeAreaChanged, WindowOccluded, WindowEnterFullscreen, WindowLeaveFullscreen, WindowDestroyed, - WindowPenEnter, - WindowPenLeave, + WindowHdrStateChanged, WindowFirst = WindowShown, - WindowLast = WindowPenLeave, + WindowLast = WindowHdrStateChanged, KeyDown = 0x300, KeyUp, TextEditing, @@ -62,6 +63,7 @@ public enum EventType : uint KeymapChanged, KeyboardAdded, KeyboardRemoved, + TextEditingCandidates, MouseMotion = 0x400, MouseButtonDown, MouseButtonUp, @@ -102,17 +104,25 @@ public enum EventType : uint AudioDeviceRemoved, AudioDeviceFormatChanged, SensorUpdate = 0x1200, - PenDown = 0x1300, + PenProximityIn = 0x1300, + PenProximityOut, + PenDown, PenUp, - PenMotion, PenButtonDown, PenButtonUp, + PenMotion, + PenAxis, CameraDeviceAdded = 0x1400, CameraDeviceRemoved, CameraDeviceApproved, CameraDeviceDenied, RenderTargetsReset = 0x2000, RenderDeviceReset, + RenderDeviceLost, + Private0 = 0x4000, + Private1, + Private2, + Private3, PollSentinel = 0x7F00, User = 0x8000, Last = 0xFFFF, diff --git a/sources/SDL/SDL/SDL3/Folder.gen.cs b/sources/SDL/SDL/SDL3/Folder.gen.cs index 0f47434e02..c513112e9e 100644 --- a/sources/SDL/SDL/SDL3/Folder.gen.cs +++ b/sources/SDL/SDL/SDL3/Folder.gen.cs @@ -21,4 +21,5 @@ public enum Folder : uint Screenshots, Templates, Videos, + Count, } diff --git a/sources/SDL/SDL/SDL3/GLattr.gen.cs b/sources/SDL/SDL/SDL3/GLattr.gen.cs index f333e26f07..e23ba2106b 100644 --- a/sources/SDL/SDL/SDL3/GLattr.gen.cs +++ b/sources/SDL/SDL/SDL3/GLattr.gen.cs @@ -8,7 +8,7 @@ namespace Silk.NET.SDL; [NativeTypeName("unsigned int")] -public enum GLattr : uint +public enum GLAttr : uint { RedSize, GreenSize, diff --git a/sources/SDL/SDL/SDL3/GamepadAxis.gen.cs b/sources/SDL/SDL/SDL3/GamepadAxis.gen.cs index 5fe8d003b3..f2c7b7920d 100644 --- a/sources/SDL/SDL/SDL3/GamepadAxis.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadAxis.gen.cs @@ -16,5 +16,5 @@ public enum GamepadAxis Righty, LeftTrigger, RightTrigger, - Max, + Count, } diff --git a/sources/SDL/SDL/SDL3/GamepadBinding.gen.cs b/sources/SDL/SDL/SDL3/GamepadBinding.gen.cs index ba0ef2dc5f..40a5b666ed 100644 --- a/sources/SDL/SDL/SDL3/GamepadBinding.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadBinding.gen.cs @@ -11,10 +11,10 @@ public partial struct GamepadBinding { public GamepadBindingType InputType; - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L196_C5")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L247_C5")] public GamepadBindingInput Input; public GamepadBindingType OutputType; - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L216_C5")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L267_C5")] public GamepadBindingOutput Output; } diff --git a/sources/SDL/SDL/SDL3/GamepadBindingInput.gen.cs b/sources/SDL/SDL/SDL3/GamepadBindingInput.gen.cs index 18ec2b2889..ea17ae03b4 100644 --- a/sources/SDL/SDL/SDL3/GamepadBindingInput.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadBindingInput.gen.cs @@ -15,10 +15,10 @@ public partial struct GamepadBindingInput public int Button; [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L200_C9")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L251_C9")] public GamepadBindingInputAxis Axis; [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L207_C9")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L258_C9")] public GamepadBindingInputHat Hat; } diff --git a/sources/SDL/SDL/SDL3/GamepadBindingOutput.gen.cs b/sources/SDL/SDL/SDL3/GamepadBindingOutput.gen.cs index 830b7a1704..a329809c01 100644 --- a/sources/SDL/SDL/SDL3/GamepadBindingOutput.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadBindingOutput.gen.cs @@ -15,6 +15,6 @@ public partial struct GamepadBindingOutput public GamepadButton Button; [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L220_C9")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L271_C9")] public GamepadBindingOutputAxis Axis; } diff --git a/sources/SDL/SDL/SDL3/GamepadButton.gen.cs b/sources/SDL/SDL/SDL3/GamepadButton.gen.cs index e4f7f283e4..59abb218eb 100644 --- a/sources/SDL/SDL/SDL3/GamepadButton.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadButton.gen.cs @@ -37,5 +37,5 @@ public enum GamepadButton Misc4, Misc5, Misc6, - Max, + Count, } diff --git a/sources/SDL/SDL/SDL3/GamepadButtonEvent.gen.cs b/sources/SDL/SDL/SDL3/GamepadButtonEvent.gen.cs index 4bae6e1ca1..66a0c544e6 100644 --- a/sources/SDL/SDL/SDL3/GamepadButtonEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadButtonEvent.gen.cs @@ -23,8 +23,8 @@ public partial struct GamepadButtonEvent [NativeTypeName("Uint8")] public byte Button; - [NativeTypeName("Uint8")] - public byte State; + [NativeTypeName("bool")] + public byte Down; [NativeTypeName("Uint8")] public byte Padding1; diff --git a/sources/SDL/SDL/SDL3/GamepadType.gen.cs b/sources/SDL/SDL/SDL3/GamepadType.gen.cs index b601930e48..ff76da0bdc 100644 --- a/sources/SDL/SDL/SDL3/GamepadType.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadType.gen.cs @@ -21,5 +21,5 @@ public enum GamepadType : uint NintendoSwitchJoyconLeft, NintendoSwitchJoyconRight, NintendoSwitchJoyconPair, - Max, + Count, } diff --git a/sources/SDL/SDL/SDL3/IOStreamInterface.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterface.gen.cs index 5629809996..329956b4a4 100644 --- a/sources/SDL/SDL/SDL3/IOStreamInterface.gen.cs +++ b/sources/SDL/SDL/SDL3/IOStreamInterface.gen.cs @@ -9,18 +9,24 @@ namespace Silk.NET.SDL; public unsafe partial struct IOStreamInterface { + [NativeTypeName("Uint32")] + public uint Version; + [NativeTypeName("Sint64 (*)(void *)")] public IOStreamInterfaceSize Size; - [NativeTypeName("Sint64 (*)(void *, Sint64, int)")] + [NativeTypeName("Sint64 (*)(void *, Sint64, SDL_IOWhence)")] public IOStreamInterfaceSeek Seek; [NativeTypeName("size_t (*)(void *, void *, size_t, SDL_IOStatus *)")] - public IOStreamInterfaceFunction1 Read; + public IOStreamInterfaceRead Read; [NativeTypeName("size_t (*)(void *, const void *, size_t, SDL_IOStatus *)")] - public IOStreamInterfaceFunction1 Write; + public IOStreamInterfaceWrite Write; + + [NativeTypeName("bool (*)(void *, SDL_IOStatus *)")] + public IOStreamInterfaceFlush Flush; - [NativeTypeName("int (*)(void *)")] - public ThreadFunction Close; + [NativeTypeName("bool (*)(void *)")] + public IOStreamInterfaceClose Close; } diff --git a/sources/SDL/SDL/SDL3/IOStreamInterfaceClose.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterfaceClose.gen.cs new file mode 100644 index 0000000000..70978be1da --- /dev/null +++ b/sources/SDL/SDL/SDL3/IOStreamInterfaceClose.gen.cs @@ -0,0 +1,29 @@ +// 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; + +[Transformed] +public readonly unsafe struct IOStreamInterfaceClose : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => (delegate* unmanaged)Pointer; + + public IOStreamInterfaceClose(delegate* unmanaged ptr) => Pointer = ptr; + + public IOStreamInterfaceClose(IOStreamInterfaceCloseDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator IOStreamInterfaceClose(delegate* unmanaged pfn) => + new(pfn); + + public static implicit operator delegate* unmanaged(IOStreamInterfaceClose pfn) => + (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceFunction2Delegate.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterfaceCloseDelegate.gen.cs similarity index 82% rename from sources/SDL/SDL/SDL3/StorageInterfaceFunction2Delegate.gen.cs rename to sources/SDL/SDL/SDL3/IOStreamInterfaceCloseDelegate.gen.cs index ffb6aa07d4..5ca415ff40 100644 --- a/sources/SDL/SDL/SDL3/StorageInterfaceFunction2Delegate.gen.cs +++ b/sources/SDL/SDL/SDL3/IOStreamInterfaceCloseDelegate.gen.cs @@ -9,4 +9,4 @@ namespace Silk.NET.SDL; [Transformed] -public unsafe delegate int StorageInterfaceFunction2Delegate(void* arg0, sbyte* arg1); +public unsafe delegate byte IOStreamInterfaceCloseDelegate(void* arg0); diff --git a/sources/SDL/SDL/SDL3/IOStreamInterfaceFlush.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterfaceFlush.gen.cs new file mode 100644 index 0000000000..27122cb3bc --- /dev/null +++ b/sources/SDL/SDL/SDL3/IOStreamInterfaceFlush.gen.cs @@ -0,0 +1,32 @@ +// 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; + +[Transformed] +public readonly unsafe struct IOStreamInterfaceFlush : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; + + public IOStreamInterfaceFlush(delegate* unmanaged ptr) => Pointer = ptr; + + public IOStreamInterfaceFlush(IOStreamInterfaceFlushDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator IOStreamInterfaceFlush( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + IOStreamInterfaceFlush pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/IOStreamInterfaceFlushDelegate.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterfaceFlushDelegate.gen.cs new file mode 100644 index 0000000000..ee6927934a --- /dev/null +++ b/sources/SDL/SDL/SDL3/IOStreamInterfaceFlushDelegate.gen.cs @@ -0,0 +1,12 @@ +// 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; + +[Transformed] +public unsafe delegate byte IOStreamInterfaceFlushDelegate(void* arg0, IOStatus* arg1); diff --git a/sources/SDL/SDL/SDL3/IOStreamInterfaceFunction1.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterfaceRead.gen.cs similarity index 71% rename from sources/SDL/SDL/SDL3/IOStreamInterfaceFunction1.gen.cs rename to sources/SDL/SDL/SDL3/IOStreamInterfaceRead.gen.cs index 7cbf72d4ed..3e57b6914f 100644 --- a/sources/SDL/SDL/SDL3/IOStreamInterfaceFunction1.gen.cs +++ b/sources/SDL/SDL/SDL3/IOStreamInterfaceRead.gen.cs @@ -9,26 +9,25 @@ namespace Silk.NET.SDL; [Transformed] -public readonly unsafe struct IOStreamInterfaceFunction1 : IDisposable +public readonly unsafe struct IOStreamInterfaceRead : IDisposable { private readonly void* Pointer; public delegate* unmanaged Handle => (delegate* unmanaged)Pointer; - public IOStreamInterfaceFunction1( - delegate* unmanaged ptr - ) => Pointer = ptr; + public IOStreamInterfaceRead(delegate* unmanaged ptr) => + Pointer = ptr; - public IOStreamInterfaceFunction1(IOStreamInterfaceFunction1Delegate proc) => + public IOStreamInterfaceRead(IOStreamInterfaceReadDelegate proc) => Pointer = SilkMarshal.DelegateToPtr(proc); public void Dispose() => SilkMarshal.Free(Pointer); - public static implicit operator IOStreamInterfaceFunction1( + public static implicit operator IOStreamInterfaceRead( delegate* unmanaged pfn ) => new(pfn); public static implicit operator delegate* unmanaged( - IOStreamInterfaceFunction1 pfn + IOStreamInterfaceRead pfn ) => (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/IOStreamInterfaceFunction1Delegate.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterfaceReadDelegate.gen.cs similarity index 88% rename from sources/SDL/SDL/SDL3/IOStreamInterfaceFunction1Delegate.gen.cs rename to sources/SDL/SDL/SDL3/IOStreamInterfaceReadDelegate.gen.cs index aa735edbed..7c02c46dec 100644 --- a/sources/SDL/SDL/SDL3/IOStreamInterfaceFunction1Delegate.gen.cs +++ b/sources/SDL/SDL/SDL3/IOStreamInterfaceReadDelegate.gen.cs @@ -9,7 +9,7 @@ namespace Silk.NET.SDL; [Transformed] -public unsafe delegate nuint IOStreamInterfaceFunction1Delegate( +public unsafe delegate nuint IOStreamInterfaceReadDelegate( void* arg0, void* arg1, nuint arg2, diff --git a/sources/SDL/SDL/SDL3/IOStreamInterfaceSeek.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterfaceSeek.gen.cs index c08a012dfb..d2013ad41b 100644 --- a/sources/SDL/SDL/SDL3/IOStreamInterfaceSeek.gen.cs +++ b/sources/SDL/SDL/SDL3/IOStreamInterfaceSeek.gen.cs @@ -8,13 +8,15 @@ namespace Silk.NET.SDL; +[Transformed] public readonly unsafe struct IOStreamInterfaceSeek : IDisposable { private readonly void* Pointer; - public delegate* unmanaged Handle => - (delegate* unmanaged)Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; - public IOStreamInterfaceSeek(delegate* unmanaged ptr) => Pointer = ptr; + public IOStreamInterfaceSeek(delegate* unmanaged ptr) => + Pointer = ptr; public IOStreamInterfaceSeek(IOStreamInterfaceSeekDelegate proc) => Pointer = SilkMarshal.DelegateToPtr(proc); @@ -22,10 +24,10 @@ public IOStreamInterfaceSeek(IOStreamInterfaceSeekDelegate proc) => public void Dispose() => SilkMarshal.Free(Pointer); public static implicit operator IOStreamInterfaceSeek( - delegate* unmanaged pfn + delegate* unmanaged pfn ) => new(pfn); - public static implicit operator delegate* unmanaged( + public static implicit operator delegate* unmanaged( IOStreamInterfaceSeek pfn - ) => (delegate* unmanaged)pfn.Pointer; + ) => (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/IOStreamInterfaceSeekDelegate.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterfaceSeekDelegate.gen.cs index c0d7ae6013..69250b676c 100644 --- a/sources/SDL/SDL/SDL3/IOStreamInterfaceSeekDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/IOStreamInterfaceSeekDelegate.gen.cs @@ -8,4 +8,5 @@ namespace Silk.NET.SDL; -public unsafe delegate long IOStreamInterfaceSeekDelegate(void* arg0, long arg1, int arg2); +[Transformed] +public unsafe delegate long IOStreamInterfaceSeekDelegate(void* arg0, long arg1, IOWhence arg2); diff --git a/sources/SDL/SDL/SDL3/IOStreamInterfaceSize.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterfaceSize.gen.cs index 1d915df502..98398f45ff 100644 --- a/sources/SDL/SDL/SDL3/IOStreamInterfaceSize.gen.cs +++ b/sources/SDL/SDL/SDL3/IOStreamInterfaceSize.gen.cs @@ -8,6 +8,7 @@ namespace Silk.NET.SDL; +[Transformed] public readonly unsafe struct IOStreamInterfaceSize : IDisposable { private readonly void* Pointer; diff --git a/sources/SDL/SDL/SDL3/IOStreamInterfaceSizeDelegate.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterfaceSizeDelegate.gen.cs index 0467a54f5c..c09a21e435 100644 --- a/sources/SDL/SDL/SDL3/IOStreamInterfaceSizeDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/IOStreamInterfaceSizeDelegate.gen.cs @@ -8,4 +8,5 @@ namespace Silk.NET.SDL; +[Transformed] public unsafe delegate long IOStreamInterfaceSizeDelegate(void* arg0); diff --git a/sources/SDL/SDL/SDL3/IOStreamInterfaceWrite.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterfaceWrite.gen.cs new file mode 100644 index 0000000000..fb4ebfd2f5 --- /dev/null +++ b/sources/SDL/SDL/SDL3/IOStreamInterfaceWrite.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; + +[Transformed] +public readonly unsafe struct IOStreamInterfaceWrite : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; + + public IOStreamInterfaceWrite(delegate* unmanaged ptr) => + Pointer = ptr; + + public IOStreamInterfaceWrite(IOStreamInterfaceWriteDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator IOStreamInterfaceWrite( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + IOStreamInterfaceWrite pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/IOStreamInterfaceWriteDelegate.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterfaceWriteDelegate.gen.cs new file mode 100644 index 0000000000..6a78538f1d --- /dev/null +++ b/sources/SDL/SDL/SDL3/IOStreamInterfaceWriteDelegate.gen.cs @@ -0,0 +1,17 @@ +// 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; + +[Transformed] +public unsafe delegate nuint IOStreamInterfaceWriteDelegate( + void* arg0, + void* arg1, + nuint arg2, + IOStatus* arg3 +); diff --git a/sources/SDL/SDL/SDL3/RendererFlags.gen.cs b/sources/SDL/SDL/SDL3/IOWhence.gen.cs similarity index 87% rename from sources/SDL/SDL/SDL3/RendererFlags.gen.cs rename to sources/SDL/SDL/SDL3/IOWhence.gen.cs index 49e227e1a8..2e51fbd424 100644 --- a/sources/SDL/SDL/SDL3/RendererFlags.gen.cs +++ b/sources/SDL/SDL/SDL3/IOWhence.gen.cs @@ -8,7 +8,9 @@ namespace Silk.NET.SDL; [NativeTypeName("unsigned int")] -public enum RendererFlags : uint +public enum IOWhence : uint { - Presentvsync = 0x00000004, + Set, + Cur, + End, } diff --git a/sources/SDL/SDL/SDL3/ISdl.gen.cs b/sources/SDL/SDL/SDL3/ISdl.gen.cs index 708fce81fd..fd0a111078 100644 --- a/sources/SDL/SDL/SDL3/ISdl.gen.cs +++ b/sources/SDL/SDL/SDL3/ISdl.gen.cs @@ -25,15 +25,24 @@ static abstract Ptr AcquireCameraFrame( [NativeTypeName("Uint64 *")] Ref timestampNS ); + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] + static abstract int AddAtomicInt(AtomicInt* a, int v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] + static abstract int AddAtomicInt(Ref a, int v); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] - static abstract int AddEventWatch( + static abstract byte AddEventWatch( [NativeTypeName("SDL_EventFilter")] EventFilter filter, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] - static abstract int AddEventWatch( + static abstract MaybeBool AddEventWatch( [NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata ); @@ -59,37 +68,51 @@ static abstract int AddGamepadMappingsFromFile( [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] static abstract int AddGamepadMappingsFromIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] static abstract int AddGamepadMappingsFromIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] - static abstract int AddHintCallback( + static abstract byte AddHintCallback( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] - static abstract int AddHintCallback( + static abstract MaybeBool AddHintCallback( [NativeTypeName("const char *")] Ref name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, Ref userdata ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddSurfaceAlternateImage")] + static abstract byte AddSurfaceAlternateImage(Surface* surface, Surface* image); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddSurfaceAlternateImage")] + static abstract MaybeBool AddSurfaceAlternateImage( + Ref surface, + Ref image + ); + [return: NativeTypeName("SDL_TimerID")] [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] static abstract uint AddTimer( [NativeTypeName("Uint32")] uint interval, [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - void* param2 + void* userdata ); [return: NativeTypeName("SDL_TimerID")] @@ -98,190 +121,236 @@ static abstract uint AddTimer( static abstract uint AddTimer( [NativeTypeName("Uint32")] uint interval, [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - Ref param2 + Ref userdata + ); + + [return: NativeTypeName("SDL_TimerID")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimerNS")] + static abstract uint AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + void* userdata + ); + + [return: NativeTypeName("SDL_TimerID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimerNS")] + static abstract uint AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + Ref userdata ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] - static abstract int AddVulkanRenderSemaphores( + static abstract MaybeBool AddVulkanRenderSemaphores( RendererHandle renderer, [NativeTypeName("Uint32")] uint wait_stage_mask, [NativeTypeName("Sint64")] long wait_semaphore, [NativeTypeName("Sint64")] long signal_semaphore ); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AllocateEventMemory")] - static abstract Ptr AllocateEventMemory([NativeTypeName("size_t")] nuint size); - - [NativeFunction("SDL3", EntryPoint = "SDL_AllocateEventMemory")] - static abstract void* AllocateEventMemoryRaw([NativeTypeName("size_t")] nuint size); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] - static abstract int AtomicAdd(AtomicInt* a, int v); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] - static abstract int AtomicAdd(Ref a, int v); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwap")] - static abstract int AtomicCompareAndSwap(AtomicInt* a, int oldval, int newval); - - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwap")] - static abstract MaybeBool AtomicCompareAndSwap( - Ref a, - int oldval, - int newval + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] + static abstract byte AddVulkanRenderSemaphoresRaw( + RendererHandle renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore ); - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwapPointer")] - static abstract int AtomicCompareAndSwapPointer(void** a, void* oldval, void* newval); - - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwapPointer")] - static abstract MaybeBool AtomicCompareAndSwapPointer(Ref2D a, Ref oldval, Ref newval); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] - static abstract int AtomicGet(AtomicInt* a); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] - static abstract int AtomicGet(Ref a); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] - static abstract void* AtomicGetPtr(void** a); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] - static abstract Ptr AtomicGetPtr(Ref2D a); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] - static abstract int AtomicSet(AtomicInt* a, int v); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] - static abstract int AtomicSet(Ref a, int v); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] - static abstract void* AtomicSetPtr(void** a, void* v); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] - static abstract Ptr AtomicSetPtr(Ref2D a, Ref v); - [return: NativeTypeName("SDL_JoystickID")] [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystick")] static abstract uint AttachVirtualJoystick( - JoystickType type, - int naxes, - int nbuttons, - int nhats - ); - - [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] - static abstract uint AttachVirtualJoystickEx( [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc ); [return: NativeTypeName("SDL_JoystickID")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] - static abstract uint AttachVirtualJoystickEx( + [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystick")] + static abstract uint AttachVirtualJoystick( [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] - static abstract MaybeBool AudioDevicePaused( + static abstract MaybeBool AudioDevicePaused( [NativeTypeName("SDL_AudioDeviceID")] uint dev ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] - static abstract int AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + static abstract byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] + static abstract MaybeBool BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioStreamHandle stream + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] - static abstract int BindAudioStream( + static abstract byte BindAudioStreamRaw( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioStreamHandle stream ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] - static abstract int BindAudioStreams( + static abstract byte BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioStreamHandle* streams, int num_streams ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] - static abstract int BindAudioStreams( + static abstract MaybeBool BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, Ref streams, int num_streams ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] - static abstract int BlitSurface( + static abstract byte BlitSurface( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, - Rect* dstrect + [NativeTypeName("const SDL_Rect *")] Rect* dstrect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] - static abstract int BlitSurface( + static abstract MaybeBool BlitSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface9Grid")] + static abstract byte BlitSurface9Grid( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface9Grid")] + static abstract MaybeBool BlitSurface9Grid( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, Ref dst, - Ref dstrect + [NativeTypeName("const SDL_Rect *")] Ref dstrect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] - static abstract int BlitSurfaceScaled( + static abstract byte BlitSurfaceScaled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, - Rect* dstrect, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, ScaleMode scaleMode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] - static abstract int BlitSurfaceScaled( + static abstract MaybeBool BlitSurfaceScaled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, - Ref dstrect, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, ScaleMode scaleMode ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiled")] + static abstract byte BlitSurfaceTiled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiled")] + static abstract MaybeBool BlitSurfaceTiled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiledWithScale")] + static abstract byte BlitSurfaceTiledWithScale( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + float scale, + ScaleMode scaleMode, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiledWithScale")] + static abstract MaybeBool BlitSurfaceTiledWithScale( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + float scale, + ScaleMode scaleMode, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] - static abstract int BlitSurfaceUnchecked( + static abstract byte BlitSurfaceUnchecked( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* dstrect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] - static abstract int BlitSurfaceUnchecked( + static abstract MaybeBool BlitSurfaceUnchecked( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, [NativeTypeName("const SDL_Rect *")] Ref dstrect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] - static abstract int BlitSurfaceUncheckedScaled( + static abstract byte BlitSurfaceUncheckedScaled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, @@ -289,9 +358,10 @@ static abstract int BlitSurfaceUncheckedScaled( ScaleMode scaleMode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] - static abstract int BlitSurfaceUncheckedScaled( + static abstract MaybeBool BlitSurfaceUncheckedScaled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, @@ -300,43 +370,88 @@ ScaleMode scaleMode ); [NativeFunction("SDL3", EntryPoint = "SDL_BroadcastCondition")] - static abstract int BroadcastCondition(ConditionHandle cond); + static abstract void BroadcastCondition(ConditionHandle cond); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] - static abstract int CaptureMouse([NativeTypeName("SDL_bool")] int enabled); + static abstract byte CaptureMouse([NativeTypeName("bool")] byte enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] - static abstract int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled); + static abstract MaybeBool CaptureMouse( + [NativeTypeName("bool")] MaybeBool enabled + ); [NativeFunction("SDL3", EntryPoint = "SDL_CleanupTLS")] static abstract void CleanupTLS(); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] + static abstract MaybeBool ClearAudioStream(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] - static abstract int ClearAudioStream(AudioStreamHandle stream); + static abstract byte ClearAudioStreamRaw(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearClipboardData")] + static abstract MaybeBool ClearClipboardData(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearClipboardData")] - static abstract int ClearClipboardData(); + static abstract byte ClearClipboardDataRaw(); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearComposition")] + static abstract MaybeBool ClearComposition(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearComposition")] - static abstract void ClearComposition(); + static abstract byte ClearCompositionRaw(WindowHandle window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearError")] + static abstract MaybeBool ClearError(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearError")] - static abstract void ClearError(); + static abstract byte ClearErrorRaw(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] - static abstract int ClearProperty( + static abstract byte ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] - static abstract int ClearProperty( + static abstract MaybeBool ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearSurface")] + static abstract byte ClearSurface(Surface* surface, float r, float g, float b, float a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearSurface")] + static abstract MaybeBool ClearSurface( + Ref surface, + float r, + float g, + float b, + float a + ); + [NativeFunction("SDL3", EntryPoint = "SDL_CloseAudioDevice")] static abstract void CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid); @@ -349,8 +464,14 @@ static abstract int ClearProperty( [NativeFunction("SDL3", EntryPoint = "SDL_CloseHaptic")] static abstract void CloseHaptic(HapticHandle haptic); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] + static abstract MaybeBool CloseIO(IOStreamHandle context); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] - static abstract int CloseIO(IOStreamHandle context); + static abstract byte CloseIORaw(IOStreamHandle context); [NativeFunction("SDL3", EntryPoint = "SDL_CloseJoystick")] static abstract void CloseJoystick(JoystickHandle joystick); @@ -358,11 +479,61 @@ static abstract int ClearProperty( [NativeFunction("SDL3", EntryPoint = "SDL_CloseSensor")] static abstract void CloseSensor(SensorHandle sensor); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] + static abstract MaybeBool CloseStorage(StorageHandle storage); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] - static abstract int CloseStorage(StorageHandle storage); + static abstract byte CloseStorageRaw(StorageHandle storage); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicInt")] + static abstract byte CompareAndSwapAtomicInt(AtomicInt* a, int oldval, int newval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicInt")] + static abstract MaybeBool CompareAndSwapAtomicInt( + Ref a, + int oldval, + int newval + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicPointer")] + static abstract byte CompareAndSwapAtomicPointer(void** a, void* oldval, void* newval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicPointer")] + static abstract MaybeBool CompareAndSwapAtomicPointer( + Ref2D a, + Ref oldval, + Ref newval + ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicU32")] + static abstract byte CompareAndSwapAtomicU32( + AtomicU32* a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicU32")] + static abstract MaybeBool CompareAndSwapAtomicU32( + Ref a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ); + + [return: NativeTypeName("SDL_BlendMode")] [NativeFunction("SDL3", EntryPoint = "SDL_ComposeCustomBlendMode")] - static abstract BlendMode ComposeCustomBlendMode( + static abstract uint ComposeCustomBlendMode( BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendOperation colorOperation, @@ -371,8 +542,9 @@ static abstract BlendMode ComposeCustomBlendMode( BlendOperation alphaOperation ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] - static abstract int ConvertAudioSamples( + static abstract byte ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const Uint8 *")] byte* src_data, int src_len, @@ -381,9 +553,10 @@ static abstract int ConvertAudioSamples( int* dst_len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] - static abstract int ConvertAudioSamples( + static abstract MaybeBool ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const Uint8 *")] Ref src_data, int src_len, @@ -392,68 +565,77 @@ static abstract int ConvertAudioSamples( Ref dst_len ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] - static abstract int ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event); + static abstract byte ConvertEventToRenderCoordinates( + RendererHandle renderer, + Event* @event + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] - static abstract int ConvertEventToRenderCoordinates( + static abstract MaybeBool ConvertEventToRenderCoordinates( RendererHandle renderer, Ref @event ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] - static abstract int ConvertPixels( + static abstract byte ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, int dst_pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] - static abstract int ConvertPixels( + static abstract MaybeBool ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, int dst_pitch ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] - static abstract int ConvertPixelsAndColorspace( + static abstract byte ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, void* dst, int dst_pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] - static abstract int ConvertPixelsAndColorspace( + static abstract MaybeBool ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, Ref dst, @@ -461,54 +643,78 @@ int dst_pitch ); [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurface")] - static abstract Surface* ConvertSurface( - Surface* surface, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format - ); + static abstract Surface* ConvertSurface(Surface* surface, PixelFormat format); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurface")] - static abstract Ptr ConvertSurface( - Ref surface, - [NativeTypeName("const SDL_PixelFormat *")] Ref format - ); + static abstract Ptr ConvertSurface(Ref surface, PixelFormat format); - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] - static abstract Surface* ConvertSurfaceFormat( + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceAndColorspace")] + static abstract Surface* ConvertSurfaceAndColorspace( Surface* surface, - PixelFormatEnum pixel_format + PixelFormat format, + Palette* palette, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props ); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] - static abstract Ptr ConvertSurfaceFormat( + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceAndColorspace")] + static abstract Ptr ConvertSurfaceAndColorspace( Ref surface, - PixelFormatEnum pixel_format - ); - - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] - static abstract Surface* ConvertSurfaceFormatAndColorspace( - Surface* surface, - PixelFormatEnum pixel_format, + PixelFormat format, + Ref palette, Colorspace colorspace, [NativeTypeName("SDL_PropertiesID")] uint props ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyFile")] + static abstract byte CopyFile( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ); + + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] - static abstract Ptr ConvertSurfaceFormatAndColorspace( - Ref surface, - PixelFormatEnum pixel_format, - Colorspace colorspace, - [NativeTypeName("SDL_PropertiesID")] uint props + [NativeFunction("SDL3", EntryPoint = "SDL_CopyFile")] + static abstract MaybeBool CopyFile( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyProperties")] + static abstract MaybeBool CopyProperties( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CopyProperties")] - static abstract int CopyProperties( + static abstract byte CopyPropertiesRaw( [NativeTypeName("SDL_PropertiesID")] uint src, [NativeTypeName("SDL_PropertiesID")] uint dst ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyStorageFile")] + static abstract byte CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyStorageFile")] + static abstract MaybeBool CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ); + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] static abstract AudioStreamHandle CreateAudioStream( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, @@ -553,12 +759,16 @@ static abstract CursorHandle CreateCursor( int hot_y ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] - static abstract int CreateDirectory([NativeTypeName("const char *")] sbyte* path); + static abstract byte CreateDirectory([NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] - static abstract int CreateDirectory([NativeTypeName("const char *")] Ref path); + static abstract MaybeBool CreateDirectory( + [NativeTypeName("const char *")] Ref path + ); [NativeFunction("SDL3", EntryPoint = "SDL_CreateHapticEffect")] static abstract int CreateHapticEffect( @@ -583,13 +793,6 @@ static abstract int CreateHapticEffect( [NativeFunction("SDL3", EntryPoint = "SDL_CreatePalette")] static abstract Palette* CreatePaletteRaw(int ncolors); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePixelFormat")] - static abstract Ptr CreatePixelFormat(PixelFormatEnum pixel_format); - - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePixelFormat")] - static abstract PixelFormat* CreatePixelFormatRaw(PixelFormatEnum pixel_format); - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePopupWindow")] static abstract WindowHandle CreatePopupWindow( WindowHandle parent, @@ -597,7 +800,7 @@ static abstract WindowHandle CreatePopupWindow( int offset_y, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ); [return: NativeTypeName("SDL_PropertiesID")] @@ -607,16 +810,14 @@ static abstract WindowHandle CreatePopupWindow( [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] static abstract RendererHandle CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("Uint32")] uint flags + [NativeTypeName("const char *")] sbyte* name ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] static abstract RendererHandle CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("Uint32")] uint flags + [NativeTypeName("const char *")] Ref name ); [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] @@ -639,118 +840,134 @@ static abstract SemaphoreHandle CreateSemaphore( [NativeFunction("SDL3", EntryPoint = "SDL_CreateSoftwareRenderer")] static abstract RendererHandle CreateSoftwareRenderer(Ref surface); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] - static abstract int CreateStorageDirectory( + static abstract byte CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] - static abstract int CreateStorageDirectory( + static abstract MaybeBool CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] - static abstract Ptr CreateSurface(int width, int height, PixelFormatEnum format); + static abstract Ptr CreateSurface(int width, int height, PixelFormat format); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] static abstract Surface* CreateSurfaceFrom( - void* pixels, int width, int height, - int pitch, - PixelFormatEnum format + PixelFormat format, + void* pixels, + int pitch ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] static abstract Ptr CreateSurfaceFrom( - Ref pixels, int width, int height, - int pitch, - PixelFormatEnum format + PixelFormat format, + Ref pixels, + int pitch ); + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfacePalette")] + static abstract Palette* CreateSurfacePalette(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfacePalette")] + static abstract Ptr CreateSurfacePalette(Ref surface); + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] - static abstract Surface* CreateSurfaceRaw(int width, int height, PixelFormatEnum format); + static abstract Surface* CreateSurfaceRaw(int width, int height, PixelFormat format); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] static abstract CursorHandle CreateSystemCursor(SystemCursor id); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] - static abstract TextureHandle CreateTexture( + static abstract Ptr CreateTexture( RendererHandle renderer, - PixelFormatEnum format, - int access, + PixelFormat format, + TextureAccess access, int w, int h ); [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] - static abstract TextureHandle CreateTextureFromSurface( + static abstract Texture* CreateTextureFromSurface( RendererHandle renderer, Surface* surface ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] - static abstract TextureHandle CreateTextureFromSurface( + static abstract Ptr CreateTextureFromSurface( RendererHandle renderer, Ref surface ); - [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] - static abstract TextureHandle CreateTextureWithProperties( + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] + static abstract Texture* CreateTextureRaw( RendererHandle renderer, - [NativeTypeName("SDL_PropertiesID")] uint props + PixelFormat format, + TextureAccess access, + int w, + int h ); - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] - static abstract ThreadHandle CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] sbyte* name, - void* data + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] + static abstract Ptr CreateTextureWithProperties( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props ); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] - static abstract ThreadHandle CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] Ref name, - Ref data + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] + static abstract Texture* CreateTextureWithPropertiesRaw( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props ); - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] - static abstract ThreadHandle CreateThreadWithStackSize( + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadRuntime")] + static abstract ThreadHandle CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("const size_t")] nuint stacksize, - void* data + void* data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread ); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] - static abstract ThreadHandle CreateThreadWithStackSize( + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadRuntime")] + static abstract ThreadHandle CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("const size_t")] nuint stacksize, - Ref data + Ref data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread ); - [return: NativeTypeName("SDL_TLSID")] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateTLS")] - static abstract uint CreateTLS(); + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithPropertiesRuntime")] + static abstract ThreadHandle CreateThreadWithPropertiesRuntime( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread + ); [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindow")] static abstract WindowHandle CreateWindow( [NativeTypeName("const char *")] sbyte* title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ); [Transformed] @@ -759,26 +976,28 @@ static abstract WindowHandle CreateWindow( [NativeTypeName("const char *")] Ref title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] - static abstract int CreateWindowAndRenderer( + static abstract byte CreateWindowAndRenderer( [NativeTypeName("const char *")] sbyte* title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, WindowHandle* window, RendererHandle* renderer ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] - static abstract int CreateWindowAndRenderer( + static abstract MaybeBool CreateWindowAndRenderer( [NativeTypeName("const char *")] Ref title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, Ref window, Ref renderer ); @@ -788,24 +1007,26 @@ static abstract WindowHandle CreateWindowWithProperties( [NativeTypeName("SDL_PropertiesID")] uint props ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] - static abstract MaybeBool CursorVisible(); + static abstract MaybeBool CursorVisible(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] - static abstract int CursorVisibleRaw(); + static abstract byte CursorVisibleRaw(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] - static abstract int DateTimeToTime( + static abstract byte DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] DateTime* dt, [NativeTypeName("SDL_Time *")] long* ticks ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] - static abstract int DateTimeToTime( + static abstract MaybeBool DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] Ref dt, [NativeTypeName("SDL_Time *")] Ref ticks ); @@ -816,33 +1037,8 @@ static abstract int DateTimeToTime( [NativeFunction("SDL3", EntryPoint = "SDL_DelayNS")] static abstract void DelayNS([NativeTypeName("Uint64")] ulong ns); - [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] - static abstract void DelEventWatch( - [NativeTypeName("SDL_EventFilter")] EventFilter filter, - void* userdata - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] - static abstract void DelEventWatch( - [NativeTypeName("SDL_EventFilter")] EventFilter filter, - Ref userdata - ); - - [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] - static abstract void DelHintCallback( - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - void* userdata - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] - static abstract void DelHintCallback( - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - Ref userdata - ); + [NativeFunction("SDL3", EntryPoint = "SDL_DelayPrecise")] + static abstract void DelayPrecise([NativeTypeName("Uint64")] ulong ns); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyAudioStream")] static abstract void DestroyAudioStream(AudioStreamHandle stream); @@ -866,13 +1062,6 @@ Ref userdata [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPalette")] static abstract void DestroyPalette(Ref palette); - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] - static abstract void DestroyPixelFormat(PixelFormat* format); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] - static abstract void DestroyPixelFormat(Ref format); - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyProperties")] static abstract void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props); @@ -893,24 +1082,48 @@ Ref userdata static abstract void DestroySurface(Ref surface); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] - static abstract void DestroyTexture(TextureHandle texture); + static abstract void DestroyTexture(Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] + static abstract void DestroyTexture(Ref texture); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindow")] static abstract void DestroyWindow(WindowHandle window); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] + static abstract MaybeBool DestroyWindowSurface(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] - static abstract int DestroyWindowSurface(WindowHandle window); + static abstract byte DestroyWindowSurfaceRaw(WindowHandle window); [NativeFunction("SDL3", EntryPoint = "SDL_DetachThread")] static abstract void DetachThread(ThreadHandle thread); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_DetachVirtualJoystick")] - static abstract int DetachVirtualJoystick( + static abstract MaybeBool DetachVirtualJoystick( [NativeTypeName("SDL_JoystickID")] uint instance_id ); - [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] - static abstract int DisableScreenSaver(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_DetachVirtualJoystick")] + static abstract byte DetachVirtualJoystickRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] + static abstract MaybeBool DisableScreenSaver(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] + static abstract byte DisableScreenSaverRaw(); [NativeFunction("SDL3", EntryPoint = "SDL_DuplicateSurface")] static abstract Surface* DuplicateSurface(Surface* surface); @@ -921,21 +1134,21 @@ static abstract int DetachVirtualJoystick( [return: NativeTypeName("SDL_EGLConfig")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] - static abstract Ptr EGLGetCurrentEGLConfig(); + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentConfig")] + static abstract Ptr EGLGetCurrentConfig(); [return: NativeTypeName("SDL_EGLConfig")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] - static abstract void* EGLGetCurrentEGLConfigRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentConfig")] + static abstract void* EGLGetCurrentConfigRaw(); [return: NativeTypeName("SDL_EGLDisplay")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] - static abstract Ptr EGLGetCurrentEGLDisplay(); + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentDisplay")] + static abstract Ptr EGLGetCurrentDisplay(); [return: NativeTypeName("SDL_EGLDisplay")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] - static abstract void* EGLGetCurrentEGLDisplayRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentDisplay")] + static abstract void* EGLGetCurrentDisplayRaw(); [return: NativeTypeName("SDL_FunctionPointer")] [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetProcAddress")] @@ -952,111 +1165,135 @@ static abstract FunctionPointer EGLGetProcAddress( [return: NativeTypeName("SDL_EGLSurface")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] - static abstract Ptr EGLGetWindowEGLSurface(WindowHandle window); + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowSurface")] + static abstract Ptr EGLGetWindowSurface(WindowHandle window); [return: NativeTypeName("SDL_EGLSurface")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] - static abstract void* EGLGetWindowEGLSurfaceRaw(WindowHandle window); + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowSurface")] + static abstract void* EGLGetWindowSurfaceRaw(WindowHandle window); - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetEGLAttributeCallbacks")] - static abstract void EGLSetEGLAttributeCallbacks( + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetAttributeCallbacks")] + static abstract void EGLSetAttributeCallbacks( [NativeTypeName("SDL_EGLAttribArrayCallback")] EGLAttribArrayCallback platformAttribCallback, [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, - [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetAttributeCallbacks")] + static abstract void EGLSetAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + EGLAttribArrayCallback platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + Ref userdata ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnableScreenSaver")] + static abstract MaybeBool EnableScreenSaver(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnableScreenSaver")] - static abstract int EnableScreenSaver(); + static abstract byte EnableScreenSaverRaw(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] - static abstract int EnumerateDirectory( + static abstract byte EnumerateDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] - static abstract int EnumerateDirectory( + static abstract MaybeBool EnumerateDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, Ref userdata ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] - static abstract int EnumerateProperties( + static abstract byte EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] - static abstract int EnumerateProperties( + static abstract MaybeBool EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, Ref userdata ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] - static abstract int EnumerateStorageDirectory( + static abstract byte EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] - static abstract int EnumerateStorageDirectory( + static abstract MaybeBool EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, Ref userdata ); - [NativeFunction("SDL3", EntryPoint = "SDL_Error")] - static abstract int Error(Errorcode code); - - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] - static abstract MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type); + static abstract MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] - static abstract int EventEnabledRaw([NativeTypeName("Uint32")] uint type); + static abstract byte EventEnabledRaw([NativeTypeName("Uint32")] uint type); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] - static abstract int FillSurfaceRect( + static abstract byte FillSurfaceRect( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("Uint32")] uint color ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] - static abstract int FillSurfaceRect( + static abstract MaybeBool FillSurfaceRect( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("Uint32")] uint color ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] - static abstract int FillSurfaceRects( + static abstract byte FillSurfaceRects( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rects, int count, [NativeTypeName("Uint32")] uint color ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] - static abstract int FillSurfaceRects( + static abstract MaybeBool FillSurfaceRects( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rects, int count, @@ -1076,18 +1313,32 @@ static abstract void FilterEvents( Ref userdata ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] + static abstract MaybeBool FlashWindow(WindowHandle window, FlashOperation operation); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] - static abstract int FlashWindow(WindowHandle window, FlashOperation operation); + static abstract byte FlashWindowRaw(WindowHandle window, FlashOperation operation); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] - static abstract int FlipSurface(Surface* surface, FlipMode flip); + static abstract byte FlipSurface(Surface* surface, FlipMode flip); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] - static abstract int FlipSurface(Ref surface, FlipMode flip); + static abstract MaybeBool FlipSurface(Ref surface, FlipMode flip); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] + static abstract MaybeBool FlushAudioStream(AudioStreamHandle stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] - static abstract int FlushAudioStream(AudioStreamHandle stream); + static abstract byte FlushAudioStreamRaw(AudioStreamHandle stream); [NativeFunction("SDL3", EntryPoint = "SDL_FlushEvent")] static abstract void FlushEvent([NativeTypeName("Uint32")] uint type); @@ -1098,65 +1349,94 @@ static abstract void FlushEvents( [NativeTypeName("Uint32")] uint maxType ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushIO")] + static abstract MaybeBool FlushIO(IOStreamHandle context); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushIO")] + static abstract byte FlushIORaw(IOStreamHandle context); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] + static abstract MaybeBool FlushRenderer(RendererHandle renderer); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] - static abstract int FlushRenderer(RendererHandle renderer); + static abstract byte FlushRendererRaw(RendererHandle renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] - static abstract MaybeBool GamepadConnected(GamepadHandle gamepad); + static abstract MaybeBool GamepadConnected(GamepadHandle gamepad); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] - static abstract int GamepadConnectedRaw(GamepadHandle gamepad); + static abstract byte GamepadConnectedRaw(GamepadHandle gamepad); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] - static abstract MaybeBool GamepadEventsEnabled(); + static abstract MaybeBool GamepadEventsEnabled(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] - static abstract int GamepadEventsEnabledRaw(); + static abstract byte GamepadEventsEnabledRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] - static abstract MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis); + static abstract MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] - static abstract int GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis); + static abstract byte GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] - static abstract MaybeBool GamepadHasButton( + static abstract MaybeBool GamepadHasButton( GamepadHandle gamepad, GamepadButton button ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] - static abstract int GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button); + static abstract byte GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] - static abstract MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType type); + static abstract MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] - static abstract int GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type); + static abstract byte GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] - static abstract MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, SensorType type); + static abstract MaybeBool GamepadSensorEnabled( + GamepadHandle gamepad, + SensorType type + ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] - static abstract int GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type); + static abstract byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAppMetadataProperty")] + static abstract sbyte* GetAppMetadataProperty([NativeTypeName("const char *")] sbyte* name); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAppMetadataProperty")] + static abstract Ptr GetAppMetadataProperty( + [NativeTypeName("const char *")] Ref name + ); [return: NativeTypeName("SDL_AssertionHandler")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionHandler")] @@ -1176,38 +1456,70 @@ GamepadButton button [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] static abstract AssertData* GetAssertionReportRaw(); - [return: NativeTypeName("SDL_AudioDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] - static abstract uint* GetAudioCaptureDevices(int* count); + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicInt")] + static abstract int GetAtomicInt(AtomicInt* a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicInt")] + static abstract int GetAtomicInt(Ref a); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicPointer")] + static abstract void* GetAtomicPointer(void** a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicPointer")] + static abstract Ptr GetAtomicPointer(Ref2D a); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicU32")] + static abstract uint GetAtomicU32(AtomicU32* a); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicU32")] + static abstract uint GetAtomicU32(Ref a); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceChannelMap")] + static abstract int* GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + int* count + ); - [return: NativeTypeName("SDL_AudioDeviceID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] - static abstract Ptr GetAudioCaptureDevices(Ref count); + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceChannelMap")] + static abstract Ptr GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref count + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] - static abstract int GetAudioDeviceFormat( + static abstract byte GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioSpec* spec, int* sample_frames ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] - static abstract int GetAudioDeviceFormat( + static abstract MaybeBool GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, Ref spec, Ref sample_frames ); - [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceGain")] + static abstract float GetAudioDeviceGain([NativeTypeName("SDL_AudioDeviceID")] uint devid); + + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] static abstract Ptr GetAudioDeviceName( [NativeTypeName("SDL_AudioDeviceID")] uint devid ); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] static abstract sbyte* GetAudioDeviceNameRaw( [NativeTypeName("SDL_AudioDeviceID")] uint devid @@ -1222,14 +1534,32 @@ static abstract Ptr GetAudioDeviceName( [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] static abstract sbyte* GetAudioDriverRaw(int index); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioFormatName")] + static abstract Ptr GetAudioFormatName(AudioFormat format); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioFormatName")] + static abstract sbyte* GetAudioFormatNameRaw(AudioFormat format); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioPlaybackDevices")] + static abstract uint* GetAudioPlaybackDevices(int* count); + [return: NativeTypeName("SDL_AudioDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] - static abstract uint* GetAudioOutputDevices(int* count); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioPlaybackDevices")] + static abstract Ptr GetAudioPlaybackDevices(Ref count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioRecordingDevices")] + static abstract uint* GetAudioRecordingDevices(int* count); [return: NativeTypeName("SDL_AudioDeviceID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] - static abstract Ptr GetAudioOutputDevices(Ref count); + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioRecordingDevices")] + static abstract Ptr GetAudioRecordingDevices(Ref count); [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamAvailable")] static abstract int GetAudioStreamAvailable(AudioStreamHandle stream); @@ -1245,16 +1575,18 @@ static abstract Ptr GetAudioDeviceName( [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamDevice")] static abstract uint GetAudioStreamDevice(AudioStreamHandle stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] - static abstract int GetAudioStreamFormat( + static abstract byte GetAudioStreamFormat( AudioStreamHandle stream, AudioSpec* src_spec, AudioSpec* dst_spec ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] - static abstract int GetAudioStreamFormat( + static abstract MaybeBool GetAudioStreamFormat( AudioStreamHandle stream, Ref src_spec, Ref dst_spec @@ -1263,6 +1595,29 @@ Ref dst_spec [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFrequencyRatio")] static abstract float GetAudioStreamFrequencyRatio(AudioStreamHandle stream); + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamGain")] + static abstract float GetAudioStreamGain(AudioStreamHandle stream); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamInputChannelMap")] + static abstract int* GetAudioStreamInputChannelMap(AudioStreamHandle stream, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamInputChannelMap")] + static abstract Ptr GetAudioStreamInputChannelMap( + AudioStreamHandle stream, + Ref count + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamOutputChannelMap")] + static abstract int* GetAudioStreamOutputChannelMap(AudioStreamHandle stream, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamOutputChannelMap")] + static abstract Ptr GetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + Ref count + ); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamProperties")] static abstract uint GetAudioStreamProperties(AudioStreamHandle stream); @@ -1270,70 +1625,30 @@ Ref dst_spec [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamQueued")] static abstract int GetAudioStreamQueued(AudioStreamHandle stream); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] static abstract Ptr GetBasePath(); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] static abstract sbyte* GetBasePathRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] - static abstract int GetBooleanProperty( + static abstract byte GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] - static abstract MaybeBool GetBooleanProperty( + static abstract MaybeBool GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value - ); - - [return: NativeTypeName("char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] - static abstract Ptr GetCameraDeviceName( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ); - - [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] - static abstract sbyte* GetCameraDeviceNameRaw( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevicePosition")] - static abstract CameraPosition GetCameraDevicePosition( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ); - - [return: NativeTypeName("SDL_CameraDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] - static abstract uint* GetCameraDevices(int* count); - - [return: NativeTypeName("SDL_CameraDeviceID *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] - static abstract Ptr GetCameraDevices(Ref count); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] - static abstract CameraSpec* GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - int* count - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] - static abstract Ptr GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - Ref count + [NativeTypeName("bool")] MaybeBool default_value ); [return: NativeTypeName("const char *")] @@ -1345,24 +1660,62 @@ Ref count [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] static abstract sbyte* GetCameraDriverRaw(int index); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] - static abstract int GetCameraFormat(CameraHandle camera, CameraSpec* spec); + static abstract byte GetCameraFormat(CameraHandle camera, CameraSpec* spec); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] - static abstract int GetCameraFormat(CameraHandle camera, Ref spec); + static abstract MaybeBool GetCameraFormat(CameraHandle camera, Ref spec); + + [return: NativeTypeName("SDL_CameraID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraID")] + static abstract uint GetCameraID(CameraHandle camera); - [return: NativeTypeName("SDL_CameraDeviceID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraInstanceID")] - static abstract uint GetCameraInstanceID(CameraHandle camera); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraName")] + static abstract Ptr GetCameraName([NativeTypeName("SDL_CameraID")] uint instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraName")] + static abstract sbyte* GetCameraNameRaw([NativeTypeName("SDL_CameraID")] uint instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] static abstract int GetCameraPermissionState(CameraHandle camera); + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPosition")] + static abstract CameraPosition GetCameraPosition( + [NativeTypeName("SDL_CameraID")] uint instance_id + ); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraProperties")] static abstract uint GetCameraProperties(CameraHandle camera); + [return: NativeTypeName("SDL_CameraID *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameras")] + static abstract uint* GetCameras(int* count); + + [return: NativeTypeName("SDL_CameraID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameras")] + static abstract Ptr GetCameras(Ref count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] + static abstract CameraSpec** GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + int* count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] + static abstract Ptr2D GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + Ref count + ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardData")] static abstract void* GetClipboardData( [NativeTypeName("const char *")] sbyte* mime_type, @@ -1376,6 +1729,19 @@ static abstract Ptr GetClipboardData( [NativeTypeName("size_t *")] Ref size ); + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardMimeTypes")] + static abstract sbyte** GetClipboardMimeTypes( + [NativeTypeName("size_t *")] nuint* num_mime_types + ); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardMimeTypes")] + static abstract Ptr2D GetClipboardMimeTypes( + [NativeTypeName("size_t *")] Ref num_mime_types + ); + [return: NativeTypeName("char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] @@ -1385,33 +1751,32 @@ static abstract Ptr GetClipboardData( [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] static abstract sbyte* GetClipboardTextRaw(); - [return: NativeTypeName("const SDL_DisplayMode *")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] - static abstract DisplayMode* GetClosestFullscreenDisplayMode( + static abstract byte GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] int include_high_density_modes + [NativeTypeName("bool")] byte include_high_density_modes, + DisplayMode* mode ); - [return: NativeTypeName("const SDL_DisplayMode *")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] - static abstract Ptr GetClosestFullscreenDisplayMode( + static abstract MaybeBool GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] MaybeBool include_high_density_modes + [NativeTypeName("bool")] MaybeBool include_high_density_modes, + Ref mode ); [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCacheLineSize")] static abstract int GetCPUCacheLineSize(); - [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCount")] - static abstract int GetCPUCount(); - [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] @@ -1448,12 +1813,14 @@ static abstract DisplayOrientation GetCurrentDisplayOrientation( [NativeTypeName("SDL_DisplayID")] uint displayID ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] - static abstract int GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h); + static abstract byte GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] - static abstract int GetCurrentRenderOutputSize( + static abstract MaybeBool GetCurrentRenderOutputSize( RendererHandle renderer, Ref w, Ref h @@ -1463,12 +1830,16 @@ Ref h [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentThreadID")] static abstract ulong GetCurrentThreadID(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] - static abstract int GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks); + static abstract byte GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] - static abstract int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks); + static abstract MaybeBool GetCurrentTime( + [NativeTypeName("SDL_Time *")] Ref ticks + ); [return: NativeTypeName("const char *")] [Transformed] @@ -1482,6 +1853,21 @@ Ref h [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] static abstract CursorHandle GetCursor(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDateTimeLocalePreferences")] + static abstract byte GetDateTimeLocalePreferences( + DateFormat* dateFormat, + TimeFormat* timeFormat + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDateTimeLocalePreferences")] + static abstract MaybeBool GetDateTimeLocalePreferences( + Ref dateFormat, + Ref timeFormat + ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetDayOfWeek")] static abstract int GetDayOfWeek(int year, int month, int day); @@ -1498,6 +1884,10 @@ Ref h [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] static abstract CursorHandle GetDefaultCursor(); + [return: NativeTypeName("SDL_LogOutputFunction")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultLogOutputFunction")] + static abstract LogOutputFunction GetDefaultLogOutputFunction(); + [return: NativeTypeName("const SDL_DisplayMode *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] @@ -1511,15 +1901,17 @@ static abstract Ptr GetDesktopDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] - static abstract int GetDisplayBounds( + static abstract byte GetDisplayBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] - static abstract int GetDisplayBounds( + static abstract MaybeBool GetDisplayBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect ); @@ -1575,15 +1967,17 @@ static abstract uint GetDisplayForPoint( [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplays")] static abstract Ptr GetDisplays(Ref count); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] - static abstract int GetDisplayUsableBounds( + static abstract byte GetDisplayUsableBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] - static abstract int GetDisplayUsableBounds( + static abstract MaybeBool GetDisplayUsableBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect ); @@ -1597,17 +1991,17 @@ Ref rect [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] static abstract sbyte* GetErrorRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] - static abstract int GetEventFilter( + static abstract byte GetEventFilter( [NativeTypeName("SDL_EventFilter *")] EventFilter* filter, void** userdata ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] - static abstract MaybeBool GetEventFilter( + static abstract MaybeBool GetEventFilter( [NativeTypeName("SDL_EventFilter *")] Ref filter, Ref2D userdata ); @@ -1627,14 +2021,12 @@ static abstract float GetFloatProperty( float default_value ); - [return: NativeTypeName("const SDL_DisplayMode **")] [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] static abstract DisplayMode** GetFullscreenDisplayModes( [NativeTypeName("SDL_DisplayID")] uint displayID, int* count ); - [return: NativeTypeName("const SDL_DisplayMode **")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] static abstract Ptr2D GetFullscreenDisplayModes( @@ -1697,9 +2089,13 @@ static abstract Ptr2D GetGamepadBindings( Ref count ); - [return: NativeTypeName("Uint8")] + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] - static abstract byte GetGamepadButton(GamepadHandle gamepad, GamepadButton button); + static abstract MaybeBool GetGamepadButton( + GamepadHandle gamepad, + GamepadButton button + ); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonFromString")] static abstract GamepadButton GetGamepadButtonFromString( @@ -1724,6 +2120,10 @@ static abstract GamepadButtonLabel GetGamepadButtonLabelForType( GamepadButton button ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] + static abstract byte GetGamepadButtonRaw(GamepadHandle gamepad, GamepadButton button); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadConnectionState")] static abstract JoystickConnectionState GetGamepadConnectionState(GamepadHandle gamepad); @@ -1731,90 +2131,22 @@ GamepadButton button [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFirmwareVersion")] static abstract ushort GetGamepadFirmwareVersion(GamepadHandle gamepad); - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] - static abstract GamepadHandle GetGamepadFromInstanceID( + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromID")] + static abstract GamepadHandle GetGamepadFromID( [NativeTypeName("SDL_JoystickID")] uint instance_id ); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] static abstract GamepadHandle GetGamepadFromPlayerIndex(int player_index); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceGUID")] - static abstract Guid GetGamepadInstanceGuid( + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadGUIDForID")] + static abstract Guid GetGamepadGuidForID( [NativeTypeName("SDL_JoystickID")] uint instance_id ); [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceID")] - static abstract uint GetGamepadInstanceID(GamepadHandle gamepad); - - [return: NativeTypeName("char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceMapping")] - static abstract Ptr GetGamepadInstanceMapping( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceMapping")] - static abstract sbyte* GetGamepadInstanceMappingRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceName")] - static abstract Ptr GetGamepadInstanceName( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceName")] - static abstract sbyte* GetGamepadInstanceNameRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePath")] - static abstract Ptr GetGamepadInstancePath( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePath")] - static abstract sbyte* GetGamepadInstancePathRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePlayerIndex")] - static abstract int GetGamepadInstancePlayerIndex( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceProduct")] - static abstract ushort GetGamepadInstanceProduct( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceProductVersion")] - static abstract ushort GetGamepadInstanceProductVersion( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceType")] - static abstract GamepadType GetGamepadInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceVendor")] - static abstract ushort GetGamepadInstanceVendor( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadID")] + static abstract uint GetGamepadID(GamepadHandle gamepad); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadJoystick")] static abstract JoystickHandle GetGamepadJoystick(GamepadHandle gamepad); @@ -1827,14 +2159,23 @@ static abstract ushort GetGamepadInstanceVendor( [return: NativeTypeName("char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] - static abstract Ptr GetGamepadMappingForGuid( - [NativeTypeName("SDL_JoystickGUID")] Guid guid - ); + static abstract Ptr GetGamepadMappingForGuid(Guid guid); [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] - static abstract sbyte* GetGamepadMappingForGuidRaw( - [NativeTypeName("SDL_JoystickGUID")] Guid guid + static abstract sbyte* GetGamepadMappingForGuidRaw(Guid guid); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForID")] + static abstract Ptr GetGamepadMappingForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForID")] + static abstract sbyte* GetGamepadMappingForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id ); [return: NativeTypeName("char *")] @@ -1855,6 +2196,19 @@ static abstract Ptr GetGamepadMappingForGuid( [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadName")] static abstract Ptr GetGamepadName(GamepadHandle gamepad); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadNameForID")] + static abstract Ptr GetGamepadNameForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadNameForID")] + static abstract sbyte* GetGamepadNameForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadName")] static abstract sbyte* GetGamepadNameRaw(GamepadHandle gamepad); @@ -1864,6 +2218,19 @@ static abstract Ptr GetGamepadMappingForGuid( [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPath")] static abstract Ptr GetGamepadPath(GamepadHandle gamepad); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPathForID")] + static abstract Ptr GetGamepadPathForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPathForID")] + static abstract sbyte* GetGamepadPathForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPath")] static abstract sbyte* GetGamepadPathRaw(GamepadHandle gamepad); @@ -1871,6 +2238,11 @@ static abstract Ptr GetGamepadMappingForGuid( [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndex")] static abstract int GetGamepadPlayerIndex(GamepadHandle gamepad); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndexForID")] + static abstract int GetGamepadPlayerIndexForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPowerInfo")] static abstract PowerState GetGamepadPowerInfo(GamepadHandle gamepad, int* percent); @@ -1882,10 +2254,22 @@ static abstract Ptr GetGamepadMappingForGuid( [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProduct")] static abstract ushort GetGamepadProduct(GamepadHandle gamepad); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductForID")] + static abstract ushort GetGamepadProductForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [return: NativeTypeName("Uint16")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersion")] static abstract ushort GetGamepadProductVersion(GamepadHandle gamepad); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersionForID")] + static abstract ushort GetGamepadProductVersionForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProperties")] static abstract uint GetGamepadProperties(GamepadHandle gamepad); @@ -1899,17 +2283,19 @@ static abstract Ptr GetGamepadMappingForGuid( [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepads")] static abstract Ptr GetGamepads(Ref count); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] - static abstract int GetGamepadSensorData( + static abstract byte GetGamepadSensorData( GamepadHandle gamepad, SensorType type, float* data, int num_values ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] - static abstract int GetGamepadSensorData( + static abstract MaybeBool GetGamepadSensorData( GamepadHandle gamepad, SensorType type, Ref data, @@ -1959,24 +2345,26 @@ int num_values [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] static abstract sbyte* GetGamepadStringForTypeRaw(GamepadType type); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] - static abstract int GetGamepadTouchpadFinger( + static abstract byte GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] byte* state, + bool* down, float* x, float* y, float* pressure ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] - static abstract int GetGamepadTouchpadFinger( + static abstract MaybeBool GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] Ref state, + Ref down, Ref x, Ref y, Ref pressure @@ -1985,6 +2373,11 @@ Ref pressure [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadType")] static abstract GamepadType GetGamepadType(GamepadHandle gamepad); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeForID")] + static abstract GamepadType GetGamepadTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeFromString")] static abstract GamepadType GetGamepadTypeFromString( [NativeTypeName("const char *")] sbyte* str @@ -2000,11 +2393,17 @@ static abstract GamepadType GetGamepadTypeFromString( [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendor")] static abstract ushort GetGamepadVendor(GamepadHandle gamepad); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendorForID")] + static abstract ushort GetGamepadVendorForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] static abstract uint GetGlobalMouseState(float* x, float* y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] static abstract uint GetGlobalMouseState(Ref x, Ref y); @@ -2016,43 +2415,49 @@ static abstract GamepadType GetGamepadTypeFromString( [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] static abstract WindowHandle GetGrabbedWindow(); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] + static abstract MaybeBool GetHapticEffectStatus(HapticHandle haptic, int effect); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] - static abstract int GetHapticEffectStatus(HapticHandle haptic, int effect); + static abstract byte GetHapticEffectStatusRaw(HapticHandle haptic, int effect); [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFeatures")] static abstract uint GetHapticFeatures(HapticHandle haptic); - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] - static abstract HapticHandle GetHapticFromInstanceID( + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromID")] + static abstract HapticHandle GetHapticFromID( [NativeTypeName("SDL_HapticID")] uint instance_id ); [return: NativeTypeName("SDL_HapticID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceID")] - static abstract uint GetHapticInstanceID(HapticHandle haptic); + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticID")] + static abstract uint GetHapticID(HapticHandle haptic); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] - static abstract Ptr GetHapticInstanceName( + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] + static abstract Ptr GetHapticName(HapticHandle haptic); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticNameForID")] + static abstract Ptr GetHapticNameForID( [NativeTypeName("SDL_HapticID")] uint instance_id ); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] - static abstract sbyte* GetHapticInstanceNameRaw( + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticNameForID")] + static abstract sbyte* GetHapticNameForIDRaw( [NativeTypeName("SDL_HapticID")] uint instance_id ); [return: NativeTypeName("const char *")] - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] - static abstract Ptr GetHapticName(HapticHandle haptic); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] - static abstract sbyte* GetHapticNameRaw(HapticHandle haptic); + static abstract sbyte* GetHapticNameRaw(HapticHandle haptic); [return: NativeTypeName("SDL_HapticID *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHaptics")] @@ -2072,19 +2477,19 @@ static abstract Ptr GetHapticInstanceName( [NativeFunction("SDL3", EntryPoint = "SDL_GetHint")] static abstract Ptr GetHint([NativeTypeName("const char *")] Ref name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] - static abstract int GetHintBoolean( + static abstract byte GetHintBoolean( [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] - static abstract MaybeBool GetHintBoolean( + static abstract MaybeBool GetHintBoolean( [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value + [NativeTypeName("bool")] MaybeBool default_value ); [return: NativeTypeName("SDL_PropertiesID")] @@ -2102,38 +2507,45 @@ static abstract MaybeBool GetHintBoolean( [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxis")] static abstract short GetJoystickAxis(JoystickHandle joystick, int axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] - static abstract int GetJoystickAxisInitialState( + static abstract byte GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] short* state ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] - static abstract MaybeBool GetJoystickAxisInitialState( + static abstract MaybeBool GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] Ref state ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] - static abstract int GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy); + static abstract byte GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] - static abstract int GetJoystickBall( + static abstract MaybeBool GetJoystickBall( JoystickHandle joystick, int ball, Ref dx, Ref dy ); - [return: NativeTypeName("Uint8")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] + static abstract MaybeBool GetJoystickButton(JoystickHandle joystick, int button); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] - static abstract byte GetJoystickButton(JoystickHandle joystick, int button); + static abstract byte GetJoystickButtonRaw(JoystickHandle joystick, int button); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickConnectionState")] static abstract JoystickConnectionState GetJoystickConnectionState(JoystickHandle joystick); @@ -2142,34 +2554,25 @@ Ref dy [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFirmwareVersion")] static abstract ushort GetJoystickFirmwareVersion(JoystickHandle joystick); - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] - static abstract JoystickHandle GetJoystickFromInstanceID( + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromID")] + static abstract JoystickHandle GetJoystickFromID( [NativeTypeName("SDL_JoystickID")] uint instance_id ); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] static abstract JoystickHandle GetJoystickFromPlayerIndex(int player_index); - [return: NativeTypeName("SDL_JoystickGUID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUID")] static abstract Guid GetJoystickGuid(JoystickHandle joystick); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDFromString")] - static abstract Guid GetJoystickGuidFromString( - [NativeTypeName("const char *")] sbyte* pchGUID - ); - - [return: NativeTypeName("SDL_JoystickGUID")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDFromString")] - static abstract Guid GetJoystickGuidFromString( - [NativeTypeName("const char *")] Ref pchGUID + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDForID")] + static abstract Guid GetJoystickGuidForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id ); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] static abstract void GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] ushort* vendor, [NativeTypeName("Uint16 *")] ushort* product, [NativeTypeName("Uint16 *")] ushort* version, @@ -2179,101 +2582,39 @@ static abstract void GetJoystickGuidInfo( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] static abstract void GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] Ref vendor, [NativeTypeName("Uint16 *")] Ref product, [NativeTypeName("Uint16 *")] Ref version, [NativeTypeName("Uint16 *")] Ref crc16 ); - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDString")] - static abstract int GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] sbyte* pszGUID, - int cbGUID - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDString")] - static abstract int GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] Ref pszGUID, - int cbGUID - ); - [return: NativeTypeName("Uint8")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickHat")] static abstract byte GetJoystickHat(JoystickHandle joystick, int hat); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceGUID")] - static abstract Guid GetJoystickInstanceGuid( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceID")] - static abstract uint GetJoystickInstanceID(JoystickHandle joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickID")] + static abstract uint GetJoystickID(JoystickHandle joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceName")] - static abstract Ptr GetJoystickInstanceName( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceName")] - static abstract sbyte* GetJoystickInstanceNameRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] + static abstract Ptr GetJoystickName(JoystickHandle joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] - static abstract Ptr GetJoystickInstancePath( + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickNameForID")] + static abstract Ptr GetJoystickNameForID( [NativeTypeName("SDL_JoystickID")] uint instance_id ); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] - static abstract sbyte* GetJoystickInstancePathRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePlayerIndex")] - static abstract int GetJoystickInstancePlayerIndex( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceProduct")] - static abstract ushort GetJoystickInstanceProduct( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceProductVersion")] - static abstract ushort GetJoystickInstanceProductVersion( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceType")] - static abstract JoystickType GetJoystickInstanceType( + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickNameForID")] + static abstract sbyte* GetJoystickNameForIDRaw( [NativeTypeName("SDL_JoystickID")] uint instance_id ); - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceVendor")] - static abstract ushort GetJoystickInstanceVendor( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] - static abstract Ptr GetJoystickName(JoystickHandle joystick); - [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] static abstract sbyte* GetJoystickNameRaw(JoystickHandle joystick); @@ -2283,6 +2624,19 @@ static abstract ushort GetJoystickInstanceVendor( [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] static abstract Ptr GetJoystickPath(JoystickHandle joystick); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPathForID")] + static abstract Ptr GetJoystickPathForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPathForID")] + static abstract sbyte* GetJoystickPathForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] static abstract sbyte* GetJoystickPathRaw(JoystickHandle joystick); @@ -2290,6 +2644,11 @@ static abstract ushort GetJoystickInstanceVendor( [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndex")] static abstract int GetJoystickPlayerIndex(JoystickHandle joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndexForID")] + static abstract int GetJoystickPlayerIndexForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPowerInfo")] static abstract PowerState GetJoystickPowerInfo(JoystickHandle joystick, int* percent); @@ -2301,10 +2660,22 @@ static abstract ushort GetJoystickInstanceVendor( [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProduct")] static abstract ushort GetJoystickProduct(JoystickHandle joystick); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductForID")] + static abstract ushort GetJoystickProductForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [return: NativeTypeName("Uint16")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersion")] static abstract ushort GetJoystickProductVersion(JoystickHandle joystick); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersionForID")] + static abstract ushort GetJoystickProductVersionForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProperties")] static abstract uint GetJoystickProperties(JoystickHandle joystick); @@ -2330,23 +2701,34 @@ static abstract ushort GetJoystickInstanceVendor( [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickType")] static abstract JoystickType GetJoystickType(JoystickHandle joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickTypeForID")] + static abstract JoystickType GetJoystickTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [return: NativeTypeName("Uint16")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendor")] static abstract ushort GetJoystickVendor(JoystickHandle joystick); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendorForID")] + static abstract ushort GetJoystickVendorForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] static abstract WindowHandle GetKeyboardFocus(); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] - static abstract Ptr GetKeyboardInstanceName( + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardNameForID")] + static abstract Ptr GetKeyboardNameForID( [NativeTypeName("SDL_KeyboardID")] uint instance_id ); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] - static abstract sbyte* GetKeyboardInstanceNameRaw( + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardNameForID")] + static abstract sbyte* GetKeyboardNameForIDRaw( [NativeTypeName("SDL_KeyboardID")] uint instance_id ); @@ -2359,36 +2741,49 @@ static abstract Ptr GetKeyboardInstanceName( [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboards")] static abstract Ptr GetKeyboards(Ref count); - [return: NativeTypeName("const Uint8 *")] + [return: NativeTypeName("const bool *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] - static abstract byte* GetKeyboardState(int* numkeys); + static abstract bool* GetKeyboardState(int* numkeys); - [return: NativeTypeName("const Uint8 *")] + [return: NativeTypeName("const bool *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] - static abstract Ptr GetKeyboardState(Ref numkeys); + static abstract Ptr GetKeyboardState(Ref numkeys); [return: NativeTypeName("SDL_Keycode")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromName")] - static abstract int GetKeyFromName([NativeTypeName("const char *")] sbyte* name); + static abstract uint GetKeyFromName([NativeTypeName("const char *")] sbyte* name); [return: NativeTypeName("SDL_Keycode")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromName")] - static abstract int GetKeyFromName([NativeTypeName("const char *")] Ref name); + static abstract uint GetKeyFromName([NativeTypeName("const char *")] Ref name); + + [return: NativeTypeName("SDL_Keycode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromScancode")] + static abstract uint GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] byte key_event + ); [return: NativeTypeName("SDL_Keycode")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromScancode")] - static abstract int GetKeyFromScancode(Scancode scancode); + static abstract uint GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] MaybeBool key_event + ); [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] - static abstract Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int key); + static abstract Ptr GetKeyName([NativeTypeName("SDL_Keycode")] uint key); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] - static abstract sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] int key); + static abstract sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] uint key); [NativeFunction("SDL3", EntryPoint = "SDL_GetLogOutputFunction")] static abstract void GetLogOutputFunction( @@ -2403,10 +2798,13 @@ static abstract void GetLogOutputFunction( Ref2D userdata ); - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] - static abstract int GetMasksForPixelFormatEnum( - PixelFormatEnum format, + [NativeFunction("SDL3", EntryPoint = "SDL_GetLogPriority")] + static abstract LogPriority GetLogPriority(int category); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormat")] + static abstract byte GetMasksForPixelFormat( + PixelFormat format, int* bpp, [NativeTypeName("Uint32 *")] uint* Rmask, [NativeTypeName("Uint32 *")] uint* Gmask, @@ -2414,11 +2812,11 @@ static abstract int GetMasksForPixelFormatEnum( [NativeTypeName("Uint32 *")] uint* Amask ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] - static abstract MaybeBool GetMasksForPixelFormatEnum( - PixelFormatEnum format, + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormat")] + static abstract MaybeBool GetMasksForPixelFormat( + PixelFormat format, Ref bpp, [NativeTypeName("Uint32 *")] Ref Rmask, [NativeTypeName("Uint32 *")] Ref Gmask, @@ -2441,30 +2839,31 @@ static abstract MaybeBool GetMasksForPixelFormatEnum( [NativeFunction("SDL3", EntryPoint = "SDL_GetMice")] static abstract Ptr GetMice(Ref count); + [return: NativeTypeName("SDL_Keymod")] [NativeFunction("SDL3", EntryPoint = "SDL_GetModState")] - static abstract Keymod GetModState(); + static abstract ushort GetModState(); [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] static abstract WindowHandle GetMouseFocus(); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] - static abstract Ptr GetMouseInstanceName( + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseNameForID")] + static abstract Ptr GetMouseNameForID( [NativeTypeName("SDL_MouseID")] uint instance_id ); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] - static abstract sbyte* GetMouseInstanceNameRaw( + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseNameForID")] + static abstract sbyte* GetMouseNameForIDRaw( [NativeTypeName("SDL_MouseID")] uint instance_id ); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] static abstract uint GetMouseState(float* x, float* y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] static abstract uint GetMouseState(Ref x, Ref y); @@ -2518,89 +2917,30 @@ static abstract long GetNumberProperty( [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickHats")] static abstract int GetNumJoystickHats(JoystickHandle joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumLogicalCPUCores")] + static abstract int GetNumLogicalCPUCores(); + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumRenderDrivers")] static abstract int GetNumRenderDrivers(); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumVideoDrivers")] static abstract int GetNumVideoDrivers(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] - static abstract int GetPathInfo( + static abstract byte GetPathInfo( [NativeTypeName("const char *")] sbyte* path, PathInfo* info ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] - static abstract int GetPathInfo( + static abstract MaybeBool GetPathInfo( [NativeTypeName("const char *")] Ref path, Ref info ); - [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenCapabilities")] - static abstract uint GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - PenCapabilityInfo* capabilities - ); - - [return: NativeTypeName("Uint32")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenCapabilities")] - static abstract uint GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref capabilities - ); - - [return: NativeTypeName("SDL_PenID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenFromGUID")] - static abstract uint GetPenFromGuid(Guid guid); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenGUID")] - static abstract Guid GetPenGuid([NativeTypeName("SDL_PenID")] uint instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenName")] - static abstract Ptr GetPenName([NativeTypeName("SDL_PenID")] uint instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenName")] - static abstract sbyte* GetPenNameRaw([NativeTypeName("SDL_PenID")] uint instance_id); - - [return: NativeTypeName("SDL_PenID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] - static abstract uint* GetPens(int* count); - - [return: NativeTypeName("SDL_PenID *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] - static abstract Ptr GetPens(Ref count); - - [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenStatus")] - static abstract uint GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - float* x, - float* y, - float* axes, - [NativeTypeName("size_t")] nuint num_axes - ); - - [return: NativeTypeName("Uint32")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenStatus")] - static abstract uint GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref x, - Ref y, - Ref axes, - [NativeTypeName("size_t")] nuint num_axes - ); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenType")] - static abstract PenSubtype GetPenType([NativeTypeName("SDL_PenID")] uint instance_id); - [return: NativeTypeName("Uint64")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceCounter")] static abstract ulong GetPerformanceCounter(); @@ -2609,8 +2949,17 @@ static abstract uint GetPenStatus( [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceFrequency")] static abstract ulong GetPerformanceFrequency(); - [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatEnumForMasks")] - static abstract PixelFormatEnum GetPixelFormatEnumForMasks( + [return: NativeTypeName("const SDL_PixelFormatDetails *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatDetails")] + static abstract Ptr GetPixelFormatDetails(PixelFormat format); + + [return: NativeTypeName("const SDL_PixelFormatDetails *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatDetails")] + static abstract PixelFormatDetails* GetPixelFormatDetailsRaw(PixelFormat format); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatForMasks")] + static abstract PixelFormat GetPixelFormatForMasks( int bpp, [NativeTypeName("Uint32")] uint Rmask, [NativeTypeName("Uint32")] uint Gmask, @@ -2621,11 +2970,11 @@ static abstract PixelFormatEnum GetPixelFormatEnumForMasks( [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] - static abstract Ptr GetPixelFormatName(PixelFormatEnum format); + static abstract Ptr GetPixelFormatName(PixelFormat format); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] - static abstract sbyte* GetPixelFormatNameRaw(PixelFormatEnum format); + static abstract sbyte* GetPixelFormatNameRaw(PixelFormat format); [return: NativeTypeName("const char *")] [Transformed] @@ -2636,6 +2985,21 @@ static abstract PixelFormatEnum GetPixelFormatEnumForMasks( [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] static abstract sbyte* GetPlatformRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_GetPointerProperty")] + static abstract void* GetPointerProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* default_value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPointerProperty")] + static abstract Ptr GetPointerProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref default_value + ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] static abstract PowerState GetPowerInfo(int* seconds, int* percent); @@ -2643,12 +3007,12 @@ static abstract PixelFormatEnum GetPixelFormatEnumForMasks( [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] static abstract PowerState GetPowerInfo(Ref seconds, Ref percent); - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] - static abstract Ptr GetPreferredLocales(); + static abstract Locale** GetPreferredLocales(int* count); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] - static abstract Locale* GetPreferredLocalesRaw(); + static abstract Ptr2D GetPreferredLocales(Ref count); [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPrefPath")] @@ -2678,21 +3042,6 @@ static abstract Ptr GetPrefPath( [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] static abstract sbyte* GetPrimarySelectionTextRaw(); - [NativeFunction("SDL3", EntryPoint = "SDL_GetProperty")] - static abstract void* GetProperty( - [NativeTypeName("SDL_PropertiesID")] uint props, - [NativeTypeName("const char *")] sbyte* name, - void* default_value - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetProperty")] - static abstract Ptr GetProperty( - [NativeTypeName("SDL_PropertiesID")] uint props, - [NativeTypeName("const char *")] Ref name, - Ref default_value - ); - [NativeFunction("SDL3", EntryPoint = "SDL_GetPropertyType")] static abstract PropertyType GetPropertyType( [NativeTypeName("SDL_PropertiesID")] uint props, @@ -2706,17 +3055,17 @@ static abstract PropertyType GetPropertyType( [NativeTypeName("const char *")] Ref name ); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadInstanceType")] - static abstract GamepadType GetRealGamepadInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] static abstract GamepadType GetRealGamepadType(GamepadHandle gamepad); - [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadTypeForID")] + static abstract GamepadType GetRealGamepadTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] - static abstract int GetRectAndLineIntersection( + static abstract byte GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Rect* rect, int* X1, int* Y1, @@ -2724,10 +3073,10 @@ static abstract int GetRectAndLineIntersection( int* Y2 ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] - static abstract MaybeBool GetRectAndLineIntersection( + static abstract MaybeBool GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Ref rect, Ref X1, Ref Y1, @@ -2735,9 +3084,9 @@ static abstract MaybeBool GetRectAndLineIntersection( Ref Y2 ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] - static abstract int GetRectAndLineIntersectionFloat( + static abstract byte GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* rect, float* X1, float* Y1, @@ -2745,10 +3094,10 @@ static abstract int GetRectAndLineIntersectionFloat( float* Y2 ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] - static abstract MaybeBool GetRectAndLineIntersectionFloat( + static abstract MaybeBool GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref rect, Ref X1, Ref Y1, @@ -2756,152 +3105,160 @@ static abstract MaybeBool GetRectAndLineIntersectionFloat( Ref Y2 ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] - static abstract int GetRectEnclosingPoints( + static abstract byte GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Point* points, int count, [NativeTypeName("const SDL_Rect *")] Rect* clip, Rect* result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] - static abstract MaybeBool GetRectEnclosingPoints( + static abstract MaybeBool GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Ref points, int count, [NativeTypeName("const SDL_Rect *")] Ref clip, Ref result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] - static abstract int GetRectEnclosingPointsFloat( + static abstract byte GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count, [NativeTypeName("const SDL_FRect *")] FRect* clip, FRect* result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] - static abstract MaybeBool GetRectEnclosingPointsFloat( + static abstract MaybeBool GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] Ref points, int count, [NativeTypeName("const SDL_FRect *")] Ref clip, Ref result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] - static abstract int GetRectIntersection( + static abstract byte GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] - static abstract MaybeBool GetRectIntersection( + static abstract MaybeBool GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] - static abstract int GetRectIntersectionFloat( + static abstract byte GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] - static abstract MaybeBool GetRectIntersectionFloat( + static abstract MaybeBool GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] - static abstract int GetRectUnion( + static abstract byte GetRectUnion( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] - static abstract int GetRectUnion( + static abstract MaybeBool GetRectUnion( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] - static abstract int GetRectUnionFloat( + static abstract byte GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] - static abstract int GetRectUnionFloat( + static abstract MaybeBool GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result ); - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseMode")] - static abstract MaybeBool GetRelativeMouseMode(); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseMode")] - static abstract int GetRelativeMouseModeRaw(); - - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] static abstract uint GetRelativeMouseState(float* x, float* y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] static abstract uint GetRelativeMouseState(Ref x, Ref y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] - static abstract int GetRenderClipRect(RendererHandle renderer, Rect* rect); + static abstract byte GetRenderClipRect(RendererHandle renderer, Rect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] - static abstract int GetRenderClipRect(RendererHandle renderer, Ref rect); + static abstract MaybeBool GetRenderClipRect(RendererHandle renderer, Ref rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] - static abstract int GetRenderColorScale(RendererHandle renderer, float* scale); + static abstract byte GetRenderColorScale(RendererHandle renderer, float* scale); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] - static abstract int GetRenderColorScale(RendererHandle renderer, Ref scale); + static abstract MaybeBool GetRenderColorScale( + RendererHandle renderer, + Ref scale + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] - static abstract int GetRenderDrawBlendMode(RendererHandle renderer, BlendMode* blendMode); + static abstract byte GetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] - static abstract int GetRenderDrawBlendMode( + static abstract MaybeBool GetRenderDrawBlendMode( RendererHandle renderer, - Ref blendMode + [NativeTypeName("SDL_BlendMode *")] Ref blendMode ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] - static abstract int GetRenderDrawColor( + static abstract byte GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, @@ -2909,9 +3266,10 @@ static abstract int GetRenderDrawColor( [NativeTypeName("Uint8 *")] byte* a ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] - static abstract int GetRenderDrawColor( + static abstract MaybeBool GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -2919,8 +3277,9 @@ static abstract int GetRenderDrawColor( [NativeTypeName("Uint8 *")] Ref a ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] - static abstract int GetRenderDrawColorFloat( + static abstract byte GetRenderDrawColorFloat( RendererHandle renderer, float* r, float* g, @@ -2928,9 +3287,10 @@ static abstract int GetRenderDrawColorFloat( float* a ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] - static abstract int GetRenderDrawColorFloat( + static abstract MaybeBool GetRenderDrawColorFloat( RendererHandle renderer, Ref r, Ref g, @@ -2951,36 +3311,54 @@ Ref a static abstract RendererHandle GetRenderer(WindowHandle window); [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] - static abstract RendererHandle GetRendererFromTexture(TextureHandle texture); + static abstract RendererHandle GetRendererFromTexture(Texture* texture); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] - static abstract int GetRendererInfo(RendererHandle renderer, RendererInfo* info); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] + static abstract RendererHandle GetRendererFromTexture(Ref texture); + [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] - static abstract int GetRendererInfo(RendererHandle renderer, Ref info); + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererName")] + static abstract Ptr GetRendererName(RendererHandle renderer); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererName")] + static abstract sbyte* GetRendererNameRaw(RendererHandle renderer); [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererProperties")] static abstract uint GetRendererProperties(RendererHandle renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] - static abstract int GetRenderLogicalPresentation( + static abstract byte GetRenderLogicalPresentation( RendererHandle renderer, int* w, int* h, - RendererLogicalPresentation* mode, - ScaleMode* scale_mode + RendererLogicalPresentation* mode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] - static abstract int GetRenderLogicalPresentation( + static abstract MaybeBool GetRenderLogicalPresentation( RendererHandle renderer, Ref w, Ref h, - Ref mode, - Ref scale_mode + Ref mode + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentationRect")] + static abstract byte GetRenderLogicalPresentationRect(RendererHandle renderer, FRect* rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentationRect")] + static abstract MaybeBool GetRenderLogicalPresentationRect( + RendererHandle renderer, + Ref rect ); [Transformed] @@ -2997,40 +3375,65 @@ Ref scale_mode [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalLayer")] static abstract void* GetRenderMetalLayerRaw(RendererHandle renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] - static abstract int GetRenderOutputSize(RendererHandle renderer, int* w, int* h); + static abstract byte GetRenderOutputSize(RendererHandle renderer, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] - static abstract int GetRenderOutputSize(RendererHandle renderer, Ref w, Ref h); + static abstract MaybeBool GetRenderOutputSize( + RendererHandle renderer, + Ref w, + Ref h + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderSafeArea")] + static abstract byte GetRenderSafeArea(RendererHandle renderer, Rect* rect); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderSafeArea")] + static abstract MaybeBool GetRenderSafeArea(RendererHandle renderer, Ref rect); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] - static abstract int GetRenderScale(RendererHandle renderer, float* scaleX, float* scaleY); + static abstract byte GetRenderScale(RendererHandle renderer, float* scaleX, float* scaleY); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] - static abstract int GetRenderScale( + static abstract MaybeBool GetRenderScale( RendererHandle renderer, Ref scaleX, Ref scaleY ); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] + static abstract Ptr GetRenderTarget(RendererHandle renderer); + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] - static abstract TextureHandle GetRenderTarget(RendererHandle renderer); + static abstract Texture* GetRenderTargetRaw(RendererHandle renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] - static abstract int GetRenderViewport(RendererHandle renderer, Rect* rect); + static abstract byte GetRenderViewport(RendererHandle renderer, Rect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] - static abstract int GetRenderViewport(RendererHandle renderer, Ref rect); + static abstract MaybeBool GetRenderViewport(RendererHandle renderer, Ref rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] - static abstract int GetRenderVSync(RendererHandle renderer, int* vsync); + static abstract byte GetRenderVSync(RendererHandle renderer, int* vsync); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] - static abstract int GetRenderVSync(RendererHandle renderer, Ref vsync); + static abstract MaybeBool GetRenderVSync(RendererHandle renderer, Ref vsync); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderWindow")] static abstract WindowHandle GetRenderWindow(RendererHandle renderer); @@ -3047,7 +3450,8 @@ Ref scaleY [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] static abstract void GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b @@ -3057,7 +3461,8 @@ static abstract void GetRGB( [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] static abstract void GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b @@ -3066,7 +3471,8 @@ static abstract void GetRGB( [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] static abstract void GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b, @@ -3077,15 +3483,29 @@ static abstract void GetRgba( [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] static abstract void GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b, [NativeTypeName("Uint8 *")] Ref a ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSandbox")] + static abstract Sandbox GetSandbox(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromKey")] + static abstract Scancode GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] ushort* modstate + ); + + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromKey")] - static abstract Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key); + static abstract Scancode GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] Ref modstate + ); [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromName")] static abstract Scancode GetScancodeFromName([NativeTypeName("const char *")] sbyte* name); @@ -3109,50 +3529,46 @@ static abstract Scancode GetScancodeFromName( [NativeFunction("SDL3", EntryPoint = "SDL_GetSemaphoreValue")] static abstract uint GetSemaphoreValue(SemaphoreHandle sem); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] - static abstract int GetSensorData(SensorHandle sensor, float* data, int num_values); + static abstract byte GetSensorData(SensorHandle sensor, float* data, int num_values); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] - static abstract int GetSensorData(SensorHandle sensor, Ref data, int num_values); + static abstract MaybeBool GetSensorData( + SensorHandle sensor, + Ref data, + int num_values + ); - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] - static abstract SensorHandle GetSensorFromInstanceID( + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromID")] + static abstract SensorHandle GetSensorFromID( [NativeTypeName("SDL_SensorID")] uint instance_id ); [return: NativeTypeName("SDL_SensorID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceID")] - static abstract uint GetSensorInstanceID(SensorHandle sensor); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorID")] + static abstract uint GetSensorID(SensorHandle sensor); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] - static abstract Ptr GetSensorInstanceName( - [NativeTypeName("SDL_SensorID")] uint instance_id - ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] + static abstract Ptr GetSensorName(SensorHandle sensor); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] - static abstract sbyte* GetSensorInstanceNameRaw( - [NativeTypeName("SDL_SensorID")] uint instance_id - ); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceNonPortableType")] - static abstract int GetSensorInstanceNonPortableType( + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNameForID")] + static abstract Ptr GetSensorNameForID( [NativeTypeName("SDL_SensorID")] uint instance_id ); - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceType")] - static abstract SensorType GetSensorInstanceType( + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNameForID")] + static abstract sbyte* GetSensorNameForIDRaw( [NativeTypeName("SDL_SensorID")] uint instance_id ); - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] - static abstract Ptr GetSensorName(SensorHandle sensor); - [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] static abstract sbyte* GetSensorNameRaw(SensorHandle sensor); @@ -3160,6 +3576,11 @@ static abstract SensorType GetSensorInstanceType( [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableType")] static abstract int GetSensorNonPortableType(SensorHandle sensor); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableTypeForID")] + static abstract int GetSensorNonPortableTypeForID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorProperties")] static abstract uint GetSensorProperties(SensorHandle sensor); @@ -3176,36 +3597,47 @@ static abstract SensorType GetSensorInstanceType( [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorType")] static abstract SensorType GetSensorType(SensorHandle sensor); - [NativeFunction("SDL3", EntryPoint = "SDL_GetSilenceValueForFormat")] - static abstract int GetSilenceValueForFormat( - [NativeTypeName("SDL_AudioFormat")] ushort format + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorTypeForID")] + static abstract SensorType GetSensorTypeForID( + [NativeTypeName("SDL_SensorID")] uint instance_id ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSilenceValueForFormat")] + static abstract int GetSilenceValueForFormat(AudioFormat format); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSIMDAlignment")] + static abstract nuint GetSimdAlignment(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] - static abstract int GetStorageFileSize( + static abstract byte GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("Uint64 *")] ulong* length ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] - static abstract int GetStorageFileSize( + static abstract MaybeBool GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("Uint64 *")] Ref length ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] - static abstract int GetStoragePathInfo( + static abstract byte GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, PathInfo* info ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] - static abstract int GetStoragePathInfo( + static abstract MaybeBool GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref info @@ -3232,57 +3664,73 @@ static abstract Ptr GetStringProperty( [NativeTypeName("const char *")] Ref default_value ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] - static abstract int GetSurfaceAlphaMod( + static abstract byte GetSurfaceAlphaMod( Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] - static abstract int GetSurfaceAlphaMod( + static abstract MaybeBool GetSurfaceAlphaMod( Ref surface, [NativeTypeName("Uint8 *")] Ref alpha ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] - static abstract int GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode); + static abstract byte GetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] - static abstract int GetSurfaceBlendMode(Ref surface, Ref blendMode); + static abstract MaybeBool GetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] - static abstract int GetSurfaceClipRect(Surface* surface, Rect* rect); + static abstract byte GetSurfaceClipRect(Surface* surface, Rect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] - static abstract int GetSurfaceClipRect(Ref surface, Ref rect); + static abstract MaybeBool GetSurfaceClipRect(Ref surface, Ref rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] - static abstract int GetSurfaceColorKey( + static abstract byte GetSurfaceColorKey( Surface* surface, [NativeTypeName("Uint32 *")] uint* key ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] - static abstract int GetSurfaceColorKey( + static abstract MaybeBool GetSurfaceColorKey( Ref surface, [NativeTypeName("Uint32 *")] Ref key ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] - static abstract int GetSurfaceColorMod( + static abstract byte GetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] - static abstract int GetSurfaceColorMod( + static abstract MaybeBool GetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -3290,11 +3738,25 @@ static abstract int GetSurfaceColorMod( ); [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] - static abstract int GetSurfaceColorspace(Surface* surface, Colorspace* colorspace); + static abstract Colorspace GetSurfaceColorspace(Surface* surface); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] - static abstract int GetSurfaceColorspace(Ref surface, Ref colorspace); + static abstract Colorspace GetSurfaceColorspace(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceImages")] + static abstract Surface** GetSurfaceImages(Surface* surface, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceImages")] + static abstract Ptr2D GetSurfaceImages(Ref surface, Ref count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfacePalette")] + static abstract Palette* GetSurfacePalette(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfacePalette")] + static abstract Ptr GetSurfacePalette(Ref surface); [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceProperties")] @@ -3311,62 +3773,94 @@ static abstract int GetSurfaceColorMod( [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemTheme")] static abstract SystemTheme GetSystemTheme(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextInputArea")] + static abstract byte GetTextInputArea(WindowHandle window, Rect* rect, int* cursor); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextInputArea")] + static abstract MaybeBool GetTextInputArea( + WindowHandle window, + Ref rect, + Ref cursor + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] - static abstract int GetTextureAlphaMod( - TextureHandle texture, + static abstract byte GetTextureAlphaMod( + Texture* texture, [NativeTypeName("Uint8 *")] byte* alpha ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] - static abstract int GetTextureAlphaMod( - TextureHandle texture, + static abstract MaybeBool GetTextureAlphaMod( + Ref texture, [NativeTypeName("Uint8 *")] Ref alpha ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] - static abstract int GetTextureAlphaModFloat(TextureHandle texture, float* alpha); + static abstract byte GetTextureAlphaModFloat(Texture* texture, float* alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] - static abstract int GetTextureAlphaModFloat(TextureHandle texture, Ref alpha); + static abstract MaybeBool GetTextureAlphaModFloat( + Ref texture, + Ref alpha + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] - static abstract int GetTextureBlendMode(TextureHandle texture, BlendMode* blendMode); + static abstract byte GetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] - static abstract int GetTextureBlendMode(TextureHandle texture, Ref blendMode); + static abstract MaybeBool GetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] - static abstract int GetTextureColorMod( - TextureHandle texture, + static abstract byte GetTextureColorMod( + Texture* texture, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] - static abstract int GetTextureColorMod( - TextureHandle texture, + static abstract MaybeBool GetTextureColorMod( + Ref texture, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] - static abstract int GetTextureColorModFloat( - TextureHandle texture, + static abstract byte GetTextureColorModFloat( + Texture* texture, float* r, float* g, float* b ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] - static abstract int GetTextureColorModFloat( - TextureHandle texture, + static abstract MaybeBool GetTextureColorModFloat( + Ref texture, Ref r, Ref g, Ref b @@ -3374,14 +3868,37 @@ Ref b [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] - static abstract uint GetTextureProperties(TextureHandle texture); + static abstract uint GetTextureProperties(Texture* texture); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] + static abstract uint GetTextureProperties(Ref texture); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] - static abstract int GetTextureScaleMode(TextureHandle texture, ScaleMode* scaleMode); + static abstract byte GetTextureScaleMode(Texture* texture, ScaleMode* scaleMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] - static abstract int GetTextureScaleMode(TextureHandle texture, Ref scaleMode); + static abstract MaybeBool GetTextureScaleMode( + Ref texture, + Ref scaleMode + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureSize")] + static abstract byte GetTextureSize(Texture* texture, float* w, float* h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureSize")] + static abstract MaybeBool GetTextureSize( + Ref texture, + Ref w, + Ref h + ); [return: NativeTypeName("SDL_ThreadID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadID")] @@ -3404,12 +3921,12 @@ Ref b [NativeFunction("SDL3", EntryPoint = "SDL_GetTicksNS")] static abstract ulong GetTicksNS(); - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] - static abstract Ptr GetTLS([NativeTypeName("SDL_TLSID")] uint id); + static abstract void* GetTLS([NativeTypeName("SDL_TLSID *")] AtomicInt* id); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] - static abstract void* GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id); + static abstract Ptr GetTLS([NativeTypeName("SDL_TLSID *")] Ref id); [return: NativeTypeName("const char *")] [Transformed] @@ -3449,21 +3966,17 @@ static abstract Ptr2D GetTouchFingers( Ref count ); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] static abstract Ptr GetUserFolder(Folder folder); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] static abstract sbyte* GetUserFolderRaw(Folder folder); [NativeFunction("SDL3", EntryPoint = "SDL_GetVersion")] - static abstract int GetVersion(Version* ver); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetVersion")] - static abstract int GetVersion(Ref ver); + static abstract int GetVersion(); [return: NativeTypeName("const char *")] [Transformed] @@ -3474,18 +3987,37 @@ Ref count [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] static abstract sbyte* GetVideoDriverRaw(int index); - [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] - static abstract int GetWindowBordersSize( + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowAspectRatio")] + static abstract byte GetWindowAspectRatio( WindowHandle window, - int* top, - int* left, + float* min_aspect, + float* max_aspect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowAspectRatio")] + static abstract MaybeBool GetWindowAspectRatio( + WindowHandle window, + Ref min_aspect, + Ref max_aspect + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] + static abstract byte GetWindowBordersSize( + WindowHandle window, + int* top, + int* left, int* bottom, int* right ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] - static abstract int GetWindowBordersSize( + static abstract MaybeBool GetWindowBordersSize( WindowHandle window, Ref top, Ref left, @@ -3498,7 +4030,18 @@ Ref right [return: NativeTypeName("SDL_WindowFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFlags")] - static abstract uint GetWindowFlags(WindowHandle window); + static abstract ulong GetWindowFlags(WindowHandle window); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromEvent")] + static abstract WindowHandle GetWindowFromEvent( + [NativeTypeName("const SDL_Event *")] Event* @event + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromEvent")] + static abstract WindowHandle GetWindowFromEvent( + [NativeTypeName("const SDL_Event *")] Ref @event + ); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] static abstract WindowHandle GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id); @@ -3529,37 +4072,49 @@ static abstract Ptr GetWindowICCProfile( [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowID")] static abstract uint GetWindowID(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] - static abstract MaybeBool GetWindowKeyboardGrab(WindowHandle window); + static abstract MaybeBool GetWindowKeyboardGrab(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] - static abstract int GetWindowKeyboardGrabRaw(WindowHandle window); + static abstract byte GetWindowKeyboardGrabRaw(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] - static abstract int GetWindowMaximumSize(WindowHandle window, int* w, int* h); + static abstract byte GetWindowMaximumSize(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] - static abstract int GetWindowMaximumSize(WindowHandle window, Ref w, Ref h); + static abstract MaybeBool GetWindowMaximumSize( + WindowHandle window, + Ref w, + Ref h + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] - static abstract int GetWindowMinimumSize(WindowHandle window, int* w, int* h); + static abstract byte GetWindowMinimumSize(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] - static abstract int GetWindowMinimumSize(WindowHandle window, Ref w, Ref h); + static abstract MaybeBool GetWindowMinimumSize( + WindowHandle window, + Ref w, + Ref h + ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] - static abstract MaybeBool GetWindowMouseGrab(WindowHandle window); + static abstract MaybeBool GetWindowMouseGrab(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] - static abstract int GetWindowMouseGrabRaw(WindowHandle window); + static abstract byte GetWindowMouseGrabRaw(WindowHandle window); [return: NativeTypeName("const SDL_Rect *")] [Transformed] @@ -3571,11 +4126,7 @@ static abstract Ptr GetWindowICCProfile( static abstract Rect* GetWindowMouseRectRaw(WindowHandle window); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] - static abstract int GetWindowOpacity(WindowHandle window, float* out_opacity); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] - static abstract int GetWindowOpacity(WindowHandle window, Ref out_opacity); + static abstract float GetWindowOpacity(WindowHandle window); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowParent")] static abstract WindowHandle GetWindowParent(WindowHandle window); @@ -3583,34 +4134,72 @@ static abstract Ptr GetWindowICCProfile( [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelDensity")] static abstract float GetWindowPixelDensity(WindowHandle window); - [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelFormat")] - static abstract uint GetWindowPixelFormat(WindowHandle window); + static abstract PixelFormat GetWindowPixelFormat(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] - static abstract int GetWindowPosition(WindowHandle window, int* x, int* y); + static abstract byte GetWindowPosition(WindowHandle window, int* x, int* y); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] - static abstract int GetWindowPosition(WindowHandle window, Ref x, Ref y); + static abstract MaybeBool GetWindowPosition( + WindowHandle window, + Ref x, + Ref y + ); [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] static abstract uint GetWindowProperties(WindowHandle window); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowRelativeMouseMode")] + static abstract MaybeBool GetWindowRelativeMouseMode(WindowHandle window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowRelativeMouseMode")] + static abstract byte GetWindowRelativeMouseModeRaw(WindowHandle window); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindows")] + static abstract WindowHandle* GetWindows(int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindows")] + static abstract Ptr GetWindows(Ref count); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSafeArea")] + static abstract byte GetWindowSafeArea(WindowHandle window, Rect* rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSafeArea")] + static abstract MaybeBool GetWindowSafeArea(WindowHandle window, Ref rect); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] - static abstract int GetWindowSize(WindowHandle window, int* w, int* h); + static abstract byte GetWindowSize(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] - static abstract int GetWindowSize(WindowHandle window, Ref w, Ref h); + static abstract MaybeBool GetWindowSize(WindowHandle window, Ref w, Ref h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] - static abstract int GetWindowSizeInPixels(WindowHandle window, int* w, int* h); + static abstract byte GetWindowSizeInPixels(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] - static abstract int GetWindowSizeInPixels(WindowHandle window, Ref w, Ref h); + static abstract MaybeBool GetWindowSizeInPixels( + WindowHandle window, + Ref w, + Ref h + ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurface")] @@ -3619,6 +4208,15 @@ static abstract Ptr GetWindowICCProfile( [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurface")] static abstract Surface* GetWindowSurfaceRaw(WindowHandle window); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurfaceVSync")] + static abstract byte GetWindowSurfaceVSync(WindowHandle window, int* vsync); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurfaceVSync")] + static abstract MaybeBool GetWindowSurfaceVSync(WindowHandle window, Ref vsync); + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] @@ -3628,48 +4226,48 @@ static abstract Ptr GetWindowICCProfile( [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] static abstract sbyte* GetWindowTitleRaw(WindowHandle window); - [return: NativeTypeName("SDL_GLContext")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] - static abstract Ptr GLCreateContext(WindowHandle window); - [return: NativeTypeName("SDL_GLContext")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] - static abstract void* GLCreateContextRaw(WindowHandle window); - - [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] - static abstract int GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context); + static abstract GLContextStateHandle GLCreateContext(WindowHandle window); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] - static abstract int GLDeleteContext([NativeTypeName("SDL_GLContext")] Ref context); + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DestroyContext")] + static abstract MaybeBool GLDestroyContext( + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DestroyContext")] + static abstract byte GLDestroyContextRaw( + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] - static abstract int GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension); + static abstract byte GLExtensionSupported( + [NativeTypeName("const char *")] sbyte* extension + ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] - static abstract MaybeBool GLExtensionSupported( + static abstract MaybeBool GLExtensionSupported( [NativeTypeName("const char *")] Ref extension ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] - static abstract int GLGetAttribute(GLattr attr, int* value); + static abstract byte GLGetAttribute(GLAttr attr, int* value); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] - static abstract int GLGetAttribute(GLattr attr, Ref value); - - [return: NativeTypeName("SDL_GLContext")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] - static abstract Ptr GLGetCurrentContext(); + static abstract MaybeBool GLGetAttribute(GLAttr attr, Ref value); [return: NativeTypeName("SDL_GLContext")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] - static abstract void* GLGetCurrentContextRaw(); + static abstract GLContextStateHandle GLGetCurrentContext(); [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] static abstract WindowHandle GLGetCurrentWindow(); @@ -3687,44 +4285,70 @@ static abstract FunctionPointer GLGetProcAddress( [NativeTypeName("const char *")] Ref proc ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] - static abstract int GLGetSwapInterval(int* interval); + static abstract byte GLGetSwapInterval(int* interval); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] - static abstract int GLGetSwapInterval(Ref interval); + static abstract MaybeBool GLGetSwapInterval(Ref interval); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] - static abstract int GLLoadLibrary([NativeTypeName("const char *")] sbyte* path); + static abstract byte GLLoadLibrary([NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] - static abstract int GLLoadLibrary([NativeTypeName("const char *")] Ref path); + static abstract MaybeBool GLLoadLibrary( + [NativeTypeName("const char *")] Ref path + ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] - static abstract int GLMakeCurrent( + static abstract MaybeBool GLMakeCurrent( WindowHandle window, - [NativeTypeName("SDL_GLContext")] void* context + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context ); - [Transformed] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] - static abstract int GLMakeCurrent( + static abstract byte GLMakeCurrentRaw( WindowHandle window, - [NativeTypeName("SDL_GLContext")] Ref context + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context ); [NativeFunction("SDL3", EntryPoint = "SDL_GL_ResetAttributes")] static abstract void GLResetAttributes(); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetAttribute")] + static abstract MaybeBool GLSetAttribute(GLAttr attr, int value); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetAttribute")] - static abstract int GLSetAttribute(GLattr attr, int value); + static abstract byte GLSetAttributeRaw(GLAttr attr, int value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetSwapInterval")] + static abstract MaybeBool GLSetSwapInterval(int interval); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetSwapInterval")] - static abstract int GLSetSwapInterval(int interval); + static abstract byte GLSetSwapIntervalRaw(int interval); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] + static abstract MaybeBool GLSwapWindow(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] - static abstract int GLSwapWindow(WindowHandle window); + static abstract byte GLSwapWindowRaw(WindowHandle window); [NativeFunction("SDL3", EntryPoint = "SDL_GL_UnloadLibrary")] static abstract void GLUnloadLibrary(); @@ -3734,7 +4358,7 @@ static abstract int GLMakeCurrent( static abstract sbyte** GlobDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ); @@ -3744,7 +4368,7 @@ static abstract int GLMakeCurrent( static abstract Ptr2D GlobDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ); @@ -3754,7 +4378,7 @@ Ref count StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ); @@ -3765,19 +4389,12 @@ static abstract Ptr2D GlobStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ); - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] - static abstract Guid GuidFromString([NativeTypeName("const char *")] sbyte* pchGUID); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] - static abstract Guid GuidFromString([NativeTypeName("const char *")] Ref pchGUID); - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] - static abstract int GuidToString( + static abstract void GuidToString( Guid guid, [NativeTypeName("char *")] sbyte* pszGUID, int cbGUID @@ -3785,311 +4402,311 @@ int cbGUID [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] - static abstract int GuidToString( + static abstract void GuidToString( Guid guid, [NativeTypeName("char *")] Ref pszGUID, int cbGUID ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] - static abstract int HapticEffectSupported( + static abstract byte HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] - static abstract MaybeBool HapticEffectSupported( + static abstract MaybeBool HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] Ref effect ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] - static abstract MaybeBool HapticRumbleSupported(HapticHandle haptic); + static abstract MaybeBool HapticRumbleSupported(HapticHandle haptic); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] - static abstract int HapticRumbleSupportedRaw(HapticHandle haptic); + static abstract byte HapticRumbleSupportedRaw(HapticHandle haptic); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] - static abstract MaybeBool HasAltiVec(); + static abstract MaybeBool HasAltiVec(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] - static abstract int HasAltiVecRaw(); + static abstract byte HasAltiVecRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] - static abstract MaybeBool HasArmsimd(); + static abstract MaybeBool HasArmsimd(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] - static abstract int HasArmsimdRaw(); + static abstract byte HasArmsimdRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] - static abstract MaybeBool HasAVX(); + static abstract MaybeBool HasAVX(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] - static abstract MaybeBool HasAVX2(); + static abstract MaybeBool HasAVX2(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] - static abstract int HasAVX2Raw(); + static abstract byte HasAVX2Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] - static abstract MaybeBool HasAVX512F(); + static abstract MaybeBool HasAVX512F(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] - static abstract int HasAVX512FRaw(); + static abstract byte HasAVX512FRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] - static abstract int HasAVXRaw(); + static abstract byte HasAVXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] - static abstract int HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type); + static abstract byte HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] - static abstract MaybeBool HasClipboardData( + static abstract MaybeBool HasClipboardData( [NativeTypeName("const char *")] Ref mime_type ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] - static abstract MaybeBool HasClipboardText(); + static abstract MaybeBool HasClipboardText(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] - static abstract int HasClipboardTextRaw(); + static abstract byte HasClipboardTextRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] - static abstract MaybeBool HasEvent([NativeTypeName("Uint32")] uint type); + static abstract MaybeBool HasEvent([NativeTypeName("Uint32")] uint type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] - static abstract int HasEventRaw([NativeTypeName("Uint32")] uint type); + static abstract byte HasEventRaw([NativeTypeName("Uint32")] uint type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] - static abstract MaybeBool HasEvents( + static abstract MaybeBool HasEvents( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] - static abstract int HasEventsRaw( + static abstract byte HasEventsRaw( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] - static abstract MaybeBool HasGamepad(); + static abstract MaybeBool HasGamepad(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] - static abstract int HasGamepadRaw(); + static abstract byte HasGamepadRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] - static abstract MaybeBool HasJoystick(); + static abstract MaybeBool HasJoystick(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] - static abstract int HasJoystickRaw(); + static abstract byte HasJoystickRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] - static abstract MaybeBool HasKeyboard(); + static abstract MaybeBool HasKeyboard(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] - static abstract int HasKeyboardRaw(); + static abstract byte HasKeyboardRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] - static abstract MaybeBool HasLasx(); + static abstract MaybeBool HasLasx(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] - static abstract int HasLasxRaw(); + static abstract byte HasLasxRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] - static abstract MaybeBool HasLSX(); + static abstract MaybeBool HasLSX(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] - static abstract int HasLSXRaw(); + static abstract byte HasLSXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] - static abstract MaybeBool HasMMX(); + static abstract MaybeBool HasMMX(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] - static abstract int HasMMXRaw(); + static abstract byte HasMMXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] - static abstract MaybeBool HasMouse(); + static abstract MaybeBool HasMouse(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] - static abstract int HasMouseRaw(); + static abstract byte HasMouseRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] - static abstract MaybeBool HasNeon(); + static abstract MaybeBool HasNeon(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] - static abstract int HasNeonRaw(); + static abstract byte HasNeonRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] - static abstract MaybeBool HasPrimarySelectionText(); + static abstract MaybeBool HasPrimarySelectionText(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] - static abstract int HasPrimarySelectionTextRaw(); + static abstract byte HasPrimarySelectionTextRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] - static abstract int HasProperty( + static abstract byte HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] - static abstract MaybeBool HasProperty( + static abstract MaybeBool HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] - static abstract int HasRectIntersection( + static abstract byte HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] - static abstract MaybeBool HasRectIntersection( + static abstract MaybeBool HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] - static abstract int HasRectIntersectionFloat( + static abstract byte HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] - static abstract MaybeBool HasRectIntersectionFloat( + static abstract MaybeBool HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] - static abstract MaybeBool HasScreenKeyboardSupport(); + static abstract MaybeBool HasScreenKeyboardSupport(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] - static abstract int HasScreenKeyboardSupportRaw(); + static abstract byte HasScreenKeyboardSupportRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] - static abstract MaybeBool HasSSE(); + static abstract MaybeBool HasSSE(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] - static abstract MaybeBool HasSSE2(); + static abstract MaybeBool HasSSE2(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] - static abstract int HasSSE2Raw(); + static abstract byte HasSSE2Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] - static abstract MaybeBool HasSSE3(); + static abstract MaybeBool HasSSE3(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] - static abstract int HasSSE3Raw(); + static abstract byte HasSSE3Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] - static abstract MaybeBool HasSSE41(); + static abstract MaybeBool HasSSE41(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] - static abstract int HasSSE41Raw(); + static abstract byte HasSSE41Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] - static abstract MaybeBool HasSSE42(); + static abstract MaybeBool HasSSE42(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] - static abstract int HasSSE42Raw(); + static abstract byte HasSSE42Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] - static abstract int HasSSERaw(); + static abstract byte HasSSERaw(); [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] - static abstract void HidBleScan([NativeTypeName("SDL_bool")] int active); + static abstract void HidBleScan([NativeTypeName("bool")] byte active); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] - static abstract void HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active); + static abstract void HidBleScan([NativeTypeName("bool")] MaybeBool active); [NativeFunction("SDL3", EntryPoint = "SDL_hid_close")] static abstract int HidClose(HidDeviceHandle dev); @@ -4327,20 +4944,50 @@ static abstract int HidWrite( [NativeTypeName("size_t")] nuint length ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideCursor")] + static abstract MaybeBool HideCursor(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HideCursor")] - static abstract int HideCursor(); + static abstract byte HideCursorRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] + static abstract MaybeBool HideWindow(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] - static abstract int HideWindow(WindowHandle window); + static abstract byte HideWindowRaw(WindowHandle window); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_Init")] - static abstract int Init([NativeTypeName("Uint32")] uint flags); + static abstract MaybeBool Init([NativeTypeName("SDL_InitFlags")] uint flags); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] + static abstract MaybeBool InitHapticRumble(HapticHandle haptic); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] - static abstract int InitHapticRumble(HapticHandle haptic); + static abstract byte InitHapticRumbleRaw(HapticHandle haptic); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_Init")] + static abstract byte InitRaw([NativeTypeName("SDL_InitFlags")] uint flags); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitSubSystem")] + static abstract MaybeBool InitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_InitSubSystem")] - static abstract int InitSubSystem([NativeTypeName("Uint32")] uint flags); + static abstract byte InitSubSystemRaw([NativeTypeName("SDL_InitFlags")] uint flags); [NativeFunction("SDL3", EntryPoint = "SDL_IOFromConstMem")] static abstract IOStreamHandle IOFromConstMem( @@ -4395,74 +5042,83 @@ static abstract nuint IOvprintf( [NativeTypeName("va_list")] Ref ap ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] - static abstract MaybeBool IsGamepad( + static abstract MaybeBool IsGamepad( [NativeTypeName("SDL_JoystickID")] uint instance_id ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] - static abstract int IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + static abstract byte IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] - static abstract MaybeBool IsJoystickHaptic(JoystickHandle joystick); + static abstract MaybeBool IsJoystickHaptic(JoystickHandle joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] - static abstract int IsJoystickHapticRaw(JoystickHandle joystick); + static abstract byte IsJoystickHapticRaw(JoystickHandle joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] - static abstract MaybeBool IsJoystickVirtual( + static abstract MaybeBool IsJoystickVirtual( [NativeTypeName("SDL_JoystickID")] uint instance_id ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] - static abstract int IsJoystickVirtualRaw( + static abstract byte IsJoystickVirtualRaw( [NativeTypeName("SDL_JoystickID")] uint instance_id ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] - static abstract MaybeBool IsMouseHaptic(); + static abstract MaybeBool IsMouseHaptic(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] - static abstract int IsMouseHapticRaw(); + static abstract byte IsMouseHapticRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] - static abstract MaybeBool IsTablet(); + static abstract MaybeBool IsTablet(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] - static abstract int IsTabletRaw(); + static abstract byte IsTabletRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTV")] + static abstract MaybeBool IsTV(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTV")] + static abstract byte IsTVRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] - static abstract MaybeBool JoystickConnected(JoystickHandle joystick); + static abstract MaybeBool JoystickConnected(JoystickHandle joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] - static abstract int JoystickConnectedRaw(JoystickHandle joystick); + static abstract byte JoystickConnectedRaw(JoystickHandle joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] - static abstract MaybeBool JoystickEventsEnabled(); + static abstract MaybeBool JoystickEventsEnabled(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] - static abstract int JoystickEventsEnabledRaw(); + static abstract byte JoystickEventsEnabledRaw(); [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP")] static abstract Surface* LoadBMP([NativeTypeName("const char *")] sbyte* file); @@ -4474,14 +5130,14 @@ static abstract int IsJoystickVirtualRaw( [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] static abstract Surface* LoadBMPIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] static abstract Ptr LoadBMPIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ); [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile")] @@ -4501,7 +5157,7 @@ static abstract Ptr LoadFile( static abstract void* LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] nuint* datasize, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ); [Transformed] @@ -4509,13 +5165,13 @@ static abstract Ptr LoadFile( static abstract Ptr LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] Ref datasize, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ); [return: NativeTypeName("SDL_FunctionPointer")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadFunction")] static abstract FunctionPointer LoadFunction( - void* handle, + SharedObjectHandle handle, [NativeTypeName("const char *")] sbyte* name ); @@ -4523,55 +5179,69 @@ static abstract FunctionPointer LoadFunction( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadFunction")] static abstract FunctionPointer LoadFunction( - Ref handle, + SharedObjectHandle handle, [NativeTypeName("const char *")] Ref name ); [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] - static abstract void* LoadObject([NativeTypeName("const char *")] sbyte* sofile); + static abstract SharedObjectHandle LoadObject( + [NativeTypeName("const char *")] sbyte* sofile + ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] - static abstract Ptr LoadObject([NativeTypeName("const char *")] Ref sofile); + static abstract SharedObjectHandle LoadObject( + [NativeTypeName("const char *")] Ref sofile + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] - static abstract int LoadWAV( + static abstract byte LoadWAV( [NativeTypeName("const char *")] sbyte* path, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] - static abstract int LoadWAV( + static abstract MaybeBool LoadWAV( [NativeTypeName("const char *")] Ref path, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, [NativeTypeName("Uint32 *")] Ref audio_len ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] - static abstract int LoadWAVIO( + static abstract byte LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio, + [NativeTypeName("bool")] byte closeio, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] - static abstract int LoadWAVIO( + static abstract MaybeBool LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio, + [NativeTypeName("bool")] MaybeBool closeio, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, [NativeTypeName("Uint32 *")] Ref audio_len ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] + static abstract MaybeBool LockAudioStream(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] - static abstract int LockAudioStream(AudioStreamHandle stream); + static abstract byte LockAudioStreamRaw(AudioStreamHandle stream); [NativeFunction("SDL3", EntryPoint = "SDL_LockJoysticks")] static abstract void LockJoysticks(); @@ -4579,8 +5249,16 @@ static abstract int LoadWAVIO( [NativeFunction("SDL3", EntryPoint = "SDL_LockMutex")] static abstract void LockMutex(MutexHandle mutex); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockProperties")] + static abstract MaybeBool LockProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockProperties")] - static abstract int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props); + static abstract byte LockPropertiesRaw([NativeTypeName("SDL_PropertiesID")] uint props); [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForReading")] static abstract void LockRWLockForReading(RWLockHandle rwlock); @@ -4595,48 +5273,51 @@ static abstract int LoadWAVIO( [NativeFunction("SDL3", EntryPoint = "SDL_LockSpinlock")] static abstract void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] - static abstract int LockSurface(Surface* surface); + static abstract byte LockSurface(Surface* surface); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] - static abstract int LockSurface(Ref surface); + static abstract MaybeBool LockSurface(Ref surface); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] - static abstract int LockTexture( - TextureHandle texture, + static abstract byte LockTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, void** pixels, int* pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] - static abstract int LockTexture( - TextureHandle texture, + static abstract MaybeBool LockTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D pixels, Ref pitch ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] - static abstract int LockTextureToSurface( - TextureHandle texture, + static abstract byte LockTextureToSurface( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, Surface** surface ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] - static abstract int LockTextureToSurface( - TextureHandle texture, + static abstract MaybeBool LockTextureToSurface( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D surface ); - [NativeFunction("SDL3", EntryPoint = "SDL_LogGetPriority")] - static abstract LogPriority LogGetPriority(int category); - [NativeFunction("SDL3", EntryPoint = "SDL_LogMessageV")] static abstract void LogMessageV( int category, @@ -4654,19 +5335,11 @@ static abstract void LogMessageV( [NativeTypeName("va_list")] Ref ap ); - [NativeFunction("SDL3", EntryPoint = "SDL_LogResetPriorities")] - static abstract void LogResetPriorities(); - - [NativeFunction("SDL3", EntryPoint = "SDL_LogSetAllPriority")] - static abstract void LogSetAllPriority(LogPriority priority); - - [NativeFunction("SDL3", EntryPoint = "SDL_LogSetPriority")] - static abstract void LogSetPriority(int category, LogPriority priority); - [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] static abstract uint MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b @@ -4676,7 +5349,8 @@ static abstract uint MapRGB( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] static abstract uint MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b @@ -4685,7 +5359,8 @@ static abstract uint MapRGB( [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] static abstract uint MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, @@ -4696,15 +5371,62 @@ static abstract uint MapRgba( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] static abstract uint MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGB")] + static abstract uint MapSurfaceRGB( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGB")] + static abstract uint MapSurfaceRGB( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGBA")] + static abstract uint MapSurfaceRgba( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGBA")] + static abstract uint MapSurfaceRgba( + Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] + static abstract MaybeBool MaximizeWindow(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] - static abstract int MaximizeWindow(WindowHandle window); + static abstract byte MaximizeWindowRaw(WindowHandle window); [NativeFunction("SDL3", EntryPoint = "SDL_MemoryBarrierAcquireFunction")] static abstract void MemoryBarrierAcquireFunction(); @@ -4735,43 +5457,51 @@ static abstract uint MapRgba( [NativeFunction("SDL3", EntryPoint = "SDL_Metal_GetLayer")] static abstract Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] + static abstract MaybeBool MinimizeWindow(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] - static abstract int MinimizeWindow(WindowHandle window); + static abstract byte MinimizeWindowRaw(WindowHandle window); - [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] - static abstract int MixAudioFormat( + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudio")] + static abstract byte MixAudio( [NativeTypeName("Uint8 *")] byte* dst, [NativeTypeName("const Uint8 *")] byte* src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume + float volume ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] - static abstract int MixAudioFormat( + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudio")] + static abstract MaybeBool MixAudio( [NativeTypeName("Uint8 *")] Ref dst, [NativeTypeName("const Uint8 *")] Ref src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume + float volume ); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidBecomeActive")] - static abstract void OnApplicationDidBecomeActive(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterBackground")] static abstract void OnApplicationDidEnterBackground(); + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterForeground")] + static abstract void OnApplicationDidEnterForeground(); + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidReceiveMemoryWarning")] static abstract void OnApplicationDidReceiveMemoryWarning(); + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterBackground")] + static abstract void OnApplicationWillEnterBackground(); + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterForeground")] static abstract void OnApplicationWillEnterForeground(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillResignActive")] - static abstract void OnApplicationWillResignActive(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillTerminate")] static abstract void OnApplicationWillTerminate(); @@ -4807,16 +5537,16 @@ static abstract AudioStreamHandle OpenAudioDeviceStream( Ref userdata ); - [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] - static abstract CameraHandle OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCamera")] + static abstract CameraHandle OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec ); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] - static abstract CameraHandle OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCamera")] + static abstract CameraHandle OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] Ref spec ); @@ -4890,12 +5620,14 @@ static abstract StorageHandle OpenTitleStorage( [NativeTypeName("SDL_PropertiesID")] uint props ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] - static abstract int OpenURL([NativeTypeName("const char *")] sbyte* url); + static abstract byte OpenURL([NativeTypeName("const char *")] sbyte* url); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] - static abstract int OpenURL([NativeTypeName("const char *")] Ref url); + static abstract MaybeBool OpenURL([NativeTypeName("const char *")] Ref url); [NativeFunction("SDL3", EntryPoint = "SDL_OpenUserStorage")] static abstract StorageHandle OpenUserStorage( @@ -4912,11 +5644,43 @@ static abstract StorageHandle OpenUserStorage( [NativeTypeName("SDL_PropertiesID")] uint props ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OutOfMemory")] + static abstract MaybeBool OutOfMemory(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_OutOfMemory")] + static abstract byte OutOfMemoryRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] + static abstract MaybeBool PauseAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] - static abstract int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + static abstract byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioStreamDevice")] + static abstract MaybeBool PauseAudioStreamDevice(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioStreamDevice")] + static abstract byte PauseAudioStreamDeviceRaw(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] + static abstract MaybeBool PauseHaptic(HapticHandle haptic); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] - static abstract int PauseHaptic(HapticHandle haptic); + static abstract byte PauseHapticRaw(HapticHandle haptic); [NativeFunction("SDL3", EntryPoint = "SDL_PeepEvents")] static abstract int PeepEvents( @@ -4937,111 +5701,119 @@ static abstract int PeepEvents( [NativeTypeName("Uint32")] uint maxType ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] - static abstract MaybeBool PenConnected([NativeTypeName("SDL_PenID")] uint instance_id); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] - static abstract int PenConnectedRaw([NativeTypeName("SDL_PenID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] + static abstract MaybeBool PlayHapticRumble( + HapticHandle haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] - static abstract int PlayHapticRumble( + static abstract byte PlayHapticRumbleRaw( HapticHandle haptic, float strength, [NativeTypeName("Uint32")] uint length ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] - static abstract int PollEvent(Event* @event); + static abstract byte PollEvent(Event* @event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] - static abstract MaybeBool PollEvent(Ref @event); - - [NativeFunction("SDL3", EntryPoint = "SDL_PostSemaphore")] - static abstract int PostSemaphore(SemaphoreHandle sem); + static abstract MaybeBool PollEvent(Ref @event); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] - static abstract int PremultiplyAlpha( + static abstract byte PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] byte linear ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] - static abstract int PremultiplyAlpha( + static abstract MaybeBool PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] MaybeBool linear + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplySurfaceAlpha")] + static abstract byte PremultiplySurfaceAlpha( + Surface* surface, + [NativeTypeName("bool")] byte linear + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplySurfaceAlpha")] + static abstract MaybeBool PremultiplySurfaceAlpha( + Ref surface, + [NativeTypeName("bool")] MaybeBool linear ); [NativeFunction("SDL3", EntryPoint = "SDL_PumpEvents")] static abstract void PumpEvents(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] - static abstract int PushEvent(Event* @event); + static abstract byte PushEvent(Event* @event); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] - static abstract int PushEvent(Ref @event); + static abstract MaybeBool PushEvent(Ref @event); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] - static abstract int PutAudioStreamData( + static abstract byte PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] void* buf, int len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] - static abstract int PutAudioStreamData( + static abstract MaybeBool PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] Ref buf, int len ); - [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] - static abstract int QueryTexture( - TextureHandle texture, - PixelFormatEnum* format, - int* access, - int* w, - int* h - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] - static abstract int QueryTexture( - TextureHandle texture, - Ref format, - Ref access, - Ref w, - Ref h - ); - [NativeFunction("SDL3", EntryPoint = "SDL_Quit")] static abstract void Quit(); [NativeFunction("SDL3", EntryPoint = "SDL_QuitSubSystem")] - static abstract void QuitSubSystem([NativeTypeName("Uint32")] uint flags); + static abstract void QuitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] + static abstract MaybeBool RaiseWindow(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] - static abstract int RaiseWindow(WindowHandle window); + static abstract byte RaiseWindowRaw(WindowHandle window); [return: NativeTypeName("size_t")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadIO")] @@ -5060,103 +5832,124 @@ static abstract nuint ReadIO( [NativeTypeName("size_t")] nuint size ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] - static abstract int ReadS16BE( + static abstract byte ReadS16BE( IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] - static abstract MaybeBool ReadS16BE( + static abstract MaybeBool ReadS16BE( IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] - static abstract int ReadS16LE( + static abstract byte ReadS16LE( IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] - static abstract MaybeBool ReadS16LE( + static abstract MaybeBool ReadS16LE( IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] - static abstract int ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value); + static abstract byte ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] - static abstract MaybeBool ReadS32BE( + static abstract MaybeBool ReadS32BE( IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] - static abstract int ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value); + static abstract byte ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] - static abstract MaybeBool ReadS32LE( + static abstract MaybeBool ReadS32LE( IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] - static abstract int ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value); + static abstract byte ReadS64BE( + IOStreamHandle src, + [NativeTypeName("Sint64 *")] long* value + ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] - static abstract MaybeBool ReadS64BE( + static abstract MaybeBool ReadS64BE( IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] - static abstract int ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value); + static abstract byte ReadS64LE( + IOStreamHandle src, + [NativeTypeName("Sint64 *")] long* value + ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] - static abstract MaybeBool ReadS64LE( + static abstract MaybeBool ReadS64LE( IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS8")] + static abstract byte ReadS8(IOStreamHandle src, [NativeTypeName("Sint8 *")] sbyte* value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS8")] + static abstract MaybeBool ReadS8( + IOStreamHandle src, + [NativeTypeName("Sint8 *")] Ref value + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] - static abstract int ReadStorageFile( + static abstract byte ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, void* destination, [NativeTypeName("Uint64")] ulong length ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] - static abstract int ReadStorageFile( + static abstract MaybeBool ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref destination, [NativeTypeName("Uint64")] ulong length ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] - static abstract int ReadSurfacePixel( + static abstract byte ReadSurfacePixel( Surface* surface, int x, int y, @@ -5166,9 +5959,10 @@ static abstract int ReadSurfacePixel( [NativeTypeName("Uint8 *")] byte* a ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] - static abstract int ReadSurfacePixel( + static abstract MaybeBool ReadSurfacePixel( Ref surface, int x, int y, @@ -5178,98 +5972,129 @@ static abstract int ReadSurfacePixel( [NativeTypeName("Uint8 *")] Ref a ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixelFloat")] + static abstract byte ReadSurfacePixelFloat( + Surface* surface, + int x, + int y, + float* r, + float* g, + float* b, + float* a + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixelFloat")] + static abstract MaybeBool ReadSurfacePixelFloat( + Ref surface, + int x, + int y, + Ref r, + Ref g, + Ref b, + Ref a + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] - static abstract int ReadU16BE( + static abstract byte ReadU16BE( IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] - static abstract MaybeBool ReadU16BE( + static abstract MaybeBool ReadU16BE( IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] - static abstract int ReadU16LE( + static abstract byte ReadU16LE( IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] - static abstract MaybeBool ReadU16LE( + static abstract MaybeBool ReadU16LE( IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] - static abstract int ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value); + static abstract byte ReadU32BE( + IOStreamHandle src, + [NativeTypeName("Uint32 *")] uint* value + ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] - static abstract MaybeBool ReadU32BE( + static abstract MaybeBool ReadU32BE( IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] - static abstract int ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value); + static abstract byte ReadU32LE( + IOStreamHandle src, + [NativeTypeName("Uint32 *")] uint* value + ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] - static abstract MaybeBool ReadU32LE( + static abstract MaybeBool ReadU32LE( IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] - static abstract int ReadU64BE( + static abstract byte ReadU64BE( IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] - static abstract MaybeBool ReadU64BE( + static abstract MaybeBool ReadU64BE( IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] - static abstract int ReadU64LE( + static abstract byte ReadU64LE( IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] - static abstract MaybeBool ReadU64LE( + static abstract MaybeBool ReadU64LE( IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] - static abstract int ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value); + static abstract byte ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] - static abstract MaybeBool ReadU8( + static abstract MaybeBool ReadU8( IOStreamHandle src, [NativeTypeName("Uint8 *")] Ref value ); @@ -5279,86 +6104,144 @@ static abstract MaybeBool ReadU8( static abstract uint RegisterEvents(int numevents); [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] - static abstract int ReleaseCameraFrame(CameraHandle camera, Surface* frame); + static abstract void ReleaseCameraFrame(CameraHandle camera, Surface* frame); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] - static abstract int ReleaseCameraFrame(CameraHandle camera, Ref frame); + static abstract void ReleaseCameraFrame(CameraHandle camera, Ref frame); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReloadGamepadMappings")] + static abstract MaybeBool ReloadGamepadMappings(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReloadGamepadMappings")] - static abstract int ReloadGamepadMappings(); + static abstract byte ReloadGamepadMappingsRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveEventWatch")] + static abstract void RemoveEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveEventWatch")] + static abstract void RemoveEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveHintCallback")] + static abstract void RemoveHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveHintCallback")] + static abstract void RemoveHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + Ref userdata + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] - static abstract int RemovePath([NativeTypeName("const char *")] sbyte* path); + static abstract byte RemovePath([NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] - static abstract int RemovePath([NativeTypeName("const char *")] Ref path); + static abstract MaybeBool RemovePath( + [NativeTypeName("const char *")] Ref path + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] - static abstract int RemoveStoragePath( + static abstract byte RemoveStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] - static abstract int RemoveStoragePath( + static abstract MaybeBool RemoveStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref path ); - [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveSurfaceAlternateImages")] + static abstract void RemoveSurfaceAlternateImages(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveSurfaceAlternateImages")] + static abstract void RemoveSurfaceAlternateImages(Ref surface); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] - static abstract MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id); + static abstract MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] - static abstract int RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id); + static abstract byte RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] - static abstract int RenamePath( + static abstract byte RenamePath( [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] - static abstract int RenamePath( + static abstract MaybeBool RenamePath( [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] - static abstract int RenameStoragePath( + static abstract byte RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] - static abstract int RenameStoragePath( + static abstract MaybeBool RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] + static abstract MaybeBool RenderClear(RendererHandle renderer); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] - static abstract int RenderClear(RendererHandle renderer); + static abstract byte RenderClearRaw(RendererHandle renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] - static abstract MaybeBool RenderClipEnabled(RendererHandle renderer); + static abstract MaybeBool RenderClipEnabled(RendererHandle renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] - static abstract int RenderClipEnabledRaw(RendererHandle renderer); + static abstract byte RenderClipEnabledRaw(RendererHandle renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] - static abstract int RenderCoordinatesFromWindow( + static abstract byte RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -5366,9 +6249,10 @@ static abstract int RenderCoordinatesFromWindow( float* y ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] - static abstract int RenderCoordinatesFromWindow( + static abstract MaybeBool RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -5376,8 +6260,9 @@ static abstract int RenderCoordinatesFromWindow( Ref y ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] - static abstract int RenderCoordinatesToWindow( + static abstract byte RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -5385,9 +6270,10 @@ static abstract int RenderCoordinatesToWindow( float* window_y ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] - static abstract int RenderCoordinatesToWindow( + static abstract MaybeBool RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -5395,62 +6281,88 @@ static abstract int RenderCoordinatesToWindow( Ref window_y ); - [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] - static abstract int RenderFillRect( + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderDebugText")] + static abstract byte RenderDebugText( RendererHandle renderer, - [NativeTypeName("const SDL_FRect *")] FRect* rect - ); - + float x, + float y, + [NativeTypeName("const char *")] sbyte* str + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderDebugText")] + static abstract MaybeBool RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] Ref str + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] + static abstract byte RenderFillRect( + RendererHandle renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] - static abstract int RenderFillRect( + static abstract MaybeBool RenderFillRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] - static abstract int RenderFillRects( + static abstract byte RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] - static abstract int RenderFillRects( + static abstract MaybeBool RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] - static abstract int RenderGeometry( + static abstract byte RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, int num_vertices, [NativeTypeName("const int *")] int* indices, int num_indices ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] - static abstract int RenderGeometry( + static abstract MaybeBool RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_Vertex *")] Ref vertices, int num_vertices, [NativeTypeName("const int *")] Ref indices, int num_indices ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] - static abstract int RenderGeometryRaw( + static abstract byte RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const float *")] float* xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Color* color, + [NativeTypeName("const SDL_FColor *")] FColor* color, int color_stride, [NativeTypeName("const float *")] float* uv, int uv_stride, @@ -5460,14 +6372,15 @@ static abstract int RenderGeometryRaw( int size_indices ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] - static abstract int RenderGeometryRaw( + static abstract MaybeBool RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const float *")] Ref xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Ref color, + [NativeTypeName("const SDL_FColor *")] Ref color, int color_stride, [NativeTypeName("const float *")] Ref uv, int uv_stride, @@ -5477,41 +6390,20 @@ static abstract int RenderGeometryRaw( int size_indices ); - [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] - static abstract int RenderGeometryRawFloat( - RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] float* xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] FColor* color, - int color_stride, - [NativeTypeName("const float *")] float* uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] void* indices, - int num_indices, - int size_indices - ); - + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] - static abstract int RenderGeometryRawFloat( + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] + static abstract MaybeBool RenderLine( RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] Ref xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] Ref color, - int color_stride, - [NativeTypeName("const float *")] Ref uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] Ref indices, - int num_indices, - int size_indices + float x1, + float y1, + float x2, + float y2 ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] - static abstract int RenderLine( + static abstract byte RenderLineRaw( RendererHandle renderer, float x1, float y1, @@ -5519,41 +6411,57 @@ static abstract int RenderLine( float y2 ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] - static abstract int RenderLines( + static abstract byte RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] - static abstract int RenderLines( + static abstract MaybeBool RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] + static abstract MaybeBool RenderPoint(RendererHandle renderer, float x, float y); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] - static abstract int RenderPoint(RendererHandle renderer, float x, float y); + static abstract byte RenderPointRaw(RendererHandle renderer, float x, float y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] - static abstract int RenderPoints( + static abstract byte RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] - static abstract int RenderPoints( + static abstract MaybeBool RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] + static abstract MaybeBool RenderPresent(RendererHandle renderer); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] - static abstract int RenderPresent(RendererHandle renderer); + static abstract byte RenderPresentRaw(RendererHandle renderer); [NativeFunction("SDL3", EntryPoint = "SDL_RenderReadPixels")] static abstract Surface* RenderReadPixels( @@ -5568,82 +6476,140 @@ static abstract Ptr RenderReadPixels( [NativeTypeName("const SDL_Rect *")] Ref rect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] - static abstract int RenderRect( + static abstract byte RenderRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] - static abstract int RenderRect( + static abstract MaybeBool RenderRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] - static abstract int RenderRects( + static abstract byte RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] - static abstract int RenderRects( + static abstract MaybeBool RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] - static abstract int RenderTexture( + static abstract byte RenderTexture( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, [NativeTypeName("const SDL_FRect *")] FRect* dstrect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] - static abstract int RenderTexture( + static abstract MaybeBool RenderTexture( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9Grid")] + static abstract byte RenderTexture9Grid( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9Grid")] + static abstract MaybeBool RenderTexture9Grid( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, [NativeTypeName("const SDL_FRect *")] Ref dstrect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] - static abstract int RenderTextureRotated( + static abstract byte RenderTextureRotated( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, [NativeTypeName("const SDL_FRect *")] FRect* dstrect, - [NativeTypeName("const double")] double angle, + double angle, [NativeTypeName("const SDL_FPoint *")] FPoint* center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip + FlipMode flip ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] - static abstract int RenderTextureRotated( + static abstract MaybeBool RenderTextureRotated( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, [NativeTypeName("const SDL_FRect *")] Ref dstrect, - [NativeTypeName("const double")] double angle, + double angle, [NativeTypeName("const SDL_FPoint *")] Ref center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip + FlipMode flip ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureTiled")] + static abstract byte RenderTextureTiled( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureTiled")] + static abstract MaybeBool RenderTextureTiled( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + float scale, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] - static abstract MaybeBool RenderViewportSet(RendererHandle renderer); + static abstract MaybeBool RenderViewportSet(RendererHandle renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] - static abstract int RenderViewportSetRaw(RendererHandle renderer); + static abstract byte RenderViewportSetRaw(RendererHandle renderer); [NativeFunction("SDL3", EntryPoint = "SDL_ReportAssertion")] static abstract AssertState ReportAssertion( @@ -5665,14 +6631,14 @@ int line [NativeFunction("SDL3", EntryPoint = "SDL_ResetAssertionReport")] static abstract void ResetAssertionReport(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] - static abstract int ResetHint([NativeTypeName("const char *")] sbyte* name); + static abstract byte ResetHint([NativeTypeName("const char *")] sbyte* name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] - static abstract MaybeBool ResetHint([NativeTypeName("const char *")] Ref name); + static abstract MaybeBool ResetHint([NativeTypeName("const char *")] Ref name); [NativeFunction("SDL3", EntryPoint = "SDL_ResetHints")] static abstract void ResetHints(); @@ -5680,135 +6646,302 @@ int line [NativeFunction("SDL3", EntryPoint = "SDL_ResetKeyboard")] static abstract void ResetKeyboard(); + [NativeFunction("SDL3", EntryPoint = "SDL_ResetLogPriorities")] + static abstract void ResetLogPriorities(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] + static abstract MaybeBool RestoreWindow(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] - static abstract int RestoreWindow(WindowHandle window); + static abstract byte RestoreWindowRaw(WindowHandle window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] + static abstract MaybeBool ResumeAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] - static abstract int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + static abstract byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioStreamDevice")] + static abstract MaybeBool ResumeAudioStreamDevice(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioStreamDevice")] + static abstract byte ResumeAudioStreamDeviceRaw(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] + static abstract MaybeBool ResumeHaptic(HapticHandle haptic); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] - static abstract int ResumeHaptic(HapticHandle haptic); + static abstract byte ResumeHapticRaw(HapticHandle haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] + static abstract MaybeBool RumbleGamepad( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] - static abstract int RumbleGamepad( + static abstract byte RumbleGamepadRaw( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] + static abstract MaybeBool RumbleGamepadTriggers( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] - static abstract int RumbleGamepadTriggers( + static abstract byte RumbleGamepadTriggersRaw( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] + static abstract MaybeBool RumbleJoystick( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] - static abstract int RumbleJoystick( + static abstract byte RumbleJoystickRaw( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] + static abstract MaybeBool RumbleJoystickTriggers( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] - static abstract int RumbleJoystickTriggers( + static abstract byte RumbleJoystickTriggersRaw( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] + static abstract MaybeBool RunHapticEffect( + HapticHandle haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] - static abstract int RunHapticEffect( + static abstract byte RunHapticEffectRaw( HapticHandle haptic, int effect, [NativeTypeName("Uint32")] uint iterations ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] - static abstract int SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file); + static abstract byte SaveBMP( + Surface* surface, + [NativeTypeName("const char *")] sbyte* file + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] - static abstract int SaveBMP( + static abstract MaybeBool SaveBMP( Ref surface, [NativeTypeName("const char *")] Ref file ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] - static abstract int SaveBMPIO( + static abstract byte SaveBMPIO( Surface* surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] - static abstract int SaveBMPIO( + static abstract MaybeBool SaveBMPIO( Ref surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_ScaleSurface")] + static abstract Surface* ScaleSurface( + Surface* surface, + int width, + int height, + ScaleMode scaleMode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScaleSurface")] + static abstract Ptr ScaleSurface( + Ref surface, + int width, + int height, + ScaleMode scaleMode ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] - static abstract MaybeBool ScreenKeyboardShown(WindowHandle window); + static abstract MaybeBool ScreenKeyboardShown(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] - static abstract int ScreenKeyboardShownRaw(WindowHandle window); + static abstract byte ScreenKeyboardShownRaw(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] - static abstract MaybeBool ScreenSaverEnabled(); + static abstract MaybeBool ScreenSaverEnabled(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] - static abstract int ScreenSaverEnabledRaw(); + static abstract byte ScreenSaverEnabledRaw(); [return: NativeTypeName("Sint64")] [NativeFunction("SDL3", EntryPoint = "SDL_SeekIO")] static abstract long SeekIO( IOStreamHandle context, [NativeTypeName("Sint64")] long offset, - int whence + IOWhence whence ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] - static abstract int SendGamepadEffect( + static abstract byte SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] void* data, int size ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] - static abstract int SendGamepadEffect( + static abstract MaybeBool SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] Ref data, int size ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] - static abstract int SendJoystickEffect( + static abstract byte SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] void* data, int size ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] - static abstract int SendJoystickEffect( + static abstract MaybeBool SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] Ref data, int size ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickVirtualSensorData")] + static abstract byte SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] float* data, + int num_values + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickVirtualSensorData")] + static abstract MaybeBool SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] Ref data, + int num_values + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadata")] + static abstract byte SetAppMetadata( + [NativeTypeName("const char *")] sbyte* appname, + [NativeTypeName("const char *")] sbyte* appversion, + [NativeTypeName("const char *")] sbyte* appidentifier + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadata")] + static abstract MaybeBool SetAppMetadata( + [NativeTypeName("const char *")] Ref appname, + [NativeTypeName("const char *")] Ref appversion, + [NativeTypeName("const char *")] Ref appidentifier + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadataProperty")] + static abstract byte SetAppMetadataProperty( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadataProperty")] + static abstract MaybeBool SetAppMetadataProperty( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetAssertionHandler")] static abstract void SetAssertionHandler( [NativeTypeName("SDL_AssertionHandler")] AssertionHandler handler, @@ -5822,86 +6955,187 @@ static abstract void SetAssertionHandler( Ref userdata ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicInt")] + static abstract int SetAtomicInt(AtomicInt* a, int v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicInt")] + static abstract int SetAtomicInt(Ref a, int v); + + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicPointer")] + static abstract void* SetAtomicPointer(void** a, void* v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicPointer")] + static abstract Ptr SetAtomicPointer(Ref2D a, Ref v); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicU32")] + static abstract uint SetAtomicU32(AtomicU32* a, [NativeTypeName("Uint32")] uint v); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicU32")] + static abstract uint SetAtomicU32(Ref a, [NativeTypeName("Uint32")] uint v); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioDeviceGain")] + static abstract MaybeBool SetAudioDeviceGain( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + float gain + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioDeviceGain")] + static abstract byte SetAudioDeviceGainRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + float gain + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] - static abstract int SetAudioPostmixCallback( + static abstract byte SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] - static abstract int SetAudioPostmixCallback( + static abstract MaybeBool SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, Ref userdata ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] - static abstract int SetAudioStreamFormat( + static abstract byte SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] - static abstract int SetAudioStreamFormat( + static abstract MaybeBool SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] + static abstract MaybeBool SetAudioStreamFrequencyRatio( + AudioStreamHandle stream, + float ratio + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] - static abstract int SetAudioStreamFrequencyRatio(AudioStreamHandle stream, float ratio); + static abstract byte SetAudioStreamFrequencyRatioRaw(AudioStreamHandle stream, float ratio); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGain")] + static abstract MaybeBool SetAudioStreamGain(AudioStreamHandle stream, float gain); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGain")] + static abstract byte SetAudioStreamGainRaw(AudioStreamHandle stream, float gain); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] - static abstract int SetAudioStreamGetCallback( + static abstract byte SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] - static abstract int SetAudioStreamGetCallback( + static abstract MaybeBool SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamInputChannelMap")] + static abstract byte SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamInputChannelMap")] + static abstract MaybeBool SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamOutputChannelMap")] + static abstract byte SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamOutputChannelMap")] + static abstract MaybeBool SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] - static abstract int SetAudioStreamPutCallback( + static abstract byte SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] - static abstract int SetAudioStreamPutCallback( + static abstract MaybeBool SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] - static abstract int SetBooleanProperty( + static abstract byte SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int value + [NativeTypeName("bool")] byte value ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] - static abstract int SetBooleanProperty( + static abstract MaybeBool SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool value + [NativeTypeName("bool")] MaybeBool value ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] - static abstract int SetClipboardData( + static abstract byte SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, void* userdata, @@ -5909,9 +7143,10 @@ static abstract int SetClipboardData( [NativeTypeName("size_t")] nuint num_mime_types ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] - static abstract int SetClipboardData( + static abstract MaybeBool SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, Ref userdata, @@ -5919,27 +7154,61 @@ static abstract int SetClipboardData( [NativeTypeName("size_t")] nuint num_mime_types ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] - static abstract int SetClipboardText([NativeTypeName("const char *")] sbyte* text); + static abstract byte SetClipboardText([NativeTypeName("const char *")] sbyte* text); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] - static abstract int SetClipboardText([NativeTypeName("const char *")] Ref text); + static abstract MaybeBool SetClipboardText( + [NativeTypeName("const char *")] Ref text + ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCurrentThreadPriority")] + static abstract MaybeBool SetCurrentThreadPriority(ThreadPriority priority); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCurrentThreadPriority")] + static abstract byte SetCurrentThreadPriorityRaw(ThreadPriority priority); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] - static abstract int SetCursor(CursorHandle cursor); + static abstract MaybeBool SetCursor(CursorHandle cursor); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] + static abstract byte SetCursorRaw(CursorHandle cursor); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetErrorV")] + static abstract byte SetErrorV( + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetErrorV")] + static abstract MaybeBool SetErrorV( + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ); [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] static abstract void SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] static abstract void SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ); [NativeFunction("SDL3", EntryPoint = "SDL_SetEventFilter")] @@ -5955,148 +7224,293 @@ static abstract void SetEventFilter( Ref userdata ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] - static abstract int SetFloatProperty( + static abstract byte SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, float value ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] - static abstract int SetFloatProperty( + static abstract MaybeBool SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, float value ); [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] - static abstract void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled); + static abstract void SetGamepadEventsEnabled([NativeTypeName("bool")] byte enabled); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] static abstract void SetGamepadEventsEnabled( - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] + static abstract MaybeBool SetGamepadLED( + GamepadHandle gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] - static abstract int SetGamepadLED( + static abstract byte SetGamepadLEDRaw( GamepadHandle gamepad, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] - static abstract int SetGamepadMapping( + static abstract byte SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] sbyte* mapping ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] - static abstract int SetGamepadMapping( + static abstract MaybeBool SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] Ref mapping ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] + static abstract MaybeBool SetGamepadPlayerIndex( + GamepadHandle gamepad, + int player_index + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] - static abstract int SetGamepadPlayerIndex(GamepadHandle gamepad, int player_index); + static abstract byte SetGamepadPlayerIndexRaw(GamepadHandle gamepad, int player_index); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] - static abstract int SetGamepadSensorEnabled( + static abstract byte SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] - static abstract int SetGamepadSensorEnabled( + static abstract MaybeBool SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] + static abstract MaybeBool SetHapticAutocenter(HapticHandle haptic, int autocenter); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] - static abstract int SetHapticAutocenter(HapticHandle haptic, int autocenter); + static abstract byte SetHapticAutocenterRaw(HapticHandle haptic, int autocenter); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] + static abstract MaybeBool SetHapticGain(HapticHandle haptic, int gain); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] - static abstract int SetHapticGain(HapticHandle haptic, int gain); + static abstract byte SetHapticGainRaw(HapticHandle haptic, int gain); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] - static abstract int SetHint( + static abstract byte SetHint( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] - static abstract MaybeBool SetHint( + static abstract MaybeBool SetHint( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] - static abstract int SetHintWithPriority( + static abstract byte SetHintWithPriority( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value, HintPriority priority ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] - static abstract MaybeBool SetHintWithPriority( + static abstract MaybeBool SetHintWithPriority( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value, HintPriority priority ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetInitialized")] + static abstract void SetInitialized( + InitState* state, + [NativeTypeName("bool")] byte initialized + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetInitialized")] + static abstract void SetInitialized( + Ref state, + [NativeTypeName("bool")] MaybeBool initialized + ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] - static abstract void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled); + static abstract void SetJoystickEventsEnabled([NativeTypeName("bool")] byte enabled); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] static abstract void SetJoystickEventsEnabled( - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] - static abstract int SetJoystickLED( + static abstract MaybeBool SetJoystickLED( JoystickHandle joystick, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] + static abstract byte SetJoystickLEDRaw( + JoystickHandle joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] - static abstract int SetJoystickPlayerIndex(JoystickHandle joystick, int player_index); + static abstract MaybeBool SetJoystickPlayerIndex( + JoystickHandle joystick, + int player_index + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] + static abstract byte SetJoystickPlayerIndexRaw(JoystickHandle joystick, int player_index); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] + static abstract MaybeBool SetJoystickVirtualAxis( + JoystickHandle joystick, + int axis, + [NativeTypeName("Sint16")] short value + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] - static abstract int SetJoystickVirtualAxis( + static abstract byte SetJoystickVirtualAxisRaw( JoystickHandle joystick, int axis, [NativeTypeName("Sint16")] short value ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualBall")] + static abstract MaybeBool SetJoystickVirtualBall( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualBall")] + static abstract byte SetJoystickVirtualBallRaw( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] + static abstract byte SetJoystickVirtualButton( + JoystickHandle joystick, + int button, + [NativeTypeName("bool")] byte down + ); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] - static abstract int SetJoystickVirtualButton( + static abstract MaybeBool SetJoystickVirtualButton( JoystickHandle joystick, int button, + [NativeTypeName("bool")] MaybeBool down + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] + static abstract MaybeBool SetJoystickVirtualHat( + JoystickHandle joystick, + int hat, [NativeTypeName("Uint8")] byte value ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] - static abstract int SetJoystickVirtualHat( + static abstract byte SetJoystickVirtualHatRaw( JoystickHandle joystick, int hat, [NativeTypeName("Uint8")] byte value ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualTouchpad")] + static abstract byte SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] byte down, + float x, + float y, + float pressure + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualTouchpad")] + static abstract MaybeBool SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] MaybeBool down, + float x, + float y, + float pressure + ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogOutputFunction")] static abstract void SetLogOutputFunction( [NativeTypeName("SDL_LogOutputFunction")] LogOutputFunction callback, @@ -6110,121 +7524,158 @@ static abstract void SetLogOutputFunction( Ref userdata ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorities")] + static abstract void SetLogPriorities(LogPriority priority); + + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriority")] + static abstract void SetLogPriority(int category, LogPriority priority); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorityPrefix")] + static abstract byte SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] sbyte* prefix + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorityPrefix")] + static abstract MaybeBool SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] Ref prefix + ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetModState")] - static abstract void SetModState(Keymod modstate); + static abstract void SetModState([NativeTypeName("SDL_Keymod")] ushort modstate); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] - static abstract int SetNumberProperty( + static abstract byte SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("Sint64")] long value ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] - static abstract int SetNumberProperty( + static abstract MaybeBool SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("Sint64")] long value ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] - static abstract int SetPaletteColors( + static abstract byte SetPaletteColors( Palette* palette, [NativeTypeName("const SDL_Color *")] Color* colors, int firstcolor, int ncolors ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] - static abstract int SetPaletteColors( + static abstract MaybeBool SetPaletteColors( Ref palette, [NativeTypeName("const SDL_Color *")] Ref colors, int firstcolor, int ncolors ); - [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] - static abstract int SetPixelFormatPalette(PixelFormat* format, Palette* palette); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] - static abstract int SetPixelFormatPalette(Ref format, Ref palette); - - [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] - static abstract int SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] - static abstract int SetPrimarySelectionText( - [NativeTypeName("const char *")] Ref text - ); - - [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] - static abstract int SetProperty( + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerProperty")] + static abstract byte SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] - static abstract int SetProperty( + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerProperty")] + static abstract MaybeBool SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value ); - [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] - static abstract int SetPropertyWithCleanup( + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerPropertyWithCleanup")] + static abstract byte SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] - static abstract int SetPropertyWithCleanup( + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerPropertyWithCleanup")] + static abstract MaybeBool SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, Ref userdata ); - [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] - static abstract int SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] + static abstract byte SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] - static abstract int SetRelativeMouseMode( - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] + static abstract MaybeBool SetPrimarySelectionText( + [NativeTypeName("const char *")] Ref text ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] - static abstract int SetRenderClipRect( + static abstract byte SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] - static abstract int SetRenderClipRect( + static abstract MaybeBool SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] + static abstract MaybeBool SetRenderColorScale(RendererHandle renderer, float scale); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] - static abstract int SetRenderColorScale(RendererHandle renderer, float scale); + static abstract byte SetRenderColorScaleRaw(RendererHandle renderer, float scale); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] + static abstract MaybeBool SetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] - static abstract int SetRenderDrawBlendMode(RendererHandle renderer, BlendMode blendMode); + static abstract byte SetRenderDrawBlendModeRaw( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] - static abstract int SetRenderDrawColor( + static abstract MaybeBool SetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, @@ -6232,8 +7683,20 @@ static abstract int SetRenderDrawColor( [NativeTypeName("Uint8")] byte a ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] + static abstract MaybeBool SetRenderDrawColorFloat( + RendererHandle renderer, + float r, + float g, + float b, + float a + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] - static abstract int SetRenderDrawColorFloat( + static abstract byte SetRenderDrawColorFloatRaw( RendererHandle renderer, float r, float g, @@ -6241,391 +7704,692 @@ static abstract int SetRenderDrawColorFloat( float a ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] + static abstract byte SetRenderDrawColorRaw( + RendererHandle renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] + static abstract MaybeBool SetRenderLogicalPresentation( + RendererHandle renderer, + int w, + int h, + RendererLogicalPresentation mode + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] - static abstract int SetRenderLogicalPresentation( + static abstract byte SetRenderLogicalPresentationRaw( RendererHandle renderer, int w, int h, - RendererLogicalPresentation mode, - ScaleMode scale_mode + RendererLogicalPresentation mode ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] + static abstract MaybeBool SetRenderScale( + RendererHandle renderer, + float scaleX, + float scaleY + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] - static abstract int SetRenderScale(RendererHandle renderer, float scaleX, float scaleY); + static abstract byte SetRenderScaleRaw(RendererHandle renderer, float scaleX, float scaleY); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] + static abstract byte SetRenderTarget(RendererHandle renderer, Texture* texture); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] - static abstract int SetRenderTarget(RendererHandle renderer, TextureHandle texture); + static abstract MaybeBool SetRenderTarget( + RendererHandle renderer, + Ref texture + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] - static abstract int SetRenderViewport( + static abstract byte SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] - static abstract int SetRenderViewport( + static abstract MaybeBool SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] + static abstract MaybeBool SetRenderVSync(RendererHandle renderer, int vsync); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] - static abstract int SetRenderVSync(RendererHandle renderer, int vsync); + static abstract byte SetRenderVSyncRaw(RendererHandle renderer, int vsync); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetScancodeName")] + static abstract byte SetScancodeName( + Scancode scancode, + [NativeTypeName("const char *")] sbyte* name + ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetScancodeName")] + static abstract MaybeBool SetScancodeName( + Scancode scancode, + [NativeTypeName("const char *")] Ref name + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] - static abstract int SetStringProperty( + static abstract byte SetStringProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] - static abstract int SetStringProperty( + static abstract MaybeBool SetStringProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] - static abstract int SetSurfaceAlphaMod( + static abstract byte SetSurfaceAlphaMod( Surface* surface, [NativeTypeName("Uint8")] byte alpha ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] - static abstract int SetSurfaceAlphaMod( + static abstract MaybeBool SetSurfaceAlphaMod( Ref surface, [NativeTypeName("Uint8")] byte alpha ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] - static abstract int SetSurfaceBlendMode(Surface* surface, BlendMode blendMode); + static abstract byte SetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] - static abstract int SetSurfaceBlendMode(Ref surface, BlendMode blendMode); + static abstract MaybeBool SetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] - static abstract int SetSurfaceClipRect( + static abstract byte SetSurfaceClipRect( Surface* surface, [NativeTypeName("const SDL_Rect *")] Rect* rect ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] - static abstract MaybeBool SetSurfaceClipRect( + static abstract MaybeBool SetSurfaceClipRect( Ref surface, [NativeTypeName("const SDL_Rect *")] Ref rect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] - static abstract int SetSurfaceColorKey( + static abstract byte SetSurfaceColorKey( Surface* surface, - int flag, + [NativeTypeName("bool")] byte enabled, [NativeTypeName("Uint32")] uint key ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] - static abstract int SetSurfaceColorKey( + static abstract MaybeBool SetSurfaceColorKey( Ref surface, - int flag, + [NativeTypeName("bool")] MaybeBool enabled, [NativeTypeName("Uint32")] uint key ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] - static abstract int SetSurfaceColorMod( + static abstract byte SetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] - static abstract int SetSurfaceColorMod( + static abstract MaybeBool SetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] - static abstract int SetSurfaceColorspace(Surface* surface, Colorspace colorspace); + static abstract byte SetSurfaceColorspace(Surface* surface, Colorspace colorspace); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] - static abstract int SetSurfaceColorspace(Ref surface, Colorspace colorspace); + static abstract MaybeBool SetSurfaceColorspace( + Ref surface, + Colorspace colorspace + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] - static abstract int SetSurfacePalette(Surface* surface, Palette* palette); + static abstract byte SetSurfacePalette(Surface* surface, Palette* palette); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] - static abstract int SetSurfacePalette(Ref surface, Ref palette); + static abstract MaybeBool SetSurfacePalette( + Ref surface, + Ref palette + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] - static abstract int SetSurfaceRLE(Surface* surface, int flag); + static abstract byte SetSurfaceRLE(Surface* surface, [NativeTypeName("bool")] byte enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] - static abstract int SetSurfaceRLE(Ref surface, int flag); + static abstract MaybeBool SetSurfaceRLE( + Ref surface, + [NativeTypeName("bool")] MaybeBool enabled + ); - [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] - static abstract int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputArea")] + static abstract byte SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int cursor + ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] - static abstract int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect); + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputArea")] + static abstract MaybeBool SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Ref rect, + int cursor + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] + static abstract byte SetTextureAlphaMod( + Texture* texture, + [NativeTypeName("Uint8")] byte alpha + ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] - static abstract int SetTextureAlphaMod( - TextureHandle texture, + static abstract MaybeBool SetTextureAlphaMod( + Ref texture, [NativeTypeName("Uint8")] byte alpha ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] + static abstract byte SetTextureAlphaModFloat(Texture* texture, float alpha); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] - static abstract int SetTextureAlphaModFloat(TextureHandle texture, float alpha); + static abstract MaybeBool SetTextureAlphaModFloat(Ref texture, float alpha); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + static abstract byte SetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] - static abstract int SetTextureBlendMode(TextureHandle texture, BlendMode blendMode); + static abstract MaybeBool SetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] + static abstract byte SetTextureColorMod( + Texture* texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] - static abstract int SetTextureColorMod( - TextureHandle texture, + static abstract MaybeBool SetTextureColorMod( + Ref texture, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] - static abstract int SetTextureColorModFloat( - TextureHandle texture, + static abstract byte SetTextureColorModFloat(Texture* texture, float r, float g, float b); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] + static abstract MaybeBool SetTextureColorModFloat( + Ref texture, float r, float g, float b ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] - static abstract int SetTextureScaleMode(TextureHandle texture, ScaleMode scaleMode); + static abstract byte SetTextureScaleMode(Texture* texture, ScaleMode scaleMode); - [NativeFunction("SDL3", EntryPoint = "SDL_SetThreadPriority")] - static abstract int SetThreadPriority(ThreadPriority priority); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] + static abstract MaybeBool SetTextureScaleMode( + Ref texture, + ScaleMode scaleMode + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] - static abstract int SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + static abstract byte SetTLS( + [NativeTypeName("SDL_TLSID *")] AtomicInt* id, [NativeTypeName("const void *")] void* value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] - static abstract int SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + static abstract MaybeBool SetTLS( + [NativeTypeName("SDL_TLSID *")] Ref id, [NativeTypeName("const void *")] Ref value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] - static abstract int SetWindowAlwaysOnTop( + static abstract byte SetWindowAlwaysOnTop( WindowHandle window, - [NativeTypeName("SDL_bool")] int on_top + [NativeTypeName("bool")] byte on_top ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] - static abstract int SetWindowAlwaysOnTop( + static abstract MaybeBool SetWindowAlwaysOnTop( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool on_top + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAspectRatio")] + static abstract MaybeBool SetWindowAspectRatio( + WindowHandle window, + float min_aspect, + float max_aspect + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAspectRatio")] + static abstract byte SetWindowAspectRatioRaw( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool on_top + float min_aspect, + float max_aspect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] - static abstract int SetWindowBordered( + static abstract byte SetWindowBordered( WindowHandle window, - [NativeTypeName("SDL_bool")] int bordered + [NativeTypeName("bool")] byte bordered ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] - static abstract int SetWindowBordered( + static abstract MaybeBool SetWindowBordered( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool bordered + [NativeTypeName("bool")] MaybeBool bordered ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] - static abstract int SetWindowFocusable( + static abstract byte SetWindowFocusable( WindowHandle window, - [NativeTypeName("SDL_bool")] int focusable + [NativeTypeName("bool")] byte focusable ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] - static abstract int SetWindowFocusable( + static abstract MaybeBool SetWindowFocusable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool focusable + [NativeTypeName("bool")] MaybeBool focusable ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] - static abstract int SetWindowFullscreen( + static abstract byte SetWindowFullscreen( WindowHandle window, - [NativeTypeName("SDL_bool")] int fullscreen + [NativeTypeName("bool")] byte fullscreen ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] - static abstract int SetWindowFullscreen( + static abstract MaybeBool SetWindowFullscreen( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool fullscreen + [NativeTypeName("bool")] MaybeBool fullscreen ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] - static abstract int SetWindowFullscreenMode( + static abstract byte SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] - static abstract int SetWindowFullscreenMode( + static abstract MaybeBool SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] Ref mode ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] - static abstract int SetWindowHitTest( + static abstract byte SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, void* callback_data ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] - static abstract int SetWindowHitTest( + static abstract MaybeBool SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, Ref callback_data ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] - static abstract int SetWindowIcon(WindowHandle window, Surface* icon); + static abstract byte SetWindowIcon(WindowHandle window, Surface* icon); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] - static abstract int SetWindowIcon(WindowHandle window, Ref icon); - - [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowInputFocus")] - static abstract int SetWindowInputFocus(WindowHandle window); + static abstract MaybeBool SetWindowIcon(WindowHandle window, Ref icon); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] - static abstract int SetWindowKeyboardGrab( + static abstract byte SetWindowKeyboardGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] int grabbed + [NativeTypeName("bool")] byte grabbed ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] - static abstract int SetWindowKeyboardGrab( + static abstract MaybeBool SetWindowKeyboardGrab( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool grabbed + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] + static abstract MaybeBool SetWindowMaximumSize( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed + int max_w, + int max_h ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] - static abstract int SetWindowMaximumSize(WindowHandle window, int max_w, int max_h); + static abstract byte SetWindowMaximumSizeRaw(WindowHandle window, int max_w, int max_h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] + static abstract MaybeBool SetWindowMinimumSize( + WindowHandle window, + int min_w, + int min_h + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] - static abstract int SetWindowMinimumSize(WindowHandle window, int min_w, int min_h); + static abstract byte SetWindowMinimumSizeRaw(WindowHandle window, int min_w, int min_h); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModal")] + static abstract byte SetWindowModal( + WindowHandle window, + [NativeTypeName("bool")] byte modal + ); - [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModalFor")] - static abstract int SetWindowModalFor( - WindowHandle modal_window, - WindowHandle parent_window + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModal")] + static abstract MaybeBool SetWindowModal( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool modal ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] - static abstract int SetWindowMouseGrab( + static abstract byte SetWindowMouseGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] int grabbed + [NativeTypeName("bool")] byte grabbed ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] - static abstract int SetWindowMouseGrab( + static abstract MaybeBool SetWindowMouseGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed + [NativeTypeName("bool")] MaybeBool grabbed ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] - static abstract int SetWindowMouseRect( + static abstract byte SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] - static abstract int SetWindowMouseRect( + static abstract MaybeBool SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rect ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] + static abstract MaybeBool SetWindowOpacity(WindowHandle window, float opacity); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] - static abstract int SetWindowOpacity(WindowHandle window, float opacity); + static abstract byte SetWindowOpacityRaw(WindowHandle window, float opacity); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowParent")] + static abstract MaybeBool SetWindowParent(WindowHandle window, WindowHandle parent); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowParent")] + static abstract byte SetWindowParentRaw(WindowHandle window, WindowHandle parent); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] + static abstract MaybeBool SetWindowPosition(WindowHandle window, int x, int y); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] - static abstract int SetWindowPosition(WindowHandle window, int x, int y); + static abstract byte SetWindowPositionRaw(WindowHandle window, int x, int y); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] + static abstract byte SetWindowRelativeMouseMode( + WindowHandle window, + [NativeTypeName("bool")] byte enabled + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] + static abstract MaybeBool SetWindowRelativeMouseMode( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool enabled + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] - static abstract int SetWindowResizable( + static abstract byte SetWindowResizable( WindowHandle window, - [NativeTypeName("SDL_bool")] int resizable + [NativeTypeName("bool")] byte resizable ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] - static abstract int SetWindowResizable( + static abstract MaybeBool SetWindowResizable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool resizable + [NativeTypeName("bool")] MaybeBool resizable ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] - static abstract int SetWindowShape(WindowHandle window, Surface* shape); + static abstract byte SetWindowShape(WindowHandle window, Surface* shape); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] - static abstract int SetWindowShape(WindowHandle window, Ref shape); + static abstract MaybeBool SetWindowShape(WindowHandle window, Ref shape); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] + static abstract MaybeBool SetWindowSize(WindowHandle window, int w, int h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] - static abstract int SetWindowSize(WindowHandle window, int w, int h); + static abstract byte SetWindowSizeRaw(WindowHandle window, int w, int h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSurfaceVSync")] + static abstract MaybeBool SetWindowSurfaceVSync(WindowHandle window, int vsync); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSurfaceVSync")] + static abstract byte SetWindowSurfaceVSyncRaw(WindowHandle window, int vsync); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] - static abstract int SetWindowTitle( + static abstract byte SetWindowTitle( WindowHandle window, [NativeTypeName("const char *")] sbyte* title ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] - static abstract int SetWindowTitle( + static abstract MaybeBool SetWindowTitle( WindowHandle window, [NativeTypeName("const char *")] Ref title ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldInit")] + static abstract byte ShouldInit(InitState* state); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldInit")] + static abstract MaybeBool ShouldInit(Ref state); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldQuit")] + static abstract byte ShouldQuit(InitState* state); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldQuit")] + static abstract MaybeBool ShouldQuit(Ref state); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] + static abstract MaybeBool ShowCursor(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] - static abstract int ShowCursor(); + static abstract byte ShowCursorRaw(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] - static abstract int ShowMessageBox( + static abstract byte ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, int* buttonid ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] - static abstract int ShowMessageBox( + static abstract MaybeBool ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, Ref buttonid ); @@ -6636,8 +8400,9 @@ static abstract void ShowOpenFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ); [Transformed] @@ -6647,8 +8412,9 @@ static abstract void ShowOpenFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ); [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFolderDialog")] @@ -6657,7 +8423,7 @@ static abstract void ShowOpenFolderDialog( void* userdata, WindowHandle window, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ); [Transformed] @@ -6667,7 +8433,7 @@ static abstract void ShowOpenFolderDialog( Ref userdata, WindowHandle window, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ); [NativeFunction("SDL3", EntryPoint = "SDL_ShowSaveFileDialog")] @@ -6676,6 +8442,7 @@ static abstract void ShowSaveFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location ); @@ -6686,115 +8453,177 @@ static abstract void ShowSaveFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] - static abstract int ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + static abstract byte ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] sbyte* title, [NativeTypeName("const char *")] sbyte* message, WindowHandle window ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] - static abstract int ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + static abstract MaybeBool ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] Ref title, [NativeTypeName("const char *")] Ref message, WindowHandle window ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] + static abstract MaybeBool ShowWindow(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] - static abstract int ShowWindow(WindowHandle window); + static abstract byte ShowWindowRaw(WindowHandle window); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] - static abstract int ShowWindowSystemMenu(WindowHandle window, int x, int y); + static abstract MaybeBool ShowWindowSystemMenu(WindowHandle window, int x, int y); - [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] - static abstract int SignalCondition(ConditionHandle cond); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] + static abstract byte ShowWindowSystemMenuRaw(WindowHandle window, int x, int y); - [return: NativeTypeName("size_t")] - [NativeFunction("SDL3", EntryPoint = "SDL_SIMDGetAlignment")] - static abstract nuint SimdGetAlignment(); + [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] + static abstract void SignalCondition(ConditionHandle cond); - [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] - static abstract int SoftStretch( - Surface* src, - [NativeTypeName("const SDL_Rect *")] Rect* srcrect, - Surface* dst, - [NativeTypeName("const SDL_Rect *")] Rect* dstrect, - ScaleMode scaleMode - ); + [NativeFunction("SDL3", EntryPoint = "SDL_SignalSemaphore")] + static abstract void SignalSemaphore(SemaphoreHandle sem); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] - static abstract int SoftStretch( - Ref src, - [NativeTypeName("const SDL_Rect *")] Ref srcrect, - Ref dst, - [NativeTypeName("const SDL_Rect *")] Ref dstrect, - ScaleMode scaleMode - ); + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] + static abstract MaybeBool StartTextInput(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] - static abstract void StartTextInput(); + static abstract byte StartTextInputRaw(WindowHandle window); - [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] - static abstract int StopHapticEffect(HapticHandle haptic, int effect); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInputWithProperties")] + static abstract MaybeBool StartTextInputWithProperties( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ); - [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] - static abstract int StopHapticEffects(HapticHandle haptic); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInputWithProperties")] + static abstract byte StartTextInputWithPropertiesRaw( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + static abstract MaybeBool StopHapticEffect(HapticHandle haptic, int effect); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + static abstract byte StopHapticEffectRaw(HapticHandle haptic, int effect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + static abstract MaybeBool StopHapticEffects(HapticHandle haptic); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + static abstract byte StopHapticEffectsRaw(HapticHandle haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] + static abstract MaybeBool StopHapticRumble(HapticHandle haptic); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] - static abstract int StopHapticRumble(HapticHandle haptic); + static abstract byte StopHapticRumbleRaw(HapticHandle haptic); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopTextInput")] + static abstract MaybeBool StopTextInput(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopTextInput")] - static abstract void StopTextInput(); + static abstract byte StopTextInputRaw(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] - static abstract MaybeBool StorageReady(StorageHandle storage); + static abstract MaybeBool StorageReady(StorageHandle storage); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] - static abstract int StorageReadyRaw(StorageHandle storage); + static abstract byte StorageReadyRaw(StorageHandle storage); + + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] + static abstract Guid StringToGuid([NativeTypeName("const char *")] sbyte* pchGUID); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] + static abstract Guid StringToGuid([NativeTypeName("const char *")] Ref pchGUID); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasAlternateImages")] + static abstract byte SurfaceHasAlternateImages(Surface* surface); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasAlternateImages")] + static abstract MaybeBool SurfaceHasAlternateImages(Ref surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] - static abstract int SurfaceHasColorKey(Surface* surface); + static abstract byte SurfaceHasColorKey(Surface* surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] - static abstract MaybeBool SurfaceHasColorKey(Ref surface); + static abstract MaybeBool SurfaceHasColorKey(Ref surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] - static abstract int SurfaceHasRLE(Surface* surface); + static abstract byte SurfaceHasRLE(Surface* surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] - static abstract MaybeBool SurfaceHasRLE(Ref surface); + static abstract MaybeBool SurfaceHasRLE(Ref surface); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] + static abstract MaybeBool SyncWindow(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] - static abstract int SyncWindow(WindowHandle window); + static abstract byte SyncWindowRaw(WindowHandle window); [return: NativeTypeName("Sint64")] [NativeFunction("SDL3", EntryPoint = "SDL_TellIO")] static abstract long TellIO(IOStreamHandle context); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] - static abstract MaybeBool TextInputActive(); + static abstract MaybeBool TextInputActive(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] - static abstract int TextInputActiveRaw(); + static abstract byte TextInputActiveRaw(WindowHandle window); [return: NativeTypeName("SDL_Time")] [NativeFunction("SDL3", EntryPoint = "SDL_TimeFromWindows")] @@ -6803,19 +8632,21 @@ static abstract long TimeFromWindows( [NativeTypeName("Uint32")] uint dwHighDateTime ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] - static abstract int TimeToDateTime( + static abstract byte TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, DateTime* dt, - [NativeTypeName("SDL_bool")] int localTime + [NativeTypeName("bool")] byte localTime ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] - static abstract int TimeToDateTime( + static abstract MaybeBool TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, Ref dt, - [NativeTypeName("SDL_bool")] MaybeBool localTime + [NativeTypeName("bool")] MaybeBool localTime ); [NativeFunction("SDL3", EntryPoint = "SDL_TimeToWindows")] @@ -6833,28 +8664,52 @@ static abstract void TimeToWindows( [NativeTypeName("Uint32 *")] Ref dwHighDateTime ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] + static abstract MaybeBool TryLockMutex(MutexHandle mutex); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] - static abstract int TryLockMutex(MutexHandle mutex); + static abstract byte TryLockMutexRaw(MutexHandle mutex); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] + static abstract MaybeBool TryLockRWLockForReading(RWLockHandle rwlock); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] - static abstract int TryLockRWLockForReading(RWLockHandle rwlock); + static abstract byte TryLockRWLockForReadingRaw(RWLockHandle rwlock); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] + static abstract MaybeBool TryLockRWLockForWriting(RWLockHandle rwlock); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] - static abstract int TryLockRWLockForWriting(RWLockHandle rwlock); + static abstract byte TryLockRWLockForWritingRaw(RWLockHandle rwlock); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] - static abstract int TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); + static abstract byte TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] - static abstract MaybeBool TryLockSpinlock( + static abstract MaybeBool TryLockSpinlock( [NativeTypeName("SDL_SpinLock *")] Ref @lock ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] + static abstract MaybeBool TryWaitSemaphore(SemaphoreHandle sem); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] - static abstract int TryWaitSemaphore(SemaphoreHandle sem); + static abstract byte TryWaitSemaphoreRaw(SemaphoreHandle sem); [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStream")] static abstract void UnbindAudioStream(AudioStreamHandle stream); @@ -6867,14 +8722,16 @@ static abstract MaybeBool TryLockSpinlock( static abstract void UnbindAudioStreams(Ref streams, int num_streams); [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] - static abstract void UnloadObject(void* handle); + static abstract void UnloadObject(SharedObjectHandle handle); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] - static abstract void UnloadObject(Ref handle); + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] + static abstract MaybeBool UnlockAudioStream(AudioStreamHandle stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] - static abstract int UnlockAudioStream(AudioStreamHandle stream); + static abstract byte UnlockAudioStreamRaw(AudioStreamHandle stream); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockJoysticks")] static abstract void UnlockJoysticks(); @@ -6903,21 +8760,27 @@ static abstract MaybeBool TryLockSpinlock( static abstract void UnlockSurface(Ref surface); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] - static abstract void UnlockTexture(TextureHandle texture); + static abstract void UnlockTexture(Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] + static abstract void UnlockTexture(Ref texture); [NativeFunction("SDL3", EntryPoint = "SDL_UpdateGamepads")] static abstract void UpdateGamepads(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] - static abstract int UpdateHapticEffect( + static abstract byte UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] - static abstract int UpdateHapticEffect( + static abstract MaybeBool UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] Ref data @@ -6926,9 +8789,10 @@ static abstract int UpdateHapticEffect( [NativeFunction("SDL3", EntryPoint = "SDL_UpdateJoysticks")] static abstract void UpdateJoysticks(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] - static abstract int UpdateNVTexture( - TextureHandle texture, + static abstract byte UpdateNVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -6936,10 +8800,11 @@ static abstract int UpdateNVTexture( int UVpitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] - static abstract int UpdateNVTexture( - TextureHandle texture, + static abstract MaybeBool UpdateNVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -6950,44 +8815,55 @@ int UVpitch [NativeFunction("SDL3", EntryPoint = "SDL_UpdateSensors")] static abstract void UpdateSensors(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] - static abstract int UpdateTexture( - TextureHandle texture, + static abstract byte UpdateTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const void *")] void* pixels, int pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] - static abstract int UpdateTexture( - TextureHandle texture, + static abstract MaybeBool UpdateTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const void *")] Ref pixels, int pitch ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] + static abstract MaybeBool UpdateWindowSurface(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] - static abstract int UpdateWindowSurface(WindowHandle window); + static abstract byte UpdateWindowSurfaceRaw(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] - static abstract int UpdateWindowSurfaceRects( + static abstract byte UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rects, int numrects ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] - static abstract int UpdateWindowSurfaceRects( + static abstract MaybeBool UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rects, int numrects ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] - static abstract int UpdateYUVTexture( - TextureHandle texture, + static abstract byte UpdateYUVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -6997,10 +8873,11 @@ static abstract int UpdateYUVTexture( int Vpitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] - static abstract int UpdateYUVTexture( - TextureHandle texture, + static abstract MaybeBool UpdateYUVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -7011,44 +8888,63 @@ int Vpitch ); [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] - static abstract int WaitCondition(ConditionHandle cond, MutexHandle mutex); + static abstract void WaitCondition(ConditionHandle cond, MutexHandle mutex); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] + static abstract MaybeBool WaitConditionTimeout( + ConditionHandle cond, + MutexHandle mutex, + [NativeTypeName("Sint32")] int timeoutMS + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] - static abstract int WaitConditionTimeout( + static abstract byte WaitConditionTimeoutRaw( ConditionHandle cond, MutexHandle mutex, [NativeTypeName("Sint32")] int timeoutMS ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] - static abstract int WaitEvent(Event* @event); + static abstract byte WaitEvent(Event* @event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] - static abstract MaybeBool WaitEvent(Ref @event); + static abstract MaybeBool WaitEvent(Ref @event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] - static abstract int WaitEventTimeout( + static abstract byte WaitEventTimeout( Event* @event, [NativeTypeName("Sint32")] int timeoutMS ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] - static abstract MaybeBool WaitEventTimeout( + static abstract MaybeBool WaitEventTimeout( Ref @event, [NativeTypeName("Sint32")] int timeoutMS ); [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphore")] - static abstract int WaitSemaphore(SemaphoreHandle sem); + static abstract void WaitSemaphore(SemaphoreHandle sem); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] + static abstract MaybeBool WaitSemaphoreTimeout( + SemaphoreHandle sem, + [NativeTypeName("Sint32")] int timeoutMS + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] - static abstract int WaitSemaphoreTimeout( + static abstract byte WaitSemaphoreTimeoutRaw( SemaphoreHandle sem, [NativeTypeName("Sint32")] int timeoutMS ); @@ -7060,24 +8956,30 @@ static abstract int WaitSemaphoreTimeout( [NativeFunction("SDL3", EntryPoint = "SDL_WaitThread")] static abstract void WaitThread(ThreadHandle thread, Ref status); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseGlobal")] + static abstract MaybeBool WarpMouseGlobal(float x, float y); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseGlobal")] - static abstract int WarpMouseGlobal(float x, float y); + static abstract byte WarpMouseGlobalRaw(float x, float y); [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseInWindow")] static abstract void WarpMouseInWindow(WindowHandle window, float x, float y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_InitFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_WasInit")] - static abstract uint WasInit([NativeTypeName("Uint32")] uint flags); + static abstract uint WasInit([NativeTypeName("SDL_InitFlags")] uint flags); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] - static abstract MaybeBool WindowHasSurface(WindowHandle window); + static abstract MaybeBool WindowHasSurface(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] - static abstract int WindowHasSurfaceRaw(WindowHandle window); + static abstract byte WindowHasSurfaceRaw(WindowHandle window); [return: NativeTypeName("size_t")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteIO")] @@ -7096,208 +8998,278 @@ static abstract nuint WriteIO( [NativeTypeName("size_t")] nuint size ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] - static abstract MaybeBool WriteS16BE( + static abstract MaybeBool WriteS16BE( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] - static abstract int WriteS16BERaw( + static abstract byte WriteS16BERaw( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] - static abstract MaybeBool WriteS16LE( + static abstract MaybeBool WriteS16LE( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] - static abstract int WriteS16LERaw( + static abstract byte WriteS16LERaw( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] - static abstract MaybeBool WriteS32BE( + static abstract MaybeBool WriteS32BE( IOStreamHandle dst, [NativeTypeName("Sint32")] int value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] - static abstract int WriteS32BERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value); + static abstract byte WriteS32BERaw( + IOStreamHandle dst, + [NativeTypeName("Sint32")] int value + ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] - static abstract MaybeBool WriteS32LE( + static abstract MaybeBool WriteS32LE( IOStreamHandle dst, [NativeTypeName("Sint32")] int value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] - static abstract int WriteS32LERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value); + static abstract byte WriteS32LERaw( + IOStreamHandle dst, + [NativeTypeName("Sint32")] int value + ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] - static abstract MaybeBool WriteS64BE( + static abstract MaybeBool WriteS64BE( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] - static abstract int WriteS64BERaw( + static abstract byte WriteS64BERaw( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] - static abstract MaybeBool WriteS64LE( + static abstract MaybeBool WriteS64LE( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] - static abstract int WriteS64LERaw( + static abstract byte WriteS64LERaw( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS8")] + static abstract MaybeBool WriteS8( + IOStreamHandle dst, + [NativeTypeName("Sint8")] sbyte value + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS8")] + static abstract byte WriteS8Raw(IOStreamHandle dst, [NativeTypeName("Sint8")] sbyte value); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] - static abstract int WriteStorageFile( + static abstract byte WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const void *")] void* source, [NativeTypeName("Uint64")] ulong length ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] - static abstract int WriteStorageFile( + static abstract MaybeBool WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const void *")] Ref source, [NativeTypeName("Uint64")] ulong length ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixel")] + static abstract byte WriteSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixel")] + static abstract MaybeBool WriteSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixelFloat")] + static abstract byte WriteSurfacePixelFloat( + Surface* surface, + int x, + int y, + float r, + float g, + float b, + float a + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixelFloat")] + static abstract MaybeBool WriteSurfacePixelFloat( + Ref surface, + int x, + int y, + float r, + float g, + float b, + float a + ); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] - static abstract MaybeBool WriteU16BE( + static abstract MaybeBool WriteU16BE( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] - static abstract int WriteU16BERaw( + static abstract byte WriteU16BERaw( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] - static abstract MaybeBool WriteU16LE( + static abstract MaybeBool WriteU16LE( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] - static abstract int WriteU16LERaw( + static abstract byte WriteU16LERaw( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] - static abstract MaybeBool WriteU32BE( + static abstract MaybeBool WriteU32BE( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] - static abstract int WriteU32BERaw( + static abstract byte WriteU32BERaw( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] - static abstract MaybeBool WriteU32LE( + static abstract MaybeBool WriteU32LE( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] - static abstract int WriteU32LERaw( + static abstract byte WriteU32LERaw( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] - static abstract MaybeBool WriteU64BE( + static abstract MaybeBool WriteU64BE( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] - static abstract int WriteU64BERaw( + static abstract byte WriteU64BERaw( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] - static abstract MaybeBool WriteU64LE( + static abstract MaybeBool WriteU64LE( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] - static abstract int WriteU64LERaw( + static abstract byte WriteU64LERaw( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] - static abstract MaybeBool WriteU8( + static abstract MaybeBool WriteU8( IOStreamHandle dst, [NativeTypeName("Uint8")] byte value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] - static abstract int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value); + static abstract byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value); } [NativeFunction("SDL3", EntryPoint = "SDL_AcquireCameraFrame")] @@ -7313,12 +9285,24 @@ Ptr AcquireCameraFrame( [NativeTypeName("Uint64 *")] Ref timestampNS ); + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] + int AddAtomicInt(AtomicInt* a, int v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] + int AddAtomicInt(Ref a, int v); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] - int AddEventWatch([NativeTypeName("SDL_EventFilter")] EventFilter filter, void* userdata); + byte AddEventWatch([NativeTypeName("SDL_EventFilter")] EventFilter filter, void* userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] - int AddEventWatch([NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata); + MaybeBool AddEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + Ref userdata + ); [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMapping")] int AddGamepadMapping([NativeTypeName("const char *")] sbyte* mapping); @@ -7335,36 +9319,47 @@ Ptr AcquireCameraFrame( int AddGamepadMappingsFromFile([NativeTypeName("const char *")] Ref file); [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] - int AddGamepadMappingsFromIO(IOStreamHandle src, [NativeTypeName("SDL_bool")] int closeio); + int AddGamepadMappingsFromIO(IOStreamHandle src, [NativeTypeName("bool")] byte closeio); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] int AddGamepadMappingsFromIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] - int AddHintCallback( + byte AddHintCallback( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] - int AddHintCallback( + MaybeBool AddHintCallback( [NativeTypeName("const char *")] Ref name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, Ref userdata ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddSurfaceAlternateImage")] + byte AddSurfaceAlternateImage(Surface* surface, Surface* image); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddSurfaceAlternateImage")] + MaybeBool AddSurfaceAlternateImage(Ref surface, Ref image); + [return: NativeTypeName("SDL_TimerID")] [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] uint AddTimer( [NativeTypeName("Uint32")] uint interval, [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - void* param2 + void* userdata ); [return: NativeTypeName("SDL_TimerID")] @@ -7373,176 +9368,234 @@ uint AddTimer( uint AddTimer( [NativeTypeName("Uint32")] uint interval, [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - Ref param2 + Ref userdata + ); + + [return: NativeTypeName("SDL_TimerID")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimerNS")] + uint AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + void* userdata ); + [return: NativeTypeName("SDL_TimerID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimerNS")] + uint AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + Ref userdata + ); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] - int AddVulkanRenderSemaphores( + MaybeBool AddVulkanRenderSemaphores( RendererHandle renderer, [NativeTypeName("Uint32")] uint wait_stage_mask, [NativeTypeName("Sint64")] long wait_semaphore, [NativeTypeName("Sint64")] long signal_semaphore ); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AllocateEventMemory")] - Ptr AllocateEventMemory([NativeTypeName("size_t")] nuint size); - - [NativeFunction("SDL3", EntryPoint = "SDL_AllocateEventMemory")] - void* AllocateEventMemoryRaw([NativeTypeName("size_t")] nuint size); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] - int AtomicAdd(AtomicInt* a, int v); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] - int AtomicAdd(Ref a, int v); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwap")] - int AtomicCompareAndSwap(AtomicInt* a, int oldval, int newval); - - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwap")] - MaybeBool AtomicCompareAndSwap(Ref a, int oldval, int newval); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwapPointer")] - int AtomicCompareAndSwapPointer(void** a, void* oldval, void* newval); - - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwapPointer")] - MaybeBool AtomicCompareAndSwapPointer(Ref2D a, Ref oldval, Ref newval); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] - int AtomicGet(AtomicInt* a); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] - int AtomicGet(Ref a); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] - void* AtomicGetPtr(void** a); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] - Ptr AtomicGetPtr(Ref2D a); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] - int AtomicSet(AtomicInt* a, int v); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] - int AtomicSet(Ref a, int v); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] - void* AtomicSetPtr(void** a, void* v); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] - Ptr AtomicSetPtr(Ref2D a, Ref v); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] + byte AddVulkanRenderSemaphoresRaw( + RendererHandle renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ); [return: NativeTypeName("SDL_JoystickID")] [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystick")] - uint AttachVirtualJoystick(JoystickType type, int naxes, int nbuttons, int nhats); - - [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] - uint AttachVirtualJoystickEx( + uint AttachVirtualJoystick( [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc ); [return: NativeTypeName("SDL_JoystickID")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] - uint AttachVirtualJoystickEx( + [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystick")] + uint AttachVirtualJoystick( [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] - MaybeBool AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint dev); + MaybeBool AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint dev); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] - int AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] + MaybeBool BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioStreamHandle stream + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] - int BindAudioStream([NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioStreamHandle stream); + byte BindAudioStreamRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioStreamHandle stream + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] - int BindAudioStreams( + byte BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioStreamHandle* streams, int num_streams ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] - int BindAudioStreams( + MaybeBool BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, Ref streams, int num_streams ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] - int BlitSurface( + byte BlitSurface( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, - Rect* dstrect + [NativeTypeName("const SDL_Rect *")] Rect* dstrect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] - int BlitSurface( + MaybeBool BlitSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface9Grid")] + byte BlitSurface9Grid( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface9Grid")] + MaybeBool BlitSurface9Grid( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, Ref dst, - Ref dstrect + [NativeTypeName("const SDL_Rect *")] Ref dstrect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] - int BlitSurfaceScaled( + byte BlitSurfaceScaled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, - Rect* dstrect, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, ScaleMode scaleMode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] - int BlitSurfaceScaled( + MaybeBool BlitSurfaceScaled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, - Ref dstrect, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, ScaleMode scaleMode ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiled")] + byte BlitSurfaceTiled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiled")] + MaybeBool BlitSurfaceTiled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiledWithScale")] + byte BlitSurfaceTiledWithScale( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + float scale, + ScaleMode scaleMode, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiledWithScale")] + MaybeBool BlitSurfaceTiledWithScale( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + float scale, + ScaleMode scaleMode, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] - int BlitSurfaceUnchecked( + byte BlitSurfaceUnchecked( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* dstrect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] - int BlitSurfaceUnchecked( + MaybeBool BlitSurfaceUnchecked( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, [NativeTypeName("const SDL_Rect *")] Ref dstrect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] - int BlitSurfaceUncheckedScaled( + byte BlitSurfaceUncheckedScaled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, @@ -7550,9 +9603,10 @@ int BlitSurfaceUncheckedScaled( ScaleMode scaleMode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] - int BlitSurfaceUncheckedScaled( + MaybeBool BlitSurfaceUncheckedScaled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, @@ -7561,43 +9615,80 @@ ScaleMode scaleMode ); [NativeFunction("SDL3", EntryPoint = "SDL_BroadcastCondition")] - int BroadcastCondition(ConditionHandle cond); + void BroadcastCondition(ConditionHandle cond); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] - int CaptureMouse([NativeTypeName("SDL_bool")] int enabled); + byte CaptureMouse([NativeTypeName("bool")] byte enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] - int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled); + MaybeBool CaptureMouse([NativeTypeName("bool")] MaybeBool enabled); [NativeFunction("SDL3", EntryPoint = "SDL_CleanupTLS")] void CleanupTLS(); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] + MaybeBool ClearAudioStream(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] - int ClearAudioStream(AudioStreamHandle stream); + byte ClearAudioStreamRaw(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearClipboardData")] + MaybeBool ClearClipboardData(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearClipboardData")] - int ClearClipboardData(); + byte ClearClipboardDataRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearComposition")] + MaybeBool ClearComposition(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearComposition")] - void ClearComposition(); + byte ClearCompositionRaw(WindowHandle window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearError")] + MaybeBool ClearError(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearError")] - void ClearError(); + byte ClearErrorRaw(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] - int ClearProperty( + byte ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] - int ClearProperty( + MaybeBool ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearSurface")] + byte ClearSurface(Surface* surface, float r, float g, float b, float a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearSurface")] + MaybeBool ClearSurface(Ref surface, float r, float g, float b, float a); + [NativeFunction("SDL3", EntryPoint = "SDL_CloseAudioDevice")] void CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid); @@ -7610,8 +9701,14 @@ int ClearProperty( [NativeFunction("SDL3", EntryPoint = "SDL_CloseHaptic")] void CloseHaptic(HapticHandle haptic); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] + MaybeBool CloseIO(IOStreamHandle context); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] - int CloseIO(IOStreamHandle context); + byte CloseIORaw(IOStreamHandle context); [NativeFunction("SDL3", EntryPoint = "SDL_CloseJoystick")] void CloseJoystick(JoystickHandle joystick); @@ -7619,11 +9716,53 @@ int ClearProperty( [NativeFunction("SDL3", EntryPoint = "SDL_CloseSensor")] void CloseSensor(SensorHandle sensor); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] + MaybeBool CloseStorage(StorageHandle storage); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] - int CloseStorage(StorageHandle storage); + byte CloseStorageRaw(StorageHandle storage); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicInt")] + byte CompareAndSwapAtomicInt(AtomicInt* a, int oldval, int newval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicInt")] + MaybeBool CompareAndSwapAtomicInt(Ref a, int oldval, int newval); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicPointer")] + byte CompareAndSwapAtomicPointer(void** a, void* oldval, void* newval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicPointer")] + MaybeBool CompareAndSwapAtomicPointer(Ref2D a, Ref oldval, Ref newval); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicU32")] + byte CompareAndSwapAtomicU32( + AtomicU32* a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicU32")] + MaybeBool CompareAndSwapAtomicU32( + Ref a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ); + + [return: NativeTypeName("SDL_BlendMode")] [NativeFunction("SDL3", EntryPoint = "SDL_ComposeCustomBlendMode")] - BlendMode ComposeCustomBlendMode( + uint ComposeCustomBlendMode( BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendOperation colorOperation, @@ -7632,8 +9771,9 @@ BlendMode ComposeCustomBlendMode( BlendOperation alphaOperation ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] - int ConvertAudioSamples( + byte ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const Uint8 *")] byte* src_data, int src_len, @@ -7642,9 +9782,10 @@ int ConvertAudioSamples( int* dst_len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] - int ConvertAudioSamples( + MaybeBool ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const Uint8 *")] Ref src_data, int src_len, @@ -7653,65 +9794,71 @@ int ConvertAudioSamples( Ref dst_len ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] - int ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event); + byte ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] - int ConvertEventToRenderCoordinates(RendererHandle renderer, Ref @event); + MaybeBool ConvertEventToRenderCoordinates(RendererHandle renderer, Ref @event); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] - int ConvertPixels( + byte ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, int dst_pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] - int ConvertPixels( + MaybeBool ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, int dst_pitch ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] - int ConvertPixelsAndColorspace( + byte ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, void* dst, int dst_pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] - int ConvertPixelsAndColorspace( + MaybeBool ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, Ref dst, @@ -7719,48 +9866,78 @@ int dst_pitch ); [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurface")] - Surface* ConvertSurface( - Surface* surface, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format - ); + Surface* ConvertSurface(Surface* surface, PixelFormat format); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurface")] - Ptr ConvertSurface( - Ref surface, - [NativeTypeName("const SDL_PixelFormat *")] Ref format - ); + Ptr ConvertSurface(Ref surface, PixelFormat format); - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] - Surface* ConvertSurfaceFormat(Surface* surface, PixelFormatEnum pixel_format); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] - Ptr ConvertSurfaceFormat(Ref surface, PixelFormatEnum pixel_format); - - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] - Surface* ConvertSurfaceFormatAndColorspace( + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceAndColorspace")] + Surface* ConvertSurfaceAndColorspace( Surface* surface, - PixelFormatEnum pixel_format, + PixelFormat format, + Palette* palette, Colorspace colorspace, [NativeTypeName("SDL_PropertiesID")] uint props ); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] - Ptr ConvertSurfaceFormatAndColorspace( + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceAndColorspace")] + Ptr ConvertSurfaceAndColorspace( Ref surface, - PixelFormatEnum pixel_format, + PixelFormat format, + Ref palette, Colorspace colorspace, [NativeTypeName("SDL_PropertiesID")] uint props ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyFile")] + byte CopyFile( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyFile")] + MaybeBool CopyFile( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyProperties")] + MaybeBool CopyProperties( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CopyProperties")] - int CopyProperties( + byte CopyPropertiesRaw( [NativeTypeName("SDL_PropertiesID")] uint src, [NativeTypeName("SDL_PropertiesID")] uint dst ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyStorageFile")] + byte CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyStorageFile")] + MaybeBool CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ); + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] AudioStreamHandle CreateAudioStream( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, @@ -7805,12 +9982,14 @@ CursorHandle CreateCursor( int hot_y ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] - int CreateDirectory([NativeTypeName("const char *")] sbyte* path); + byte CreateDirectory([NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] - int CreateDirectory([NativeTypeName("const char *")] Ref path); + MaybeBool CreateDirectory([NativeTypeName("const char *")] Ref path); [NativeFunction("SDL3", EntryPoint = "SDL_CreateHapticEffect")] int CreateHapticEffect( @@ -7835,13 +10014,6 @@ int CreateHapticEffect( [NativeFunction("SDL3", EntryPoint = "SDL_CreatePalette")] Palette* CreatePaletteRaw(int ncolors); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePixelFormat")] - Ptr CreatePixelFormat(PixelFormatEnum pixel_format); - - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePixelFormat")] - PixelFormat* CreatePixelFormatRaw(PixelFormatEnum pixel_format); - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePopupWindow")] WindowHandle CreatePopupWindow( WindowHandle parent, @@ -7849,7 +10021,7 @@ WindowHandle CreatePopupWindow( int offset_y, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ); [return: NativeTypeName("SDL_PropertiesID")] @@ -7859,16 +10031,14 @@ WindowHandle CreatePopupWindow( [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] RendererHandle CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("Uint32")] uint flags + [NativeTypeName("const char *")] sbyte* name ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] RendererHandle CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("Uint32")] uint flags + [NativeTypeName("const char *")] Ref name ); [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] @@ -7887,109 +10057,122 @@ RendererHandle CreateRenderer( [NativeFunction("SDL3", EntryPoint = "SDL_CreateSoftwareRenderer")] RendererHandle CreateSoftwareRenderer(Ref surface); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] - int CreateStorageDirectory(StorageHandle storage, [NativeTypeName("const char *")] sbyte* path); + byte CreateStorageDirectory( + StorageHandle storage, + [NativeTypeName("const char *")] sbyte* path + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] - int CreateStorageDirectory( + MaybeBool CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] - Ptr CreateSurface(int width, int height, PixelFormatEnum format); + Ptr CreateSurface(int width, int height, PixelFormat format); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] - Surface* CreateSurfaceFrom( - void* pixels, - int width, - int height, - int pitch, - PixelFormatEnum format - ); + Surface* CreateSurfaceFrom(int width, int height, PixelFormat format, void* pixels, int pitch); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] Ptr CreateSurfaceFrom( - Ref pixels, int width, int height, - int pitch, - PixelFormatEnum format + PixelFormat format, + Ref pixels, + int pitch ); + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfacePalette")] + Palette* CreateSurfacePalette(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfacePalette")] + Ptr CreateSurfacePalette(Ref surface); + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] - Surface* CreateSurfaceRaw(int width, int height, PixelFormatEnum format); + Surface* CreateSurfaceRaw(int width, int height, PixelFormat format); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] CursorHandle CreateSystemCursor(SystemCursor id); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] - TextureHandle CreateTexture( + Ptr CreateTexture( RendererHandle renderer, - PixelFormatEnum format, - int access, + PixelFormat format, + TextureAccess access, int w, int h ); [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] - TextureHandle CreateTextureFromSurface(RendererHandle renderer, Surface* surface); + Texture* CreateTextureFromSurface(RendererHandle renderer, Surface* surface); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] - TextureHandle CreateTextureFromSurface(RendererHandle renderer, Ref surface); + Ptr CreateTextureFromSurface(RendererHandle renderer, Ref surface); - [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] - TextureHandle CreateTextureWithProperties( + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] + Texture* CreateTextureRaw( RendererHandle renderer, - [NativeTypeName("SDL_PropertiesID")] uint props + PixelFormat format, + TextureAccess access, + int w, + int h ); - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] - ThreadHandle CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] sbyte* name, - void* data + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] + Ptr CreateTextureWithProperties( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props ); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] - ThreadHandle CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] Ref name, - Ref data + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] + Texture* CreateTextureWithPropertiesRaw( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props ); - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] - ThreadHandle CreateThreadWithStackSize( + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadRuntime")] + ThreadHandle CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("const size_t")] nuint stacksize, - void* data + void* data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread ); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] - ThreadHandle CreateThreadWithStackSize( + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadRuntime")] + ThreadHandle CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("const size_t")] nuint stacksize, - Ref data + Ref data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread ); - [return: NativeTypeName("SDL_TLSID")] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateTLS")] - uint CreateTLS(); + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithPropertiesRuntime")] + ThreadHandle CreateThreadWithPropertiesRuntime( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread + ); [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindow")] WindowHandle CreateWindow( [NativeTypeName("const char *")] sbyte* title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ); [Transformed] @@ -7998,26 +10181,28 @@ WindowHandle CreateWindow( [NativeTypeName("const char *")] Ref title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] - int CreateWindowAndRenderer( + byte CreateWindowAndRenderer( [NativeTypeName("const char *")] sbyte* title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, WindowHandle* window, RendererHandle* renderer ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] - int CreateWindowAndRenderer( + MaybeBool CreateWindowAndRenderer( [NativeTypeName("const char *")] Ref title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, Ref window, Ref renderer ); @@ -8025,24 +10210,26 @@ Ref renderer [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] WindowHandle CreateWindowWithProperties([NativeTypeName("SDL_PropertiesID")] uint props); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] - MaybeBool CursorVisible(); + MaybeBool CursorVisible(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] - int CursorVisibleRaw(); + byte CursorVisibleRaw(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] - int DateTimeToTime( + byte DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] DateTime* dt, [NativeTypeName("SDL_Time *")] long* ticks ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] - int DateTimeToTime( + MaybeBool DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] Ref dt, [NativeTypeName("SDL_Time *")] Ref ticks ); @@ -8053,27 +10240,8 @@ int DateTimeToTime( [NativeFunction("SDL3", EntryPoint = "SDL_DelayNS")] void DelayNS([NativeTypeName("Uint64")] ulong ns); - [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] - void DelEventWatch([NativeTypeName("SDL_EventFilter")] EventFilter filter, void* userdata); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] - void DelEventWatch([NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata); - - [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] - void DelHintCallback( - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - void* userdata - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] - void DelHintCallback( - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - Ref userdata - ); + [NativeFunction("SDL3", EntryPoint = "SDL_DelayPrecise")] + void DelayPrecise([NativeTypeName("Uint64")] ulong ns); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyAudioStream")] void DestroyAudioStream(AudioStreamHandle stream); @@ -8097,13 +10265,6 @@ Ref userdata [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPalette")] void DestroyPalette(Ref palette); - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] - void DestroyPixelFormat(PixelFormat* format); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] - void DestroyPixelFormat(Ref format); - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyProperties")] void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props); @@ -8124,22 +10285,44 @@ Ref userdata void DestroySurface(Ref surface); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] - void DestroyTexture(TextureHandle texture); + void DestroyTexture(Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] + void DestroyTexture(Ref texture); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindow")] void DestroyWindow(WindowHandle window); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] + MaybeBool DestroyWindowSurface(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] - int DestroyWindowSurface(WindowHandle window); + byte DestroyWindowSurfaceRaw(WindowHandle window); [NativeFunction("SDL3", EntryPoint = "SDL_DetachThread")] void DetachThread(ThreadHandle thread); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DetachVirtualJoystick")] + MaybeBool DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DetachVirtualJoystick")] - int DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id); + byte DetachVirtualJoystickRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] + MaybeBool DisableScreenSaver(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] - int DisableScreenSaver(); + byte DisableScreenSaverRaw(); [NativeFunction("SDL3", EntryPoint = "SDL_DuplicateSurface")] Surface* DuplicateSurface(Surface* surface); @@ -8150,21 +10333,21 @@ Ref userdata [return: NativeTypeName("SDL_EGLConfig")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] - Ptr EGLGetCurrentEGLConfig(); + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentConfig")] + Ptr EGLGetCurrentConfig(); [return: NativeTypeName("SDL_EGLConfig")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] - void* EGLGetCurrentEGLConfigRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentConfig")] + void* EGLGetCurrentConfigRaw(); [return: NativeTypeName("SDL_EGLDisplay")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] - Ptr EGLGetCurrentEGLDisplay(); + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentDisplay")] + Ptr EGLGetCurrentDisplay(); [return: NativeTypeName("SDL_EGLDisplay")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] - void* EGLGetCurrentEGLDisplayRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentDisplay")] + void* EGLGetCurrentDisplayRaw(); [return: NativeTypeName("SDL_FunctionPointer")] [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetProcAddress")] @@ -8177,109 +10360,133 @@ Ref userdata [return: NativeTypeName("SDL_EGLSurface")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] - Ptr EGLGetWindowEGLSurface(WindowHandle window); + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowSurface")] + Ptr EGLGetWindowSurface(WindowHandle window); [return: NativeTypeName("SDL_EGLSurface")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] - void* EGLGetWindowEGLSurfaceRaw(WindowHandle window); + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowSurface")] + void* EGLGetWindowSurfaceRaw(WindowHandle window); + + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetAttributeCallbacks")] + void EGLSetAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + EGLAttribArrayCallback platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + void* userdata + ); - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetEGLAttributeCallbacks")] - void EGLSetEGLAttributeCallbacks( + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetAttributeCallbacks")] + void EGLSetAttributeCallbacks( [NativeTypeName("SDL_EGLAttribArrayCallback")] EGLAttribArrayCallback platformAttribCallback, [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, - [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + Ref userdata ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnableScreenSaver")] + MaybeBool EnableScreenSaver(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnableScreenSaver")] - int EnableScreenSaver(); + byte EnableScreenSaverRaw(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] - int EnumerateDirectory( + byte EnumerateDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] - int EnumerateDirectory( + MaybeBool EnumerateDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, Ref userdata ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] - int EnumerateProperties( + byte EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] - int EnumerateProperties( + MaybeBool EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, Ref userdata ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] - int EnumerateStorageDirectory( + byte EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] - int EnumerateStorageDirectory( + MaybeBool EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, Ref userdata ); - [NativeFunction("SDL3", EntryPoint = "SDL_Error")] - int Error(Errorcode code); - - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] - MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type); + MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] - int EventEnabledRaw([NativeTypeName("Uint32")] uint type); + byte EventEnabledRaw([NativeTypeName("Uint32")] uint type); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] - int FillSurfaceRect( + byte FillSurfaceRect( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("Uint32")] uint color ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] - int FillSurfaceRect( + MaybeBool FillSurfaceRect( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("Uint32")] uint color ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] - int FillSurfaceRects( + byte FillSurfaceRects( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rects, int count, [NativeTypeName("Uint32")] uint color ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] - int FillSurfaceRects( + MaybeBool FillSurfaceRects( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rects, int count, @@ -8293,18 +10500,32 @@ int FillSurfaceRects( [NativeFunction("SDL3", EntryPoint = "SDL_FilterEvents")] void FilterEvents([NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] + MaybeBool FlashWindow(WindowHandle window, FlashOperation operation); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] - int FlashWindow(WindowHandle window, FlashOperation operation); + byte FlashWindowRaw(WindowHandle window, FlashOperation operation); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] - int FlipSurface(Surface* surface, FlipMode flip); + byte FlipSurface(Surface* surface, FlipMode flip); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] - int FlipSurface(Ref surface, FlipMode flip); + MaybeBool FlipSurface(Ref surface, FlipMode flip); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] + MaybeBool FlushAudioStream(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] - int FlushAudioStream(AudioStreamHandle stream); + byte FlushAudioStreamRaw(AudioStreamHandle stream); [NativeFunction("SDL3", EntryPoint = "SDL_FlushEvent")] void FlushEvent([NativeTypeName("Uint32")] uint type); @@ -8315,62 +10536,86 @@ void FlushEvents( [NativeTypeName("Uint32")] uint maxType ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushIO")] + MaybeBool FlushIO(IOStreamHandle context); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushIO")] + byte FlushIORaw(IOStreamHandle context); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] + MaybeBool FlushRenderer(RendererHandle renderer); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] - int FlushRenderer(RendererHandle renderer); + byte FlushRendererRaw(RendererHandle renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] - MaybeBool GamepadConnected(GamepadHandle gamepad); + MaybeBool GamepadConnected(GamepadHandle gamepad); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] - int GamepadConnectedRaw(GamepadHandle gamepad); + byte GamepadConnectedRaw(GamepadHandle gamepad); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] - MaybeBool GamepadEventsEnabled(); + MaybeBool GamepadEventsEnabled(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] - int GamepadEventsEnabledRaw(); + byte GamepadEventsEnabledRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] - MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis); + MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] - int GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis); + byte GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] - MaybeBool GamepadHasButton(GamepadHandle gamepad, GamepadButton button); + MaybeBool GamepadHasButton(GamepadHandle gamepad, GamepadButton button); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] - int GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button); + byte GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] - MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType type); + MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] - int GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type); + byte GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] - MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, SensorType type); + MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, SensorType type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] - int GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type); + byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAppMetadataProperty")] + sbyte* GetAppMetadataProperty([NativeTypeName("const char *")] sbyte* name); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAppMetadataProperty")] + Ptr GetAppMetadataProperty([NativeTypeName("const char *")] Ref name); [return: NativeTypeName("SDL_AssertionHandler")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionHandler")] @@ -8390,36 +10635,65 @@ void FlushEvents( [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] AssertData* GetAssertionReportRaw(); - [return: NativeTypeName("SDL_AudioDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] - uint* GetAudioCaptureDevices(int* count); + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicInt")] + int GetAtomicInt(AtomicInt* a); - [return: NativeTypeName("SDL_AudioDeviceID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] - Ptr GetAudioCaptureDevices(Ref count); + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicInt")] + int GetAtomicInt(Ref a); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicPointer")] + void* GetAtomicPointer(void** a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicPointer")] + Ptr GetAtomicPointer(Ref2D a); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicU32")] + uint GetAtomicU32(AtomicU32* a); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicU32")] + uint GetAtomicU32(Ref a); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceChannelMap")] + int* GetAudioDeviceChannelMap([NativeTypeName("SDL_AudioDeviceID")] uint devid, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceChannelMap")] + Ptr GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref count + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] - int GetAudioDeviceFormat( + byte GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioSpec* spec, int* sample_frames ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] - int GetAudioDeviceFormat( + MaybeBool GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, Ref spec, Ref sample_frames ); - [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceGain")] + float GetAudioDeviceGain([NativeTypeName("SDL_AudioDeviceID")] uint devid); + + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] Ptr GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID")] uint devid); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] sbyte* GetAudioDeviceNameRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid); @@ -8432,14 +10706,32 @@ Ref sample_frames [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] sbyte* GetAudioDriverRaw(int index); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioFormatName")] + Ptr GetAudioFormatName(AudioFormat format); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioFormatName")] + sbyte* GetAudioFormatNameRaw(AudioFormat format); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioPlaybackDevices")] + uint* GetAudioPlaybackDevices(int* count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioPlaybackDevices")] + Ptr GetAudioPlaybackDevices(Ref count); + [return: NativeTypeName("SDL_AudioDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] - uint* GetAudioOutputDevices(int* count); + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioRecordingDevices")] + uint* GetAudioRecordingDevices(int* count); [return: NativeTypeName("SDL_AudioDeviceID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] - Ptr GetAudioOutputDevices(Ref count); + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioRecordingDevices")] + Ptr GetAudioRecordingDevices(Ref count); [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamAvailable")] int GetAudioStreamAvailable(AudioStreamHandle stream); @@ -8455,12 +10747,14 @@ Ref sample_frames [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamDevice")] uint GetAudioStreamDevice(AudioStreamHandle stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] - int GetAudioStreamFormat(AudioStreamHandle stream, AudioSpec* src_spec, AudioSpec* dst_spec); + byte GetAudioStreamFormat(AudioStreamHandle stream, AudioSpec* src_spec, AudioSpec* dst_spec); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] - int GetAudioStreamFormat( + MaybeBool GetAudioStreamFormat( AudioStreamHandle stream, Ref src_spec, Ref dst_spec @@ -8469,6 +10763,23 @@ Ref dst_spec [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFrequencyRatio")] float GetAudioStreamFrequencyRatio(AudioStreamHandle stream); + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamGain")] + float GetAudioStreamGain(AudioStreamHandle stream); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamInputChannelMap")] + int* GetAudioStreamInputChannelMap(AudioStreamHandle stream, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamInputChannelMap")] + Ptr GetAudioStreamInputChannelMap(AudioStreamHandle stream, Ref count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamOutputChannelMap")] + int* GetAudioStreamOutputChannelMap(AudioStreamHandle stream, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamOutputChannelMap")] + Ptr GetAudioStreamOutputChannelMap(AudioStreamHandle stream, Ref count); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamProperties")] uint GetAudioStreamProperties(AudioStreamHandle stream); @@ -8476,64 +10787,30 @@ Ref dst_spec [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamQueued")] int GetAudioStreamQueued(AudioStreamHandle stream); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] Ptr GetBasePath(); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] sbyte* GetBasePathRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] - int GetBooleanProperty( + byte GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] - MaybeBool GetBooleanProperty( + MaybeBool GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value - ); - - [return: NativeTypeName("char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] - Ptr GetCameraDeviceName([NativeTypeName("SDL_CameraDeviceID")] uint instance_id); - - [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] - sbyte* GetCameraDeviceNameRaw([NativeTypeName("SDL_CameraDeviceID")] uint instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevicePosition")] - CameraPosition GetCameraDevicePosition([NativeTypeName("SDL_CameraDeviceID")] uint instance_id); - - [return: NativeTypeName("SDL_CameraDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] - uint* GetCameraDevices(int* count); - - [return: NativeTypeName("SDL_CameraDeviceID *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] - Ptr GetCameraDevices(Ref count); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] - CameraSpec* GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - int* count - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] - Ptr GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - Ref count + [NativeTypeName("bool")] MaybeBool default_value ); [return: NativeTypeName("const char *")] @@ -8545,24 +10822,57 @@ Ref count [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] sbyte* GetCameraDriverRaw(int index); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] - int GetCameraFormat(CameraHandle camera, CameraSpec* spec); + byte GetCameraFormat(CameraHandle camera, CameraSpec* spec); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] - int GetCameraFormat(CameraHandle camera, Ref spec); + MaybeBool GetCameraFormat(CameraHandle camera, Ref spec); + + [return: NativeTypeName("SDL_CameraID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraID")] + uint GetCameraID(CameraHandle camera); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraName")] + Ptr GetCameraName([NativeTypeName("SDL_CameraID")] uint instance_id); - [return: NativeTypeName("SDL_CameraDeviceID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraInstanceID")] - uint GetCameraInstanceID(CameraHandle camera); + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraName")] + sbyte* GetCameraNameRaw([NativeTypeName("SDL_CameraID")] uint instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] int GetCameraPermissionState(CameraHandle camera); + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPosition")] + CameraPosition GetCameraPosition([NativeTypeName("SDL_CameraID")] uint instance_id); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraProperties")] uint GetCameraProperties(CameraHandle camera); + [return: NativeTypeName("SDL_CameraID *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameras")] + uint* GetCameras(int* count); + + [return: NativeTypeName("SDL_CameraID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameras")] + Ptr GetCameras(Ref count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] + CameraSpec** GetCameraSupportedFormats([NativeTypeName("SDL_CameraID")] uint devid, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] + Ptr2D GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + Ref count + ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardData")] void* GetClipboardData( [NativeTypeName("const char *")] sbyte* mime_type, @@ -8576,6 +10886,15 @@ Ptr GetClipboardData( [NativeTypeName("size_t *")] Ref size ); + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardMimeTypes")] + sbyte** GetClipboardMimeTypes([NativeTypeName("size_t *")] nuint* num_mime_types); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardMimeTypes")] + Ptr2D GetClipboardMimeTypes([NativeTypeName("size_t *")] Ref num_mime_types); + [return: NativeTypeName("char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] @@ -8585,33 +10904,32 @@ Ptr GetClipboardData( [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] sbyte* GetClipboardTextRaw(); - [return: NativeTypeName("const SDL_DisplayMode *")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] - DisplayMode* GetClosestFullscreenDisplayMode( + byte GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] int include_high_density_modes + [NativeTypeName("bool")] byte include_high_density_modes, + DisplayMode* mode ); - [return: NativeTypeName("const SDL_DisplayMode *")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] - Ptr GetClosestFullscreenDisplayMode( + MaybeBool GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] MaybeBool include_high_density_modes + [NativeTypeName("bool")] MaybeBool include_high_density_modes, + Ref mode ); [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCacheLineSize")] int GetCPUCacheLineSize(); - [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCount")] - int GetCPUCount(); - [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] @@ -8644,23 +10962,27 @@ DisplayOrientation GetCurrentDisplayOrientation( [NativeTypeName("SDL_DisplayID")] uint displayID ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] - int GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h); + byte GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] - int GetCurrentRenderOutputSize(RendererHandle renderer, Ref w, Ref h); + MaybeBool GetCurrentRenderOutputSize(RendererHandle renderer, Ref w, Ref h); [return: NativeTypeName("SDL_ThreadID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentThreadID")] ulong GetCurrentThreadID(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] - int GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks); + byte GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] - int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks); + MaybeBool GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks); [return: NativeTypeName("const char *")] [Transformed] @@ -8674,6 +10996,18 @@ DisplayOrientation GetCurrentDisplayOrientation( [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] CursorHandle GetCursor(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDateTimeLocalePreferences")] + byte GetDateTimeLocalePreferences(DateFormat* dateFormat, TimeFormat* timeFormat); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDateTimeLocalePreferences")] + MaybeBool GetDateTimeLocalePreferences( + Ref dateFormat, + Ref timeFormat + ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetDayOfWeek")] int GetDayOfWeek(int year, int month, int day); @@ -8690,6 +11024,10 @@ DisplayOrientation GetCurrentDisplayOrientation( [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] CursorHandle GetDefaultCursor(); + [return: NativeTypeName("SDL_LogOutputFunction")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultLogOutputFunction")] + LogOutputFunction GetDefaultLogOutputFunction(); + [return: NativeTypeName("const SDL_DisplayMode *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] @@ -8699,12 +11037,17 @@ DisplayOrientation GetCurrentDisplayOrientation( [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] DisplayMode* GetDesktopDisplayModeRaw([NativeTypeName("SDL_DisplayID")] uint displayID); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] - int GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect); + byte GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] - int GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect); + MaybeBool GetDisplayBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ); [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayContentScale")] float GetDisplayContentScale([NativeTypeName("SDL_DisplayID")] uint displayID); @@ -8753,12 +11096,17 @@ DisplayOrientation GetCurrentDisplayOrientation( [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplays")] Ptr GetDisplays(Ref count); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] - int GetDisplayUsableBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect); + byte GetDisplayUsableBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] - int GetDisplayUsableBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect); + MaybeBool GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ); [return: NativeTypeName("const char *")] [Transformed] @@ -8769,14 +11117,14 @@ DisplayOrientation GetCurrentDisplayOrientation( [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] sbyte* GetErrorRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] - int GetEventFilter([NativeTypeName("SDL_EventFilter *")] EventFilter* filter, void** userdata); + byte GetEventFilter([NativeTypeName("SDL_EventFilter *")] EventFilter* filter, void** userdata); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] - MaybeBool GetEventFilter( + MaybeBool GetEventFilter( [NativeTypeName("SDL_EventFilter *")] Ref filter, Ref2D userdata ); @@ -8796,14 +11144,12 @@ float GetFloatProperty( float default_value ); - [return: NativeTypeName("const SDL_DisplayMode **")] [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] DisplayMode** GetFullscreenDisplayModes( [NativeTypeName("SDL_DisplayID")] uint displayID, int* count ); - [return: NativeTypeName("const SDL_DisplayMode **")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] Ptr2D GetFullscreenDisplayModes( @@ -8847,9 +11193,10 @@ Ref count [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadBindings")] Ptr2D GetGamepadBindings(GamepadHandle gamepad, Ref count); - [return: NativeTypeName("Uint8")] + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] - byte GetGamepadButton(GamepadHandle gamepad, GamepadButton button); + MaybeBool GetGamepadButton(GamepadHandle gamepad, GamepadButton button); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonFromString")] GamepadButton GetGamepadButtonFromString([NativeTypeName("const char *")] sbyte* str); @@ -8864,6 +11211,10 @@ Ref count [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonLabelForType")] GamepadButtonLabel GetGamepadButtonLabelForType(GamepadType type, GamepadButton button); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] + byte GetGamepadButtonRaw(GamepadHandle gamepad, GamepadButton button); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadConnectionState")] JoystickConnectionState GetGamepadConnectionState(GamepadHandle gamepad); @@ -8871,64 +11222,18 @@ Ref count [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFirmwareVersion")] ushort GetGamepadFirmwareVersion(GamepadHandle gamepad); - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] - GamepadHandle GetGamepadFromInstanceID([NativeTypeName("SDL_JoystickID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromID")] + GamepadHandle GetGamepadFromID([NativeTypeName("SDL_JoystickID")] uint instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] GamepadHandle GetGamepadFromPlayerIndex(int player_index); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceGUID")] - Guid GetGamepadInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadGUIDForID")] + Guid GetGamepadGuidForID([NativeTypeName("SDL_JoystickID")] uint instance_id); [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceID")] - uint GetGamepadInstanceID(GamepadHandle gamepad); - - [return: NativeTypeName("char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceMapping")] - Ptr GetGamepadInstanceMapping([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceMapping")] - sbyte* GetGamepadInstanceMappingRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceName")] - Ptr GetGamepadInstanceName([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceName")] - sbyte* GetGamepadInstanceNameRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePath")] - Ptr GetGamepadInstancePath([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePath")] - sbyte* GetGamepadInstancePathRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePlayerIndex")] - int GetGamepadInstancePlayerIndex([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceProduct")] - ushort GetGamepadInstanceProduct([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceProductVersion")] - ushort GetGamepadInstanceProductVersion([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceType")] - GamepadType GetGamepadInstanceType([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceVendor")] - ushort GetGamepadInstanceVendor([NativeTypeName("SDL_JoystickID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadID")] + uint GetGamepadID(GamepadHandle gamepad); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadJoystick")] JoystickHandle GetGamepadJoystick(GamepadHandle gamepad); @@ -8941,11 +11246,20 @@ Ref count [return: NativeTypeName("char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] - Ptr GetGamepadMappingForGuid([NativeTypeName("SDL_JoystickGUID")] Guid guid); + Ptr GetGamepadMappingForGuid(Guid guid); [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] - sbyte* GetGamepadMappingForGuidRaw([NativeTypeName("SDL_JoystickGUID")] Guid guid); + sbyte* GetGamepadMappingForGuidRaw(Guid guid); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForID")] + Ptr GetGamepadMappingForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForID")] + sbyte* GetGamepadMappingForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMapping")] @@ -8965,6 +11279,15 @@ Ref count [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadName")] Ptr GetGamepadName(GamepadHandle gamepad); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadNameForID")] + Ptr GetGamepadNameForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadNameForID")] + sbyte* GetGamepadNameForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadName")] sbyte* GetGamepadNameRaw(GamepadHandle gamepad); @@ -8974,6 +11297,15 @@ Ref count [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPath")] Ptr GetGamepadPath(GamepadHandle gamepad); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPathForID")] + Ptr GetGamepadPathForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPathForID")] + sbyte* GetGamepadPathForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPath")] sbyte* GetGamepadPathRaw(GamepadHandle gamepad); @@ -8981,6 +11313,9 @@ Ref count [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndex")] int GetGamepadPlayerIndex(GamepadHandle gamepad); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndexForID")] + int GetGamepadPlayerIndexForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPowerInfo")] PowerState GetGamepadPowerInfo(GamepadHandle gamepad, int* percent); @@ -8992,10 +11327,18 @@ Ref count [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProduct")] ushort GetGamepadProduct(GamepadHandle gamepad); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductForID")] + ushort GetGamepadProductForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + [return: NativeTypeName("Uint16")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersion")] ushort GetGamepadProductVersion(GamepadHandle gamepad); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersionForID")] + ushort GetGamepadProductVersionForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProperties")] uint GetGamepadProperties(GamepadHandle gamepad); @@ -9009,12 +11352,14 @@ Ref count [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepads")] Ptr GetGamepads(Ref count); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] - int GetGamepadSensorData(GamepadHandle gamepad, SensorType type, float* data, int num_values); + byte GetGamepadSensorData(GamepadHandle gamepad, SensorType type, float* data, int num_values); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] - int GetGamepadSensorData( + MaybeBool GetGamepadSensorData( GamepadHandle gamepad, SensorType type, Ref data, @@ -9064,24 +11409,26 @@ int num_values [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] sbyte* GetGamepadStringForTypeRaw(GamepadType type); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] - int GetGamepadTouchpadFinger( + byte GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] byte* state, + bool* down, float* x, float* y, float* pressure ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] - int GetGamepadTouchpadFinger( + MaybeBool GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] Ref state, + Ref down, Ref x, Ref y, Ref pressure @@ -9090,6 +11437,9 @@ Ref pressure [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadType")] GamepadType GetGamepadType(GamepadHandle gamepad); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeForID")] + GamepadType GetGamepadTypeForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeFromString")] GamepadType GetGamepadTypeFromString([NativeTypeName("const char *")] sbyte* str); @@ -9101,11 +11451,15 @@ Ref pressure [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendor")] ushort GetGamepadVendor(GamepadHandle gamepad); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendorForID")] + ushort GetGamepadVendorForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] uint GetGlobalMouseState(float* x, float* y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] uint GetGlobalMouseState(Ref x, Ref y); @@ -9117,33 +11471,39 @@ Ref pressure [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] WindowHandle GetGrabbedWindow(); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] + MaybeBool GetHapticEffectStatus(HapticHandle haptic, int effect); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] - int GetHapticEffectStatus(HapticHandle haptic, int effect); + byte GetHapticEffectStatusRaw(HapticHandle haptic, int effect); [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFeatures")] uint GetHapticFeatures(HapticHandle haptic); - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] - HapticHandle GetHapticFromInstanceID([NativeTypeName("SDL_HapticID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromID")] + HapticHandle GetHapticFromID([NativeTypeName("SDL_HapticID")] uint instance_id); [return: NativeTypeName("SDL_HapticID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceID")] - uint GetHapticInstanceID(HapticHandle haptic); + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticID")] + uint GetHapticID(HapticHandle haptic); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] - Ptr GetHapticInstanceName([NativeTypeName("SDL_HapticID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] + Ptr GetHapticName(HapticHandle haptic); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] - sbyte* GetHapticInstanceNameRaw([NativeTypeName("SDL_HapticID")] uint instance_id); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticNameForID")] + Ptr GetHapticNameForID([NativeTypeName("SDL_HapticID")] uint instance_id); [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] - Ptr GetHapticName(HapticHandle haptic); + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticNameForID")] + sbyte* GetHapticNameForIDRaw([NativeTypeName("SDL_HapticID")] uint instance_id); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] @@ -9167,19 +11527,19 @@ Ref pressure [NativeFunction("SDL3", EntryPoint = "SDL_GetHint")] Ptr GetHint([NativeTypeName("const char *")] Ref name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] - int GetHintBoolean( + byte GetHintBoolean( [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] - MaybeBool GetHintBoolean( + MaybeBool GetHintBoolean( [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value + [NativeTypeName("bool")] MaybeBool default_value ); [return: NativeTypeName("SDL_PropertiesID")] @@ -9197,33 +11557,40 @@ MaybeBool GetHintBoolean( [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxis")] short GetJoystickAxis(JoystickHandle joystick, int axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] - int GetJoystickAxisInitialState( + byte GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] short* state ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] - MaybeBool GetJoystickAxisInitialState( + MaybeBool GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] Ref state ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] - int GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy); + byte GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] - int GetJoystickBall(JoystickHandle joystick, int ball, Ref dx, Ref dy); + MaybeBool GetJoystickBall(JoystickHandle joystick, int ball, Ref dx, Ref dy); - [return: NativeTypeName("Uint8")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] + MaybeBool GetJoystickButton(JoystickHandle joystick, int button); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] - byte GetJoystickButton(JoystickHandle joystick, int button); + byte GetJoystickButtonRaw(JoystickHandle joystick, int button); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickConnectionState")] JoystickConnectionState GetJoystickConnectionState(JoystickHandle joystick); @@ -9232,28 +11599,21 @@ MaybeBool GetJoystickAxisInitialState( [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFirmwareVersion")] ushort GetJoystickFirmwareVersion(JoystickHandle joystick); - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] - JoystickHandle GetJoystickFromInstanceID([NativeTypeName("SDL_JoystickID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromID")] + JoystickHandle GetJoystickFromID([NativeTypeName("SDL_JoystickID")] uint instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] JoystickHandle GetJoystickFromPlayerIndex(int player_index); - [return: NativeTypeName("SDL_JoystickGUID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUID")] Guid GetJoystickGuid(JoystickHandle joystick); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDFromString")] - Guid GetJoystickGuidFromString([NativeTypeName("const char *")] sbyte* pchGUID); - - [return: NativeTypeName("SDL_JoystickGUID")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDFromString")] - Guid GetJoystickGuidFromString([NativeTypeName("const char *")] Ref pchGUID); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDForID")] + Guid GetJoystickGuidForID([NativeTypeName("SDL_JoystickID")] uint instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] void GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] ushort* vendor, [NativeTypeName("Uint16 *")] ushort* product, [NativeTypeName("Uint16 *")] ushort* version, @@ -9263,80 +11623,34 @@ void GetJoystickGuidInfo( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] void GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] Ref vendor, [NativeTypeName("Uint16 *")] Ref product, [NativeTypeName("Uint16 *")] Ref version, [NativeTypeName("Uint16 *")] Ref crc16 ); - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDString")] - int GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] sbyte* pszGUID, - int cbGUID - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDString")] - int GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] Ref pszGUID, - int cbGUID - ); - [return: NativeTypeName("Uint8")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickHat")] byte GetJoystickHat(JoystickHandle joystick, int hat); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceGUID")] - Guid GetJoystickInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id); - [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceID")] - uint GetJoystickInstanceID(JoystickHandle joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickID")] + uint GetJoystickID(JoystickHandle joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceName")] - Ptr GetJoystickInstanceName([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceName")] - sbyte* GetJoystickInstanceNameRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] + Ptr GetJoystickName(JoystickHandle joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] - Ptr GetJoystickInstancePath([NativeTypeName("SDL_JoystickID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickNameForID")] + Ptr GetJoystickNameForID([NativeTypeName("SDL_JoystickID")] uint instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] - sbyte* GetJoystickInstancePathRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePlayerIndex")] - int GetJoystickInstancePlayerIndex([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceProduct")] - ushort GetJoystickInstanceProduct([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceProductVersion")] - ushort GetJoystickInstanceProductVersion([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceType")] - JoystickType GetJoystickInstanceType([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceVendor")] - ushort GetJoystickInstanceVendor([NativeTypeName("SDL_JoystickID")] uint instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] - Ptr GetJoystickName(JoystickHandle joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickNameForID")] + sbyte* GetJoystickNameForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] @@ -9347,6 +11661,15 @@ int cbGUID [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] Ptr GetJoystickPath(JoystickHandle joystick); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPathForID")] + Ptr GetJoystickPathForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPathForID")] + sbyte* GetJoystickPathForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] sbyte* GetJoystickPathRaw(JoystickHandle joystick); @@ -9354,6 +11677,9 @@ int cbGUID [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndex")] int GetJoystickPlayerIndex(JoystickHandle joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndexForID")] + int GetJoystickPlayerIndexForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPowerInfo")] PowerState GetJoystickPowerInfo(JoystickHandle joystick, int* percent); @@ -9365,10 +11691,18 @@ int cbGUID [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProduct")] ushort GetJoystickProduct(JoystickHandle joystick); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductForID")] + ushort GetJoystickProductForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + [return: NativeTypeName("Uint16")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersion")] ushort GetJoystickProductVersion(JoystickHandle joystick); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersionForID")] + ushort GetJoystickProductVersionForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProperties")] uint GetJoystickProperties(JoystickHandle joystick); @@ -9394,21 +11728,28 @@ int cbGUID [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickType")] JoystickType GetJoystickType(JoystickHandle joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickTypeForID")] + JoystickType GetJoystickTypeForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + [return: NativeTypeName("Uint16")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendor")] ushort GetJoystickVendor(JoystickHandle joystick); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendorForID")] + ushort GetJoystickVendorForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] WindowHandle GetKeyboardFocus(); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] - Ptr GetKeyboardInstanceName([NativeTypeName("SDL_KeyboardID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardNameForID")] + Ptr GetKeyboardNameForID([NativeTypeName("SDL_KeyboardID")] uint instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] - sbyte* GetKeyboardInstanceNameRaw([NativeTypeName("SDL_KeyboardID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardNameForID")] + sbyte* GetKeyboardNameForIDRaw([NativeTypeName("SDL_KeyboardID")] uint instance_id); [return: NativeTypeName("SDL_KeyboardID *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboards")] @@ -9419,36 +11760,49 @@ int cbGUID [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboards")] Ptr GetKeyboards(Ref count); - [return: NativeTypeName("const Uint8 *")] + [return: NativeTypeName("const bool *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] - byte* GetKeyboardState(int* numkeys); + bool* GetKeyboardState(int* numkeys); - [return: NativeTypeName("const Uint8 *")] + [return: NativeTypeName("const bool *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] - Ptr GetKeyboardState(Ref numkeys); + Ptr GetKeyboardState(Ref numkeys); [return: NativeTypeName("SDL_Keycode")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromName")] - int GetKeyFromName([NativeTypeName("const char *")] sbyte* name); + uint GetKeyFromName([NativeTypeName("const char *")] sbyte* name); [return: NativeTypeName("SDL_Keycode")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromName")] - int GetKeyFromName([NativeTypeName("const char *")] Ref name); + uint GetKeyFromName([NativeTypeName("const char *")] Ref name); + + [return: NativeTypeName("SDL_Keycode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromScancode")] + uint GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] byte key_event + ); [return: NativeTypeName("SDL_Keycode")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromScancode")] - int GetKeyFromScancode(Scancode scancode); + uint GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] MaybeBool key_event + ); [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] - Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int key); + Ptr GetKeyName([NativeTypeName("SDL_Keycode")] uint key); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] - sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] int key); + sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] uint key); [NativeFunction("SDL3", EntryPoint = "SDL_GetLogOutputFunction")] void GetLogOutputFunction( @@ -9463,10 +11817,13 @@ void GetLogOutputFunction( Ref2D userdata ); - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] - int GetMasksForPixelFormatEnum( - PixelFormatEnum format, + [NativeFunction("SDL3", EntryPoint = "SDL_GetLogPriority")] + LogPriority GetLogPriority(int category); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormat")] + byte GetMasksForPixelFormat( + PixelFormat format, int* bpp, [NativeTypeName("Uint32 *")] uint* Rmask, [NativeTypeName("Uint32 *")] uint* Gmask, @@ -9474,11 +11831,11 @@ int GetMasksForPixelFormatEnum( [NativeTypeName("Uint32 *")] uint* Amask ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] - MaybeBool GetMasksForPixelFormatEnum( - PixelFormatEnum format, + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormat")] + MaybeBool GetMasksForPixelFormat( + PixelFormat format, Ref bpp, [NativeTypeName("Uint32 *")] Ref Rmask, [NativeTypeName("Uint32 *")] Ref Gmask, @@ -9501,26 +11858,27 @@ MaybeBool GetMasksForPixelFormatEnum( [NativeFunction("SDL3", EntryPoint = "SDL_GetMice")] Ptr GetMice(Ref count); + [return: NativeTypeName("SDL_Keymod")] [NativeFunction("SDL3", EntryPoint = "SDL_GetModState")] - Keymod GetModState(); + ushort GetModState(); [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] WindowHandle GetMouseFocus(); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] - Ptr GetMouseInstanceName([NativeTypeName("SDL_MouseID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseNameForID")] + Ptr GetMouseNameForID([NativeTypeName("SDL_MouseID")] uint instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] - sbyte* GetMouseInstanceNameRaw([NativeTypeName("SDL_MouseID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseNameForID")] + sbyte* GetMouseNameForIDRaw([NativeTypeName("SDL_MouseID")] uint instance_id); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] uint GetMouseState(float* x, float* y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] uint GetMouseState(Ref x, Ref y); @@ -9574,83 +11932,27 @@ long GetNumberProperty( [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickHats")] int GetNumJoystickHats(JoystickHandle joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumLogicalCPUCores")] + int GetNumLogicalCPUCores(); + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumRenderDrivers")] int GetNumRenderDrivers(); [NativeFunction("SDL3", EntryPoint = "SDL_GetNumVideoDrivers")] int GetNumVideoDrivers(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] - int GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info); + byte GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] - int GetPathInfo([NativeTypeName("const char *")] Ref path, Ref info); - - [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenCapabilities")] - uint GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - PenCapabilityInfo* capabilities - ); - - [return: NativeTypeName("Uint32")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenCapabilities")] - uint GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref capabilities - ); - - [return: NativeTypeName("SDL_PenID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenFromGUID")] - uint GetPenFromGuid(Guid guid); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenGUID")] - Guid GetPenGuid([NativeTypeName("SDL_PenID")] uint instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenName")] - Ptr GetPenName([NativeTypeName("SDL_PenID")] uint instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenName")] - sbyte* GetPenNameRaw([NativeTypeName("SDL_PenID")] uint instance_id); - - [return: NativeTypeName("SDL_PenID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] - uint* GetPens(int* count); - - [return: NativeTypeName("SDL_PenID *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] - Ptr GetPens(Ref count); - - [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenStatus")] - uint GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - float* x, - float* y, - float* axes, - [NativeTypeName("size_t")] nuint num_axes - ); - - [return: NativeTypeName("Uint32")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenStatus")] - uint GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref x, - Ref y, - Ref axes, - [NativeTypeName("size_t")] nuint num_axes + MaybeBool GetPathInfo( + [NativeTypeName("const char *")] Ref path, + Ref info ); - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenType")] - PenSubtype GetPenType([NativeTypeName("SDL_PenID")] uint instance_id); - [return: NativeTypeName("Uint64")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceCounter")] ulong GetPerformanceCounter(); @@ -9659,8 +11961,17 @@ uint GetPenStatus( [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceFrequency")] ulong GetPerformanceFrequency(); - [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatEnumForMasks")] - PixelFormatEnum GetPixelFormatEnumForMasks( + [return: NativeTypeName("const SDL_PixelFormatDetails *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatDetails")] + Ptr GetPixelFormatDetails(PixelFormat format); + + [return: NativeTypeName("const SDL_PixelFormatDetails *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatDetails")] + PixelFormatDetails* GetPixelFormatDetailsRaw(PixelFormat format); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatForMasks")] + PixelFormat GetPixelFormatForMasks( int bpp, [NativeTypeName("Uint32")] uint Rmask, [NativeTypeName("Uint32")] uint Gmask, @@ -9671,11 +11982,11 @@ PixelFormatEnum GetPixelFormatEnumForMasks( [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] - Ptr GetPixelFormatName(PixelFormatEnum format); + Ptr GetPixelFormatName(PixelFormat format); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] - sbyte* GetPixelFormatNameRaw(PixelFormatEnum format); + sbyte* GetPixelFormatNameRaw(PixelFormat format); [return: NativeTypeName("const char *")] [Transformed] @@ -9686,6 +11997,21 @@ PixelFormatEnum GetPixelFormatEnumForMasks( [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] sbyte* GetPlatformRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_GetPointerProperty")] + void* GetPointerProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* default_value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPointerProperty")] + Ptr GetPointerProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref default_value + ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] PowerState GetPowerInfo(int* seconds, int* percent); @@ -9693,12 +12019,12 @@ PixelFormatEnum GetPixelFormatEnumForMasks( [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] PowerState GetPowerInfo(Ref seconds, Ref percent); - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] - Ptr GetPreferredLocales(); + Locale** GetPreferredLocales(int* count); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] - Locale* GetPreferredLocalesRaw(); + Ptr2D GetPreferredLocales(Ref count); [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPrefPath")] @@ -9728,21 +12054,6 @@ Ptr GetPrefPath( [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] sbyte* GetPrimarySelectionTextRaw(); - [NativeFunction("SDL3", EntryPoint = "SDL_GetProperty")] - void* GetProperty( - [NativeTypeName("SDL_PropertiesID")] uint props, - [NativeTypeName("const char *")] sbyte* name, - void* default_value - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetProperty")] - Ptr GetProperty( - [NativeTypeName("SDL_PropertiesID")] uint props, - [NativeTypeName("const char *")] Ref name, - Ref default_value - ); - [NativeFunction("SDL3", EntryPoint = "SDL_GetPropertyType")] PropertyType GetPropertyType( [NativeTypeName("SDL_PropertiesID")] uint props, @@ -9756,15 +12067,15 @@ PropertyType GetPropertyType( [NativeTypeName("const char *")] Ref name ); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadInstanceType")] - GamepadType GetRealGamepadInstanceType([NativeTypeName("SDL_JoystickID")] uint instance_id); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] GamepadType GetRealGamepadType(GamepadHandle gamepad); - [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadTypeForID")] + GamepadType GetRealGamepadTypeForID([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] - int GetRectAndLineIntersection( + byte GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Rect* rect, int* X1, int* Y1, @@ -9772,10 +12083,10 @@ int GetRectAndLineIntersection( int* Y2 ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] - MaybeBool GetRectAndLineIntersection( + MaybeBool GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Ref rect, Ref X1, Ref Y1, @@ -9783,9 +12094,9 @@ MaybeBool GetRectAndLineIntersection( Ref Y2 ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] - int GetRectAndLineIntersectionFloat( + byte GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* rect, float* X1, float* Y1, @@ -9793,10 +12104,10 @@ int GetRectAndLineIntersectionFloat( float* Y2 ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] - MaybeBool GetRectAndLineIntersectionFloat( + MaybeBool GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref rect, Ref X1, Ref Y1, @@ -9804,149 +12115,157 @@ MaybeBool GetRectAndLineIntersectionFloat( Ref Y2 ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] - int GetRectEnclosingPoints( + byte GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Point* points, int count, [NativeTypeName("const SDL_Rect *")] Rect* clip, Rect* result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] - MaybeBool GetRectEnclosingPoints( + MaybeBool GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Ref points, int count, [NativeTypeName("const SDL_Rect *")] Ref clip, Ref result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] - int GetRectEnclosingPointsFloat( + byte GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count, [NativeTypeName("const SDL_FRect *")] FRect* clip, FRect* result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] - MaybeBool GetRectEnclosingPointsFloat( + MaybeBool GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] Ref points, int count, [NativeTypeName("const SDL_FRect *")] Ref clip, Ref result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] - int GetRectIntersection( + byte GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] - MaybeBool GetRectIntersection( + MaybeBool GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] - int GetRectIntersectionFloat( + byte GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] - MaybeBool GetRectIntersectionFloat( + MaybeBool GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] - int GetRectUnion( + byte GetRectUnion( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] - int GetRectUnion( + MaybeBool GetRectUnion( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] - int GetRectUnionFloat( + byte GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] - int GetRectUnionFloat( + MaybeBool GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result ); - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseMode")] - MaybeBool GetRelativeMouseMode(); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseMode")] - int GetRelativeMouseModeRaw(); - - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] uint GetRelativeMouseState(float* x, float* y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] uint GetRelativeMouseState(Ref x, Ref y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] - int GetRenderClipRect(RendererHandle renderer, Rect* rect); + byte GetRenderClipRect(RendererHandle renderer, Rect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] - int GetRenderClipRect(RendererHandle renderer, Ref rect); + MaybeBool GetRenderClipRect(RendererHandle renderer, Ref rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] - int GetRenderColorScale(RendererHandle renderer, float* scale); + byte GetRenderColorScale(RendererHandle renderer, float* scale); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] - int GetRenderColorScale(RendererHandle renderer, Ref scale); + MaybeBool GetRenderColorScale(RendererHandle renderer, Ref scale); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] - int GetRenderDrawBlendMode(RendererHandle renderer, BlendMode* blendMode); + byte GetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] - int GetRenderDrawBlendMode(RendererHandle renderer, Ref blendMode); + MaybeBool GetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] - int GetRenderDrawColor( + byte GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, @@ -9954,9 +12273,10 @@ int GetRenderDrawColor( [NativeTypeName("Uint8 *")] byte* a ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] - int GetRenderDrawColor( + MaybeBool GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -9964,12 +12284,14 @@ int GetRenderDrawColor( [NativeTypeName("Uint8 *")] Ref a ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] - int GetRenderDrawColorFloat(RendererHandle renderer, float* r, float* g, float* b, float* a); + byte GetRenderDrawColorFloat(RendererHandle renderer, float* r, float* g, float* b, float* a); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] - int GetRenderDrawColorFloat( + MaybeBool GetRenderDrawColorFloat( RendererHandle renderer, Ref r, Ref g, @@ -9990,38 +12312,53 @@ Ref a RendererHandle GetRenderer(WindowHandle window); [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] - RendererHandle GetRendererFromTexture(TextureHandle texture); + RendererHandle GetRendererFromTexture(Texture* texture); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] - int GetRendererInfo(RendererHandle renderer, RendererInfo* info); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] + RendererHandle GetRendererFromTexture(Ref texture); + [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] - int GetRendererInfo(RendererHandle renderer, Ref info); + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererName")] + Ptr GetRendererName(RendererHandle renderer); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererName")] + sbyte* GetRendererNameRaw(RendererHandle renderer); [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererProperties")] uint GetRendererProperties(RendererHandle renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] - int GetRenderLogicalPresentation( + byte GetRenderLogicalPresentation( RendererHandle renderer, int* w, int* h, - RendererLogicalPresentation* mode, - ScaleMode* scale_mode + RendererLogicalPresentation* mode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] - int GetRenderLogicalPresentation( + MaybeBool GetRenderLogicalPresentation( RendererHandle renderer, Ref w, Ref h, - Ref mode, - Ref scale_mode + Ref mode ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentationRect")] + byte GetRenderLogicalPresentationRect(RendererHandle renderer, FRect* rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentationRect")] + MaybeBool GetRenderLogicalPresentationRect(RendererHandle renderer, Ref rect); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalCommandEncoder")] Ptr GetRenderMetalCommandEncoder(RendererHandle renderer); @@ -10036,36 +12373,57 @@ Ref scale_mode [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalLayer")] void* GetRenderMetalLayerRaw(RendererHandle renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] - int GetRenderOutputSize(RendererHandle renderer, int* w, int* h); + byte GetRenderOutputSize(RendererHandle renderer, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] - int GetRenderOutputSize(RendererHandle renderer, Ref w, Ref h); + MaybeBool GetRenderOutputSize(RendererHandle renderer, Ref w, Ref h); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderSafeArea")] + byte GetRenderSafeArea(RendererHandle renderer, Rect* rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderSafeArea")] + MaybeBool GetRenderSafeArea(RendererHandle renderer, Ref rect); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] - int GetRenderScale(RendererHandle renderer, float* scaleX, float* scaleY); + byte GetRenderScale(RendererHandle renderer, float* scaleX, float* scaleY); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] - int GetRenderScale(RendererHandle renderer, Ref scaleX, Ref scaleY); + MaybeBool GetRenderScale(RendererHandle renderer, Ref scaleX, Ref scaleY); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] + Ptr GetRenderTarget(RendererHandle renderer); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] - TextureHandle GetRenderTarget(RendererHandle renderer); + Texture* GetRenderTargetRaw(RendererHandle renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] - int GetRenderViewport(RendererHandle renderer, Rect* rect); + byte GetRenderViewport(RendererHandle renderer, Rect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] - int GetRenderViewport(RendererHandle renderer, Ref rect); + MaybeBool GetRenderViewport(RendererHandle renderer, Ref rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] - int GetRenderVSync(RendererHandle renderer, int* vsync); + byte GetRenderVSync(RendererHandle renderer, int* vsync); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] - int GetRenderVSync(RendererHandle renderer, Ref vsync); + MaybeBool GetRenderVSync(RendererHandle renderer, Ref vsync); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderWindow")] WindowHandle GetRenderWindow(RendererHandle renderer); @@ -10082,7 +12440,8 @@ Ref scale_mode [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] void GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b @@ -10092,7 +12451,8 @@ void GetRGB( [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] void GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b @@ -10101,7 +12461,8 @@ void GetRGB( [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] void GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b, @@ -10112,15 +12473,29 @@ void GetRgba( [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] void GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b, [NativeTypeName("Uint8 *")] Ref a ); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSandbox")] + Sandbox GetSandbox(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromKey")] + Scancode GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] ushort* modstate + ); + + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromKey")] - Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key); + Scancode GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] Ref modstate + ); [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromName")] Scancode GetScancodeFromName([NativeTypeName("const char *")] sbyte* name); @@ -10142,39 +12517,35 @@ void GetRgba( [NativeFunction("SDL3", EntryPoint = "SDL_GetSemaphoreValue")] uint GetSemaphoreValue(SemaphoreHandle sem); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] - int GetSensorData(SensorHandle sensor, float* data, int num_values); + byte GetSensorData(SensorHandle sensor, float* data, int num_values); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] - int GetSensorData(SensorHandle sensor, Ref data, int num_values); + MaybeBool GetSensorData(SensorHandle sensor, Ref data, int num_values); - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] - SensorHandle GetSensorFromInstanceID([NativeTypeName("SDL_SensorID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromID")] + SensorHandle GetSensorFromID([NativeTypeName("SDL_SensorID")] uint instance_id); [return: NativeTypeName("SDL_SensorID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceID")] - uint GetSensorInstanceID(SensorHandle sensor); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorID")] + uint GetSensorID(SensorHandle sensor); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] - Ptr GetSensorInstanceName([NativeTypeName("SDL_SensorID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] + Ptr GetSensorName(SensorHandle sensor); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] - sbyte* GetSensorInstanceNameRaw([NativeTypeName("SDL_SensorID")] uint instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceNonPortableType")] - int GetSensorInstanceNonPortableType([NativeTypeName("SDL_SensorID")] uint instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceType")] - SensorType GetSensorInstanceType([NativeTypeName("SDL_SensorID")] uint instance_id); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNameForID")] + Ptr GetSensorNameForID([NativeTypeName("SDL_SensorID")] uint instance_id); [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] - Ptr GetSensorName(SensorHandle sensor); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNameForID")] + sbyte* GetSensorNameForIDRaw([NativeTypeName("SDL_SensorID")] uint instance_id); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] @@ -10183,6 +12554,9 @@ void GetRgba( [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableType")] int GetSensorNonPortableType(SensorHandle sensor); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableTypeForID")] + int GetSensorNonPortableTypeForID([NativeTypeName("SDL_SensorID")] uint instance_id); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorProperties")] uint GetSensorProperties(SensorHandle sensor); @@ -10199,34 +12573,45 @@ void GetRgba( [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorType")] SensorType GetSensorType(SensorHandle sensor); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorTypeForID")] + SensorType GetSensorTypeForID([NativeTypeName("SDL_SensorID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSilenceValueForFormat")] - int GetSilenceValueForFormat([NativeTypeName("SDL_AudioFormat")] ushort format); + int GetSilenceValueForFormat(AudioFormat format); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSIMDAlignment")] + nuint GetSimdAlignment(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] - int GetStorageFileSize( + byte GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("Uint64 *")] ulong* length ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] - int GetStorageFileSize( + MaybeBool GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("Uint64 *")] Ref length ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] - int GetStoragePathInfo( + byte GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, PathInfo* info ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] - int GetStoragePathInfo( + MaybeBool GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref info @@ -10253,45 +12638,67 @@ Ptr GetStringProperty( [NativeTypeName("const char *")] Ref default_value ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] - int GetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha); + byte GetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] - int GetSurfaceAlphaMod(Ref surface, [NativeTypeName("Uint8 *")] Ref alpha); + MaybeBool GetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref alpha + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] - int GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode); + byte GetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] - int GetSurfaceBlendMode(Ref surface, Ref blendMode); + MaybeBool GetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] - int GetSurfaceClipRect(Surface* surface, Rect* rect); + byte GetSurfaceClipRect(Surface* surface, Rect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] - int GetSurfaceClipRect(Ref surface, Ref rect); + MaybeBool GetSurfaceClipRect(Ref surface, Ref rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] - int GetSurfaceColorKey(Surface* surface, [NativeTypeName("Uint32 *")] uint* key); + byte GetSurfaceColorKey(Surface* surface, [NativeTypeName("Uint32 *")] uint* key); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] - int GetSurfaceColorKey(Ref surface, [NativeTypeName("Uint32 *")] Ref key); + MaybeBool GetSurfaceColorKey( + Ref surface, + [NativeTypeName("Uint32 *")] Ref key + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] - int GetSurfaceColorMod( + byte GetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] - int GetSurfaceColorMod( + MaybeBool GetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -10299,11 +12706,25 @@ int GetSurfaceColorMod( ); [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] - int GetSurfaceColorspace(Surface* surface, Colorspace* colorspace); + Colorspace GetSurfaceColorspace(Surface* surface); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] - int GetSurfaceColorspace(Ref surface, Ref colorspace); + Colorspace GetSurfaceColorspace(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceImages")] + Surface** GetSurfaceImages(Surface* surface, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceImages")] + Ptr2D GetSurfaceImages(Ref surface, Ref count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfacePalette")] + Palette* GetSurfacePalette(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfacePalette")] + Ptr GetSurfacePalette(Ref surface); [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceProperties")] @@ -10320,61 +12741,110 @@ int GetSurfaceColorMod( [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemTheme")] SystemTheme GetSystemTheme(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextInputArea")] + byte GetTextInputArea(WindowHandle window, Rect* rect, int* cursor); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextInputArea")] + MaybeBool GetTextInputArea(WindowHandle window, Ref rect, Ref cursor); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] - int GetTextureAlphaMod(TextureHandle texture, [NativeTypeName("Uint8 *")] byte* alpha); + byte GetTextureAlphaMod(Texture* texture, [NativeTypeName("Uint8 *")] byte* alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] - int GetTextureAlphaMod(TextureHandle texture, [NativeTypeName("Uint8 *")] Ref alpha); + MaybeBool GetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref alpha + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] - int GetTextureAlphaModFloat(TextureHandle texture, float* alpha); + byte GetTextureAlphaModFloat(Texture* texture, float* alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] - int GetTextureAlphaModFloat(TextureHandle texture, Ref alpha); + MaybeBool GetTextureAlphaModFloat(Ref texture, Ref alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] - int GetTextureBlendMode(TextureHandle texture, BlendMode* blendMode); + byte GetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] - int GetTextureBlendMode(TextureHandle texture, Ref blendMode); + MaybeBool GetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] - int GetTextureColorMod( - TextureHandle texture, + byte GetTextureColorMod( + Texture* texture, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] - int GetTextureColorMod( - TextureHandle texture, + MaybeBool GetTextureColorMod( + Ref texture, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] - int GetTextureColorModFloat(TextureHandle texture, float* r, float* g, float* b); + byte GetTextureColorModFloat(Texture* texture, float* r, float* g, float* b); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] - int GetTextureColorModFloat(TextureHandle texture, Ref r, Ref g, Ref b); + MaybeBool GetTextureColorModFloat( + Ref texture, + Ref r, + Ref g, + Ref b + ); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] + uint GetTextureProperties(Texture* texture); [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] - uint GetTextureProperties(TextureHandle texture); + uint GetTextureProperties(Ref texture); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] - int GetTextureScaleMode(TextureHandle texture, ScaleMode* scaleMode); + byte GetTextureScaleMode(Texture* texture, ScaleMode* scaleMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] - int GetTextureScaleMode(TextureHandle texture, Ref scaleMode); + MaybeBool GetTextureScaleMode(Ref texture, Ref scaleMode); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureSize")] + byte GetTextureSize(Texture* texture, float* w, float* h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureSize")] + MaybeBool GetTextureSize(Ref texture, Ref w, Ref h); [return: NativeTypeName("SDL_ThreadID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadID")] @@ -10397,12 +12867,12 @@ int GetTextureColorMod( [NativeFunction("SDL3", EntryPoint = "SDL_GetTicksNS")] ulong GetTicksNS(); - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] - Ptr GetTLS([NativeTypeName("SDL_TLSID")] uint id); + void* GetTLS([NativeTypeName("SDL_TLSID *")] AtomicInt* id); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] - void* GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id); + Ptr GetTLS([NativeTypeName("SDL_TLSID *")] Ref id); [return: NativeTypeName("const char *")] [Transformed] @@ -10432,21 +12902,17 @@ int GetTextureColorMod( [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchFingers")] Ptr2D GetTouchFingers([NativeTypeName("SDL_TouchID")] ulong touchID, Ref count); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] Ptr GetUserFolder(Folder folder); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] sbyte* GetUserFolderRaw(Folder folder); [NativeFunction("SDL3", EntryPoint = "SDL_GetVersion")] - int GetVersion(Version* ver); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetVersion")] - int GetVersion(Ref ver); + int GetVersion(); [return: NativeTypeName("const char *")] [Transformed] @@ -10457,12 +12923,27 @@ int GetTextureColorMod( [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] sbyte* GetVideoDriverRaw(int index); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowAspectRatio")] + byte GetWindowAspectRatio(WindowHandle window, float* min_aspect, float* max_aspect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowAspectRatio")] + MaybeBool GetWindowAspectRatio( + WindowHandle window, + Ref min_aspect, + Ref max_aspect + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] - int GetWindowBordersSize(WindowHandle window, int* top, int* left, int* bottom, int* right); + byte GetWindowBordersSize(WindowHandle window, int* top, int* left, int* bottom, int* right); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] - int GetWindowBordersSize( + MaybeBool GetWindowBordersSize( WindowHandle window, Ref top, Ref left, @@ -10475,7 +12956,14 @@ Ref right [return: NativeTypeName("SDL_WindowFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFlags")] - uint GetWindowFlags(WindowHandle window); + ulong GetWindowFlags(WindowHandle window); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromEvent")] + WindowHandle GetWindowFromEvent([NativeTypeName("const SDL_Event *")] Event* @event); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromEvent")] + WindowHandle GetWindowFromEvent([NativeTypeName("const SDL_Event *")] Ref @event); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] WindowHandle GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id); @@ -10500,37 +12988,41 @@ Ref right [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowID")] uint GetWindowID(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] - MaybeBool GetWindowKeyboardGrab(WindowHandle window); + MaybeBool GetWindowKeyboardGrab(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] - int GetWindowKeyboardGrabRaw(WindowHandle window); + byte GetWindowKeyboardGrabRaw(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] - int GetWindowMaximumSize(WindowHandle window, int* w, int* h); + byte GetWindowMaximumSize(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] - int GetWindowMaximumSize(WindowHandle window, Ref w, Ref h); + MaybeBool GetWindowMaximumSize(WindowHandle window, Ref w, Ref h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] - int GetWindowMinimumSize(WindowHandle window, int* w, int* h); + byte GetWindowMinimumSize(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] - int GetWindowMinimumSize(WindowHandle window, Ref w, Ref h); + MaybeBool GetWindowMinimumSize(WindowHandle window, Ref w, Ref h); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] - MaybeBool GetWindowMouseGrab(WindowHandle window); + MaybeBool GetWindowMouseGrab(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] - int GetWindowMouseGrabRaw(WindowHandle window); + byte GetWindowMouseGrabRaw(WindowHandle window); [return: NativeTypeName("const SDL_Rect *")] [Transformed] @@ -10542,11 +13034,7 @@ Ref right Rect* GetWindowMouseRectRaw(WindowHandle window); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] - int GetWindowOpacity(WindowHandle window, float* out_opacity); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] - int GetWindowOpacity(WindowHandle window, Ref out_opacity); + float GetWindowOpacity(WindowHandle window); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowParent")] WindowHandle GetWindowParent(WindowHandle window); @@ -10554,34 +13042,64 @@ Ref right [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelDensity")] float GetWindowPixelDensity(WindowHandle window); - [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelFormat")] - uint GetWindowPixelFormat(WindowHandle window); + PixelFormat GetWindowPixelFormat(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] - int GetWindowPosition(WindowHandle window, int* x, int* y); + byte GetWindowPosition(WindowHandle window, int* x, int* y); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] - int GetWindowPosition(WindowHandle window, Ref x, Ref y); + MaybeBool GetWindowPosition(WindowHandle window, Ref x, Ref y); [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] uint GetWindowProperties(WindowHandle window); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowRelativeMouseMode")] + MaybeBool GetWindowRelativeMouseMode(WindowHandle window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowRelativeMouseMode")] + byte GetWindowRelativeMouseModeRaw(WindowHandle window); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindows")] + WindowHandle* GetWindows(int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindows")] + Ptr GetWindows(Ref count); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSafeArea")] + byte GetWindowSafeArea(WindowHandle window, Rect* rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSafeArea")] + MaybeBool GetWindowSafeArea(WindowHandle window, Ref rect); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] - int GetWindowSize(WindowHandle window, int* w, int* h); + byte GetWindowSize(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] - int GetWindowSize(WindowHandle window, Ref w, Ref h); + MaybeBool GetWindowSize(WindowHandle window, Ref w, Ref h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] - int GetWindowSizeInPixels(WindowHandle window, int* w, int* h); + byte GetWindowSizeInPixels(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] - int GetWindowSizeInPixels(WindowHandle window, Ref w, Ref h); + MaybeBool GetWindowSizeInPixels(WindowHandle window, Ref w, Ref h); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurface")] @@ -10590,6 +13108,15 @@ Ref right [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurface")] Surface* GetWindowSurfaceRaw(WindowHandle window); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurfaceVSync")] + byte GetWindowSurfaceVSync(WindowHandle window, int* vsync); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurfaceVSync")] + MaybeBool GetWindowSurfaceVSync(WindowHandle window, Ref vsync); + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] @@ -10599,46 +13126,42 @@ Ref right [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] sbyte* GetWindowTitleRaw(WindowHandle window); - [return: NativeTypeName("SDL_GLContext")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] - Ptr GLCreateContext(WindowHandle window); - [return: NativeTypeName("SDL_GLContext")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] - void* GLCreateContextRaw(WindowHandle window); - - [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] - int GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context); + GLContextStateHandle GLCreateContext(WindowHandle window); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] - int GLDeleteContext([NativeTypeName("SDL_GLContext")] Ref context); + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DestroyContext")] + MaybeBool GLDestroyContext( + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DestroyContext")] + byte GLDestroyContextRaw([NativeTypeName("SDL_GLContext")] GLContextStateHandle context); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] - int GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension); + byte GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] - MaybeBool GLExtensionSupported([NativeTypeName("const char *")] Ref extension); + MaybeBool GLExtensionSupported([NativeTypeName("const char *")] Ref extension); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] - int GLGetAttribute(GLattr attr, int* value); + byte GLGetAttribute(GLAttr attr, int* value); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] - int GLGetAttribute(GLattr attr, Ref value); - - [return: NativeTypeName("SDL_GLContext")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] - Ptr GLGetCurrentContext(); + MaybeBool GLGetAttribute(GLAttr attr, Ref value); [return: NativeTypeName("SDL_GLContext")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] - void* GLGetCurrentContextRaw(); + GLContextStateHandle GLGetCurrentContext(); [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] WindowHandle GLGetCurrentWindow(); @@ -10652,40 +13175,70 @@ Ref right [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetProcAddress")] FunctionPointer GLGetProcAddress([NativeTypeName("const char *")] Ref proc); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] - int GLGetSwapInterval(int* interval); + byte GLGetSwapInterval(int* interval); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] - int GLGetSwapInterval(Ref interval); + MaybeBool GLGetSwapInterval(Ref interval); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] - int GLLoadLibrary([NativeTypeName("const char *")] sbyte* path); + byte GLLoadLibrary([NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] - int GLLoadLibrary([NativeTypeName("const char *")] Ref path); + MaybeBool GLLoadLibrary([NativeTypeName("const char *")] Ref path); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] - int GLMakeCurrent(WindowHandle window, [NativeTypeName("SDL_GLContext")] void* context); + MaybeBool GLMakeCurrent( + WindowHandle window, + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ); - [Transformed] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] - int GLMakeCurrent(WindowHandle window, [NativeTypeName("SDL_GLContext")] Ref context); + byte GLMakeCurrentRaw( + WindowHandle window, + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ); [NativeFunction("SDL3", EntryPoint = "SDL_GL_ResetAttributes")] void GLResetAttributes(); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetAttribute")] + MaybeBool GLSetAttribute(GLAttr attr, int value); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetAttribute")] - int GLSetAttribute(GLattr attr, int value); + byte GLSetAttributeRaw(GLAttr attr, int value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetSwapInterval")] + MaybeBool GLSetSwapInterval(int interval); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetSwapInterval")] - int GLSetSwapInterval(int interval); + byte GLSetSwapIntervalRaw(int interval); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] - int GLSwapWindow(WindowHandle window); + MaybeBool GLSwapWindow(WindowHandle window); - [NativeFunction("SDL3", EntryPoint = "SDL_GL_UnloadLibrary")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] + byte GLSwapWindowRaw(WindowHandle window); + + [NativeFunction("SDL3", EntryPoint = "SDL_GL_UnloadLibrary")] void GLUnloadLibrary(); [return: NativeTypeName("char **")] @@ -10693,7 +13246,7 @@ Ref right sbyte** GlobDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ); @@ -10703,7 +13256,7 @@ Ref right Ptr2D GlobDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ); @@ -10713,7 +13266,7 @@ Ref count StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ); @@ -10724,321 +13277,314 @@ Ptr2D GlobStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ); - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] - Guid GuidFromString([NativeTypeName("const char *")] sbyte* pchGUID); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] - Guid GuidFromString([NativeTypeName("const char *")] Ref pchGUID); - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] - int GuidToString(Guid guid, [NativeTypeName("char *")] sbyte* pszGUID, int cbGUID); + void GuidToString(Guid guid, [NativeTypeName("char *")] sbyte* pszGUID, int cbGUID); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] - int GuidToString(Guid guid, [NativeTypeName("char *")] Ref pszGUID, int cbGUID); + void GuidToString(Guid guid, [NativeTypeName("char *")] Ref pszGUID, int cbGUID); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] - int HapticEffectSupported( + byte HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] - MaybeBool HapticEffectSupported( + MaybeBool HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] Ref effect ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] - MaybeBool HapticRumbleSupported(HapticHandle haptic); + MaybeBool HapticRumbleSupported(HapticHandle haptic); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] - int HapticRumbleSupportedRaw(HapticHandle haptic); + byte HapticRumbleSupportedRaw(HapticHandle haptic); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] - MaybeBool HasAltiVec(); + MaybeBool HasAltiVec(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] - int HasAltiVecRaw(); + byte HasAltiVecRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] - MaybeBool HasArmsimd(); + MaybeBool HasArmsimd(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] - int HasArmsimdRaw(); + byte HasArmsimdRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] - MaybeBool HasAVX(); + MaybeBool HasAVX(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] - MaybeBool HasAVX2(); + MaybeBool HasAVX2(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] - int HasAVX2Raw(); + byte HasAVX2Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] - MaybeBool HasAVX512F(); + MaybeBool HasAVX512F(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] - int HasAVX512FRaw(); + byte HasAVX512FRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] - int HasAVXRaw(); + byte HasAVXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] - int HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type); + byte HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] - MaybeBool HasClipboardData([NativeTypeName("const char *")] Ref mime_type); + MaybeBool HasClipboardData([NativeTypeName("const char *")] Ref mime_type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] - MaybeBool HasClipboardText(); + MaybeBool HasClipboardText(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] - int HasClipboardTextRaw(); + byte HasClipboardTextRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] - MaybeBool HasEvent([NativeTypeName("Uint32")] uint type); + MaybeBool HasEvent([NativeTypeName("Uint32")] uint type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] - int HasEventRaw([NativeTypeName("Uint32")] uint type); + byte HasEventRaw([NativeTypeName("Uint32")] uint type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] - MaybeBool HasEvents( + MaybeBool HasEvents( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] - int HasEventsRaw( + byte HasEventsRaw( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] - MaybeBool HasGamepad(); + MaybeBool HasGamepad(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] - int HasGamepadRaw(); + byte HasGamepadRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] - MaybeBool HasJoystick(); + MaybeBool HasJoystick(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] - int HasJoystickRaw(); + byte HasJoystickRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] - MaybeBool HasKeyboard(); + MaybeBool HasKeyboard(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] - int HasKeyboardRaw(); + byte HasKeyboardRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] - MaybeBool HasLasx(); + MaybeBool HasLasx(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] - int HasLasxRaw(); + byte HasLasxRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] - MaybeBool HasLSX(); + MaybeBool HasLSX(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] - int HasLSXRaw(); + byte HasLSXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] - MaybeBool HasMMX(); + MaybeBool HasMMX(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] - int HasMMXRaw(); + byte HasMMXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] - MaybeBool HasMouse(); + MaybeBool HasMouse(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] - int HasMouseRaw(); + byte HasMouseRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] - MaybeBool HasNeon(); + MaybeBool HasNeon(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] - int HasNeonRaw(); + byte HasNeonRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] - MaybeBool HasPrimarySelectionText(); + MaybeBool HasPrimarySelectionText(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] - int HasPrimarySelectionTextRaw(); + byte HasPrimarySelectionTextRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] - int HasProperty( + byte HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] - MaybeBool HasProperty( + MaybeBool HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] - int HasRectIntersection( + byte HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] - MaybeBool HasRectIntersection( + MaybeBool HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] - int HasRectIntersectionFloat( + byte HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] - MaybeBool HasRectIntersectionFloat( + MaybeBool HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] - MaybeBool HasScreenKeyboardSupport(); + MaybeBool HasScreenKeyboardSupport(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] - int HasScreenKeyboardSupportRaw(); + byte HasScreenKeyboardSupportRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] - MaybeBool HasSSE(); + MaybeBool HasSSE(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] - MaybeBool HasSSE2(); + MaybeBool HasSSE2(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] - int HasSSE2Raw(); + byte HasSSE2Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] - MaybeBool HasSSE3(); + MaybeBool HasSSE3(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] - int HasSSE3Raw(); + byte HasSSE3Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] - MaybeBool HasSSE41(); + MaybeBool HasSSE41(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] - int HasSSE41Raw(); + byte HasSSE41Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] - MaybeBool HasSSE42(); + MaybeBool HasSSE42(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] - int HasSSE42Raw(); + byte HasSSE42Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] - int HasSSERaw(); + byte HasSSERaw(); [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] - void HidBleScan([NativeTypeName("SDL_bool")] int active); + void HidBleScan([NativeTypeName("bool")] byte active); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] - void HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active); + void HidBleScan([NativeTypeName("bool")] MaybeBool active); [NativeFunction("SDL3", EntryPoint = "SDL_hid_close")] int HidClose(HidDeviceHandle dev); @@ -11274,20 +13820,50 @@ int HidWrite( [NativeTypeName("size_t")] nuint length ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HideCursor")] - int HideCursor(); + MaybeBool HideCursor(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HideCursor")] + byte HideCursorRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] + MaybeBool HideWindow(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] - int HideWindow(WindowHandle window); + byte HideWindowRaw(WindowHandle window); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_Init")] - int Init([NativeTypeName("Uint32")] uint flags); + MaybeBool Init([NativeTypeName("SDL_InitFlags")] uint flags); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] - int InitHapticRumble(HapticHandle haptic); + MaybeBool InitHapticRumble(HapticHandle haptic); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] + byte InitHapticRumbleRaw(HapticHandle haptic); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_Init")] + byte InitRaw([NativeTypeName("SDL_InitFlags")] uint flags); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_InitSubSystem")] - int InitSubSystem([NativeTypeName("Uint32")] uint flags); + MaybeBool InitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_InitSubSystem")] + byte InitSubSystemRaw([NativeTypeName("SDL_InitFlags")] uint flags); [NativeFunction("SDL3", EntryPoint = "SDL_IOFromConstMem")] IOStreamHandle IOFromConstMem( @@ -11342,68 +13918,77 @@ nuint IOvprintf( [NativeTypeName("va_list")] Ref ap ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] - MaybeBool IsGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id); + MaybeBool IsGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] - int IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + byte IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] - MaybeBool IsJoystickHaptic(JoystickHandle joystick); + MaybeBool IsJoystickHaptic(JoystickHandle joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] - int IsJoystickHapticRaw(JoystickHandle joystick); + byte IsJoystickHapticRaw(JoystickHandle joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] - MaybeBool IsJoystickVirtual([NativeTypeName("SDL_JoystickID")] uint instance_id); + MaybeBool IsJoystickVirtual([NativeTypeName("SDL_JoystickID")] uint instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] - int IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + byte IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] - MaybeBool IsMouseHaptic(); + MaybeBool IsMouseHaptic(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] - int IsMouseHapticRaw(); + byte IsMouseHapticRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] - MaybeBool IsTablet(); + MaybeBool IsTablet(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] - int IsTabletRaw(); + byte IsTabletRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTV")] + MaybeBool IsTV(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTV")] + byte IsTVRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] - MaybeBool JoystickConnected(JoystickHandle joystick); + MaybeBool JoystickConnected(JoystickHandle joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] - int JoystickConnectedRaw(JoystickHandle joystick); + byte JoystickConnectedRaw(JoystickHandle joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] - MaybeBool JoystickEventsEnabled(); + MaybeBool JoystickEventsEnabled(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] - int JoystickEventsEnabledRaw(); + byte JoystickEventsEnabledRaw(); [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP")] Surface* LoadBMP([NativeTypeName("const char *")] sbyte* file); @@ -11413,11 +13998,11 @@ nuint IOvprintf( Ptr LoadBMP([NativeTypeName("const char *")] Ref file); [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] - Surface* LoadBMPIO(IOStreamHandle src, [NativeTypeName("SDL_bool")] int closeio); + Surface* LoadBMPIO(IOStreamHandle src, [NativeTypeName("bool")] byte closeio); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] - Ptr LoadBMPIO(IOStreamHandle src, [NativeTypeName("SDL_bool")] MaybeBool closeio); + Ptr LoadBMPIO(IOStreamHandle src, [NativeTypeName("bool")] MaybeBool closeio); [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile")] void* LoadFile( @@ -11436,7 +14021,7 @@ Ptr LoadFile( void* LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] nuint* datasize, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ); [Transformed] @@ -11444,63 +14029,79 @@ Ptr LoadFile( Ptr LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] Ref datasize, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ); [return: NativeTypeName("SDL_FunctionPointer")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadFunction")] - FunctionPointer LoadFunction(void* handle, [NativeTypeName("const char *")] sbyte* name); + FunctionPointer LoadFunction( + SharedObjectHandle handle, + [NativeTypeName("const char *")] sbyte* name + ); [return: NativeTypeName("SDL_FunctionPointer")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadFunction")] - FunctionPointer LoadFunction(Ref handle, [NativeTypeName("const char *")] Ref name); + FunctionPointer LoadFunction( + SharedObjectHandle handle, + [NativeTypeName("const char *")] Ref name + ); [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] - void* LoadObject([NativeTypeName("const char *")] sbyte* sofile); + SharedObjectHandle LoadObject([NativeTypeName("const char *")] sbyte* sofile); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] - Ptr LoadObject([NativeTypeName("const char *")] Ref sofile); + SharedObjectHandle LoadObject([NativeTypeName("const char *")] Ref sofile); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] - int LoadWAV( + byte LoadWAV( [NativeTypeName("const char *")] sbyte* path, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] - int LoadWAV( + MaybeBool LoadWAV( [NativeTypeName("const char *")] Ref path, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, [NativeTypeName("Uint32 *")] Ref audio_len ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] - int LoadWAVIO( + byte LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio, + [NativeTypeName("bool")] byte closeio, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] - int LoadWAVIO( + MaybeBool LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio, + [NativeTypeName("bool")] MaybeBool closeio, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, [NativeTypeName("Uint32 *")] Ref audio_len ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] - int LockAudioStream(AudioStreamHandle stream); + MaybeBool LockAudioStream(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] + byte LockAudioStreamRaw(AudioStreamHandle stream); [NativeFunction("SDL3", EntryPoint = "SDL_LockJoysticks")] void LockJoysticks(); @@ -11508,8 +14109,14 @@ int LoadWAVIO( [NativeFunction("SDL3", EntryPoint = "SDL_LockMutex")] void LockMutex(MutexHandle mutex); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockProperties")] - int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props); + MaybeBool LockProperties([NativeTypeName("SDL_PropertiesID")] uint props); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_LockProperties")] + byte LockPropertiesRaw([NativeTypeName("SDL_PropertiesID")] uint props); [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForReading")] void LockRWLockForReading(RWLockHandle rwlock); @@ -11524,48 +14131,51 @@ int LoadWAVIO( [NativeFunction("SDL3", EntryPoint = "SDL_LockSpinlock")] void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] - int LockSurface(Surface* surface); + byte LockSurface(Surface* surface); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] - int LockSurface(Ref surface); + MaybeBool LockSurface(Ref surface); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] - int LockTexture( - TextureHandle texture, + byte LockTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, void** pixels, int* pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] - int LockTexture( - TextureHandle texture, + MaybeBool LockTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D pixels, Ref pitch ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] - int LockTextureToSurface( - TextureHandle texture, + byte LockTextureToSurface( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, Surface** surface ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] - int LockTextureToSurface( - TextureHandle texture, + MaybeBool LockTextureToSurface( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D surface ); - [NativeFunction("SDL3", EntryPoint = "SDL_LogGetPriority")] - LogPriority LogGetPriority(int category); - [NativeFunction("SDL3", EntryPoint = "SDL_LogMessageV")] void LogMessageV( int category, @@ -11583,19 +14193,11 @@ void LogMessageV( [NativeTypeName("va_list")] Ref ap ); - [NativeFunction("SDL3", EntryPoint = "SDL_LogResetPriorities")] - void LogResetPriorities(); - - [NativeFunction("SDL3", EntryPoint = "SDL_LogSetAllPriority")] - void LogSetAllPriority(LogPriority priority); - - [NativeFunction("SDL3", EntryPoint = "SDL_LogSetPriority")] - void LogSetPriority(int category, LogPriority priority); - [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] uint MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b @@ -11605,7 +14207,8 @@ uint MapRGB( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] uint MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b @@ -11614,7 +14217,8 @@ uint MapRGB( [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] uint MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, @@ -11625,15 +14229,62 @@ uint MapRgba( [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] uint MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGB")] + uint MapSurfaceRGB( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGB")] + uint MapSurfaceRGB( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGBA")] + uint MapSurfaceRgba( + Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a ); + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGBA")] + uint MapSurfaceRgba( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] - int MaximizeWindow(WindowHandle window); + MaybeBool MaximizeWindow(WindowHandle window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] + byte MaximizeWindowRaw(WindowHandle window); [NativeFunction("SDL3", EntryPoint = "SDL_MemoryBarrierAcquireFunction")] void MemoryBarrierAcquireFunction(); @@ -11664,43 +14315,51 @@ uint MapRgba( [NativeFunction("SDL3", EntryPoint = "SDL_Metal_GetLayer")] Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] + MaybeBool MinimizeWindow(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] - int MinimizeWindow(WindowHandle window); + byte MinimizeWindowRaw(WindowHandle window); - [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] - int MixAudioFormat( + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudio")] + byte MixAudio( [NativeTypeName("Uint8 *")] byte* dst, [NativeTypeName("const Uint8 *")] byte* src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume + float volume ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] - int MixAudioFormat( + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudio")] + MaybeBool MixAudio( [NativeTypeName("Uint8 *")] Ref dst, [NativeTypeName("const Uint8 *")] Ref src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume + float volume ); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidBecomeActive")] - void OnApplicationDidBecomeActive(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterBackground")] void OnApplicationDidEnterBackground(); + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterForeground")] + void OnApplicationDidEnterForeground(); + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidReceiveMemoryWarning")] void OnApplicationDidReceiveMemoryWarning(); + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterBackground")] + void OnApplicationWillEnterBackground(); + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterForeground")] void OnApplicationWillEnterForeground(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillResignActive")] - void OnApplicationWillResignActive(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillTerminate")] void OnApplicationWillTerminate(); @@ -11736,16 +14395,16 @@ AudioStreamHandle OpenAudioDeviceStream( Ref userdata ); - [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] - CameraHandle OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCamera")] + CameraHandle OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec ); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] - CameraHandle OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCamera")] + CameraHandle OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] Ref spec ); @@ -11813,12 +14472,14 @@ StorageHandle OpenTitleStorage( [NativeTypeName("SDL_PropertiesID")] uint props ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] - int OpenURL([NativeTypeName("const char *")] sbyte* url); + byte OpenURL([NativeTypeName("const char *")] sbyte* url); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] - int OpenURL([NativeTypeName("const char *")] Ref url); + MaybeBool OpenURL([NativeTypeName("const char *")] Ref url); [NativeFunction("SDL3", EntryPoint = "SDL_OpenUserStorage")] StorageHandle OpenUserStorage( @@ -11835,11 +14496,41 @@ StorageHandle OpenUserStorage( [NativeTypeName("SDL_PropertiesID")] uint props ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OutOfMemory")] + MaybeBool OutOfMemory(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_OutOfMemory")] + byte OutOfMemoryRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] + MaybeBool PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] - int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioStreamDevice")] + MaybeBool PauseAudioStreamDevice(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioStreamDevice")] + byte PauseAudioStreamDeviceRaw(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] - int PauseHaptic(HapticHandle haptic); + MaybeBool PauseHaptic(HapticHandle haptic); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] + byte PauseHapticRaw(HapticHandle haptic); [NativeFunction("SDL3", EntryPoint = "SDL_PeepEvents")] int PeepEvents( @@ -11860,105 +14551,116 @@ int PeepEvents( [NativeTypeName("Uint32")] uint maxType ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] - MaybeBool PenConnected([NativeTypeName("SDL_PenID")] uint instance_id); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] - int PenConnectedRaw([NativeTypeName("SDL_PenID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] + MaybeBool PlayHapticRumble( + HapticHandle haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] - int PlayHapticRumble( + byte PlayHapticRumbleRaw( HapticHandle haptic, float strength, [NativeTypeName("Uint32")] uint length ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] - int PollEvent(Event* @event); + byte PollEvent(Event* @event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] - MaybeBool PollEvent(Ref @event); - - [NativeFunction("SDL3", EntryPoint = "SDL_PostSemaphore")] - int PostSemaphore(SemaphoreHandle sem); + MaybeBool PollEvent(Ref @event); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] - int PremultiplyAlpha( + byte PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] byte linear ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] - int PremultiplyAlpha( + MaybeBool PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] MaybeBool linear + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplySurfaceAlpha")] + byte PremultiplySurfaceAlpha(Surface* surface, [NativeTypeName("bool")] byte linear); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplySurfaceAlpha")] + MaybeBool PremultiplySurfaceAlpha( + Ref surface, + [NativeTypeName("bool")] MaybeBool linear ); [NativeFunction("SDL3", EntryPoint = "SDL_PumpEvents")] void PumpEvents(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] - int PushEvent(Event* @event); + byte PushEvent(Event* @event); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] - int PushEvent(Ref @event); + MaybeBool PushEvent(Ref @event); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] - int PutAudioStreamData( + byte PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] void* buf, int len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] - int PutAudioStreamData( + MaybeBool PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] Ref buf, int len ); - [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] - int QueryTexture(TextureHandle texture, PixelFormatEnum* format, int* access, int* w, int* h); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] - int QueryTexture( - TextureHandle texture, - Ref format, - Ref access, - Ref w, - Ref h - ); - [NativeFunction("SDL3", EntryPoint = "SDL_Quit")] void Quit(); [NativeFunction("SDL3", EntryPoint = "SDL_QuitSubSystem")] - void QuitSubSystem([NativeTypeName("Uint32")] uint flags); + void QuitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] + MaybeBool RaiseWindow(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] - int RaiseWindow(WindowHandle window); + byte RaiseWindowRaw(WindowHandle window); [return: NativeTypeName("size_t")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadIO")] @@ -11969,79 +14671,91 @@ Ref h [NativeFunction("SDL3", EntryPoint = "SDL_ReadIO")] nuint ReadIO(IOStreamHandle context, Ref ptr, [NativeTypeName("size_t")] nuint size); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] - int ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value); + byte ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] - MaybeBool ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value); + MaybeBool ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] - int ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value); + byte ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] - MaybeBool ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value); + MaybeBool ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] - int ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value); + byte ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] - MaybeBool ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value); + MaybeBool ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] - int ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value); + byte ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] - MaybeBool ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value); + MaybeBool ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] - int ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value); + byte ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] - MaybeBool ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value); + MaybeBool ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] - int ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value); + byte ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] - MaybeBool ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value); + MaybeBool ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS8")] + byte ReadS8(IOStreamHandle src, [NativeTypeName("Sint8 *")] sbyte* value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS8")] + MaybeBool ReadS8(IOStreamHandle src, [NativeTypeName("Sint8 *")] Ref value); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] - int ReadStorageFile( + byte ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, void* destination, [NativeTypeName("Uint64")] ulong length ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] - int ReadStorageFile( + MaybeBool ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref destination, [NativeTypeName("Uint64")] ulong length ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] - int ReadSurfacePixel( + byte ReadSurfacePixel( Surface* surface, int x, int y, @@ -12051,9 +14765,10 @@ int ReadSurfacePixel( [NativeTypeName("Uint8 *")] byte* a ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] - int ReadSurfacePixel( + MaybeBool ReadSurfacePixel( Ref surface, int x, int y, @@ -12063,148 +14778,226 @@ int ReadSurfacePixel( [NativeTypeName("Uint8 *")] Ref a ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixelFloat")] + byte ReadSurfacePixelFloat( + Surface* surface, + int x, + int y, + float* r, + float* g, + float* b, + float* a + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixelFloat")] + MaybeBool ReadSurfacePixelFloat( + Ref surface, + int x, + int y, + Ref r, + Ref g, + Ref b, + Ref a + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] - int ReadU16BE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value); + byte ReadU16BE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] - MaybeBool ReadU16BE(IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value); + MaybeBool ReadU16BE(IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] - int ReadU16LE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value); + byte ReadU16LE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] - MaybeBool ReadU16LE(IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value); + MaybeBool ReadU16LE(IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] - int ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value); + byte ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] - MaybeBool ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value); + MaybeBool ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] - int ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value); + byte ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] - MaybeBool ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value); + MaybeBool ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] - int ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value); + byte ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] - MaybeBool ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value); + MaybeBool ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] - int ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value); + byte ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] - MaybeBool ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value); + MaybeBool ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] - int ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value); + byte ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] - MaybeBool ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] Ref value); + MaybeBool ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] Ref value); [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_RegisterEvents")] uint RegisterEvents(int numevents); [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] - int ReleaseCameraFrame(CameraHandle camera, Surface* frame); + void ReleaseCameraFrame(CameraHandle camera, Surface* frame); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] - int ReleaseCameraFrame(CameraHandle camera, Ref frame); + void ReleaseCameraFrame(CameraHandle camera, Ref frame); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReloadGamepadMappings")] - int ReloadGamepadMappings(); + MaybeBool ReloadGamepadMappings(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReloadGamepadMappings")] + byte ReloadGamepadMappingsRaw(); + + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveEventWatch")] + void RemoveEventWatch([NativeTypeName("SDL_EventFilter")] EventFilter filter, void* userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveEventWatch")] + void RemoveEventWatch([NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata); + + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveHintCallback")] + void RemoveHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + void* userdata + ); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveHintCallback")] + void RemoveHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + Ref userdata + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] - int RemovePath([NativeTypeName("const char *")] sbyte* path); + byte RemovePath([NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] - int RemovePath([NativeTypeName("const char *")] Ref path); + MaybeBool RemovePath([NativeTypeName("const char *")] Ref path); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] - int RemoveStoragePath(StorageHandle storage, [NativeTypeName("const char *")] sbyte* path); + byte RemoveStoragePath(StorageHandle storage, [NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] - int RemoveStoragePath(StorageHandle storage, [NativeTypeName("const char *")] Ref path); + MaybeBool RemoveStoragePath( + StorageHandle storage, + [NativeTypeName("const char *")] Ref path + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveSurfaceAlternateImages")] + void RemoveSurfaceAlternateImages(Surface* surface); - [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveSurfaceAlternateImages")] + void RemoveSurfaceAlternateImages(Ref surface); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] - MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id); + MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] - int RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id); + byte RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] - int RenamePath( + byte RenamePath( [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] - int RenamePath( + MaybeBool RenamePath( [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] - int RenameStoragePath( + byte RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] - int RenameStoragePath( + MaybeBool RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] + MaybeBool RenderClear(RendererHandle renderer); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] - int RenderClear(RendererHandle renderer); + byte RenderClearRaw(RendererHandle renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] - MaybeBool RenderClipEnabled(RendererHandle renderer); + MaybeBool RenderClipEnabled(RendererHandle renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] - int RenderClipEnabledRaw(RendererHandle renderer); + byte RenderClipEnabledRaw(RendererHandle renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] - int RenderCoordinatesFromWindow( + byte RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -12212,9 +15005,10 @@ int RenderCoordinatesFromWindow( float* y ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] - int RenderCoordinatesFromWindow( + MaybeBool RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -12222,8 +15016,9 @@ int RenderCoordinatesFromWindow( Ref y ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] - int RenderCoordinatesToWindow( + byte RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -12231,9 +15026,10 @@ int RenderCoordinatesToWindow( float* window_y ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] - int RenderCoordinatesToWindow( + MaybeBool RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -12241,59 +15037,85 @@ int RenderCoordinatesToWindow( Ref window_y ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderDebugText")] + byte RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] sbyte* str + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderDebugText")] + MaybeBool RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] Ref str + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] - int RenderFillRect(RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect); + byte RenderFillRect(RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] - int RenderFillRect( + MaybeBool RenderFillRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] - int RenderFillRects( + byte RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] - int RenderFillRects( + MaybeBool RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] - int RenderGeometry( + byte RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, int num_vertices, [NativeTypeName("const int *")] int* indices, int num_indices ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] - int RenderGeometry( + MaybeBool RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_Vertex *")] Ref vertices, int num_vertices, [NativeTypeName("const int *")] Ref indices, int num_indices ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] - int RenderGeometryRaw( + byte RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const float *")] float* xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Color* color, + [NativeTypeName("const SDL_FColor *")] FColor* color, int color_stride, [NativeTypeName("const float *")] float* uv, int uv_stride, @@ -12303,14 +15125,15 @@ int RenderGeometryRaw( int size_indices ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] - int RenderGeometryRaw( + MaybeBool RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const float *")] Ref xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Ref color, + [NativeTypeName("const SDL_FColor *")] Ref color, int color_stride, [NativeTypeName("const float *")] Ref uv, int uv_stride, @@ -12320,77 +15143,66 @@ int RenderGeometryRaw( int size_indices ); - [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] - int RenderGeometryRawFloat( - RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] float* xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] FColor* color, - int color_stride, - [NativeTypeName("const float *")] float* uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] void* indices, - int num_indices, - int size_indices - ); - + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] - int RenderGeometryRawFloat( - RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] Ref xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] Ref color, - int color_stride, - [NativeTypeName("const float *")] Ref uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] Ref indices, - int num_indices, - int size_indices - ); + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] + MaybeBool RenderLine(RendererHandle renderer, float x1, float y1, float x2, float y2); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] - int RenderLine(RendererHandle renderer, float x1, float y1, float x2, float y2); + byte RenderLineRaw(RendererHandle renderer, float x1, float y1, float x2, float y2); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] - int RenderLines( + byte RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] - int RenderLines( + MaybeBool RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] + MaybeBool RenderPoint(RendererHandle renderer, float x, float y); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] - int RenderPoint(RendererHandle renderer, float x, float y); + byte RenderPointRaw(RendererHandle renderer, float x, float y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] - int RenderPoints( + byte RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] - int RenderPoints( + MaybeBool RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] + MaybeBool RenderPresent(RendererHandle renderer); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] - int RenderPresent(RendererHandle renderer); + byte RenderPresentRaw(RendererHandle renderer); [NativeFunction("SDL3", EntryPoint = "SDL_RenderReadPixels")] Surface* RenderReadPixels( @@ -12405,76 +15217,137 @@ Ptr RenderReadPixels( [NativeTypeName("const SDL_Rect *")] Ref rect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] - int RenderRect(RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect); + byte RenderRect(RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] - int RenderRect(RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect); + MaybeBool RenderRect( + RendererHandle renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] - int RenderRects( + byte RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] - int RenderRects( + MaybeBool RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] - int RenderTexture( + byte RenderTexture( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, [NativeTypeName("const SDL_FRect *")] FRect* dstrect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] - int RenderTexture( + MaybeBool RenderTexture( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9Grid")] + byte RenderTexture9Grid( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9Grid")] + MaybeBool RenderTexture9Grid( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, [NativeTypeName("const SDL_FRect *")] Ref dstrect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] - int RenderTextureRotated( + byte RenderTextureRotated( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, [NativeTypeName("const SDL_FRect *")] FRect* dstrect, - [NativeTypeName("const double")] double angle, + double angle, [NativeTypeName("const SDL_FPoint *")] FPoint* center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip + FlipMode flip ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] - int RenderTextureRotated( + MaybeBool RenderTextureRotated( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, [NativeTypeName("const SDL_FRect *")] Ref dstrect, - [NativeTypeName("const double")] double angle, + double angle, [NativeTypeName("const SDL_FPoint *")] Ref center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip + FlipMode flip + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureTiled")] + byte RenderTextureTiled( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureTiled")] + MaybeBool RenderTextureTiled( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + float scale, + [NativeTypeName("const SDL_FRect *")] Ref dstrect ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] - MaybeBool RenderViewportSet(RendererHandle renderer); + MaybeBool RenderViewportSet(RendererHandle renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] - int RenderViewportSetRaw(RendererHandle renderer); + byte RenderViewportSetRaw(RendererHandle renderer); [NativeFunction("SDL3", EntryPoint = "SDL_ReportAssertion")] AssertState ReportAssertion( @@ -12496,14 +15369,14 @@ int line [NativeFunction("SDL3", EntryPoint = "SDL_ResetAssertionReport")] void ResetAssertionReport(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] - int ResetHint([NativeTypeName("const char *")] sbyte* name); + byte ResetHint([NativeTypeName("const char *")] sbyte* name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] - MaybeBool ResetHint([NativeTypeName("const char *")] Ref name); + MaybeBool ResetHint([NativeTypeName("const char *")] Ref name); [NativeFunction("SDL3", EntryPoint = "SDL_ResetHints")] void ResetHints(); @@ -12511,124 +15384,276 @@ int line [NativeFunction("SDL3", EntryPoint = "SDL_ResetKeyboard")] void ResetKeyboard(); + [NativeFunction("SDL3", EntryPoint = "SDL_ResetLogPriorities")] + void ResetLogPriorities(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] + MaybeBool RestoreWindow(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] - int RestoreWindow(WindowHandle window); + byte RestoreWindowRaw(WindowHandle window); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] + MaybeBool ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] - int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioStreamDevice")] + MaybeBool ResumeAudioStreamDevice(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioStreamDevice")] + byte ResumeAudioStreamDeviceRaw(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] - int ResumeHaptic(HapticHandle haptic); + MaybeBool ResumeHaptic(HapticHandle haptic); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] + byte ResumeHapticRaw(HapticHandle haptic); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] - int RumbleGamepad( + MaybeBool RumbleGamepad( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] + byte RumbleGamepadRaw( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] + MaybeBool RumbleGamepadTriggers( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] - int RumbleGamepadTriggers( + byte RumbleGamepadTriggersRaw( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] + MaybeBool RumbleJoystick( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] - int RumbleJoystick( + byte RumbleJoystickRaw( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] + MaybeBool RumbleJoystickTriggers( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] - int RumbleJoystickTriggers( + byte RumbleJoystickTriggersRaw( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] + MaybeBool RunHapticEffect( + HapticHandle haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] - int RunHapticEffect( + byte RunHapticEffectRaw( HapticHandle haptic, int effect, [NativeTypeName("Uint32")] uint iterations ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] - int SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file); + byte SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] - int SaveBMP(Ref surface, [NativeTypeName("const char *")] Ref file); + MaybeBool SaveBMP(Ref surface, [NativeTypeName("const char *")] Ref file); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] - int SaveBMPIO(Surface* surface, IOStreamHandle dst, [NativeTypeName("SDL_bool")] int closeio); + byte SaveBMPIO(Surface* surface, IOStreamHandle dst, [NativeTypeName("bool")] byte closeio); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] - int SaveBMPIO( + MaybeBool SaveBMPIO( Ref surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ); - [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ScaleSurface")] + Surface* ScaleSurface(Surface* surface, int width, int height, ScaleMode scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScaleSurface")] + Ptr ScaleSurface(Ref surface, int width, int height, ScaleMode scaleMode); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] - MaybeBool ScreenKeyboardShown(WindowHandle window); + MaybeBool ScreenKeyboardShown(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] - int ScreenKeyboardShownRaw(WindowHandle window); + byte ScreenKeyboardShownRaw(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] - MaybeBool ScreenSaverEnabled(); + MaybeBool ScreenSaverEnabled(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] - int ScreenSaverEnabledRaw(); + byte ScreenSaverEnabledRaw(); [return: NativeTypeName("Sint64")] [NativeFunction("SDL3", EntryPoint = "SDL_SeekIO")] - long SeekIO(IOStreamHandle context, [NativeTypeName("Sint64")] long offset, int whence); + long SeekIO(IOStreamHandle context, [NativeTypeName("Sint64")] long offset, IOWhence whence); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] - int SendGamepadEffect( + byte SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] void* data, int size ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] - int SendGamepadEffect( + MaybeBool SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] Ref data, int size ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] - int SendJoystickEffect( + byte SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] void* data, int size ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] - int SendJoystickEffect( + MaybeBool SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] Ref data, int size ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickVirtualSensorData")] + byte SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] float* data, + int num_values + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickVirtualSensorData")] + MaybeBool SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] Ref data, + int num_values + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadata")] + byte SetAppMetadata( + [NativeTypeName("const char *")] sbyte* appname, + [NativeTypeName("const char *")] sbyte* appversion, + [NativeTypeName("const char *")] sbyte* appidentifier + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadata")] + MaybeBool SetAppMetadata( + [NativeTypeName("const char *")] Ref appname, + [NativeTypeName("const char *")] Ref appversion, + [NativeTypeName("const char *")] Ref appidentifier + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadataProperty")] + byte SetAppMetadataProperty( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadataProperty")] + MaybeBool SetAppMetadataProperty( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetAssertionHandler")] void SetAssertionHandler( [NativeTypeName("SDL_AssertionHandler")] AssertionHandler handler, @@ -12642,86 +15667,181 @@ void SetAssertionHandler( Ref userdata ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicInt")] + int SetAtomicInt(AtomicInt* a, int v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicInt")] + int SetAtomicInt(Ref a, int v); + + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicPointer")] + void* SetAtomicPointer(void** a, void* v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicPointer")] + Ptr SetAtomicPointer(Ref2D a, Ref v); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicU32")] + uint SetAtomicU32(AtomicU32* a, [NativeTypeName("Uint32")] uint v); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicU32")] + uint SetAtomicU32(Ref a, [NativeTypeName("Uint32")] uint v); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioDeviceGain")] + MaybeBool SetAudioDeviceGain( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + float gain + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioDeviceGain")] + byte SetAudioDeviceGainRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid, float gain); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] - int SetAudioPostmixCallback( + byte SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] - int SetAudioPostmixCallback( + MaybeBool SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, Ref userdata ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] - int SetAudioStreamFormat( + byte SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] - int SetAudioStreamFormat( + MaybeBool SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] - int SetAudioStreamFrequencyRatio(AudioStreamHandle stream, float ratio); + MaybeBool SetAudioStreamFrequencyRatio(AudioStreamHandle stream, float ratio); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] + byte SetAudioStreamFrequencyRatioRaw(AudioStreamHandle stream, float ratio); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGain")] + MaybeBool SetAudioStreamGain(AudioStreamHandle stream, float gain); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGain")] + byte SetAudioStreamGainRaw(AudioStreamHandle stream, float gain); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] - int SetAudioStreamGetCallback( + byte SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] - int SetAudioStreamGetCallback( + MaybeBool SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamInputChannelMap")] + byte SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamInputChannelMap")] + MaybeBool SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamOutputChannelMap")] + byte SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamOutputChannelMap")] + MaybeBool SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] - int SetAudioStreamPutCallback( + byte SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] - int SetAudioStreamPutCallback( + MaybeBool SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] - int SetBooleanProperty( + byte SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int value + [NativeTypeName("bool")] byte value ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] - int SetBooleanProperty( + MaybeBool SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool value + [NativeTypeName("bool")] MaybeBool value ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] - int SetClipboardData( + byte SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, void* userdata, @@ -12729,9 +15849,10 @@ int SetClipboardData( [NativeTypeName("size_t")] nuint num_mime_types ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] - int SetClipboardData( + MaybeBool SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, Ref userdata, @@ -12739,27 +15860,59 @@ int SetClipboardData( [NativeTypeName("size_t")] nuint num_mime_types ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] - int SetClipboardText([NativeTypeName("const char *")] sbyte* text); + byte SetClipboardText([NativeTypeName("const char *")] sbyte* text); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] - int SetClipboardText([NativeTypeName("const char *")] Ref text); + MaybeBool SetClipboardText([NativeTypeName("const char *")] Ref text); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCurrentThreadPriority")] + MaybeBool SetCurrentThreadPriority(ThreadPriority priority); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCurrentThreadPriority")] + byte SetCurrentThreadPriorityRaw(ThreadPriority priority); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] + MaybeBool SetCursor(CursorHandle cursor); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] - int SetCursor(CursorHandle cursor); + byte SetCursorRaw(CursorHandle cursor); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetErrorV")] + byte SetErrorV( + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetErrorV")] + MaybeBool SetErrorV( + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ); [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] void SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] void SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ); [NativeFunction("SDL3", EntryPoint = "SDL_SetEventFilter")] @@ -12769,144 +15922,277 @@ void SetEventEnabled( [NativeFunction("SDL3", EntryPoint = "SDL_SetEventFilter")] void SetEventFilter([NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] - int SetFloatProperty( + byte SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, float value ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] - int SetFloatProperty( + MaybeBool SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, float value ); [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] - void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled); + void SetGamepadEventsEnabled([NativeTypeName("bool")] byte enabled); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] - void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] MaybeBool enabled); + void SetGamepadEventsEnabled([NativeTypeName("bool")] MaybeBool enabled); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] + MaybeBool SetGamepadLED( + GamepadHandle gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] - int SetGamepadLED( + byte SetGamepadLEDRaw( GamepadHandle gamepad, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] - int SetGamepadMapping( + byte SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] sbyte* mapping ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] - int SetGamepadMapping( + MaybeBool SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] Ref mapping ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] + MaybeBool SetGamepadPlayerIndex(GamepadHandle gamepad, int player_index); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] - int SetGamepadPlayerIndex(GamepadHandle gamepad, int player_index); + byte SetGamepadPlayerIndexRaw(GamepadHandle gamepad, int player_index); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] - int SetGamepadSensorEnabled( + byte SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] - int SetGamepadSensorEnabled( + MaybeBool SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] - int SetHapticAutocenter(HapticHandle haptic, int autocenter); + MaybeBool SetHapticAutocenter(HapticHandle haptic, int autocenter); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] + byte SetHapticAutocenterRaw(HapticHandle haptic, int autocenter); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] + MaybeBool SetHapticGain(HapticHandle haptic, int gain); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] - int SetHapticGain(HapticHandle haptic, int gain); + byte SetHapticGainRaw(HapticHandle haptic, int gain); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] - int SetHint( + byte SetHint( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] - MaybeBool SetHint( + MaybeBool SetHint( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] - int SetHintWithPriority( + byte SetHintWithPriority( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value, HintPriority priority ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] - MaybeBool SetHintWithPriority( + MaybeBool SetHintWithPriority( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value, HintPriority priority ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetInitialized")] + void SetInitialized(InitState* state, [NativeTypeName("bool")] byte initialized); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetInitialized")] + void SetInitialized(Ref state, [NativeTypeName("bool")] MaybeBool initialized); + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] - void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled); + void SetJoystickEventsEnabled([NativeTypeName("bool")] byte enabled); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] - void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] MaybeBool enabled); + void SetJoystickEventsEnabled([NativeTypeName("bool")] MaybeBool enabled); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] + MaybeBool SetJoystickLED( + JoystickHandle joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] - int SetJoystickLED( + byte SetJoystickLEDRaw( JoystickHandle joystick, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] + MaybeBool SetJoystickPlayerIndex(JoystickHandle joystick, int player_index); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] - int SetJoystickPlayerIndex(JoystickHandle joystick, int player_index); + byte SetJoystickPlayerIndexRaw(JoystickHandle joystick, int player_index); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] - int SetJoystickVirtualAxis( + MaybeBool SetJoystickVirtualAxis( JoystickHandle joystick, int axis, [NativeTypeName("Sint16")] short value ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] + byte SetJoystickVirtualAxisRaw( + JoystickHandle joystick, + int axis, + [NativeTypeName("Sint16")] short value + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualBall")] + MaybeBool SetJoystickVirtualBall( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualBall")] + byte SetJoystickVirtualBallRaw( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] + byte SetJoystickVirtualButton( + JoystickHandle joystick, + int button, + [NativeTypeName("bool")] byte down + ); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] - int SetJoystickVirtualButton( + MaybeBool SetJoystickVirtualButton( JoystickHandle joystick, int button, + [NativeTypeName("bool")] MaybeBool down + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] + MaybeBool SetJoystickVirtualHat( + JoystickHandle joystick, + int hat, [NativeTypeName("Uint8")] byte value ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] - int SetJoystickVirtualHat( + byte SetJoystickVirtualHatRaw( JoystickHandle joystick, int hat, [NativeTypeName("Uint8")] byte value ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualTouchpad")] + byte SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] byte down, + float x, + float y, + float pressure + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualTouchpad")] + MaybeBool SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] MaybeBool down, + float x, + float y, + float pressure + ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogOutputFunction")] void SetLogOutputFunction( [NativeTypeName("SDL_LogOutputFunction")] LogOutputFunction callback, @@ -12920,114 +16206,153 @@ void SetLogOutputFunction( Ref userdata ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorities")] + void SetLogPriorities(LogPriority priority); + + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriority")] + void SetLogPriority(int category, LogPriority priority); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorityPrefix")] + byte SetLogPriorityPrefix(LogPriority priority, [NativeTypeName("const char *")] sbyte* prefix); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorityPrefix")] + MaybeBool SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] Ref prefix + ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetModState")] - void SetModState(Keymod modstate); + void SetModState([NativeTypeName("SDL_Keymod")] ushort modstate); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] - int SetNumberProperty( + byte SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("Sint64")] long value ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] - int SetNumberProperty( + MaybeBool SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("Sint64")] long value ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] - int SetPaletteColors( + byte SetPaletteColors( Palette* palette, [NativeTypeName("const SDL_Color *")] Color* colors, int firstcolor, int ncolors ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] - int SetPaletteColors( - Ref palette, - [NativeTypeName("const SDL_Color *")] Ref colors, - int firstcolor, - int ncolors - ); - - [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] - int SetPixelFormatPalette(PixelFormat* format, Palette* palette); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] - int SetPixelFormatPalette(Ref format, Ref palette); - - [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] - int SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] - int SetPrimarySelectionText([NativeTypeName("const char *")] Ref text); + MaybeBool SetPaletteColors( + Ref palette, + [NativeTypeName("const SDL_Color *")] Ref colors, + int firstcolor, + int ncolors + ); - [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] - int SetProperty( + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerProperty")] + byte SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] - int SetProperty( + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerProperty")] + MaybeBool SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value ); - [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] - int SetPropertyWithCleanup( + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerPropertyWithCleanup")] + byte SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] - int SetPropertyWithCleanup( + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerPropertyWithCleanup")] + MaybeBool SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, Ref userdata ); - [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] - int SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] + byte SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] - int SetRelativeMouseMode([NativeTypeName("SDL_bool")] MaybeBool enabled); + [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] + MaybeBool SetPrimarySelectionText([NativeTypeName("const char *")] Ref text); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] - int SetRenderClipRect(RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect); + byte SetRenderClipRect( + RendererHandle renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] - int SetRenderClipRect( + MaybeBool SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] + MaybeBool SetRenderColorScale(RendererHandle renderer, float scale); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] - int SetRenderColorScale(RendererHandle renderer, float scale); + byte SetRenderColorScaleRaw(RendererHandle renderer, float scale); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] + MaybeBool SetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] - int SetRenderDrawBlendMode(RendererHandle renderer, BlendMode blendMode); + byte SetRenderDrawBlendModeRaw( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] - int SetRenderDrawColor( + MaybeBool SetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, @@ -13035,333 +16360,619 @@ int SetRenderDrawColor( [NativeTypeName("Uint8")] byte a ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] + MaybeBool SetRenderDrawColorFloat( + RendererHandle renderer, + float r, + float g, + float b, + float a + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] - int SetRenderDrawColorFloat(RendererHandle renderer, float r, float g, float b, float a); + byte SetRenderDrawColorFloatRaw(RendererHandle renderer, float r, float g, float b, float a); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] + byte SetRenderDrawColorRaw( + RendererHandle renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] + MaybeBool SetRenderLogicalPresentation( + RendererHandle renderer, + int w, + int h, + RendererLogicalPresentation mode + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] - int SetRenderLogicalPresentation( + byte SetRenderLogicalPresentationRaw( RendererHandle renderer, int w, int h, - RendererLogicalPresentation mode, - ScaleMode scale_mode + RendererLogicalPresentation mode ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] + MaybeBool SetRenderScale(RendererHandle renderer, float scaleX, float scaleY); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] - int SetRenderScale(RendererHandle renderer, float scaleX, float scaleY); + byte SetRenderScaleRaw(RendererHandle renderer, float scaleX, float scaleY); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] - int SetRenderTarget(RendererHandle renderer, TextureHandle texture); + byte SetRenderTarget(RendererHandle renderer, Texture* texture); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] + MaybeBool SetRenderTarget(RendererHandle renderer, Ref texture); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] - int SetRenderViewport(RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect); + byte SetRenderViewport( + RendererHandle renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] - int SetRenderViewport( + MaybeBool SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] + MaybeBool SetRenderVSync(RendererHandle renderer, int vsync); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] - int SetRenderVSync(RendererHandle renderer, int vsync); + byte SetRenderVSyncRaw(RendererHandle renderer, int vsync); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetScancodeName")] + byte SetScancodeName(Scancode scancode, [NativeTypeName("const char *")] sbyte* name); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetScancodeName")] + MaybeBool SetScancodeName( + Scancode scancode, + [NativeTypeName("const char *")] Ref name + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] - int SetStringProperty( + byte SetStringProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] - int SetStringProperty( + MaybeBool SetStringProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] - int SetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8")] byte alpha); + byte SetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8")] byte alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] - int SetSurfaceAlphaMod(Ref surface, [NativeTypeName("Uint8")] byte alpha); + MaybeBool SetSurfaceAlphaMod(Ref surface, [NativeTypeName("Uint8")] byte alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] - int SetSurfaceBlendMode(Surface* surface, BlendMode blendMode); + byte SetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] - int SetSurfaceBlendMode(Ref surface, BlendMode blendMode); + MaybeBool SetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] - int SetSurfaceClipRect(Surface* surface, [NativeTypeName("const SDL_Rect *")] Rect* rect); + byte SetSurfaceClipRect(Surface* surface, [NativeTypeName("const SDL_Rect *")] Rect* rect); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] - MaybeBool SetSurfaceClipRect( + MaybeBool SetSurfaceClipRect( Ref surface, [NativeTypeName("const SDL_Rect *")] Ref rect ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] - int SetSurfaceColorKey(Surface* surface, int flag, [NativeTypeName("Uint32")] uint key); + byte SetSurfaceColorKey( + Surface* surface, + [NativeTypeName("bool")] byte enabled, + [NativeTypeName("Uint32")] uint key + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] - int SetSurfaceColorKey(Ref surface, int flag, [NativeTypeName("Uint32")] uint key); + MaybeBool SetSurfaceColorKey( + Ref surface, + [NativeTypeName("bool")] MaybeBool enabled, + [NativeTypeName("Uint32")] uint key + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] - int SetSurfaceColorMod( + byte SetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] - int SetSurfaceColorMod( + MaybeBool SetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] - int SetSurfaceColorspace(Surface* surface, Colorspace colorspace); + byte SetSurfaceColorspace(Surface* surface, Colorspace colorspace); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] - int SetSurfaceColorspace(Ref surface, Colorspace colorspace); + MaybeBool SetSurfaceColorspace(Ref surface, Colorspace colorspace); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] - int SetSurfacePalette(Surface* surface, Palette* palette); + byte SetSurfacePalette(Surface* surface, Palette* palette); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] - int SetSurfacePalette(Ref surface, Ref palette); + MaybeBool SetSurfacePalette(Ref surface, Ref palette); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] - int SetSurfaceRLE(Surface* surface, int flag); + byte SetSurfaceRLE(Surface* surface, [NativeTypeName("bool")] byte enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] - int SetSurfaceRLE(Ref surface, int flag); + MaybeBool SetSurfaceRLE( + Ref surface, + [NativeTypeName("bool")] MaybeBool enabled + ); - [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] - int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputArea")] + byte SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int cursor + ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] - int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect); + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputArea")] + MaybeBool SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Ref rect, + int cursor + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] + byte SetTextureAlphaMod(Texture* texture, [NativeTypeName("Uint8")] byte alpha); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] - int SetTextureAlphaMod(TextureHandle texture, [NativeTypeName("Uint8")] byte alpha); + MaybeBool SetTextureAlphaMod(Ref texture, [NativeTypeName("Uint8")] byte alpha); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] + byte SetTextureAlphaModFloat(Texture* texture, float alpha); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] - int SetTextureAlphaModFloat(TextureHandle texture, float alpha); + MaybeBool SetTextureAlphaModFloat(Ref texture, float alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] - int SetTextureBlendMode(TextureHandle texture, BlendMode blendMode); + byte SetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + MaybeBool SetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] + byte SetTextureColorMod( + Texture* texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] - int SetTextureColorMod( - TextureHandle texture, + MaybeBool SetTextureColorMod( + Ref texture, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] - int SetTextureColorModFloat(TextureHandle texture, float r, float g, float b); + byte SetTextureColorModFloat(Texture* texture, float r, float g, float b); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] + MaybeBool SetTextureColorModFloat(Ref texture, float r, float g, float b); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] - int SetTextureScaleMode(TextureHandle texture, ScaleMode scaleMode); + byte SetTextureScaleMode(Texture* texture, ScaleMode scaleMode); - [NativeFunction("SDL3", EntryPoint = "SDL_SetThreadPriority")] - int SetThreadPriority(ThreadPriority priority); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] + MaybeBool SetTextureScaleMode(Ref texture, ScaleMode scaleMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] - int SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + byte SetTLS( + [NativeTypeName("SDL_TLSID *")] AtomicInt* id, [NativeTypeName("const void *")] void* value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] - int SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + MaybeBool SetTLS( + [NativeTypeName("SDL_TLSID *")] Ref id, [NativeTypeName("const void *")] Ref value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] - int SetWindowAlwaysOnTop(WindowHandle window, [NativeTypeName("SDL_bool")] int on_top); + byte SetWindowAlwaysOnTop(WindowHandle window, [NativeTypeName("bool")] byte on_top); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] - int SetWindowAlwaysOnTop( + MaybeBool SetWindowAlwaysOnTop( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool on_top + [NativeTypeName("bool")] MaybeBool on_top ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAspectRatio")] + MaybeBool SetWindowAspectRatio(WindowHandle window, float min_aspect, float max_aspect); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAspectRatio")] + byte SetWindowAspectRatioRaw(WindowHandle window, float min_aspect, float max_aspect); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] - int SetWindowBordered(WindowHandle window, [NativeTypeName("SDL_bool")] int bordered); + byte SetWindowBordered(WindowHandle window, [NativeTypeName("bool")] byte bordered); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] - int SetWindowBordered( + MaybeBool SetWindowBordered( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool bordered + [NativeTypeName("bool")] MaybeBool bordered ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] - int SetWindowFocusable(WindowHandle window, [NativeTypeName("SDL_bool")] int focusable); + byte SetWindowFocusable(WindowHandle window, [NativeTypeName("bool")] byte focusable); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] - int SetWindowFocusable( + MaybeBool SetWindowFocusable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool focusable + [NativeTypeName("bool")] MaybeBool focusable ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] - int SetWindowFullscreen(WindowHandle window, [NativeTypeName("SDL_bool")] int fullscreen); + byte SetWindowFullscreen(WindowHandle window, [NativeTypeName("bool")] byte fullscreen); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] - int SetWindowFullscreen( + MaybeBool SetWindowFullscreen( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool fullscreen + [NativeTypeName("bool")] MaybeBool fullscreen ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] - int SetWindowFullscreenMode( + byte SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] - int SetWindowFullscreenMode( + MaybeBool SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] Ref mode ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] - int SetWindowHitTest( + byte SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, void* callback_data ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] - int SetWindowHitTest( + MaybeBool SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, Ref callback_data ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] - int SetWindowIcon(WindowHandle window, Surface* icon); + byte SetWindowIcon(WindowHandle window, Surface* icon); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] - int SetWindowIcon(WindowHandle window, Ref icon); - - [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowInputFocus")] - int SetWindowInputFocus(WindowHandle window); + MaybeBool SetWindowIcon(WindowHandle window, Ref icon); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] - int SetWindowKeyboardGrab(WindowHandle window, [NativeTypeName("SDL_bool")] int grabbed); + byte SetWindowKeyboardGrab(WindowHandle window, [NativeTypeName("bool")] byte grabbed); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] - int SetWindowKeyboardGrab( + MaybeBool SetWindowKeyboardGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed + [NativeTypeName("bool")] MaybeBool grabbed ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] + MaybeBool SetWindowMaximumSize(WindowHandle window, int max_w, int max_h); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] - int SetWindowMaximumSize(WindowHandle window, int max_w, int max_h); + byte SetWindowMaximumSizeRaw(WindowHandle window, int max_w, int max_h); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] + MaybeBool SetWindowMinimumSize(WindowHandle window, int min_w, int min_h); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] - int SetWindowMinimumSize(WindowHandle window, int min_w, int min_h); + byte SetWindowMinimumSizeRaw(WindowHandle window, int min_w, int min_h); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModal")] + byte SetWindowModal(WindowHandle window, [NativeTypeName("bool")] byte modal); - [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModalFor")] - int SetWindowModalFor(WindowHandle modal_window, WindowHandle parent_window); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModal")] + MaybeBool SetWindowModal( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool modal + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] - int SetWindowMouseGrab(WindowHandle window, [NativeTypeName("SDL_bool")] int grabbed); + byte SetWindowMouseGrab(WindowHandle window, [NativeTypeName("bool")] byte grabbed); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] - int SetWindowMouseGrab( + MaybeBool SetWindowMouseGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed + [NativeTypeName("bool")] MaybeBool grabbed ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] - int SetWindowMouseRect(WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rect); + byte SetWindowMouseRect(WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] - int SetWindowMouseRect( + MaybeBool SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rect ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] + MaybeBool SetWindowOpacity(WindowHandle window, float opacity); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] - int SetWindowOpacity(WindowHandle window, float opacity); + byte SetWindowOpacityRaw(WindowHandle window, float opacity); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowParent")] + MaybeBool SetWindowParent(WindowHandle window, WindowHandle parent); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowParent")] + byte SetWindowParentRaw(WindowHandle window, WindowHandle parent); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] + MaybeBool SetWindowPosition(WindowHandle window, int x, int y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] - int SetWindowPosition(WindowHandle window, int x, int y); + byte SetWindowPositionRaw(WindowHandle window, int x, int y); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] + byte SetWindowRelativeMouseMode(WindowHandle window, [NativeTypeName("bool")] byte enabled); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] + MaybeBool SetWindowRelativeMouseMode( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool enabled + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] - int SetWindowResizable(WindowHandle window, [NativeTypeName("SDL_bool")] int resizable); + byte SetWindowResizable(WindowHandle window, [NativeTypeName("bool")] byte resizable); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] - int SetWindowResizable( + MaybeBool SetWindowResizable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool resizable + [NativeTypeName("bool")] MaybeBool resizable ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] - int SetWindowShape(WindowHandle window, Surface* shape); + byte SetWindowShape(WindowHandle window, Surface* shape); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] - int SetWindowShape(WindowHandle window, Ref shape); + MaybeBool SetWindowShape(WindowHandle window, Ref shape); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] + MaybeBool SetWindowSize(WindowHandle window, int w, int h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] - int SetWindowSize(WindowHandle window, int w, int h); + byte SetWindowSizeRaw(WindowHandle window, int w, int h); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSurfaceVSync")] + MaybeBool SetWindowSurfaceVSync(WindowHandle window, int vsync); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSurfaceVSync")] + byte SetWindowSurfaceVSyncRaw(WindowHandle window, int vsync); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] - int SetWindowTitle(WindowHandle window, [NativeTypeName("const char *")] sbyte* title); + byte SetWindowTitle(WindowHandle window, [NativeTypeName("const char *")] sbyte* title); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] - int SetWindowTitle(WindowHandle window, [NativeTypeName("const char *")] Ref title); + MaybeBool SetWindowTitle( + WindowHandle window, + [NativeTypeName("const char *")] Ref title + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldInit")] + byte ShouldInit(InitState* state); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldInit")] + MaybeBool ShouldInit(Ref state); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldQuit")] + byte ShouldQuit(InitState* state); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldQuit")] + MaybeBool ShouldQuit(Ref state); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] - int ShowCursor(); + MaybeBool ShowCursor(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] + byte ShowCursorRaw(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] - int ShowMessageBox( + byte ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, int* buttonid ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] - int ShowMessageBox( + MaybeBool ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, Ref buttonid ); @@ -13372,8 +16983,9 @@ void ShowOpenFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ); [Transformed] @@ -13383,8 +16995,9 @@ void ShowOpenFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ); [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFolderDialog")] @@ -13393,7 +17006,7 @@ void ShowOpenFolderDialog( void* userdata, WindowHandle window, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ); [Transformed] @@ -13403,7 +17016,7 @@ void ShowOpenFolderDialog( Ref userdata, WindowHandle window, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ); [NativeFunction("SDL3", EntryPoint = "SDL_ShowSaveFileDialog")] @@ -13412,6 +17025,7 @@ void ShowSaveFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location ); @@ -13422,115 +17036,177 @@ void ShowSaveFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] - int ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + byte ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] sbyte* title, [NativeTypeName("const char *")] sbyte* message, WindowHandle window ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] - int ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + MaybeBool ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] Ref title, [NativeTypeName("const char *")] Ref message, WindowHandle window ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] + MaybeBool ShowWindow(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] - int ShowWindow(WindowHandle window); + byte ShowWindowRaw(WindowHandle window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] + MaybeBool ShowWindowSystemMenu(WindowHandle window, int x, int y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] - int ShowWindowSystemMenu(WindowHandle window, int x, int y); + byte ShowWindowSystemMenuRaw(WindowHandle window, int x, int y); [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] - int SignalCondition(ConditionHandle cond); + void SignalCondition(ConditionHandle cond); - [return: NativeTypeName("size_t")] - [NativeFunction("SDL3", EntryPoint = "SDL_SIMDGetAlignment")] - nuint SimdGetAlignment(); + [NativeFunction("SDL3", EntryPoint = "SDL_SignalSemaphore")] + void SignalSemaphore(SemaphoreHandle sem); - [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] - int SoftStretch( - Surface* src, - [NativeTypeName("const SDL_Rect *")] Rect* srcrect, - Surface* dst, - [NativeTypeName("const SDL_Rect *")] Rect* dstrect, - ScaleMode scaleMode - ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] + MaybeBool StartTextInput(WindowHandle window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] + byte StartTextInputRaw(WindowHandle window); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] - int SoftStretch( - Ref src, - [NativeTypeName("const SDL_Rect *")] Ref srcrect, - Ref dst, - [NativeTypeName("const SDL_Rect *")] Ref dstrect, - ScaleMode scaleMode + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInputWithProperties")] + MaybeBool StartTextInputWithProperties( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props ); - [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] - void StartTextInput(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInputWithProperties")] + byte StartTextInputWithPropertiesRaw( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + MaybeBool StopHapticEffect(HapticHandle haptic, int effect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] - int StopHapticEffect(HapticHandle haptic, int effect); + byte StopHapticEffectRaw(HapticHandle haptic, int effect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + MaybeBool StopHapticEffects(HapticHandle haptic); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] - int StopHapticEffects(HapticHandle haptic); + byte StopHapticEffectsRaw(HapticHandle haptic); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] + MaybeBool StopHapticRumble(HapticHandle haptic); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] - int StopHapticRumble(HapticHandle haptic); + byte StopHapticRumbleRaw(HapticHandle haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopTextInput")] + MaybeBool StopTextInput(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopTextInput")] - void StopTextInput(); + byte StopTextInputRaw(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] - MaybeBool StorageReady(StorageHandle storage); + MaybeBool StorageReady(StorageHandle storage); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] - int StorageReadyRaw(StorageHandle storage); + byte StorageReadyRaw(StorageHandle storage); + + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] + Guid StringToGuid([NativeTypeName("const char *")] sbyte* pchGUID); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] + Guid StringToGuid([NativeTypeName("const char *")] Ref pchGUID); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasAlternateImages")] + byte SurfaceHasAlternateImages(Surface* surface); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasAlternateImages")] + MaybeBool SurfaceHasAlternateImages(Ref surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] - int SurfaceHasColorKey(Surface* surface); + byte SurfaceHasColorKey(Surface* surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] - MaybeBool SurfaceHasColorKey(Ref surface); + MaybeBool SurfaceHasColorKey(Ref surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] - int SurfaceHasRLE(Surface* surface); + byte SurfaceHasRLE(Surface* surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] - MaybeBool SurfaceHasRLE(Ref surface); + MaybeBool SurfaceHasRLE(Ref surface); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] + MaybeBool SyncWindow(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] - int SyncWindow(WindowHandle window); + byte SyncWindowRaw(WindowHandle window); [return: NativeTypeName("Sint64")] [NativeFunction("SDL3", EntryPoint = "SDL_TellIO")] long TellIO(IOStreamHandle context); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] - MaybeBool TextInputActive(); + MaybeBool TextInputActive(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] - int TextInputActiveRaw(); + byte TextInputActiveRaw(WindowHandle window); [return: NativeTypeName("SDL_Time")] [NativeFunction("SDL3", EntryPoint = "SDL_TimeFromWindows")] @@ -13539,19 +17215,21 @@ long TimeFromWindows( [NativeTypeName("Uint32")] uint dwHighDateTime ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] - int TimeToDateTime( + byte TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, DateTime* dt, - [NativeTypeName("SDL_bool")] int localTime + [NativeTypeName("bool")] byte localTime ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] - int TimeToDateTime( + MaybeBool TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, Ref dt, - [NativeTypeName("SDL_bool")] MaybeBool localTime + [NativeTypeName("bool")] MaybeBool localTime ); [NativeFunction("SDL3", EntryPoint = "SDL_TimeToWindows")] @@ -13569,26 +17247,50 @@ void TimeToWindows( [NativeTypeName("Uint32 *")] Ref dwHighDateTime ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] + MaybeBool TryLockMutex(MutexHandle mutex); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] - int TryLockMutex(MutexHandle mutex); + byte TryLockMutexRaw(MutexHandle mutex); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] + MaybeBool TryLockRWLockForReading(RWLockHandle rwlock); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] - int TryLockRWLockForReading(RWLockHandle rwlock); + byte TryLockRWLockForReadingRaw(RWLockHandle rwlock); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] + MaybeBool TryLockRWLockForWriting(RWLockHandle rwlock); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] - int TryLockRWLockForWriting(RWLockHandle rwlock); + byte TryLockRWLockForWritingRaw(RWLockHandle rwlock); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] - int TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); + byte TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] - MaybeBool TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock); + MaybeBool TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] + MaybeBool TryWaitSemaphore(SemaphoreHandle sem); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] - int TryWaitSemaphore(SemaphoreHandle sem); + byte TryWaitSemaphoreRaw(SemaphoreHandle sem); [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStream")] void UnbindAudioStream(AudioStreamHandle stream); @@ -13601,14 +17303,16 @@ void TimeToWindows( void UnbindAudioStreams(Ref streams, int num_streams); [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] - void UnloadObject(void* handle); + void UnloadObject(SharedObjectHandle handle); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] - void UnloadObject(Ref handle); + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] + MaybeBool UnlockAudioStream(AudioStreamHandle stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] - int UnlockAudioStream(AudioStreamHandle stream); + byte UnlockAudioStreamRaw(AudioStreamHandle stream); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockJoysticks")] void UnlockJoysticks(); @@ -13637,21 +17341,27 @@ void TimeToWindows( void UnlockSurface(Ref surface); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] - void UnlockTexture(TextureHandle texture); + void UnlockTexture(Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] + void UnlockTexture(Ref texture); [NativeFunction("SDL3", EntryPoint = "SDL_UpdateGamepads")] void UpdateGamepads(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] - int UpdateHapticEffect( + byte UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] - int UpdateHapticEffect( + MaybeBool UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] Ref data @@ -13660,9 +17370,10 @@ int UpdateHapticEffect( [NativeFunction("SDL3", EntryPoint = "SDL_UpdateJoysticks")] void UpdateJoysticks(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] - int UpdateNVTexture( - TextureHandle texture, + byte UpdateNVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -13670,10 +17381,11 @@ int UpdateNVTexture( int UVpitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] - int UpdateNVTexture( - TextureHandle texture, + MaybeBool UpdateNVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -13684,44 +17396,55 @@ int UVpitch [NativeFunction("SDL3", EntryPoint = "SDL_UpdateSensors")] void UpdateSensors(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] - int UpdateTexture( - TextureHandle texture, + byte UpdateTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const void *")] void* pixels, int pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] - int UpdateTexture( - TextureHandle texture, + MaybeBool UpdateTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const void *")] Ref pixels, int pitch ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] + MaybeBool UpdateWindowSurface(WindowHandle window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] - int UpdateWindowSurface(WindowHandle window); + byte UpdateWindowSurfaceRaw(WindowHandle window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] - int UpdateWindowSurfaceRects( + byte UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rects, int numrects ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] - int UpdateWindowSurfaceRects( + MaybeBool UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rects, int numrects ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] - int UpdateYUVTexture( - TextureHandle texture, + byte UpdateYUVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -13731,10 +17454,11 @@ int UpdateYUVTexture( int Vpitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] - int UpdateYUVTexture( - TextureHandle texture, + MaybeBool UpdateYUVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -13745,38 +17469,57 @@ int Vpitch ); [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] - int WaitCondition(ConditionHandle cond, MutexHandle mutex); + void WaitCondition(ConditionHandle cond, MutexHandle mutex); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] + MaybeBool WaitConditionTimeout( + ConditionHandle cond, + MutexHandle mutex, + [NativeTypeName("Sint32")] int timeoutMS + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] - int WaitConditionTimeout( + byte WaitConditionTimeoutRaw( ConditionHandle cond, MutexHandle mutex, [NativeTypeName("Sint32")] int timeoutMS ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] - int WaitEvent(Event* @event); + byte WaitEvent(Event* @event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] - MaybeBool WaitEvent(Ref @event); + MaybeBool WaitEvent(Ref @event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] - int WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS); + byte WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] - MaybeBool WaitEventTimeout(Ref @event, [NativeTypeName("Sint32")] int timeoutMS); + MaybeBool WaitEventTimeout(Ref @event, [NativeTypeName("Sint32")] int timeoutMS); [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphore")] - int WaitSemaphore(SemaphoreHandle sem); + void WaitSemaphore(SemaphoreHandle sem); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] + MaybeBool WaitSemaphoreTimeout( + SemaphoreHandle sem, + [NativeTypeName("Sint32")] int timeoutMS + ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] - int WaitSemaphoreTimeout(SemaphoreHandle sem, [NativeTypeName("Sint32")] int timeoutMS); + byte WaitSemaphoreTimeoutRaw(SemaphoreHandle sem, [NativeTypeName("Sint32")] int timeoutMS); [NativeFunction("SDL3", EntryPoint = "SDL_WaitThread")] void WaitThread(ThreadHandle thread, int* status); @@ -13785,24 +17528,30 @@ int WaitConditionTimeout( [NativeFunction("SDL3", EntryPoint = "SDL_WaitThread")] void WaitThread(ThreadHandle thread, Ref status); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseGlobal")] + MaybeBool WarpMouseGlobal(float x, float y); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseGlobal")] - int WarpMouseGlobal(float x, float y); + byte WarpMouseGlobalRaw(float x, float y); [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseInWindow")] void WarpMouseInWindow(WindowHandle window, float x, float y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_InitFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_WasInit")] - uint WasInit([NativeTypeName("Uint32")] uint flags); + uint WasInit([NativeTypeName("SDL_InitFlags")] uint flags); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] - MaybeBool WindowHasSurface(WindowHandle window); + MaybeBool WindowHasSurface(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] - int WindowHasSurfaceRaw(WindowHandle window); + byte WindowHasSurfaceRaw(WindowHandle window); [return: NativeTypeName("size_t")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteIO")] @@ -13821,137 +17570,190 @@ nuint WriteIO( [NativeTypeName("size_t")] nuint size ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] - MaybeBool WriteS16BE(IOStreamHandle dst, [NativeTypeName("Sint16")] short value); + MaybeBool WriteS16BE(IOStreamHandle dst, [NativeTypeName("Sint16")] short value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] - int WriteS16BERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value); + byte WriteS16BERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] - MaybeBool WriteS16LE(IOStreamHandle dst, [NativeTypeName("Sint16")] short value); + MaybeBool WriteS16LE(IOStreamHandle dst, [NativeTypeName("Sint16")] short value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] - int WriteS16LERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value); + byte WriteS16LERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] - MaybeBool WriteS32BE(IOStreamHandle dst, [NativeTypeName("Sint32")] int value); + MaybeBool WriteS32BE(IOStreamHandle dst, [NativeTypeName("Sint32")] int value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] - int WriteS32BERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value); + byte WriteS32BERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] - MaybeBool WriteS32LE(IOStreamHandle dst, [NativeTypeName("Sint32")] int value); + MaybeBool WriteS32LE(IOStreamHandle dst, [NativeTypeName("Sint32")] int value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] - int WriteS32LERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value); + byte WriteS32LERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] - MaybeBool WriteS64BE(IOStreamHandle dst, [NativeTypeName("Sint64")] long value); + MaybeBool WriteS64BE(IOStreamHandle dst, [NativeTypeName("Sint64")] long value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] - int WriteS64BERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value); + byte WriteS64BERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] - MaybeBool WriteS64LE(IOStreamHandle dst, [NativeTypeName("Sint64")] long value); + MaybeBool WriteS64LE(IOStreamHandle dst, [NativeTypeName("Sint64")] long value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] - int WriteS64LERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value); + byte WriteS64LERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS8")] + MaybeBool WriteS8(IOStreamHandle dst, [NativeTypeName("Sint8")] sbyte value); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS8")] + byte WriteS8Raw(IOStreamHandle dst, [NativeTypeName("Sint8")] sbyte value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] - int WriteStorageFile( + byte WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const void *")] void* source, [NativeTypeName("Uint64")] ulong length ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] - int WriteStorageFile( + MaybeBool WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const void *")] Ref source, [NativeTypeName("Uint64")] ulong length ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixel")] + byte WriteSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixel")] + MaybeBool WriteSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixelFloat")] + byte WriteSurfacePixelFloat(Surface* surface, int x, int y, float r, float g, float b, float a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixelFloat")] + MaybeBool WriteSurfacePixelFloat( + Ref surface, + int x, + int y, + float r, + float g, + float b, + float a + ); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] - MaybeBool WriteU16BE(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value); + MaybeBool WriteU16BE(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] - int WriteU16BERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value); + byte WriteU16BERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] - MaybeBool WriteU16LE(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value); + MaybeBool WriteU16LE(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] - int WriteU16LERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value); + byte WriteU16LERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] - MaybeBool WriteU32BE(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value); + MaybeBool WriteU32BE(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] - int WriteU32BERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value); + byte WriteU32BERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] - MaybeBool WriteU32LE(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value); + MaybeBool WriteU32LE(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] - int WriteU32LERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value); + byte WriteU32LERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] - MaybeBool WriteU64BE(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value); + MaybeBool WriteU64BE(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] - int WriteU64BERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value); + byte WriteU64BERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] - MaybeBool WriteU64LE(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value); + MaybeBool WriteU64LE(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] - int WriteU64LERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value); + byte WriteU64LERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] - MaybeBool WriteU8(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value); + MaybeBool WriteU8(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] - int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value); + byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value); } diff --git a/sources/SDL/SDL/SDL3/InitFlags.gen.cs b/sources/SDL/SDL/SDL3/InitFlags.gen.cs deleted file mode 100644 index 08342b9faa..0000000000 --- a/sources/SDL/SDL/SDL3/InitFlags.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// 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; - -[NativeTypeName("unsigned int")] -public enum InitFlags : uint -{ - Timer = 0x00000001, - Audio = 0x00000010, - Video = 0x00000020, - Joystick = 0x00000200, - Haptic = 0x00001000, - Gamepad = 0x00002000, - Events = 0x00004000, - Sensor = 0x00008000, - Camera = 0x00010000, -} diff --git a/sources/SDL/SDL/SDL3/Errorcode.gen.cs b/sources/SDL/SDL/SDL3/InitState.gen.cs similarity index 71% rename from sources/SDL/SDL/SDL3/Errorcode.gen.cs rename to sources/SDL/SDL/SDL3/InitState.gen.cs index 2c1b3ace35..b6667f7dfa 100644 --- a/sources/SDL/SDL/SDL3/Errorcode.gen.cs +++ b/sources/SDL/SDL/SDL3/InitState.gen.cs @@ -7,13 +7,11 @@ namespace Silk.NET.SDL; -[NativeTypeName("unsigned int")] -public enum Errorcode : uint +public unsafe partial struct InitState { - Enomem, - Efread, - Efwrite, - Efseek, - Unsupported, - Lasterror, + public AtomicInt Status; + + [NativeTypeName("SDL_ThreadID")] + public ulong Thread; + public void* Reserved; } diff --git a/sources/SDL/SDL/SDL3/GLprofile.gen.cs b/sources/SDL/SDL/SDL3/InitStatus.gen.cs similarity index 81% rename from sources/SDL/SDL/SDL3/GLprofile.gen.cs rename to sources/SDL/SDL/SDL3/InitStatus.gen.cs index d7d0d34426..beb646aebe 100644 --- a/sources/SDL/SDL/SDL3/GLprofile.gen.cs +++ b/sources/SDL/SDL/SDL3/InitStatus.gen.cs @@ -9,9 +9,10 @@ namespace Silk.NET.SDL; [NativeTypeName("unsigned int")] -public enum GLprofile : uint +public enum InitStatus : uint { - Core = 0x0001, - Compatibility = 0x0002, - Es = 0x0004, + Uninitialized, + Initializing, + Initialized, + Uninitializing, } diff --git a/sources/SDL/SDL/SDL3/JoyButtonEvent.gen.cs b/sources/SDL/SDL/SDL3/JoyButtonEvent.gen.cs index 03e8f34293..5354c82b68 100644 --- a/sources/SDL/SDL/SDL3/JoyButtonEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/JoyButtonEvent.gen.cs @@ -23,8 +23,8 @@ public partial struct JoyButtonEvent [NativeTypeName("Uint8")] public byte Button; - [NativeTypeName("Uint8")] - public byte State; + [NativeTypeName("bool")] + public byte Down; [NativeTypeName("Uint8")] public byte Padding1; diff --git a/sources/SDL/SDL/SDL3/JoystickType.gen.cs b/sources/SDL/SDL/SDL3/JoystickType.gen.cs index b9b9a639d9..6ee106268d 100644 --- a/sources/SDL/SDL/SDL3/JoystickType.gen.cs +++ b/sources/SDL/SDL/SDL3/JoystickType.gen.cs @@ -20,4 +20,5 @@ public enum JoystickType : uint DrumKit, ArcadePad, Throttle, + Count, } diff --git a/sources/SDL/SDL/SDL3/KeyboardEvent.gen.cs b/sources/SDL/SDL/SDL3/KeyboardEvent.gen.cs index c4618ea7e0..046fbf819e 100644 --- a/sources/SDL/SDL/SDL3/KeyboardEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/KeyboardEvent.gen.cs @@ -23,17 +23,20 @@ public partial struct KeyboardEvent [NativeTypeName("SDL_KeyboardID")] public uint Which; + public Scancode Scancode; - [NativeTypeName("Uint8")] - public byte State; + [NativeTypeName("SDL_Keycode")] + public uint Key; - [NativeTypeName("Uint8")] - public byte Repeat; + [NativeTypeName("SDL_Keymod")] + public ushort Mod; + + [NativeTypeName("Uint16")] + public ushort Raw; - [NativeTypeName("Uint8")] - public byte Padding2; + [NativeTypeName("bool")] + public byte Down; - [NativeTypeName("Uint8")] - public byte Padding3; - public Keysym Keysym; + [NativeTypeName("bool")] + public byte Repeat; } diff --git a/sources/SDL/SDL/SDL3/Keymod.gen.cs b/sources/SDL/SDL/SDL3/Keymod.gen.cs deleted file mode 100644 index cbadf4f2d2..0000000000 --- a/sources/SDL/SDL/SDL3/Keymod.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// 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; - -[NativeTypeName("unsigned int")] -public enum Keymod : uint -{ - None = 0x0000, - Lshift = 0x0001, - Rshift = 0x0002, - Lctrl = 0x0040, - Rctrl = 0x0080, - Lalt = 0x0100, - Ralt = 0x0200, - Lgui = 0x0400, - Rgui = 0x0800, - Num = 0x1000, - Caps = 0x2000, - Mode = 0x4000, - Scroll = 0x8000, - Ctrl = Lctrl | Rctrl, - Shift = Lshift | Rshift, - Alt = Lalt | Ralt, - Gui = Lgui | Rgui, -} diff --git a/sources/SDL/SDL/SDL3/LogCategory.gen.cs b/sources/SDL/SDL/SDL3/LogCategory.gen.cs index 578f20ef3e..e02164ce94 100644 --- a/sources/SDL/SDL/SDL3/LogCategory.gen.cs +++ b/sources/SDL/SDL/SDL3/LogCategory.gen.cs @@ -19,7 +19,7 @@ public enum LogCategory : uint Render, Input, Test, - Reserved1, + Gpu, Reserved2, Reserved3, Reserved4, diff --git a/sources/SDL/SDL/SDL3/LogPriority.gen.cs b/sources/SDL/SDL/SDL3/LogPriority.gen.cs index 1f60bf0d75..4051fbab71 100644 --- a/sources/SDL/SDL/SDL3/LogPriority.gen.cs +++ b/sources/SDL/SDL/SDL3/LogPriority.gen.cs @@ -10,11 +10,13 @@ namespace Silk.NET.SDL; [NativeTypeName("unsigned int")] public enum LogPriority : uint { - LogPriorityVerbose = 1, - LogPriorityDebug, - LogPriorityInfo, - LogPriorityWarn, - LogPriorityError, - LogPriorityCritical, - NumLogPriorities, + Invalid, + Trace, + Verbose, + Debug, + Info, + Warn, + Error, + Critical, + Count, } diff --git a/sources/SDL/SDL/SDL3/MessageBoxButtonData.gen.cs b/sources/SDL/SDL/SDL3/MessageBoxButtonData.gen.cs index 725451ab8a..a7d639beb1 100644 --- a/sources/SDL/SDL/SDL3/MessageBoxButtonData.gen.cs +++ b/sources/SDL/SDL/SDL3/MessageBoxButtonData.gen.cs @@ -9,7 +9,7 @@ namespace Silk.NET.SDL; public unsafe partial struct MessageBoxButtonData { - [NativeTypeName("Uint32")] + [NativeTypeName("SDL_MessageBoxButtonFlags")] public uint Flags; public int ButtonID; diff --git a/sources/SDL/SDL/SDL3/MessageBoxButtonFlags.gen.cs b/sources/SDL/SDL/SDL3/MessageBoxButtonFlags.gen.cs deleted file mode 100644 index d480ab74f6..0000000000 --- a/sources/SDL/SDL/SDL3/MessageBoxButtonFlags.gen.cs +++ /dev/null @@ -1,15 +0,0 @@ -// 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; - -[NativeTypeName("unsigned int")] -public enum MessageBoxButtonFlags : uint -{ - ReturnkeyDefault = 0x00000001, - EscapekeyDefault = 0x00000002, -} diff --git a/sources/SDL/SDL/SDL3/MessageBoxColorType.gen.cs b/sources/SDL/SDL/SDL3/MessageBoxColorType.gen.cs index ecfff058cb..40e20c7dc6 100644 --- a/sources/SDL/SDL/SDL3/MessageBoxColorType.gen.cs +++ b/sources/SDL/SDL/SDL3/MessageBoxColorType.gen.cs @@ -15,5 +15,5 @@ public enum MessageBoxColorType : uint ButtonBorder, ButtonBackground, ButtonSelected, - Max, + Count, } diff --git a/sources/SDL/SDL/SDL3/MessageBoxData.gen.cs b/sources/SDL/SDL/SDL3/MessageBoxData.gen.cs index a5746b3d96..dce89614ba 100644 --- a/sources/SDL/SDL/SDL3/MessageBoxData.gen.cs +++ b/sources/SDL/SDL/SDL3/MessageBoxData.gen.cs @@ -9,7 +9,7 @@ namespace Silk.NET.SDL; public unsafe partial struct MessageBoxData { - [NativeTypeName("Uint32")] + [NativeTypeName("SDL_MessageBoxFlags")] public uint Flags; public WindowHandle Window; diff --git a/sources/SDL/SDL/SDL3/MessageBoxFlags.gen.cs b/sources/SDL/SDL/SDL3/MessageBoxFlags.gen.cs deleted file mode 100644 index 5901424953..0000000000 --- a/sources/SDL/SDL/SDL3/MessageBoxFlags.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// 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; - -[NativeTypeName("unsigned int")] -public enum MessageBoxFlags : uint -{ - Error = 0x00000010, - Warning = 0x00000020, - Information = 0x00000040, - ButtonsLeftToRight = 0x00000080, - ButtonsRightToLeft = 0x00000100, -} diff --git a/sources/SDL/SDL/SDL3/MouseButtonEvent.gen.cs b/sources/SDL/SDL/SDL3/MouseButtonEvent.gen.cs index ce4cfd7ee3..72fd115aa9 100644 --- a/sources/SDL/SDL/SDL3/MouseButtonEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/MouseButtonEvent.gen.cs @@ -26,8 +26,8 @@ public partial struct MouseButtonEvent [NativeTypeName("Uint8")] public byte Button; - [NativeTypeName("Uint8")] - public byte State; + [NativeTypeName("bool")] + public byte Down; [NativeTypeName("Uint8")] public byte Clicks; diff --git a/sources/SDL/SDL/SDL3/MouseMotionEvent.gen.cs b/sources/SDL/SDL/SDL3/MouseMotionEvent.gen.cs index a638907788..6a6840d9e0 100644 --- a/sources/SDL/SDL/SDL3/MouseMotionEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/MouseMotionEvent.gen.cs @@ -23,7 +23,7 @@ public partial struct MouseMotionEvent [NativeTypeName("SDL_MouseID")] public uint Which; - [NativeTypeName("Uint32")] + [NativeTypeName("SDL_MouseButtonFlags")] public uint State; public float X; public float Y; diff --git a/sources/SDL/SDL/SDL3/NSTimerCallback.gen.cs b/sources/SDL/SDL/SDL3/NSTimerCallback.gen.cs new file mode 100644 index 0000000000..5b90ba5bcd --- /dev/null +++ b/sources/SDL/SDL/SDL3/NSTimerCallback.gen.cs @@ -0,0 +1,31 @@ +// 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; + +public readonly unsafe struct NSTimerCallback : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; + + public NSTimerCallback(delegate* unmanaged ptr) => Pointer = ptr; + + public NSTimerCallback(NSTimerCallbackDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator NSTimerCallback( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + NSTimerCallback pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/NSTimerCallbackDelegate.gen.cs b/sources/SDL/SDL/SDL3/NSTimerCallbackDelegate.gen.cs new file mode 100644 index 0000000000..a804eb2b56 --- /dev/null +++ b/sources/SDL/SDL/SDL3/NSTimerCallbackDelegate.gen.cs @@ -0,0 +1,11 @@ +// 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; + +public unsafe delegate ulong NSTimerCallbackDelegate(void* arg0, uint arg1, ulong arg2); diff --git a/sources/SDL/SDL/SDL3/PenAxis.gen.cs b/sources/SDL/SDL/SDL3/PenAxis.gen.cs index fd6a89fca5..7dce34b80c 100644 --- a/sources/SDL/SDL/SDL3/PenAxis.gen.cs +++ b/sources/SDL/SDL/SDL3/PenAxis.gen.cs @@ -10,12 +10,12 @@ namespace Silk.NET.SDL; [NativeTypeName("unsigned int")] public enum PenAxis : uint { - AxisPressure = 0, - AxisXtilt, - AxisYtilt, - AxisDistance, - AxisRotation, - AxisSlider, - NumAxes, - AxisLast = NumAxes - 1, + Pressure, + Xtilt, + Ytilt, + Distance, + Rotation, + Slider, + TangentialPressure, + Count, } diff --git a/sources/SDL/SDL/SDL3/PenAxisEvent.gen.cs b/sources/SDL/SDL/SDL3/PenAxisEvent.gen.cs new file mode 100644 index 0000000000..ae624f2080 --- /dev/null +++ b/sources/SDL/SDL/SDL3/PenAxisEvent.gen.cs @@ -0,0 +1,29 @@ +// 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. +namespace Silk.NET.SDL; + +public partial struct PenAxisEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; + + [NativeTypeName("SDL_PenID")] + public uint Which; + + [NativeTypeName("SDL_PenInputFlags")] + public uint PenState; + public float X; + public float Y; + public PenAxis Axis; + public float Value; +} diff --git a/sources/SDL/SDL/SDL3/PenButtonEvent.gen.cs b/sources/SDL/SDL/SDL3/PenButtonEvent.gen.cs index 656fe0d359..716201b6b6 100644 --- a/sources/SDL/SDL/SDL3/PenButtonEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/PenButtonEvent.gen.cs @@ -23,17 +23,14 @@ public partial struct PenButtonEvent [NativeTypeName("SDL_PenID")] public uint Which; - [NativeTypeName("Uint8")] - public byte Button; - - [NativeTypeName("Uint8")] - public byte State; - - [NativeTypeName("Uint16")] - public ushort PenState; + [NativeTypeName("SDL_PenInputFlags")] + public uint PenState; public float X; public float Y; - [NativeTypeName("float[6]")] - public PenButtonEventAxes Axes; + [NativeTypeName("Uint8")] + public byte Button; + + [NativeTypeName("bool")] + public byte Down; } diff --git a/sources/SDL/SDL/SDL3/PenCapabilityInfo.gen.cs b/sources/SDL/SDL/SDL3/PenCapabilityInfo.gen.cs deleted file mode 100644 index db361fbc4b..0000000000 --- a/sources/SDL/SDL/SDL3/PenCapabilityInfo.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// 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; - -namespace Silk.NET.SDL; - -public partial struct PenCapabilityInfo -{ - public float MaxTilt; - - [NativeTypeName("Uint32")] - public uint WacomId; - - [NativeTypeName("Sint8")] - public sbyte NumButtons; -} diff --git a/sources/SDL/SDL/SDL3/PenMotionEvent.gen.cs b/sources/SDL/SDL/SDL3/PenMotionEvent.gen.cs index 6c53831f51..addcdf331c 100644 --- a/sources/SDL/SDL/SDL3/PenMotionEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/PenMotionEvent.gen.cs @@ -23,17 +23,8 @@ public partial struct PenMotionEvent [NativeTypeName("SDL_PenID")] public uint Which; - [NativeTypeName("Uint8")] - public byte Padding1; - - [NativeTypeName("Uint8")] - public byte Padding2; - - [NativeTypeName("Uint16")] - public ushort PenState; + [NativeTypeName("SDL_PenInputFlags")] + public uint PenState; public float X; public float Y; - - [NativeTypeName("float[6]")] - public PenMotionEventAxes Axes; } diff --git a/sources/SDL/SDL/SDL3/Version.gen.cs b/sources/SDL/SDL/SDL3/PenProximityEvent.gen.cs similarity index 56% rename from sources/SDL/SDL/SDL3/Version.gen.cs rename to sources/SDL/SDL/SDL3/PenProximityEvent.gen.cs index 1633acd4c8..5d32a780ed 100644 --- a/sources/SDL/SDL/SDL3/Version.gen.cs +++ b/sources/SDL/SDL/SDL3/PenProximityEvent.gen.cs @@ -2,20 +2,24 @@ // 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; -public partial struct Version +public partial struct PenProximityEvent { - [NativeTypeName("Uint8")] - public byte Major; + public EventType Type; - [NativeTypeName("Uint8")] - public byte Minor; + [NativeTypeName("Uint32")] + public uint Reserved; - [NativeTypeName("Uint8")] - public byte Patch; + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; + + [NativeTypeName("SDL_PenID")] + public uint Which; } diff --git a/sources/SDL/SDL/SDL3/PenSubtype.gen.cs b/sources/SDL/SDL/SDL3/PenSubtype.gen.cs deleted file mode 100644 index 3f0393ef88..0000000000 --- a/sources/SDL/SDL/SDL3/PenSubtype.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// 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; - -[NativeTypeName("unsigned int")] -public enum PenSubtype : uint -{ - Unknown = 0, - Eraser = 1, - Pen, - Pencil, - Brush, - Airbrush, - Last = Airbrush, -} diff --git a/sources/SDL/SDL/SDL3/PenTipEvent.gen.cs b/sources/SDL/SDL/SDL3/PenTouchEvent.gen.cs similarity index 72% rename from sources/SDL/SDL/SDL3/PenTipEvent.gen.cs rename to sources/SDL/SDL/SDL3/PenTouchEvent.gen.cs index 33cf69b4ef..c88642964d 100644 --- a/sources/SDL/SDL/SDL3/PenTipEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/PenTouchEvent.gen.cs @@ -2,12 +2,13 @@ // 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; -public partial struct PenTipEvent +public partial struct PenTouchEvent { public EventType Type; @@ -23,17 +24,14 @@ public partial struct PenTipEvent [NativeTypeName("SDL_PenID")] public uint Which; - [NativeTypeName("Uint8")] - public byte Tip; - - [NativeTypeName("Uint8")] - public byte State; - - [NativeTypeName("Uint16")] - public ushort PenState; + [NativeTypeName("SDL_PenInputFlags")] + public uint PenState; public float X; public float Y; - [NativeTypeName("float[6]")] - public PenTipEventAxes Axes; + [NativeTypeName("bool")] + public byte Eraser; + + [NativeTypeName("bool")] + public byte Down; } diff --git a/sources/SDL/SDL/SDL3/PixelFormat.gen.cs b/sources/SDL/SDL/SDL3/PixelFormat.gen.cs index 14e1f47420..2824d471b2 100644 --- a/sources/SDL/SDL/SDL3/PixelFormat.gen.cs +++ b/sources/SDL/SDL/SDL3/PixelFormat.gen.cs @@ -7,57 +7,79 @@ namespace Silk.NET.SDL; -public unsafe partial struct PixelFormat +[NativeTypeName("unsigned int")] +public enum PixelFormat : uint { - public PixelFormatEnum Format; - public Palette* Palette; - - [NativeTypeName("Uint8")] - public byte BitsPerPixel; - - [NativeTypeName("Uint8")] - public byte BytesPerPixel; - - [NativeTypeName("Uint8[2]")] - public PixelFormatPadding Padding; - - [NativeTypeName("Uint32")] - public uint Rmask; - - [NativeTypeName("Uint32")] - public uint Gmask; - - [NativeTypeName("Uint32")] - public uint Bmask; - - [NativeTypeName("Uint32")] - public uint Amask; - - [NativeTypeName("Uint8")] - public byte Rloss; - - [NativeTypeName("Uint8")] - public byte Gloss; - - [NativeTypeName("Uint8")] - public byte Bloss; - - [NativeTypeName("Uint8")] - public byte Aloss; - - [NativeTypeName("Uint8")] - public byte Rshift; - - [NativeTypeName("Uint8")] - public byte Gshift; - - [NativeTypeName("Uint8")] - public byte Bshift; - - [NativeTypeName("Uint8")] - public byte Ashift; - public int Refcount; - - [NativeTypeName("struct SDL_PixelFormat *")] - public PixelFormat* Next; + Unknown = 0, + Index1Lsb = 0x11100100U, + Index1Msb = 0x11200100U, + Index2Lsb = 0x1c100200U, + Index2Msb = 0x1c200200U, + Index4Lsb = 0x12100400U, + Index4Msb = 0x12200400U, + Index8 = 0x13000801U, + Rgb332 = 0x14110801U, + Xrgb4444 = 0x15120c02U, + Xbgr4444 = 0x15520c02U, + Xrgb1555 = 0x15130f02U, + Xbgr1555 = 0x15530f02U, + Argb4444 = 0x15321002U, + Rgba4444 = 0x15421002U, + Abgr4444 = 0x15721002U, + Bgra4444 = 0x15821002U, + Argb1555 = 0x15331002U, + Rgba5551 = 0x15441002U, + Abgr1555 = 0x15731002U, + Bgra5551 = 0x15841002U, + Rgb565 = 0x15151002U, + Bgr565 = 0x15551002U, + Rgb24 = 0x17101803U, + Bgr24 = 0x17401803U, + Xrgb8888 = 0x16161804U, + Rgbx8888 = 0x16261804U, + Xbgr8888 = 0x16561804U, + Bgrx8888 = 0x16661804U, + Argb8888 = 0x16362004U, + Rgba8888 = 0x16462004U, + Abgr8888 = 0x16762004U, + Bgra8888 = 0x16862004U, + Xrgb2101010 = 0x16172004U, + Xbgr2101010 = 0x16572004U, + Argb2101010 = 0x16372004U, + Abgr2101010 = 0x16772004U, + Rgb48 = 0x18103006U, + Bgr48 = 0x18403006U, + Rgba64 = 0x18204008U, + Argb64 = 0x18304008U, + Bgra64 = 0x18504008U, + Abgr64 = 0x18604008U, + Rgb48Float = 0x1a103006U, + Bgr48Float = 0x1a403006U, + Rgba64Float = 0x1a204008U, + Argb64Float = 0x1a304008U, + Bgra64Float = 0x1a504008U, + Abgr64Float = 0x1a604008U, + Rgb96Float = 0x1b10600cU, + Bgr96Float = 0x1b40600cU, + Rgba128Float = 0x1b208010U, + Argb128Float = 0x1b308010U, + Bgra128Float = 0x1b508010U, + Abgr128Float = 0x1b608010U, + Yv12 = 0x32315659U, + Iyuv = 0x56555949U, + Yuy2 = 0x32595559U, + Uyvy = 0x59565955U, + Yvyu = 0x55595659U, + Nv12 = 0x3231564eU, + Nv21 = 0x3132564eU, + P010 = 0x30313050U, + ExternalOes = 0x2053454fU, + Rgba32 = Abgr8888, + Argb32 = Bgra8888, + Bgra32 = Argb8888, + Abgr32 = Rgba8888, + Rgbx32 = Xbgr8888, + Xrgb32 = Bgrx8888, + Bgrx32 = Xrgb8888, + Xbgr32 = Rgbx8888, } diff --git a/sources/SDL/SDL/SDL3/PixelFormatDetails.gen.cs b/sources/SDL/SDL/SDL3/PixelFormatDetails.gen.cs new file mode 100644 index 0000000000..1a60df6658 --- /dev/null +++ b/sources/SDL/SDL/SDL3/PixelFormatDetails.gen.cs @@ -0,0 +1,58 @@ +// 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; + +public partial struct PixelFormatDetails +{ + public PixelFormat Format; + + [NativeTypeName("Uint8")] + public byte BitsPerPixel; + + [NativeTypeName("Uint8")] + public byte BytesPerPixel; + + [NativeTypeName("Uint8[2]")] + public PixelFormatDetailsPadding Padding; + + [NativeTypeName("Uint32")] + public uint Rmask; + + [NativeTypeName("Uint32")] + public uint Gmask; + + [NativeTypeName("Uint32")] + public uint Bmask; + + [NativeTypeName("Uint32")] + public uint Amask; + + [NativeTypeName("Uint8")] + public byte Rbits; + + [NativeTypeName("Uint8")] + public byte Gbits; + + [NativeTypeName("Uint8")] + public byte Bbits; + + [NativeTypeName("Uint8")] + public byte Abits; + + [NativeTypeName("Uint8")] + public byte Rshift; + + [NativeTypeName("Uint8")] + public byte Gshift; + + [NativeTypeName("Uint8")] + public byte Bshift; + + [NativeTypeName("Uint8")] + public byte Ashift; +} diff --git a/sources/SDL/SDL/SDL3/PixelFormatPadding.gen.cs b/sources/SDL/SDL/SDL3/PixelFormatDetailsPadding.gen.cs similarity index 90% rename from sources/SDL/SDL/SDL3/PixelFormatPadding.gen.cs rename to sources/SDL/SDL/SDL3/PixelFormatDetailsPadding.gen.cs index b3d053c306..9f132bf021 100644 --- a/sources/SDL/SDL/SDL3/PixelFormatPadding.gen.cs +++ b/sources/SDL/SDL/SDL3/PixelFormatDetailsPadding.gen.cs @@ -9,7 +9,7 @@ namespace Silk.NET.SDL; [InlineArray(2)] -public partial struct PixelFormatPadding +public partial struct PixelFormatDetailsPadding { public byte E0; } diff --git a/sources/SDL/SDL/SDL3/PixelFormatEnum.gen.cs b/sources/SDL/SDL/SDL3/PixelFormatEnum.gen.cs deleted file mode 100644 index 544a9c1326..0000000000 --- a/sources/SDL/SDL/SDL3/PixelFormatEnum.gen.cs +++ /dev/null @@ -1,575 +0,0 @@ -// 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; - -[NativeTypeName("unsigned int")] -public enum PixelFormatEnum : uint -{ - Unknown, - Index1Lsb = - ( - (1 << 28) - | ((PixelType.Index1) << 24) - | ((BitmapOrder.Bitmaporder4321) << 20) - | ((0) << 16) - | ((1) << 8) - | ((0) << 0) - ), - Index1Msb = - ( - (1 << 28) - | ((PixelType.Index1) << 24) - | ((BitmapOrder.Bitmaporder1234) << 20) - | ((0) << 16) - | ((1) << 8) - | ((0) << 0) - ), - Index2Lsb = - ( - (1 << 28) - | ((PixelType.Index2) << 24) - | ((BitmapOrder.Bitmaporder4321) << 20) - | ((0) << 16) - | ((2) << 8) - | ((0) << 0) - ), - Index2Msb = - ( - (1 << 28) - | ((PixelType.Index2) << 24) - | ((BitmapOrder.Bitmaporder1234) << 20) - | ((0) << 16) - | ((2) << 8) - | ((0) << 0) - ), - Index4Lsb = - ( - (1 << 28) - | ((PixelType.Index4) << 24) - | ((BitmapOrder.Bitmaporder4321) << 20) - | ((0) << 16) - | ((4) << 8) - | ((0) << 0) - ), - Index4Msb = - ( - (1 << 28) - | ((PixelType.Index4) << 24) - | ((BitmapOrder.Bitmaporder1234) << 20) - | ((0) << 16) - | ((4) << 8) - | ((0) << 0) - ), - Index8 = - ( - (1 << 28) - | ((PixelType.Index8) << 24) - | ((0) << 20) - | ((0) << 16) - | ((8) << 8) - | ((1) << 0) - ), - Rgb332 = - ( - (1 << 28) - | ((PixelType.Packed8) << 24) - | ((PackedOrder.Xrgb) << 20) - | ((PackedLayout.Packedlayout332) << 16) - | ((8) << 8) - | ((1) << 0) - ), - Xrgb4444 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Xrgb) << 20) - | ((PackedLayout.Packedlayout4444) << 16) - | ((12) << 8) - | ((2) << 0) - ), - Rgb444 = Xrgb4444, - Xbgr4444 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Xbgr) << 20) - | ((PackedLayout.Packedlayout4444) << 16) - | ((12) << 8) - | ((2) << 0) - ), - Bgr444 = Xbgr4444, - Xrgb1555 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Xrgb) << 20) - | ((PackedLayout.Packedlayout1555) << 16) - | ((15) << 8) - | ((2) << 0) - ), - Rgb555 = Xrgb1555, - Xbgr1555 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Xbgr) << 20) - | ((PackedLayout.Packedlayout1555) << 16) - | ((15) << 8) - | ((2) << 0) - ), - Bgr555 = Xbgr1555, - Argb4444 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Argb) << 20) - | ((PackedLayout.Packedlayout4444) << 16) - | ((16) << 8) - | ((2) << 0) - ), - Rgba4444 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Rgba) << 20) - | ((PackedLayout.Packedlayout4444) << 16) - | ((16) << 8) - | ((2) << 0) - ), - Abgr4444 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Abgr) << 20) - | ((PackedLayout.Packedlayout4444) << 16) - | ((16) << 8) - | ((2) << 0) - ), - Bgra4444 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Bgra) << 20) - | ((PackedLayout.Packedlayout4444) << 16) - | ((16) << 8) - | ((2) << 0) - ), - Argb1555 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Argb) << 20) - | ((PackedLayout.Packedlayout1555) << 16) - | ((16) << 8) - | ((2) << 0) - ), - Rgba5551 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Rgba) << 20) - | ((PackedLayout.Packedlayout5551) << 16) - | ((16) << 8) - | ((2) << 0) - ), - Abgr1555 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Abgr) << 20) - | ((PackedLayout.Packedlayout1555) << 16) - | ((16) << 8) - | ((2) << 0) - ), - Bgra5551 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Bgra) << 20) - | ((PackedLayout.Packedlayout5551) << 16) - | ((16) << 8) - | ((2) << 0) - ), - Rgb565 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Xrgb) << 20) - | ((PackedLayout.Packedlayout565) << 16) - | ((16) << 8) - | ((2) << 0) - ), - Bgr565 = - ( - (1 << 28) - | ((PixelType.Packed16) << 24) - | ((PackedOrder.Xbgr) << 20) - | ((PackedLayout.Packedlayout565) << 16) - | ((16) << 8) - | ((2) << 0) - ), - Rgb24 = - ( - (1 << 28) - | ((PixelType.Arrayu8) << 24) - | ((ArrayOrder.Rgb) << 20) - | ((0) << 16) - | ((24) << 8) - | ((3) << 0) - ), - Bgr24 = - ( - (1 << 28) - | ((PixelType.Arrayu8) << 24) - | ((ArrayOrder.Bgr) << 20) - | ((0) << 16) - | ((24) << 8) - | ((3) << 0) - ), - Xrgb8888 = - ( - (1 << 28) - | ((PixelType.Packed32) << 24) - | ((PackedOrder.Xrgb) << 20) - | ((PackedLayout.Packedlayout8888) << 16) - | ((24) << 8) - | ((4) << 0) - ), - Rgbx8888 = - ( - (1 << 28) - | ((PixelType.Packed32) << 24) - | ((PackedOrder.Rgbx) << 20) - | ((PackedLayout.Packedlayout8888) << 16) - | ((24) << 8) - | ((4) << 0) - ), - Xbgr8888 = - ( - (1 << 28) - | ((PixelType.Packed32) << 24) - | ((PackedOrder.Xbgr) << 20) - | ((PackedLayout.Packedlayout8888) << 16) - | ((24) << 8) - | ((4) << 0) - ), - Bgrx8888 = - ( - (1 << 28) - | ((PixelType.Packed32) << 24) - | ((PackedOrder.Bgrx) << 20) - | ((PackedLayout.Packedlayout8888) << 16) - | ((24) << 8) - | ((4) << 0) - ), - Argb8888 = - ( - (1 << 28) - | ((PixelType.Packed32) << 24) - | ((PackedOrder.Argb) << 20) - | ((PackedLayout.Packedlayout8888) << 16) - | ((32) << 8) - | ((4) << 0) - ), - Rgba8888 = - ( - (1 << 28) - | ((PixelType.Packed32) << 24) - | ((PackedOrder.Rgba) << 20) - | ((PackedLayout.Packedlayout8888) << 16) - | ((32) << 8) - | ((4) << 0) - ), - Abgr8888 = - ( - (1 << 28) - | ((PixelType.Packed32) << 24) - | ((PackedOrder.Abgr) << 20) - | ((PackedLayout.Packedlayout8888) << 16) - | ((32) << 8) - | ((4) << 0) - ), - Bgra8888 = - ( - (1 << 28) - | ((PixelType.Packed32) << 24) - | ((PackedOrder.Bgra) << 20) - | ((PackedLayout.Packedlayout8888) << 16) - | ((32) << 8) - | ((4) << 0) - ), - Xrgb2101010 = - ( - (1 << 28) - | ((PixelType.Packed32) << 24) - | ((PackedOrder.Xrgb) << 20) - | ((PackedLayout.Packedlayout2101010) << 16) - | ((32) << 8) - | ((4) << 0) - ), - Xbgr2101010 = - ( - (1 << 28) - | ((PixelType.Packed32) << 24) - | ((PackedOrder.Xbgr) << 20) - | ((PackedLayout.Packedlayout2101010) << 16) - | ((32) << 8) - | ((4) << 0) - ), - Argb2101010 = - ( - (1 << 28) - | ((PixelType.Packed32) << 24) - | ((PackedOrder.Argb) << 20) - | ((PackedLayout.Packedlayout2101010) << 16) - | ((32) << 8) - | ((4) << 0) - ), - Abgr2101010 = - ( - (1 << 28) - | ((PixelType.Packed32) << 24) - | ((PackedOrder.Abgr) << 20) - | ((PackedLayout.Packedlayout2101010) << 16) - | ((32) << 8) - | ((4) << 0) - ), - Rgb48 = - ( - (1 << 28) - | ((PixelType.Arrayu16) << 24) - | ((ArrayOrder.Rgb) << 20) - | ((0) << 16) - | ((48) << 8) - | ((6) << 0) - ), - Bgr48 = - ( - (1 << 28) - | ((PixelType.Arrayu16) << 24) - | ((ArrayOrder.Bgr) << 20) - | ((0) << 16) - | ((48) << 8) - | ((6) << 0) - ), - Rgba64 = - ( - (1 << 28) - | ((PixelType.Arrayu16) << 24) - | ((ArrayOrder.Rgba) << 20) - | ((0) << 16) - | ((64) << 8) - | ((8) << 0) - ), - Argb64 = - ( - (1 << 28) - | ((PixelType.Arrayu16) << 24) - | ((ArrayOrder.Argb) << 20) - | ((0) << 16) - | ((64) << 8) - | ((8) << 0) - ), - Bgra64 = - ( - (1 << 28) - | ((PixelType.Arrayu16) << 24) - | ((ArrayOrder.Bgra) << 20) - | ((0) << 16) - | ((64) << 8) - | ((8) << 0) - ), - Abgr64 = - ( - (1 << 28) - | ((PixelType.Arrayu16) << 24) - | ((ArrayOrder.Abgr) << 20) - | ((0) << 16) - | ((64) << 8) - | ((8) << 0) - ), - Rgb48Float = - ( - (1 << 28) - | ((PixelType.Arrayf16) << 24) - | ((ArrayOrder.Rgb) << 20) - | ((0) << 16) - | ((48) << 8) - | ((6) << 0) - ), - Bgr48Float = - ( - (1 << 28) - | ((PixelType.Arrayf16) << 24) - | ((ArrayOrder.Bgr) << 20) - | ((0) << 16) - | ((48) << 8) - | ((6) << 0) - ), - Rgba64Float = - ( - (1 << 28) - | ((PixelType.Arrayf16) << 24) - | ((ArrayOrder.Rgba) << 20) - | ((0) << 16) - | ((64) << 8) - | ((8) << 0) - ), - Argb64Float = - ( - (1 << 28) - | ((PixelType.Arrayf16) << 24) - | ((ArrayOrder.Argb) << 20) - | ((0) << 16) - | ((64) << 8) - | ((8) << 0) - ), - Bgra64Float = - ( - (1 << 28) - | ((PixelType.Arrayf16) << 24) - | ((ArrayOrder.Bgra) << 20) - | ((0) << 16) - | ((64) << 8) - | ((8) << 0) - ), - Abgr64Float = - ( - (1 << 28) - | ((PixelType.Arrayf16) << 24) - | ((ArrayOrder.Abgr) << 20) - | ((0) << 16) - | ((64) << 8) - | ((8) << 0) - ), - Rgb96Float = - ( - (1 << 28) - | ((PixelType.Arrayf32) << 24) - | ((ArrayOrder.Rgb) << 20) - | ((0) << 16) - | ((96) << 8) - | ((12) << 0) - ), - Bgr96Float = - ( - (1 << 28) - | ((PixelType.Arrayf32) << 24) - | ((ArrayOrder.Bgr) << 20) - | ((0) << 16) - | ((96) << 8) - | ((12) << 0) - ), - Rgba128Float = - ( - (1 << 28) - | ((PixelType.Arrayf32) << 24) - | ((ArrayOrder.Rgba) << 20) - | ((0) << 16) - | ((128) << 8) - | ((16) << 0) - ), - Argb128Float = - ( - (1 << 28) - | ((PixelType.Arrayf32) << 24) - | ((ArrayOrder.Argb) << 20) - | ((0) << 16) - | ((128) << 8) - | ((16) << 0) - ), - Bgra128Float = - ( - (1 << 28) - | ((PixelType.Arrayf32) << 24) - | ((ArrayOrder.Bgra) << 20) - | ((0) << 16) - | ((128) << 8) - | ((16) << 0) - ), - Abgr128Float = - ( - (1 << 28) - | ((PixelType.Arrayf32) << 24) - | ((ArrayOrder.Abgr) << 20) - | ((0) << 16) - | ((128) << 8) - | ((16) << 0) - ), - Rgba32 = Abgr8888, - Argb32 = Bgra8888, - Bgra32 = Argb8888, - Abgr32 = Rgba8888, - Rgbx32 = Xbgr8888, - Xrgb32 = Bgrx8888, - Bgrx32 = Xrgb8888, - Xbgr32 = Rgbx8888, - Yv12 = - ( - ((uint)((byte)('Y')) << 0) - | ((uint)((byte)('V')) << 8) - | ((uint)((byte)('1')) << 16) - | ((uint)((byte)('2')) << 24) - ), - Iyuv = - ( - ((uint)((byte)('I')) << 0) - | ((uint)((byte)('Y')) << 8) - | ((uint)((byte)('U')) << 16) - | ((uint)((byte)('V')) << 24) - ), - Yuy2 = - ( - ((uint)((byte)('Y')) << 0) - | ((uint)((byte)('U')) << 8) - | ((uint)((byte)('Y')) << 16) - | ((uint)((byte)('2')) << 24) - ), - Uyvy = - ( - ((uint)((byte)('U')) << 0) - | ((uint)((byte)('Y')) << 8) - | ((uint)((byte)('V')) << 16) - | ((uint)((byte)('Y')) << 24) - ), - Yvyu = - ( - ((uint)((byte)('Y')) << 0) - | ((uint)((byte)('V')) << 8) - | ((uint)((byte)('Y')) << 16) - | ((uint)((byte)('U')) << 24) - ), - Nv12 = - ( - ((uint)((byte)('N')) << 0) - | ((uint)((byte)('V')) << 8) - | ((uint)((byte)('1')) << 16) - | ((uint)((byte)('2')) << 24) - ), - Nv21 = - ( - ((uint)((byte)('N')) << 0) - | ((uint)((byte)('V')) << 8) - | ((uint)((byte)('2')) << 16) - | ((uint)((byte)('1')) << 24) - ), - P010 = - ( - ((uint)((byte)('P')) << 0) - | ((uint)((byte)('0')) << 8) - | ((uint)((byte)('1')) << 16) - | ((uint)((byte)('0')) << 24) - ), - ExternalOes = - ( - ((uint)((byte)('O')) << 0) - | ((uint)((byte)('E')) << 8) - | ((uint)((byte)('S')) << 16) - | ((uint)((byte)(' ')) << 24) - ), -} diff --git a/sources/SDL/SDL/SDL3/RendererInfo.gen.cs b/sources/SDL/SDL/SDL3/RendererInfo.gen.cs deleted file mode 100644 index 88bcbe1f7a..0000000000 --- a/sources/SDL/SDL/SDL3/RendererInfo.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// 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; - -namespace Silk.NET.SDL; - -public unsafe partial struct RendererInfo -{ - [NativeTypeName("const char *")] - public sbyte* Name; - - [NativeTypeName("Uint32")] - public uint Flags; - public int NumTextureFormats; - - [NativeTypeName("SDL_PixelFormatEnum[16]")] - public RendererInfoTextureFormats TextureFormats; - public int MaxTextureWidth; - public int MaxTextureHeight; -} diff --git a/sources/SDL/SDL/SDL3/RendererInfoTextureFormats.gen.cs b/sources/SDL/SDL/SDL3/RendererInfoTextureFormats.gen.cs deleted file mode 100644 index ad84233eda..0000000000 --- a/sources/SDL/SDL/SDL3/RendererInfoTextureFormats.gen.cs +++ /dev/null @@ -1,15 +0,0 @@ -// 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; - -[InlineArray(16)] -public partial struct RendererInfoTextureFormats -{ - public PixelFormatEnum E0; -} diff --git a/sources/SDL/SDL/SDL3/Sandbox.gen.cs b/sources/SDL/SDL/SDL3/Sandbox.gen.cs new file mode 100644 index 0000000000..0e6081a1e5 --- /dev/null +++ b/sources/SDL/SDL/SDL3/Sandbox.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; + +[NativeTypeName("unsigned int")] +public enum Sandbox : uint +{ + None = 0, + UnknownContainer, + Flatpak, + Snap, + Macos, +} diff --git a/sources/SDL/SDL/SDL3/ScaleMode.gen.cs b/sources/SDL/SDL/SDL3/ScaleMode.gen.cs index 7f6162c1ad..031c354607 100644 --- a/sources/SDL/SDL/SDL3/ScaleMode.gen.cs +++ b/sources/SDL/SDL/SDL3/ScaleMode.gen.cs @@ -12,5 +12,4 @@ public enum ScaleMode : uint { Nearest, Linear, - Best, } diff --git a/sources/SDL/SDL/SDL3/Scancode.gen.cs b/sources/SDL/SDL/SDL3/Scancode.gen.cs index f0261b233e..893f131627 100644 --- a/sources/SDL/SDL/SDL3/Scancode.gen.cs +++ b/sources/SDL/SDL/SDL3/Scancode.gen.cs @@ -225,38 +225,39 @@ public enum Scancode : uint ScancodeRalt = 230, ScancodeRgui = 231, ScancodeMode = 257, - ScancodeAudionext = 258, - ScancodeAudioprev = 259, - ScancodeAudiostop = 260, - ScancodeAudioplay = 261, - ScancodeAudiomute = 262, - ScancodeMediaselect = 263, - ScancodeWww = 264, - ScancodeMail = 265, - ScancodeCalculator = 266, - ScancodeComputer = 267, - ScancodeAcSearch = 268, - ScancodeAcHome = 269, - ScancodeAcBack = 270, - ScancodeAcForward = 271, - ScancodeAcStop = 272, - ScancodeAcRefresh = 273, - ScancodeAcBookmarks = 274, - ScancodeBrightnessdown = 275, - ScancodeBrightnessup = 276, - ScancodeDisplayswitch = 277, - ScancodeKbdillumtoggle = 278, - ScancodeKbdillumdown = 279, - ScancodeKbdillumup = 280, - ScancodeEject = 281, - ScancodeSleep = 282, - ScancodeApp1 = 283, - ScancodeApp2 = 284, - ScancodeAudiorewind = 285, - ScancodeAudiofastforward = 286, + ScancodeSleep = 258, + ScancodeWake = 259, + ScancodeChannelIncrement = 260, + ScancodeChannelDecrement = 261, + ScancodeMediaPlay = 262, + ScancodeMediaPause = 263, + ScancodeMediaRecord = 264, + ScancodeMediaFastForward = 265, + ScancodeMediaRewind = 266, + ScancodeMediaNextTrack = 267, + ScancodeMediaPreviousTrack = 268, + ScancodeMediaStop = 269, + ScancodeMediaEject = 270, + ScancodeMediaPlayPause = 271, + ScancodeMediaSelect = 272, + ScancodeAcNew = 273, + ScancodeAcOpen = 274, + ScancodeAcClose = 275, + ScancodeAcExit = 276, + ScancodeAcSave = 277, + ScancodeAcPrint = 278, + ScancodeAcProperties = 279, + ScancodeAcSearch = 280, + ScancodeAcHome = 281, + ScancodeAcBack = 282, + ScancodeAcForward = 283, + ScancodeAcStop = 284, + ScancodeAcRefresh = 285, + ScancodeAcBookmarks = 286, ScancodeSoftleft = 287, ScancodeSoftright = 288, ScancodeCall = 289, ScancodeEndcall = 290, - NumScancodes = 512, + ScancodeReserved = 400, + ScancodeCount = 512, } diff --git a/sources/SDL/SDL/SDL3/Sdl.gen.cs b/sources/SDL/SDL/SDL3/Sdl.gen.cs index aeb4530a14..51d200e283 100644 --- a/sources/SDL/SDL/SDL3/Sdl.gen.cs +++ b/sources/SDL/SDL/SDL3/Sdl.gen.cs @@ -34,25 +34,43 @@ public static Ptr AcquireCameraFrame( } } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AddAtomicInt")] + public static extern int AddAtomicInt(AtomicInt* a, int v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddAtomicInt(Ref a, int v) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)AddAtomicInt(__dsl_a, v); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AddEventWatch")] - public static extern int AddEventWatch( + [return: NativeTypeName("bool")] + public static extern byte AddEventWatch( [NativeTypeName("SDL_EventFilter")] EventFilter filter, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int AddEventWatch( + public static MaybeBool AddEventWatch( [NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata ) { fixed (void* __dsl_userdata = userdata) { - return (int)AddEventWatch(filter, __dsl_userdata); + return (MaybeBool)(byte)AddEventWatch(filter, __dsl_userdata); } } @@ -95,29 +113,31 @@ public static int AddGamepadMappingsFromFile( [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AddGamepadMappingsFromIO")] public static extern int AddGamepadMappingsFromIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] public static int AddGamepadMappingsFromIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio - ) => (int)AddGamepadMappingsFromIO(src, (int)closeio); + [NativeTypeName("bool")] MaybeBool closeio + ) => (int)AddGamepadMappingsFromIO(src, (byte)closeio); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AddHintCallback")] - public static extern int AddHintCallback( + [return: NativeTypeName("bool")] + public static extern byte AddHintCallback( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int AddHintCallback( + public static MaybeBool AddHintCallback( [NativeTypeName("const char *")] Ref name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, Ref userdata @@ -126,7 +146,29 @@ Ref userdata fixed (void* __dsl_userdata = userdata) fixed (sbyte* __dsl_name = name) { - return (int)AddHintCallback(__dsl_name, callback, __dsl_userdata); + return (MaybeBool)(byte)AddHintCallback(__dsl_name, callback, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AddSurfaceAlternateImage")] + [return: NativeTypeName("bool")] + public static extern byte AddSurfaceAlternateImage(Surface* surface, Surface* image); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddSurfaceAlternateImage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool AddSurfaceAlternateImage( + Ref surface, + Ref image + ) + { + fixed (Surface* __dsl_image = image) + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)AddSurfaceAlternateImage(__dsl_surface, __dsl_image); } } @@ -135,7 +177,7 @@ Ref userdata public static extern uint AddTimer( [NativeTypeName("Uint32")] uint interval, [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - void* param2 + void* userdata ); [return: NativeTypeName("SDL_TimerID")] @@ -147,217 +189,132 @@ public static extern uint AddTimer( public static uint AddTimer( [NativeTypeName("Uint32")] uint interval, [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - Ref param2 + Ref userdata ) { - fixed (void* __dsl_param2 = param2) + fixed (void* __dsl_userdata = userdata) { - return (uint)AddTimer(interval, callback, __dsl_param2); + return (uint)AddTimer(interval, callback, __dsl_userdata); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AddVulkanRenderSemaphores")] - public static extern int AddVulkanRenderSemaphores( - RendererHandle renderer, - [NativeTypeName("Uint32")] uint wait_stage_mask, - [NativeTypeName("Sint64")] long wait_semaphore, - [NativeTypeName("Sint64")] long signal_semaphore + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AddTimerNS")] + [return: NativeTypeName("SDL_TimerID")] + public static extern uint AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + void* userdata ); + [return: NativeTypeName("SDL_TimerID")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AllocateEventMemory")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr AllocateEventMemory([NativeTypeName("size_t")] nuint size) => - (void*)AllocateEventMemoryRaw(size); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AllocateEventMemory")] - public static extern void* AllocateEventMemoryRaw([NativeTypeName("size_t")] nuint size); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AtomicAdd")] - public static extern int AtomicAdd(AtomicInt* a, int v); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int AtomicAdd(Ref a, int v) - { - fixed (AtomicInt* __dsl_a = a) - { - return (int)AtomicAdd(__dsl_a, v); - } - } - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AtomicCompareAndSwap")] - [return: NativeTypeName("SDL_bool")] - public static extern int AtomicCompareAndSwap(AtomicInt* a, int oldval, int newval); - - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwap")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static MaybeBool AtomicCompareAndSwap(Ref a, int oldval, int newval) - { - fixed (AtomicInt* __dsl_a = a) - { - return (MaybeBool)(int)AtomicCompareAndSwap(__dsl_a, oldval, newval); - } - } - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AtomicCompareAndSwapPointer")] - [return: NativeTypeName("SDL_bool")] - public static extern int AtomicCompareAndSwapPointer(void** a, void* oldval, void* newval); - - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwapPointer")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static MaybeBool AtomicCompareAndSwapPointer(Ref2D a, Ref oldval, Ref newval) - { - fixed (void* __dsl_newval = newval) - fixed (void* __dsl_oldval = oldval) - fixed (void** __dsl_a = a) - { - return (MaybeBool) - (int)AtomicCompareAndSwapPointer(__dsl_a, __dsl_oldval, __dsl_newval); - } - } - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AtomicGet")] - public static extern int AtomicGet(AtomicInt* a); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimerNS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int AtomicGet(Ref a) + public static uint AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + Ref userdata + ) { - fixed (AtomicInt* __dsl_a = a) + fixed (void* __dsl_userdata = userdata) { - return (int)AtomicGet(__dsl_a); + return (uint)AddTimerNS(interval, callback, __dsl_userdata); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AtomicGetPtr")] - public static extern void* AtomicGetPtr(void** a); - + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr AtomicGetPtr(Ref2D a) - { - fixed (void** __dsl_a = a) - { - return (void*)AtomicGetPtr(__dsl_a); - } - } - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AtomicSet")] - public static extern int AtomicSet(AtomicInt* a, int v); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int AtomicSet(Ref a, int v) - { - fixed (AtomicInt* __dsl_a = a) - { - return (int)AtomicSet(__dsl_a, v); - } - } - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AtomicSetPtr")] - public static extern void* AtomicSetPtr(void** a, void* v); + [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] + public static MaybeBool AddVulkanRenderSemaphores( + RendererHandle renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) => + (MaybeBool) + (byte)AddVulkanRenderSemaphoresRaw( + renderer, + wait_stage_mask, + wait_semaphore, + signal_semaphore + ); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr AtomicSetPtr(Ref2D a, Ref v) - { - fixed (void* __dsl_v = v) - fixed (void** __dsl_a = a) - { - return (void*)AtomicSetPtr(__dsl_a, __dsl_v); - } - } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AddVulkanRenderSemaphores")] + [return: NativeTypeName("bool")] + public static extern byte AddVulkanRenderSemaphoresRaw( + RendererHandle renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AttachVirtualJoystick")] [return: NativeTypeName("SDL_JoystickID")] public static extern uint AttachVirtualJoystick( - JoystickType type, - int naxes, - int nbuttons, - int nhats - ); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AttachVirtualJoystickEx")] - [return: NativeTypeName("SDL_JoystickID")] - public static extern uint AttachVirtualJoystickEx( [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc ); [return: NativeTypeName("SDL_JoystickID")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] + [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint AttachVirtualJoystickEx( + public static uint AttachVirtualJoystick( [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc ) { fixed (VirtualJoystickDesc* __dsl_desc = desc) { - return (uint)AttachVirtualJoystickEx(__dsl_desc); + return (uint)AttachVirtualJoystick(__dsl_desc); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] - public static MaybeBool AudioDevicePaused( + public static MaybeBool AudioDevicePaused( [NativeTypeName("SDL_AudioDeviceID")] uint dev - ) => (MaybeBool)(int)AudioDevicePausedRaw(dev); + ) => (MaybeBool)(byte)AudioDevicePausedRaw(dev); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AudioDevicePaused")] - [return: NativeTypeName("SDL_bool")] - public static extern int AudioDevicePausedRaw( + [return: NativeTypeName("bool")] + public static extern byte AudioDevicePausedRaw( [NativeTypeName("SDL_AudioDeviceID")] uint dev ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] + public static MaybeBool BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioStreamHandle stream + ) => (MaybeBool)(byte)BindAudioStreamRaw(devid, stream); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_BindAudioStream")] - public static extern int BindAudioStream( + [return: NativeTypeName("bool")] + public static extern byte BindAudioStreamRaw( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioStreamHandle stream ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_BindAudioStreams")] - public static extern int BindAudioStreams( + [return: NativeTypeName("bool")] + public static extern byte BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioStreamHandle* streams, int num_streams ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BindAudioStreams( + public static MaybeBool BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, Ref streams, int num_streams @@ -365,28 +322,30 @@ int num_streams { fixed (AudioStreamHandle* __dsl_streams = streams) { - return (int)BindAudioStreams(devid, __dsl_streams, num_streams); + return (MaybeBool)(byte)BindAudioStreams(devid, __dsl_streams, num_streams); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_BlitSurface")] - public static extern int BlitSurface( + [return: NativeTypeName("bool")] + public static extern byte BlitSurface( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, - Rect* dstrect + [NativeTypeName("const SDL_Rect *")] Rect* dstrect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BlitSurface( + public static MaybeBool BlitSurface( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, - Ref dstrect + [NativeTypeName("const SDL_Rect *")] Ref dstrect ) { fixed (Rect* __dsl_dstrect = dstrect) @@ -394,29 +353,87 @@ Ref dstrect fixed (Rect* __dsl_srcrect = srcrect) fixed (Surface* __dsl_src = src) { - return (int)BlitSurface(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); + return (MaybeBool) + (byte)BlitSurface(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_BlitSurface9Grid")] + [return: NativeTypeName("bool")] + public static extern byte BlitSurface9Grid( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface9Grid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool BlitSurface9Grid( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) + { + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) + { + return (MaybeBool) + (byte)BlitSurface9Grid( + __dsl_src, + __dsl_srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + scaleMode, + __dsl_dst, + __dsl_dstrect + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_BlitSurfaceScaled")] - public static extern int BlitSurfaceScaled( + [return: NativeTypeName("bool")] + public static extern byte BlitSurfaceScaled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, - Rect* dstrect, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, ScaleMode scaleMode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BlitSurfaceScaled( + public static MaybeBool BlitSurfaceScaled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, - Ref dstrect, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, ScaleMode scaleMode ) { @@ -425,30 +442,108 @@ ScaleMode scaleMode fixed (Rect* __dsl_srcrect = srcrect) fixed (Surface* __dsl_src = src) { - return (int)BlitSurfaceScaled( - __dsl_src, - __dsl_srcrect, - __dsl_dst, - __dsl_dstrect, - scaleMode - ); + return (MaybeBool) + (byte)BlitSurfaceScaled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_BlitSurfaceTiled")] + [return: NativeTypeName("bool")] + public static extern byte BlitSurfaceTiled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool BlitSurfaceTiled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) + { + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) + { + return (MaybeBool) + (byte)BlitSurfaceTiled(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_BlitSurfaceTiledWithScale")] + [return: NativeTypeName("bool")] + public static extern byte BlitSurfaceTiledWithScale( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + float scale, + ScaleMode scaleMode, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiledWithScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool BlitSurfaceTiledWithScale( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + float scale, + ScaleMode scaleMode, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) + { + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) + { + return (MaybeBool) + (byte)BlitSurfaceTiledWithScale( + __dsl_src, + __dsl_srcrect, + scale, + scaleMode, + __dsl_dst, + __dsl_dstrect + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_BlitSurfaceUnchecked")] - public static extern int BlitSurfaceUnchecked( + [return: NativeTypeName("bool")] + public static extern byte BlitSurfaceUnchecked( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* dstrect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BlitSurfaceUnchecked( + public static MaybeBool BlitSurfaceUnchecked( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, @@ -460,17 +555,14 @@ public static int BlitSurfaceUnchecked( fixed (Rect* __dsl_srcrect = srcrect) fixed (Surface* __dsl_src = src) { - return (int)BlitSurfaceUnchecked( - __dsl_src, - __dsl_srcrect, - __dsl_dst, - __dsl_dstrect - ); + return (MaybeBool) + (byte)BlitSurfaceUnchecked(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] - public static extern int BlitSurfaceUncheckedScaled( + [return: NativeTypeName("bool")] + public static extern byte BlitSurfaceUncheckedScaled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, @@ -478,12 +570,13 @@ public static extern int BlitSurfaceUncheckedScaled( ScaleMode scaleMode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BlitSurfaceUncheckedScaled( + public static MaybeBool BlitSurfaceUncheckedScaled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, @@ -496,61 +589,124 @@ ScaleMode scaleMode fixed (Rect* __dsl_srcrect = srcrect) fixed (Surface* __dsl_src = src) { - return (int)BlitSurfaceUncheckedScaled( - __dsl_src, - __dsl_srcrect, - __dsl_dst, - __dsl_dstrect, - scaleMode - ); + return (MaybeBool) + (byte)BlitSurfaceUncheckedScaled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_BroadcastCondition")] - public static extern int BroadcastCondition(ConditionHandle cond); + public static extern void BroadcastCondition(ConditionHandle cond); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CaptureMouse")] - public static extern int CaptureMouse([NativeTypeName("SDL_bool")] int enabled); + [return: NativeTypeName("bool")] + public static extern byte CaptureMouse([NativeTypeName("bool")] byte enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] - public static int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled) => - (int)CaptureMouse((int)enabled); + public static MaybeBool CaptureMouse( + [NativeTypeName("bool")] MaybeBool enabled + ) => (MaybeBool)(byte)CaptureMouse((byte)enabled); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CleanupTLS")] public static extern void CleanupTLS(); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] + public static MaybeBool ClearAudioStream(AudioStreamHandle stream) => + (MaybeBool)(byte)ClearAudioStreamRaw(stream); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ClearAudioStream")] - public static extern int ClearAudioStream(AudioStreamHandle stream); + [return: NativeTypeName("bool")] + public static extern byte ClearAudioStreamRaw(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearClipboardData")] + public static MaybeBool ClearClipboardData() => + (MaybeBool)(byte)ClearClipboardDataRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ClearClipboardData")] - public static extern int ClearClipboardData(); + [return: NativeTypeName("bool")] + public static extern byte ClearClipboardDataRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearComposition")] + public static MaybeBool ClearComposition(WindowHandle window) => + (MaybeBool)(byte)ClearCompositionRaw(window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ClearComposition")] - public static extern void ClearComposition(); + [return: NativeTypeName("bool")] + public static extern byte ClearCompositionRaw(WindowHandle window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearError")] + public static MaybeBool ClearError() => (MaybeBool)(byte)ClearErrorRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ClearError")] - public static extern void ClearError(); + [return: NativeTypeName("bool")] + public static extern byte ClearErrorRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ClearProperty")] - public static extern int ClearProperty( + [return: NativeTypeName("bool")] + public static extern byte ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ClearProperty( + public static MaybeBool ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ) { fixed (sbyte* __dsl_name = name) { - return (int)ClearProperty(props, __dsl_name); + return (MaybeBool)(byte)ClearProperty(props, __dsl_name); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ClearSurface")] + [return: NativeTypeName("bool")] + public static extern byte ClearSurface( + Surface* surface, + float r, + float g, + float b, + float a + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ClearSurface( + Ref surface, + float r, + float g, + float b, + float a + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)ClearSurface(__dsl_surface, r, g, b, a); } } @@ -568,8 +724,15 @@ public static extern void CloseAudioDevice( [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CloseHaptic")] public static extern void CloseHaptic(HapticHandle haptic); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] + public static MaybeBool CloseIO(IOStreamHandle context) => + (MaybeBool)(byte)CloseIORaw(context); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CloseIO")] - public static extern int CloseIO(IOStreamHandle context); + [return: NativeTypeName("bool")] + public static extern byte CloseIORaw(IOStreamHandle context); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CloseJoystick")] public static extern void CloseJoystick(JoystickHandle joystick); @@ -577,11 +740,88 @@ public static extern void CloseAudioDevice( [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CloseSensor")] public static extern void CloseSensor(SensorHandle sensor); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] + public static MaybeBool CloseStorage(StorageHandle storage) => + (MaybeBool)(byte)CloseStorageRaw(storage); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CloseStorage")] - public static extern int CloseStorage(StorageHandle storage); + [return: NativeTypeName("bool")] + public static extern byte CloseStorageRaw(StorageHandle storage); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CompareAndSwapAtomicInt")] + [return: NativeTypeName("bool")] + public static extern byte CompareAndSwapAtomicInt(AtomicInt* a, int oldval, int newval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool CompareAndSwapAtomicInt( + Ref a, + int oldval, + int newval + ) + { + fixed (AtomicInt* __dsl_a = a) + { + return (MaybeBool)(byte)CompareAndSwapAtomicInt(__dsl_a, oldval, newval); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CompareAndSwapAtomicPointer")] + [return: NativeTypeName("bool")] + public static extern byte CompareAndSwapAtomicPointer(void** a, void* oldval, void* newval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool CompareAndSwapAtomicPointer(Ref2D a, Ref oldval, Ref newval) + { + fixed (void* __dsl_newval = newval) + fixed (void* __dsl_oldval = oldval) + fixed (void** __dsl_a = a) + { + return (MaybeBool) + (byte)CompareAndSwapAtomicPointer(__dsl_a, __dsl_oldval, __dsl_newval); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CompareAndSwapAtomicU32")] + [return: NativeTypeName("bool")] + public static extern byte CompareAndSwapAtomicU32( + AtomicU32* a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool CompareAndSwapAtomicU32( + Ref a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ) + { + fixed (AtomicU32* __dsl_a = a) + { + return (MaybeBool)(byte)CompareAndSwapAtomicU32(__dsl_a, oldval, newval); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ComposeCustomBlendMode")] - public static extern BlendMode ComposeCustomBlendMode( + [return: NativeTypeName("SDL_BlendMode")] + public static extern uint ComposeCustomBlendMode( BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendOperation colorOperation, @@ -591,7 +831,8 @@ BlendOperation alphaOperation ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ConvertAudioSamples")] - public static extern int ConvertAudioSamples( + [return: NativeTypeName("bool")] + public static extern byte ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const Uint8 *")] byte* src_data, int src_len, @@ -600,12 +841,13 @@ public static extern int ConvertAudioSamples( int* dst_len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ConvertAudioSamples( + public static MaybeBool ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const Uint8 *")] Ref src_data, int src_len, @@ -620,14 +862,15 @@ Ref dst_len fixed (byte* __dsl_src_data = src_data) fixed (AudioSpec* __dsl_src_spec = src_spec) { - return (int)ConvertAudioSamples( - __dsl_src_spec, - __dsl_src_data, - src_len, - __dsl_dst_spec, - __dsl_dst_data, - __dsl_dst_len - ); + return (MaybeBool) + (byte)ConvertAudioSamples( + __dsl_src_spec, + __dsl_src_data, + src_len, + __dsl_dst_spec, + __dsl_dst_data, + __dsl_dst_len + ); } } @@ -636,51 +879,56 @@ Ref dst_len ExactSpelling = true, EntryPoint = "SDL_ConvertEventToRenderCoordinates" )] - public static extern int ConvertEventToRenderCoordinates( + [return: NativeTypeName("bool")] + public static extern byte ConvertEventToRenderCoordinates( RendererHandle renderer, Event* @event ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ConvertEventToRenderCoordinates( + public static MaybeBool ConvertEventToRenderCoordinates( RendererHandle renderer, Ref @event ) { fixed (Event* __dsl_event = @event) { - return (int)ConvertEventToRenderCoordinates(renderer, __dsl_event); + return (MaybeBool) + (byte)ConvertEventToRenderCoordinates(renderer, __dsl_event); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ConvertPixels")] - public static extern int ConvertPixels( + [return: NativeTypeName("bool")] + public static extern byte ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, int dst_pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ConvertPixels( + public static MaybeBool ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, int dst_pitch ) @@ -688,49 +936,52 @@ int dst_pitch fixed (void* __dsl_dst = dst) fixed (void* __dsl_src = src) { - return (int)ConvertPixels( - width, - height, - src_format, - __dsl_src, - src_pitch, - dst_format, - __dsl_dst, - dst_pitch - ); + return (MaybeBool) + (byte)ConvertPixels( + width, + height, + src_format, + __dsl_src, + src_pitch, + dst_format, + __dsl_dst, + dst_pitch + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ConvertPixelsAndColorspace")] - public static extern int ConvertPixelsAndColorspace( + [return: NativeTypeName("bool")] + public static extern byte ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, void* dst, int dst_pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ConvertPixelsAndColorspace( + public static MaybeBool ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, Ref dst, @@ -740,109 +991,143 @@ int dst_pitch fixed (void* __dsl_dst = dst) fixed (void* __dsl_src = src) { - return (int)ConvertPixelsAndColorspace( - width, - height, - src_format, - src_colorspace, - src_properties, - __dsl_src, - src_pitch, - dst_format, - dst_colorspace, - dst_properties, - __dsl_dst, - dst_pitch - ); + return (MaybeBool) + (byte)ConvertPixelsAndColorspace( + width, + height, + src_format, + src_colorspace, + src_properties, + __dsl_src, + src_pitch, + dst_format, + dst_colorspace, + dst_properties, + __dsl_dst, + dst_pitch + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ConvertSurface")] - public static extern Surface* ConvertSurface( - Surface* surface, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format - ); + public static extern Surface* ConvertSurface(Surface* surface, PixelFormat format); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr ConvertSurface( - Ref surface, - [NativeTypeName("const SDL_PixelFormat *")] Ref format - ) + public static Ptr ConvertSurface(Ref surface, PixelFormat format) { - fixed (PixelFormat* __dsl_format = format) fixed (Surface* __dsl_surface = surface) { - return (Surface*)ConvertSurface(__dsl_surface, __dsl_format); + return (Surface*)ConvertSurface(__dsl_surface, format); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ConvertSurfaceFormat")] - public static extern Surface* ConvertSurfaceFormat( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ConvertSurfaceAndColorspace")] + public static extern Surface* ConvertSurfaceAndColorspace( Surface* surface, - PixelFormatEnum pixel_format + PixelFormat format, + Palette* palette, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props ); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceAndColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr ConvertSurfaceFormat( + public static Ptr ConvertSurfaceAndColorspace( Ref surface, - PixelFormatEnum pixel_format + PixelFormat format, + Ref palette, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props ) { + fixed (Palette* __dsl_palette = palette) fixed (Surface* __dsl_surface = surface) { - return (Surface*)ConvertSurfaceFormat(__dsl_surface, pixel_format); + return (Surface*)ConvertSurfaceAndColorspace( + __dsl_surface, + format, + __dsl_palette, + colorspace, + props + ); } } - [DllImport( - "SDL3", - ExactSpelling = true, - EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace" - )] - public static extern Surface* ConvertSurfaceFormatAndColorspace( - Surface* surface, - PixelFormatEnum pixel_format, - Colorspace colorspace, - [NativeTypeName("SDL_PropertiesID")] uint props + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CopyFile")] + [return: NativeTypeName("bool")] + public static extern byte CopyFile( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr ConvertSurfaceFormatAndColorspace( - Ref surface, - PixelFormatEnum pixel_format, - Colorspace colorspace, - [NativeTypeName("SDL_PropertiesID")] uint props + public static MaybeBool CopyFile( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath ) { - fixed (Surface* __dsl_surface = surface) + fixed (sbyte* __dsl_newpath = newpath) + fixed (sbyte* __dsl_oldpath = oldpath) { - return (Surface*)ConvertSurfaceFormatAndColorspace( - __dsl_surface, - pixel_format, - colorspace, - props - ); + return (MaybeBool)(byte)CopyFile(__dsl_oldpath, __dsl_newpath); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyProperties")] + public static MaybeBool CopyProperties( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ) => (MaybeBool)(byte)CopyPropertiesRaw(src, dst); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CopyProperties")] - public static extern int CopyProperties( + [return: NativeTypeName("bool")] + public static extern byte CopyPropertiesRaw( [NativeTypeName("SDL_PropertiesID")] uint src, [NativeTypeName("SDL_PropertiesID")] uint dst ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CopyStorageFile")] + [return: NativeTypeName("bool")] + public static extern byte CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) + { + fixed (sbyte* __dsl_newpath = newpath) + fixed (sbyte* __dsl_oldpath = oldpath) + { + return (MaybeBool) + (byte)CopyStorageFile(storage, __dsl_oldpath, __dsl_newpath); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateAudioStream")] public static extern AudioStreamHandle CreateAudioStream( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, @@ -917,18 +1202,22 @@ int hot_y } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateDirectory")] - public static extern int CreateDirectory([NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] + public static extern byte CreateDirectory([NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CreateDirectory([NativeTypeName("const char *")] Ref path) + public static MaybeBool CreateDirectory( + [NativeTypeName("const char *")] Ref path + ) { fixed (sbyte* __dsl_path = path) { - return (int)CreateDirectory(__dsl_path); + return (MaybeBool)(byte)CreateDirectory(__dsl_path); } } @@ -968,17 +1257,6 @@ public static Ptr CreatePalette(int ncolors) => [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreatePalette")] public static extern Palette* CreatePaletteRaw(int ncolors); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePixelFormat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr CreatePixelFormat(PixelFormatEnum pixel_format) => - (PixelFormat*)CreatePixelFormatRaw(pixel_format); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreatePixelFormat")] - public static extern PixelFormat* CreatePixelFormatRaw(PixelFormatEnum pixel_format); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreatePopupWindow")] public static extern WindowHandle CreatePopupWindow( WindowHandle parent, @@ -986,7 +1264,7 @@ public static extern WindowHandle CreatePopupWindow( int offset_y, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateProperties")] @@ -996,8 +1274,7 @@ public static extern WindowHandle CreatePopupWindow( [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateRenderer")] public static extern RendererHandle CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("Uint32")] uint flags + [NativeTypeName("const char *")] sbyte* name ); [Transformed] @@ -1007,13 +1284,12 @@ public static extern RendererHandle CreateRenderer( )] public static RendererHandle CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("Uint32")] uint flags + [NativeTypeName("const char *")] Ref name ) { fixed (sbyte* __dsl_name = name) { - return (RendererHandle)CreateRenderer(window, __dsl_name, flags); + return (RendererHandle)CreateRenderer(window, __dsl_name); } } @@ -1047,24 +1323,26 @@ public static RendererHandle CreateSoftwareRenderer(Ref surface) } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateStorageDirectory")] - public static extern int CreateStorageDirectory( + [return: NativeTypeName("bool")] + public static extern byte CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CreateStorageDirectory( + public static MaybeBool CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path ) { fixed (sbyte* __dsl_path = path) { - return (int)CreateStorageDirectory(storage, __dsl_path); + return (MaybeBool)(byte)CreateStorageDirectory(storage, __dsl_path); } } @@ -1073,16 +1351,16 @@ public static int CreateStorageDirectory( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr CreateSurface(int width, int height, PixelFormatEnum format) => + public static Ptr CreateSurface(int width, int height, PixelFormat format) => (Surface*)CreateSurfaceRaw(width, height, format); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateSurfaceFrom")] public static extern Surface* CreateSurfaceFrom( - void* pixels, int width, int height, - int pitch, - PixelFormatEnum format + PixelFormat format, + void* pixels, + int pitch ); [Transformed] @@ -1091,40 +1369,56 @@ PixelFormatEnum format MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static Ptr CreateSurfaceFrom( - Ref pixels, int width, int height, - int pitch, - PixelFormatEnum format + PixelFormat format, + Ref pixels, + int pitch ) { fixed (void* __dsl_pixels = pixels) { - return (Surface*)CreateSurfaceFrom(__dsl_pixels, width, height, pitch, format); + return (Surface*)CreateSurfaceFrom(width, height, format, __dsl_pixels, pitch); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateSurfacePalette")] + public static extern Palette* CreateSurfacePalette(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateSurfacePalette(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (Palette*)CreateSurfacePalette(__dsl_surface); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateSurface")] - public static extern Surface* CreateSurfaceRaw( - int width, - int height, - PixelFormatEnum format - ); + public static extern Surface* CreateSurfaceRaw(int width, int height, PixelFormat format); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateSystemCursor")] public static extern CursorHandle CreateSystemCursor(SystemCursor id); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateTexture")] - public static extern TextureHandle CreateTexture( + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateTexture( RendererHandle renderer, - PixelFormatEnum format, - int access, + PixelFormat format, + TextureAccess access, int w, int h - ); + ) => (Texture*)CreateTextureRaw(renderer, format, access, w, h); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateTextureFromSurface")] - public static extern TextureHandle CreateTextureFromSurface( + public static extern Texture* CreateTextureFromSurface( RendererHandle renderer, Surface* surface ); @@ -1134,90 +1428,94 @@ public static extern TextureHandle CreateTextureFromSurface( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static TextureHandle CreateTextureFromSurface( + public static Ptr CreateTextureFromSurface( RendererHandle renderer, Ref surface ) { fixed (Surface* __dsl_surface = surface) { - return (TextureHandle)CreateTextureFromSurface(renderer, __dsl_surface); + return (Texture*)CreateTextureFromSurface(renderer, __dsl_surface); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateTextureWithProperties")] - public static extern TextureHandle CreateTextureWithProperties( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateTexture")] + public static extern Texture* CreateTextureRaw( RendererHandle renderer, - [NativeTypeName("SDL_PropertiesID")] uint props - ); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateThread")] - public static extern ThreadHandle CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] sbyte* name, - void* data + PixelFormat format, + TextureAccess access, + int w, + int h ); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static ThreadHandle CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] Ref name, - Ref data - ) - { - fixed (void* __dsl_data = data) - fixed (sbyte* __dsl_name = name) - { - return (ThreadHandle)CreateThread(fn, __dsl_name, __dsl_data); - } - } + public static Ptr CreateTextureWithProperties( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => (Texture*)CreateTextureWithPropertiesRaw(renderer, props); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateThreadWithStackSize")] - public static extern ThreadHandle CreateThreadWithStackSize( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateTextureWithProperties")] + public static extern Texture* CreateTextureWithPropertiesRaw( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateThreadRuntime")] + public static extern ThreadHandle CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("const size_t")] nuint stacksize, - void* data + void* data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread ); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadRuntime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static ThreadHandle CreateThreadWithStackSize( + public static ThreadHandle CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("const size_t")] nuint stacksize, - Ref data + Ref data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread ) { fixed (void* __dsl_data = data) fixed (sbyte* __dsl_name = name) { - return (ThreadHandle)CreateThreadWithStackSize( + return (ThreadHandle)CreateThreadRuntime( fn, __dsl_name, - stacksize, - __dsl_data + __dsl_data, + pfnBeginThread, + pfnEndThread ); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateTLS")] - [return: NativeTypeName("SDL_TLSID")] - public static extern uint CreateTLS(); + [DllImport( + "SDL3", + ExactSpelling = true, + EntryPoint = "SDL_CreateThreadWithPropertiesRuntime" + )] + public static extern ThreadHandle CreateThreadWithPropertiesRuntime( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread + ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateWindow")] public static extern WindowHandle CreateWindow( [NativeTypeName("const char *")] sbyte* title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ); [Transformed] @@ -1229,7 +1527,7 @@ public static WindowHandle CreateWindow( [NativeTypeName("const char *")] Ref title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) { fixed (sbyte* __dsl_title = title) @@ -1239,25 +1537,27 @@ public static WindowHandle CreateWindow( } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateWindowAndRenderer")] - public static extern int CreateWindowAndRenderer( + [return: NativeTypeName("bool")] + public static extern byte CreateWindowAndRenderer( [NativeTypeName("const char *")] sbyte* title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, WindowHandle* window, RendererHandle* renderer ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CreateWindowAndRenderer( + public static MaybeBool CreateWindowAndRenderer( [NativeTypeName("const char *")] Ref title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, Ref window, Ref renderer ) @@ -1266,14 +1566,15 @@ Ref renderer fixed (WindowHandle* __dsl_window = window) fixed (sbyte* __dsl_title = title) { - return (int)CreateWindowAndRenderer( - __dsl_title, - width, - height, - window_flags, - __dsl_window, - __dsl_renderer - ); + return (MaybeBool) + (byte)CreateWindowAndRenderer( + __dsl_title, + width, + height, + window_flags, + __dsl_window, + __dsl_renderer + ); } } @@ -1282,27 +1583,29 @@ public static extern WindowHandle CreateWindowWithProperties( [NativeTypeName("SDL_PropertiesID")] uint props ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] - public static MaybeBool CursorVisible() => (MaybeBool)(int)CursorVisibleRaw(); + public static MaybeBool CursorVisible() => (MaybeBool)(byte)CursorVisibleRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CursorVisible")] - [return: NativeTypeName("SDL_bool")] - public static extern int CursorVisibleRaw(); + [return: NativeTypeName("bool")] + public static extern byte CursorVisibleRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DateTimeToTime")] - public static extern int DateTimeToTime( + [return: NativeTypeName("bool")] + public static extern byte DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] DateTime* dt, [NativeTypeName("SDL_Time *")] long* ticks ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int DateTimeToTime( + public static MaybeBool DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] Ref dt, [NativeTypeName("SDL_Time *")] Ref ticks ) @@ -1310,7 +1613,7 @@ public static int DateTimeToTime( fixed (long* __dsl_ticks = ticks) fixed (DateTime* __dsl_dt = dt) { - return (int)DateTimeToTime(__dsl_dt, __dsl_ticks); + return (MaybeBool)(byte)DateTimeToTime(__dsl_dt, __dsl_ticks); } } @@ -1320,52 +1623,8 @@ public static int DateTimeToTime( [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DelayNS")] public static extern void DelayNS([NativeTypeName("Uint64")] ulong ns); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DelEventWatch")] - public static extern void DelEventWatch( - [NativeTypeName("SDL_EventFilter")] EventFilter filter, - void* userdata - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void DelEventWatch( - [NativeTypeName("SDL_EventFilter")] EventFilter filter, - Ref userdata - ) - { - fixed (void* __dsl_userdata = userdata) - { - DelEventWatch(filter, __dsl_userdata); - } - } - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DelHintCallback")] - public static extern void DelHintCallback( - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - void* userdata - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void DelHintCallback( - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - Ref userdata - ) - { - fixed (void* __dsl_userdata = userdata) - fixed (sbyte* __dsl_name = name) - { - DelHintCallback(__dsl_name, callback, __dsl_userdata); - } - } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DelayPrecise")] + public static extern void DelayPrecise([NativeTypeName("Uint64")] ulong ns); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DestroyAudioStream")] public static extern void DestroyAudioStream(AudioStreamHandle stream); @@ -1398,22 +1657,6 @@ public static void DestroyPalette(Ref palette) } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DestroyPixelFormat")] - public static extern void DestroyPixelFormat(PixelFormat* format); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void DestroyPixelFormat(Ref format) - { - fixed (PixelFormat* __dsl_format = format) - { - DestroyPixelFormat(__dsl_format); - } - } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DestroyProperties")] public static extern void DestroyProperties( [NativeTypeName("SDL_PropertiesID")] uint props @@ -1445,24 +1688,59 @@ public static void DestroySurface(Ref surface) } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DestroyTexture")] - public static extern void DestroyTexture(TextureHandle texture); + public static extern void DestroyTexture(Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyTexture(Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + DestroyTexture(__dsl_texture); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DestroyWindow")] public static extern void DestroyWindow(WindowHandle window); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] + public static MaybeBool DestroyWindowSurface(WindowHandle window) => + (MaybeBool)(byte)DestroyWindowSurfaceRaw(window); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DestroyWindowSurface")] - public static extern int DestroyWindowSurface(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte DestroyWindowSurfaceRaw(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DetachThread")] public static extern void DetachThread(ThreadHandle thread); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DetachVirtualJoystick")] + public static MaybeBool DetachVirtualJoystick( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (MaybeBool)(byte)DetachVirtualJoystickRaw(instance_id); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DetachVirtualJoystick")] - public static extern int DetachVirtualJoystick( + [return: NativeTypeName("bool")] + public static extern byte DetachVirtualJoystickRaw( [NativeTypeName("SDL_JoystickID")] uint instance_id ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] + public static MaybeBool DisableScreenSaver() => + (MaybeBool)(byte)DisableScreenSaverRaw(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DisableScreenSaver")] - public static extern int DisableScreenSaver(); + [return: NativeTypeName("bool")] + public static extern byte DisableScreenSaverRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DuplicateSurface")] public static extern Surface* DuplicateSurface(Surface* surface); @@ -1482,27 +1760,27 @@ public static Ptr DuplicateSurface(Ref surface) [return: NativeTypeName("SDL_EGLConfig")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentConfig")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr EGLGetCurrentEGLConfig() => (void*)EGLGetCurrentEGLConfigRaw(); + public static Ptr EGLGetCurrentConfig() => (void*)EGLGetCurrentConfigRaw(); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EGL_GetCurrentConfig")] [return: NativeTypeName("SDL_EGLConfig")] - public static extern void* EGLGetCurrentEGLConfigRaw(); + public static extern void* EGLGetCurrentConfigRaw(); [return: NativeTypeName("SDL_EGLDisplay")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentDisplay")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr EGLGetCurrentEGLDisplay() => (void*)EGLGetCurrentEGLDisplayRaw(); + public static Ptr EGLGetCurrentDisplay() => (void*)EGLGetCurrentDisplayRaw(); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EGL_GetCurrentDisplay")] [return: NativeTypeName("SDL_EGLDisplay")] - public static extern void* EGLGetCurrentEGLDisplayRaw(); + public static extern void* EGLGetCurrentDisplayRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EGL_GetProcAddress")] [return: NativeTypeName("SDL_FunctionPointer")] @@ -1528,41 +1806,75 @@ public static FunctionPointer EGLGetProcAddress( [return: NativeTypeName("SDL_EGLSurface")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr EGLGetWindowEGLSurface(WindowHandle window) => - (void*)EGLGetWindowEGLSurfaceRaw(window); + public static Ptr EGLGetWindowSurface(WindowHandle window) => + (void*)EGLGetWindowSurfaceRaw(window); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EGL_GetWindowSurface")] [return: NativeTypeName("SDL_EGLSurface")] - public static extern void* EGLGetWindowEGLSurfaceRaw(WindowHandle window); + public static extern void* EGLGetWindowSurfaceRaw(WindowHandle window); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EGL_SetEGLAttributeCallbacks")] - public static extern void EGLSetEGLAttributeCallbacks( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EGL_SetAttributeCallbacks")] + public static extern void EGLSetAttributeCallbacks( [NativeTypeName("SDL_EGLAttribArrayCallback")] EGLAttribArrayCallback platformAttribCallback, [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, - [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + void* userdata ); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetAttributeCallbacks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void EGLSetAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + EGLAttribArrayCallback platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + EGLSetAttributeCallbacks( + platformAttribCallback, + surfaceAttribCallback, + contextAttribCallback, + __dsl_userdata + ); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnableScreenSaver")] + public static MaybeBool EnableScreenSaver() => + (MaybeBool)(byte)EnableScreenSaverRaw(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EnableScreenSaver")] - public static extern int EnableScreenSaver(); + [return: NativeTypeName("bool")] + public static extern byte EnableScreenSaverRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EnumerateDirectory")] - public static extern int EnumerateDirectory( + [return: NativeTypeName("bool")] + public static extern byte EnumerateDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int EnumerateDirectory( + public static MaybeBool EnumerateDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, Ref userdata @@ -1571,24 +1883,27 @@ Ref userdata fixed (void* __dsl_userdata = userdata) fixed (sbyte* __dsl_path = path) { - return (int)EnumerateDirectory(__dsl_path, callback, __dsl_userdata); + return (MaybeBool) + (byte)EnumerateDirectory(__dsl_path, callback, __dsl_userdata); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EnumerateProperties")] - public static extern int EnumerateProperties( + [return: NativeTypeName("bool")] + public static extern byte EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int EnumerateProperties( + public static MaybeBool EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, @@ -1597,24 +1912,26 @@ Ref userdata { fixed (void* __dsl_userdata = userdata) { - return (int)EnumerateProperties(props, callback, __dsl_userdata); + return (MaybeBool)(byte)EnumerateProperties(props, callback, __dsl_userdata); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EnumerateStorageDirectory")] - public static extern int EnumerateStorageDirectory( + [return: NativeTypeName("bool")] + public static extern byte EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int EnumerateStorageDirectory( + public static MaybeBool EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, @@ -1624,41 +1941,36 @@ Ref userdata fixed (void* __dsl_userdata = userdata) fixed (sbyte* __dsl_path = path) { - return (int)EnumerateStorageDirectory( - storage, - __dsl_path, - callback, - __dsl_userdata - ); + return (MaybeBool) + (byte)EnumerateStorageDirectory(storage, __dsl_path, callback, __dsl_userdata); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_Error")] - public static extern int Error(Errorcode code); - - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] - public static MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) => - (MaybeBool)(int)EventEnabledRaw(type); + public static MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) => + (MaybeBool)(byte)EventEnabledRaw(type); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EventEnabled")] - [return: NativeTypeName("SDL_bool")] - public static extern int EventEnabledRaw([NativeTypeName("Uint32")] uint type); + [return: NativeTypeName("bool")] + public static extern byte EventEnabledRaw([NativeTypeName("Uint32")] uint type); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_FillSurfaceRect")] - public static extern int FillSurfaceRect( + [return: NativeTypeName("bool")] + public static extern byte FillSurfaceRect( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("Uint32")] uint color ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int FillSurfaceRect( + public static MaybeBool FillSurfaceRect( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("Uint32")] uint color @@ -1667,24 +1979,26 @@ public static int FillSurfaceRect( fixed (Rect* __dsl_rect = rect) fixed (Surface* __dsl_dst = dst) { - return (int)FillSurfaceRect(__dsl_dst, __dsl_rect, color); + return (MaybeBool)(byte)FillSurfaceRect(__dsl_dst, __dsl_rect, color); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_FillSurfaceRects")] - public static extern int FillSurfaceRects( + [return: NativeTypeName("bool")] + public static extern byte FillSurfaceRects( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rects, int count, [NativeTypeName("Uint32")] uint color ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int FillSurfaceRects( + public static MaybeBool FillSurfaceRects( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rects, int count, @@ -1694,7 +2008,8 @@ public static int FillSurfaceRects( fixed (Rect* __dsl_rects = rects) fixed (Surface* __dsl_dst = dst) { - return (int)FillSurfaceRects(__dsl_dst, __dsl_rects, count, color); + return (MaybeBool) + (byte)FillSurfaceRects(__dsl_dst, __dsl_rects, count, color); } } @@ -1720,27 +2035,43 @@ Ref userdata } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] + public static MaybeBool FlashWindow(WindowHandle window, FlashOperation operation) => + (MaybeBool)(byte)FlashWindowRaw(window, operation); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_FlashWindow")] - public static extern int FlashWindow(WindowHandle window, FlashOperation operation); + [return: NativeTypeName("bool")] + public static extern byte FlashWindowRaw(WindowHandle window, FlashOperation operation); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_FlipSurface")] - public static extern int FlipSurface(Surface* surface, FlipMode flip); + [return: NativeTypeName("bool")] + public static extern byte FlipSurface(Surface* surface, FlipMode flip); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int FlipSurface(Ref surface, FlipMode flip) + public static MaybeBool FlipSurface(Ref surface, FlipMode flip) { fixed (Surface* __dsl_surface = surface) { - return (int)FlipSurface(__dsl_surface, flip); + return (MaybeBool)(byte)FlipSurface(__dsl_surface, flip); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] + public static MaybeBool FlushAudioStream(AudioStreamHandle stream) => + (MaybeBool)(byte)FlushAudioStreamRaw(stream); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_FlushAudioStream")] - public static extern int FlushAudioStream(AudioStreamHandle stream); + [return: NativeTypeName("bool")] + public static extern byte FlushAudioStreamRaw(AudioStreamHandle stream); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_FlushEvent")] public static extern void FlushEvent([NativeTypeName("Uint32")] uint type); @@ -1751,70 +2082,111 @@ public static extern void FlushEvents( [NativeTypeName("Uint32")] uint maxType ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushIO")] + public static MaybeBool FlushIO(IOStreamHandle context) => + (MaybeBool)(byte)FlushIORaw(context); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_FlushIO")] + [return: NativeTypeName("bool")] + public static extern byte FlushIORaw(IOStreamHandle context); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] + public static MaybeBool FlushRenderer(RendererHandle renderer) => + (MaybeBool)(byte)FlushRendererRaw(renderer); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_FlushRenderer")] - public static extern int FlushRenderer(RendererHandle renderer); + [return: NativeTypeName("bool")] + public static extern byte FlushRendererRaw(RendererHandle renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] - public static MaybeBool GamepadConnected(GamepadHandle gamepad) => - (MaybeBool)(int)GamepadConnectedRaw(gamepad); + public static MaybeBool GamepadConnected(GamepadHandle gamepad) => + (MaybeBool)(byte)GamepadConnectedRaw(gamepad); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GamepadConnected")] - [return: NativeTypeName("SDL_bool")] - public static extern int GamepadConnectedRaw(GamepadHandle gamepad); + [return: NativeTypeName("bool")] + public static extern byte GamepadConnectedRaw(GamepadHandle gamepad); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] - public static MaybeBool GamepadEventsEnabled() => - (MaybeBool)(int)GamepadEventsEnabledRaw(); + public static MaybeBool GamepadEventsEnabled() => + (MaybeBool)(byte)GamepadEventsEnabledRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GamepadEventsEnabled")] - [return: NativeTypeName("SDL_bool")] - public static extern int GamepadEventsEnabledRaw(); + [return: NativeTypeName("bool")] + public static extern byte GamepadEventsEnabledRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] - public static MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis) => - (MaybeBool)(int)GamepadHasAxisRaw(gamepad, axis); + public static MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis) => + (MaybeBool)(byte)GamepadHasAxisRaw(gamepad, axis); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GamepadHasAxis")] - [return: NativeTypeName("SDL_bool")] - public static extern int GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis); + [return: NativeTypeName("bool")] + public static extern byte GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] - public static MaybeBool GamepadHasButton( + public static MaybeBool GamepadHasButton( GamepadHandle gamepad, GamepadButton button - ) => (MaybeBool)(int)GamepadHasButtonRaw(gamepad, button); + ) => (MaybeBool)(byte)GamepadHasButtonRaw(gamepad, button); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GamepadHasButton")] - [return: NativeTypeName("SDL_bool")] - public static extern int GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button); + [return: NativeTypeName("bool")] + public static extern byte GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] - public static MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType type) => - (MaybeBool)(int)GamepadHasSensorRaw(gamepad, type); + public static MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType type) => + (MaybeBool)(byte)GamepadHasSensorRaw(gamepad, type); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GamepadHasSensor")] - [return: NativeTypeName("SDL_bool")] - public static extern int GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type); + [return: NativeTypeName("bool")] + public static extern byte GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] - public static MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, SensorType type) => - (MaybeBool)(int)GamepadSensorEnabledRaw(gamepad, type); + public static MaybeBool GamepadSensorEnabled( + GamepadHandle gamepad, + SensorType type + ) => (MaybeBool)(byte)GamepadSensorEnabledRaw(gamepad, type); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GamepadSensorEnabled")] - [return: NativeTypeName("SDL_bool")] - public static extern int GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type); + [return: NativeTypeName("bool")] + public static extern byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAppMetadataProperty")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetAppMetadataProperty( + [NativeTypeName("const char *")] sbyte* name + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAppMetadataProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAppMetadataProperty( + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + { + return (sbyte*)GetAppMetadataProperty(__dsl_name); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAssertionHandler")] [return: NativeTypeName("SDL_AssertionHandler")] @@ -1846,37 +2218,93 @@ public static AssertionHandler GetAssertionHandler(Ref2D puserdata) [return: NativeTypeName("const SDL_AssertData *")] public static extern AssertData* GetAssertionReportRaw(); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioCaptureDevices")] - [return: NativeTypeName("SDL_AudioDeviceID *")] - public static extern uint* GetAudioCaptureDevices(int* count); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAtomicInt")] + public static extern int GetAtomicInt(AtomicInt* a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAtomicInt(Ref a) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)GetAtomicInt(__dsl_a); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAtomicPointer")] + public static extern void* GetAtomicPointer(void** a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAtomicPointer(Ref2D a) + { + fixed (void** __dsl_a = a) + { + return (void*)GetAtomicPointer(__dsl_a); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAtomicU32")] + [return: NativeTypeName("Uint32")] + public static extern uint GetAtomicU32(AtomicU32* a); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetAtomicU32(Ref a) + { + fixed (AtomicU32* __dsl_a = a) + { + return (uint)GetAtomicU32(__dsl_a); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioDeviceChannelMap")] + public static extern int* GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + int* count + ); - [return: NativeTypeName("SDL_AudioDeviceID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceChannelMap")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetAudioCaptureDevices(Ref count) + public static Ptr GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref count + ) { fixed (int* __dsl_count = count) { - return (uint*)GetAudioCaptureDevices(__dsl_count); + return (int*)GetAudioDeviceChannelMap(devid, __dsl_count); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioDeviceFormat")] - public static extern int GetAudioDeviceFormat( + [return: NativeTypeName("bool")] + public static extern byte GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioSpec* spec, int* sample_frames ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetAudioDeviceFormat( + public static MaybeBool GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, Ref spec, Ref sample_frames @@ -1885,11 +2313,17 @@ Ref sample_frames fixed (int* __dsl_sample_frames = sample_frames) fixed (AudioSpec* __dsl_spec = spec) { - return (int)GetAudioDeviceFormat(devid, __dsl_spec, __dsl_sample_frames); + return (MaybeBool) + (byte)GetAudioDeviceFormat(devid, __dsl_spec, __dsl_sample_frames); } } - [return: NativeTypeName("char *")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioDeviceGain")] + public static extern float GetAudioDeviceGain( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ); + + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] [MethodImpl( @@ -1900,7 +2334,7 @@ public static Ptr GetAudioDeviceName( ) => (sbyte*)GetAudioDeviceNameRaw(devid); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioDeviceName")] - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] public static extern sbyte* GetAudioDeviceNameRaw( [NativeTypeName("SDL_AudioDeviceID")] uint devid ); @@ -1917,21 +2351,52 @@ public static Ptr GetAudioDeviceName( [return: NativeTypeName("const char *")] public static extern sbyte* GetAudioDriverRaw(int index); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioOutputDevices")] + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioFormatName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioFormatName(AudioFormat format) => + (sbyte*)GetAudioFormatNameRaw(format); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioFormatName")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetAudioFormatNameRaw(AudioFormat format); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioPlaybackDevices")] + [return: NativeTypeName("SDL_AudioDeviceID *")] + public static extern uint* GetAudioPlaybackDevices(int* count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioPlaybackDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioPlaybackDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetAudioPlaybackDevices(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioRecordingDevices")] [return: NativeTypeName("SDL_AudioDeviceID *")] - public static extern uint* GetAudioOutputDevices(int* count); + public static extern uint* GetAudioRecordingDevices(int* count); [return: NativeTypeName("SDL_AudioDeviceID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioRecordingDevices")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetAudioOutputDevices(Ref count) + public static Ptr GetAudioRecordingDevices(Ref count) { fixed (int* __dsl_count = count) { - return (uint*)GetAudioOutputDevices(__dsl_count); + return (uint*)GetAudioRecordingDevices(__dsl_count); } } @@ -1959,18 +2424,20 @@ public static int GetAudioStreamData(AudioStreamHandle stream, Ref buf, int len) public static extern uint GetAudioStreamDevice(AudioStreamHandle stream); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioStreamFormat")] - public static extern int GetAudioStreamFormat( + [return: NativeTypeName("bool")] + public static extern byte GetAudioStreamFormat( AudioStreamHandle stream, AudioSpec* src_spec, AudioSpec* dst_spec ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetAudioStreamFormat( + public static MaybeBool GetAudioStreamFormat( AudioStreamHandle stream, Ref src_spec, Ref dst_spec @@ -1979,13 +2446,61 @@ Ref dst_spec fixed (AudioSpec* __dsl_dst_spec = dst_spec) fixed (AudioSpec* __dsl_src_spec = src_spec) { - return (int)GetAudioStreamFormat(stream, __dsl_src_spec, __dsl_dst_spec); + return (MaybeBool) + (byte)GetAudioStreamFormat(stream, __dsl_src_spec, __dsl_dst_spec); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioStreamFrequencyRatio")] public static extern float GetAudioStreamFrequencyRatio(AudioStreamHandle stream); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioStreamGain")] + public static extern float GetAudioStreamGain(AudioStreamHandle stream); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioStreamInputChannelMap")] + public static extern int* GetAudioStreamInputChannelMap( + AudioStreamHandle stream, + int* count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamInputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioStreamInputChannelMap( + AudioStreamHandle stream, + Ref count + ) + { + fixed (int* __dsl_count = count) + { + return (int*)GetAudioStreamInputChannelMap(stream, __dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioStreamOutputChannelMap")] + public static extern int* GetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + int* count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamOutputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + Ref count + ) + { + fixed (int* __dsl_count = count) + { + return (int*)GetAudioStreamOutputChannelMap(stream, __dsl_count); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioStreamProperties")] [return: NativeTypeName("SDL_PropertiesID")] public static extern uint GetAudioStreamProperties(AudioStreamHandle stream); @@ -1993,7 +2508,7 @@ Ref dst_spec [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioStreamQueued")] public static extern int GetAudioStreamQueued(AudioStreamHandle stream); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] [MethodImpl( @@ -2002,140 +2517,137 @@ Ref dst_spec public static Ptr GetBasePath() => (sbyte*)GetBasePathRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetBasePath")] - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] public static extern sbyte* GetBasePathRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetBooleanProperty")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetBooleanProperty( + [return: NativeTypeName("bool")] + public static extern byte GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetBooleanProperty( + public static MaybeBool GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value + [NativeTypeName("bool")] MaybeBool default_value ) { fixed (sbyte* __dsl_name = name) { - return (MaybeBool) - (int)GetBooleanProperty(props, __dsl_name, (int)default_value); + return (MaybeBool) + (byte)GetBooleanProperty(props, __dsl_name, (byte)default_value); } } - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetCameraDeviceName( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ) => (sbyte*)GetCameraDeviceNameRaw(instance_id); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraDeviceName")] - [return: NativeTypeName("char *")] - public static extern sbyte* GetCameraDeviceNameRaw( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ); + public static Ptr GetCameraDriver(int index) => (sbyte*)GetCameraDriverRaw(index); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraDevicePosition")] - public static extern CameraPosition GetCameraDevicePosition( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraDriver")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetCameraDriverRaw(int index); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraDevices")] - [return: NativeTypeName("SDL_CameraDeviceID *")] - public static extern uint* GetCameraDevices(int* count); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraFormat")] + [return: NativeTypeName("bool")] + public static extern byte GetCameraFormat(CameraHandle camera, CameraSpec* spec); - [return: NativeTypeName("SDL_CameraDeviceID *")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetCameraDevices(Ref count) + public static MaybeBool GetCameraFormat(CameraHandle camera, Ref spec) { - fixed (int* __dsl_count = count) + fixed (CameraSpec* __dsl_spec = spec) { - return (uint*)GetCameraDevices(__dsl_count); + return (MaybeBool)(byte)GetCameraFormat(camera, __dsl_spec); } } - [DllImport( - "SDL3", - ExactSpelling = true, - EntryPoint = "SDL_GetCameraDeviceSupportedFormats" + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraID")] + [return: NativeTypeName("SDL_CameraID")] + public static extern uint GetCameraID(CameraHandle camera); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static extern CameraSpec* GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - int* count + public static Ptr GetCameraName([NativeTypeName("SDL_CameraID")] uint instance_id) => + (sbyte*)GetCameraNameRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraName")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetCameraNameRaw( + [NativeTypeName("SDL_CameraID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraPermissionState")] + public static extern int GetCameraPermissionState(CameraHandle camera); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraPosition")] + public static extern CameraPosition GetCameraPosition( + [NativeTypeName("SDL_CameraID")] uint instance_id ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraProperties")] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetCameraProperties(CameraHandle camera); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameras")] + [return: NativeTypeName("SDL_CameraID *")] + public static extern uint* GetCameras(int* count); + + [return: NativeTypeName("SDL_CameraID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameras")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - Ref count - ) + public static Ptr GetCameras(Ref count) { fixed (int* __dsl_count = count) { - return (CameraSpec*)GetCameraDeviceSupportedFormats(devid, __dsl_count); + return (uint*)GetCameras(__dsl_count); } } - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetCameraDriver(int index) => (sbyte*)GetCameraDriverRaw(index); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraDriver")] - [return: NativeTypeName("const char *")] - public static extern sbyte* GetCameraDriverRaw(int index); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraFormat")] - public static extern int GetCameraFormat(CameraHandle camera, CameraSpec* spec); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraSupportedFormats")] + public static extern CameraSpec** GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + int* count + ); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetCameraFormat(CameraHandle camera, Ref spec) + public static Ptr2D GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + Ref count + ) { - fixed (CameraSpec* __dsl_spec = spec) + fixed (int* __dsl_count = count) { - return (int)GetCameraFormat(camera, __dsl_spec); + return (CameraSpec**)GetCameraSupportedFormats(devid, __dsl_count); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraInstanceID")] - [return: NativeTypeName("SDL_CameraDeviceID")] - public static extern uint GetCameraInstanceID(CameraHandle camera); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraPermissionState")] - public static extern int GetCameraPermissionState(CameraHandle camera); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraProperties")] - [return: NativeTypeName("SDL_PropertiesID")] - public static extern uint GetCameraProperties(CameraHandle camera); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetClipboardData")] public static extern void* GetClipboardData( [NativeTypeName("const char *")] sbyte* mime_type, @@ -2159,6 +2671,28 @@ public static Ptr GetClipboardData( } } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetClipboardMimeTypes")] + [return: NativeTypeName("char **")] + public static extern sbyte** GetClipboardMimeTypes( + [NativeTypeName("size_t *")] nuint* num_mime_types + ); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardMimeTypes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GetClipboardMimeTypes( + [NativeTypeName("size_t *")] Ref num_mime_types + ) + { + fixed (nuint* __dsl_num_mime_types = num_mime_types) + { + return (sbyte**)GetClipboardMimeTypes(__dsl_num_mime_types); + } + } + [return: NativeTypeName("char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] @@ -2176,42 +2710,48 @@ public static Ptr GetClipboardData( ExactSpelling = true, EntryPoint = "SDL_GetClosestFullscreenDisplayMode" )] - [return: NativeTypeName("const SDL_DisplayMode *")] - public static extern DisplayMode* GetClosestFullscreenDisplayMode( + [return: NativeTypeName("bool")] + public static extern byte GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] int include_high_density_modes + [NativeTypeName("bool")] byte include_high_density_modes, + DisplayMode* mode ); - [return: NativeTypeName("const SDL_DisplayMode *")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetClosestFullscreenDisplayMode( + public static MaybeBool GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] MaybeBool include_high_density_modes - ) => - (DisplayMode*)GetClosestFullscreenDisplayMode( - displayID, - w, - h, - refresh_rate, - (int)include_high_density_modes - ); + [NativeTypeName("bool")] MaybeBool include_high_density_modes, + Ref mode + ) + { + fixed (DisplayMode* __dsl_mode = mode) + { + return (MaybeBool) + (byte)GetClosestFullscreenDisplayMode( + displayID, + w, + h, + refresh_rate, + (byte)include_high_density_modes, + __dsl_mode + ); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCPUCacheLineSize")] public static extern int GetCPUCacheLineSize(); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCPUCount")] - public static extern int GetCPUCount(); - [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] @@ -2258,18 +2798,20 @@ public static extern DisplayOrientation GetCurrentDisplayOrientation( ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCurrentRenderOutputSize")] - public static extern int GetCurrentRenderOutputSize( + [return: NativeTypeName("bool")] + public static extern byte GetCurrentRenderOutputSize( RendererHandle renderer, int* w, int* h ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetCurrentRenderOutputSize( + public static MaybeBool GetCurrentRenderOutputSize( RendererHandle renderer, Ref w, Ref h @@ -2278,7 +2820,8 @@ Ref h fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetCurrentRenderOutputSize(renderer, __dsl_w, __dsl_h); + return (MaybeBool) + (byte)GetCurrentRenderOutputSize(renderer, __dsl_w, __dsl_h); } } @@ -2287,18 +2830,20 @@ Ref h public static extern ulong GetCurrentThreadID(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCurrentTime")] - public static extern int GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks); + [return: NativeTypeName("bool")] + public static extern byte GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) + public static MaybeBool GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) { fixed (long* __dsl_ticks = ticks) { - return (int)GetCurrentTime(__dsl_ticks); + return (MaybeBool)(byte)GetCurrentTime(__dsl_ticks); } } @@ -2317,6 +2862,32 @@ public static int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCursor")] public static extern CursorHandle GetCursor(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetDateTimeLocalePreferences")] + [return: NativeTypeName("bool")] + public static extern byte GetDateTimeLocalePreferences( + DateFormat* dateFormat, + TimeFormat* timeFormat + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDateTimeLocalePreferences")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetDateTimeLocalePreferences( + Ref dateFormat, + Ref timeFormat + ) + { + fixed (TimeFormat* __dsl_timeFormat = timeFormat) + fixed (DateFormat* __dsl_dateFormat = dateFormat) + { + return (MaybeBool) + (byte)GetDateTimeLocalePreferences(__dsl_dateFormat, __dsl_timeFormat); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetDayOfWeek")] public static extern int GetDayOfWeek(int year, int month, int day); @@ -2333,6 +2904,10 @@ public static int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetDefaultCursor")] public static extern CursorHandle GetDefaultCursor(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetDefaultLogOutputFunction")] + [return: NativeTypeName("SDL_LogOutputFunction")] + public static extern LogOutputFunction GetDefaultLogOutputFunction(); + [return: NativeTypeName("const SDL_DisplayMode *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] @@ -2350,24 +2925,26 @@ public static Ptr GetDesktopDisplayMode( ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetDisplayBounds")] - public static extern int GetDisplayBounds( + [return: NativeTypeName("bool")] + public static extern byte GetDisplayBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetDisplayBounds( + public static MaybeBool GetDisplayBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)GetDisplayBounds(displayID, __dsl_rect); + return (MaybeBool)(byte)GetDisplayBounds(displayID, __dsl_rect); } } @@ -2462,24 +3039,26 @@ public static Ptr GetDisplays(Ref count) } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetDisplayUsableBounds")] - public static extern int GetDisplayUsableBounds( + [return: NativeTypeName("bool")] + public static extern byte GetDisplayUsableBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetDisplayUsableBounds( + public static MaybeBool GetDisplayUsableBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)GetDisplayUsableBounds(displayID, __dsl_rect); + return (MaybeBool)(byte)GetDisplayUsableBounds(displayID, __dsl_rect); } } @@ -2496,19 +3075,19 @@ Ref rect public static extern sbyte* GetErrorRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetEventFilter")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetEventFilter( + [return: NativeTypeName("bool")] + public static extern byte GetEventFilter( [NativeTypeName("SDL_EventFilter *")] EventFilter* filter, void** userdata ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetEventFilter( + public static MaybeBool GetEventFilter( [NativeTypeName("SDL_EventFilter *")] Ref filter, Ref2D userdata ) @@ -2516,7 +3095,7 @@ Ref2D userdata fixed (void** __dsl_userdata = userdata) fixed (EventFilter* __dsl_filter = filter) { - return (MaybeBool)(int)GetEventFilter(__dsl_filter, __dsl_userdata); + return (MaybeBool)(byte)GetEventFilter(__dsl_filter, __dsl_userdata); } } @@ -2545,13 +3124,11 @@ float default_value } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetFullscreenDisplayModes")] - [return: NativeTypeName("const SDL_DisplayMode **")] public static extern DisplayMode** GetFullscreenDisplayModes( [NativeTypeName("SDL_DisplayID")] uint displayID, int* count ); - [return: NativeTypeName("const SDL_DisplayMode **")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] [MethodImpl( @@ -2655,9 +3232,13 @@ Ref count } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadButton")] - [return: NativeTypeName("Uint8")] - public static extern byte GetGamepadButton(GamepadHandle gamepad, GamepadButton button); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] + public static MaybeBool GetGamepadButton( + GamepadHandle gamepad, + GamepadButton button + ) => (MaybeBool)(byte)GetGamepadButtonRaw(gamepad, button); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadButtonFromString")] public static extern GamepadButton GetGamepadButtonFromString( @@ -2691,6 +3272,10 @@ public static extern GamepadButtonLabel GetGamepadButtonLabelForType( GamepadButton button ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadButton")] + [return: NativeTypeName("bool")] + public static extern byte GetGamepadButtonRaw(GamepadHandle gamepad, GamepadButton button); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadConnectionState")] public static extern JoystickConnectionState GetGamepadConnectionState( GamepadHandle gamepad @@ -2700,103 +3285,22 @@ GamepadHandle gamepad [return: NativeTypeName("Uint16")] public static extern ushort GetGamepadFirmwareVersion(GamepadHandle gamepad); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadFromInstanceID")] - public static extern GamepadHandle GetGamepadFromInstanceID( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadFromID")] + public static extern GamepadHandle GetGamepadFromID( [NativeTypeName("SDL_JoystickID")] uint instance_id ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadFromPlayerIndex")] public static extern GamepadHandle GetGamepadFromPlayerIndex(int player_index); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadInstanceGUID")] - [return: NativeTypeName("SDL_JoystickGUID")] - public static extern Guid GetGamepadInstanceGuid( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadGUIDForID")] + public static extern Guid GetGamepadGuidForID( [NativeTypeName("SDL_JoystickID")] uint instance_id ); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadInstanceID")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadID")] [return: NativeTypeName("SDL_JoystickID")] - public static extern uint GetGamepadInstanceID(GamepadHandle gamepad); - - [return: NativeTypeName("char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceMapping")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetGamepadInstanceMapping( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => (sbyte*)GetGamepadInstanceMappingRaw(instance_id); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadInstanceMapping")] - [return: NativeTypeName("char *")] - public static extern sbyte* GetGamepadInstanceMappingRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetGamepadInstanceName( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => (sbyte*)GetGamepadInstanceNameRaw(instance_id); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadInstanceName")] - [return: NativeTypeName("const char *")] - public static extern sbyte* GetGamepadInstanceNameRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePath")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetGamepadInstancePath( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => (sbyte*)GetGamepadInstancePathRaw(instance_id); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadInstancePath")] - [return: NativeTypeName("const char *")] - public static extern sbyte* GetGamepadInstancePathRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadInstancePlayerIndex")] - public static extern int GetGamepadInstancePlayerIndex( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadInstanceProduct")] - [return: NativeTypeName("Uint16")] - public static extern ushort GetGamepadInstanceProduct( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [DllImport( - "SDL3", - ExactSpelling = true, - EntryPoint = "SDL_GetGamepadInstanceProductVersion" - )] - [return: NativeTypeName("Uint16")] - public static extern ushort GetGamepadInstanceProductVersion( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadInstanceType")] - public static extern GamepadType GetGamepadInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadInstanceVendor")] - [return: NativeTypeName("Uint16")] - public static extern ushort GetGamepadInstanceVendor( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); + public static extern uint GetGamepadID(GamepadHandle gamepad); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadJoystick")] public static extern JoystickHandle GetGamepadJoystick(GamepadHandle gamepad); @@ -2816,14 +3320,27 @@ public static Ptr GetGamepadMapping(GamepadHandle gamepad) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetGamepadMappingForGuid( - [NativeTypeName("SDL_JoystickGUID")] Guid guid - ) => (sbyte*)GetGamepadMappingForGuidRaw(guid); + public static Ptr GetGamepadMappingForGuid(Guid guid) => + (sbyte*)GetGamepadMappingForGuidRaw(guid); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadMappingForGUID")] [return: NativeTypeName("char *")] - public static extern sbyte* GetGamepadMappingForGuidRaw( - [NativeTypeName("SDL_JoystickGUID")] Guid guid + public static extern sbyte* GetGamepadMappingForGuidRaw(Guid guid); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadMappingForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (sbyte*)GetGamepadMappingForIDRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadMappingForID")] + [return: NativeTypeName("char *")] + public static extern sbyte* GetGamepadMappingForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadMapping")] @@ -2857,6 +3374,22 @@ public static Ptr2D GetGamepadMappings(Ref count) public static Ptr GetGamepadName(GamepadHandle gamepad) => (sbyte*)GetGamepadNameRaw(gamepad); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadNameForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadNameForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (sbyte*)GetGamepadNameForIDRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadNameForID")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetGamepadNameForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadName")] [return: NativeTypeName("const char *")] public static extern sbyte* GetGamepadNameRaw(GamepadHandle gamepad); @@ -2870,6 +3403,22 @@ public static Ptr GetGamepadName(GamepadHandle gamepad) => public static Ptr GetGamepadPath(GamepadHandle gamepad) => (sbyte*)GetGamepadPathRaw(gamepad); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPathForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadPathForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (sbyte*)GetGamepadPathForIDRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadPathForID")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetGamepadPathForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadPath")] [return: NativeTypeName("const char *")] public static extern sbyte* GetGamepadPathRaw(GamepadHandle gamepad); @@ -2877,6 +3426,11 @@ public static Ptr GetGamepadPath(GamepadHandle gamepad) => [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadPlayerIndex")] public static extern int GetGamepadPlayerIndex(GamepadHandle gamepad); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadPlayerIndexForID")] + public static extern int GetGamepadPlayerIndexForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadPowerInfo")] public static extern PowerState GetGamepadPowerInfo(GamepadHandle gamepad, int* percent); @@ -2897,10 +3451,22 @@ public static PowerState GetGamepadPowerInfo(GamepadHandle gamepad, Ref per [return: NativeTypeName("Uint16")] public static extern ushort GetGamepadProduct(GamepadHandle gamepad); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadProductForID")] + [return: NativeTypeName("Uint16")] + public static extern ushort GetGamepadProductForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadProductVersion")] [return: NativeTypeName("Uint16")] public static extern ushort GetGamepadProductVersion(GamepadHandle gamepad); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadProductVersionForID")] + [return: NativeTypeName("Uint16")] + public static extern ushort GetGamepadProductVersionForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadProperties")] [return: NativeTypeName("SDL_PropertiesID")] public static extern uint GetGamepadProperties(GamepadHandle gamepad); @@ -2924,19 +3490,21 @@ public static Ptr GetGamepads(Ref count) } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadSensorData")] - public static extern int GetGamepadSensorData( + [return: NativeTypeName("bool")] + public static extern byte GetGamepadSensorData( GamepadHandle gamepad, SensorType type, float* data, int num_values ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetGamepadSensorData( + public static MaybeBool GetGamepadSensorData( GamepadHandle gamepad, SensorType type, Ref data, @@ -2945,7 +3513,8 @@ int num_values { fixed (float* __dsl_data = data) { - return (int)GetGamepadSensorData(gamepad, type, __dsl_data, num_values); + return (MaybeBool) + (byte)GetGamepadSensorData(gamepad, type, __dsl_data, num_values); } } @@ -3009,26 +3578,28 @@ public static Ptr GetGamepadStringForType(GamepadType type) => public static extern sbyte* GetGamepadStringForTypeRaw(GamepadType type); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadTouchpadFinger")] - public static extern int GetGamepadTouchpadFinger( + [return: NativeTypeName("bool")] + public static extern byte GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] byte* state, + bool* down, float* x, float* y, float* pressure ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetGamepadTouchpadFinger( + public static MaybeBool GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] Ref state, + Ref down, Ref x, Ref y, Ref pressure @@ -3037,23 +3608,29 @@ Ref pressure fixed (float* __dsl_pressure = pressure) fixed (float* __dsl_y = y) fixed (float* __dsl_x = x) - fixed (byte* __dsl_state = state) - { - return (int)GetGamepadTouchpadFinger( - gamepad, - touchpad, - finger, - __dsl_state, - __dsl_x, - __dsl_y, - __dsl_pressure - ); + fixed (bool* __dsl_down = down) + { + return (MaybeBool) + (byte)GetGamepadTouchpadFinger( + gamepad, + touchpad, + finger, + __dsl_down, + __dsl_x, + __dsl_y, + __dsl_pressure + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadType")] public static extern GamepadType GetGamepadType(GamepadHandle gamepad); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadTypeForID")] + public static extern GamepadType GetGamepadTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadTypeFromString")] public static extern GamepadType GetGamepadTypeFromString( [NativeTypeName("const char *")] sbyte* str @@ -3078,11 +3655,17 @@ public static GamepadType GetGamepadTypeFromString( [return: NativeTypeName("Uint16")] public static extern ushort GetGamepadVendor(GamepadHandle gamepad); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadVendorForID")] + [return: NativeTypeName("Uint16")] + public static extern ushort GetGamepadVendorForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGlobalMouseState")] - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] public static extern uint GetGlobalMouseState(float* x, float* y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] [MethodImpl( @@ -3104,46 +3687,53 @@ public static uint GetGlobalMouseState(Ref x, Ref y) [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGrabbedWindow")] public static extern WindowHandle GetGrabbedWindow(); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] + public static MaybeBool GetHapticEffectStatus(HapticHandle haptic, int effect) => + (MaybeBool)(byte)GetHapticEffectStatusRaw(haptic, effect); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetHapticEffectStatus")] - public static extern int GetHapticEffectStatus(HapticHandle haptic, int effect); + [return: NativeTypeName("bool")] + public static extern byte GetHapticEffectStatusRaw(HapticHandle haptic, int effect); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetHapticFeatures")] [return: NativeTypeName("Uint32")] public static extern uint GetHapticFeatures(HapticHandle haptic); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetHapticFromInstanceID")] - public static extern HapticHandle GetHapticFromInstanceID( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetHapticFromID")] + public static extern HapticHandle GetHapticFromID( [NativeTypeName("SDL_HapticID")] uint instance_id ); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetHapticInstanceID")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetHapticID")] [return: NativeTypeName("SDL_HapticID")] - public static extern uint GetHapticInstanceID(HapticHandle haptic); + public static extern uint GetHapticID(HapticHandle haptic); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetHapticInstanceName( - [NativeTypeName("SDL_HapticID")] uint instance_id - ) => (sbyte*)GetHapticInstanceNameRaw(instance_id); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetHapticInstanceName")] - [return: NativeTypeName("const char *")] - public static extern sbyte* GetHapticInstanceNameRaw( - [NativeTypeName("SDL_HapticID")] uint instance_id - ); + public static Ptr GetHapticName(HapticHandle haptic) => + (sbyte*)GetHapticNameRaw(haptic); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetHapticName(HapticHandle haptic) => - (sbyte*)GetHapticNameRaw(haptic); + public static Ptr GetHapticNameForID( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => (sbyte*)GetHapticNameForIDRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetHapticNameForID")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetHapticNameForIDRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetHapticName")] [return: NativeTypeName("const char *")] @@ -3186,26 +3776,26 @@ public static Ptr GetHint([NativeTypeName("const char *")] Ref nam } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetHintBoolean")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetHintBoolean( + [return: NativeTypeName("bool")] + public static extern byte GetHintBoolean( [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetHintBoolean( + public static MaybeBool GetHintBoolean( [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value + [NativeTypeName("bool")] MaybeBool default_value ) { fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)GetHintBoolean(__dsl_name, (int)default_value); + return (MaybeBool)(byte)GetHintBoolean(__dsl_name, (byte)default_value); } } @@ -3225,20 +3815,20 @@ public static MaybeBool GetHintBoolean( public static extern short GetJoystickAxis(JoystickHandle joystick, int axis); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickAxisInitialState")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetJoystickAxisInitialState( + [return: NativeTypeName("bool")] + public static extern byte GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] short* state ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetJoystickAxisInitialState( + public static MaybeBool GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] Ref state @@ -3246,25 +3836,27 @@ public static MaybeBool GetJoystickAxisInitialState( { fixed (short* __dsl_state = state) { - return (MaybeBool) - (int)GetJoystickAxisInitialState(joystick, axis, __dsl_state); + return (MaybeBool) + (byte)GetJoystickAxisInitialState(joystick, axis, __dsl_state); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickBall")] - public static extern int GetJoystickBall( + [return: NativeTypeName("bool")] + public static extern byte GetJoystickBall( JoystickHandle joystick, int ball, int* dx, int* dy ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetJoystickBall( + public static MaybeBool GetJoystickBall( JoystickHandle joystick, int ball, Ref dx, @@ -3274,13 +3866,19 @@ Ref dy fixed (int* __dsl_dy = dy) fixed (int* __dsl_dx = dx) { - return (int)GetJoystickBall(joystick, ball, __dsl_dx, __dsl_dy); + return (MaybeBool)(byte)GetJoystickBall(joystick, ball, __dsl_dx, __dsl_dy); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] + public static MaybeBool GetJoystickButton(JoystickHandle joystick, int button) => + (MaybeBool)(byte)GetJoystickButtonRaw(joystick, button); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickButton")] - [return: NativeTypeName("Uint8")] - public static extern byte GetJoystickButton(JoystickHandle joystick, int button); + [return: NativeTypeName("bool")] + public static extern byte GetJoystickButtonRaw(JoystickHandle joystick, int button); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickConnectionState")] public static extern JoystickConnectionState GetJoystickConnectionState( @@ -3291,8 +3889,8 @@ JoystickHandle joystick [return: NativeTypeName("Uint16")] public static extern ushort GetJoystickFirmwareVersion(JoystickHandle joystick); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickFromInstanceID")] - public static extern JoystickHandle GetJoystickFromInstanceID( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickFromID")] + public static extern JoystickHandle GetJoystickFromID( [NativeTypeName("SDL_JoystickID")] uint instance_id ); @@ -3300,34 +3898,16 @@ public static extern JoystickHandle GetJoystickFromInstanceID( public static extern JoystickHandle GetJoystickFromPlayerIndex(int player_index); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickGUID")] - [return: NativeTypeName("SDL_JoystickGUID")] public static extern Guid GetJoystickGuid(JoystickHandle joystick); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickGUIDFromString")] - [return: NativeTypeName("SDL_JoystickGUID")] - public static extern Guid GetJoystickGuidFromString( - [NativeTypeName("const char *")] sbyte* pchGUID + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickGUIDForID")] + public static extern Guid GetJoystickGuidForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id ); - [return: NativeTypeName("SDL_JoystickGUID")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDFromString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Guid GetJoystickGuidFromString( - [NativeTypeName("const char *")] Ref pchGUID - ) - { - fixed (sbyte* __dsl_pchGUID = pchGUID) - { - return (Guid)GetJoystickGuidFromString(__dsl_pchGUID); - } - } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickGUIDInfo")] public static extern void GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] ushort* vendor, [NativeTypeName("Uint16 *")] ushort* product, [NativeTypeName("Uint16 *")] ushort* version, @@ -3340,7 +3920,7 @@ public static extern void GetJoystickGuidInfo( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static void GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] Ref vendor, [NativeTypeName("Uint16 *")] Ref product, [NativeTypeName("Uint16 *")] Ref version, @@ -3356,117 +3936,39 @@ public static void GetJoystickGuidInfo( } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickGUIDString")] - public static extern int GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] sbyte* pszGUID, - int cbGUID - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] Ref pszGUID, - int cbGUID - ) - { - fixed (sbyte* __dsl_pszGUID = pszGUID) - { - return (int)GetJoystickGuidString(guid, __dsl_pszGUID, cbGUID); - } - } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickHat")] [return: NativeTypeName("Uint8")] public static extern byte GetJoystickHat(JoystickHandle joystick, int hat); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickInstanceGUID")] - [return: NativeTypeName("SDL_JoystickGUID")] - public static extern Guid GetJoystickInstanceGuid( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickInstanceID")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickID")] [return: NativeTypeName("SDL_JoystickID")] - public static extern uint GetJoystickInstanceID(JoystickHandle joystick); + public static extern uint GetJoystickID(JoystickHandle joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetJoystickInstanceName( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => (sbyte*)GetJoystickInstanceNameRaw(instance_id); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickInstanceName")] - [return: NativeTypeName("const char *")] - public static extern sbyte* GetJoystickInstanceNameRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); + public static Ptr GetJoystickName(JoystickHandle joystick) => + (sbyte*)GetJoystickNameRaw(joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetJoystickInstancePath( + public static Ptr GetJoystickNameForID( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => (sbyte*)GetJoystickInstancePathRaw(instance_id); + ) => (sbyte*)GetJoystickNameForIDRaw(instance_id); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickInstancePath")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickNameForID")] [return: NativeTypeName("const char *")] - public static extern sbyte* GetJoystickInstancePathRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickInstancePlayerIndex")] - public static extern int GetJoystickInstancePlayerIndex( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickInstanceProduct")] - [return: NativeTypeName("Uint16")] - public static extern ushort GetJoystickInstanceProduct( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [DllImport( - "SDL3", - ExactSpelling = true, - EntryPoint = "SDL_GetJoystickInstanceProductVersion" - )] - [return: NativeTypeName("Uint16")] - public static extern ushort GetJoystickInstanceProductVersion( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickInstanceType")] - public static extern JoystickType GetJoystickInstanceType( + public static extern sbyte* GetJoystickNameForIDRaw( [NativeTypeName("SDL_JoystickID")] uint instance_id ); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickInstanceVendor")] - [return: NativeTypeName("Uint16")] - public static extern ushort GetJoystickInstanceVendor( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetJoystickName(JoystickHandle joystick) => - (sbyte*)GetJoystickNameRaw(joystick); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickName")] [return: NativeTypeName("const char *")] public static extern sbyte* GetJoystickNameRaw(JoystickHandle joystick); @@ -3480,6 +3982,22 @@ public static Ptr GetJoystickName(JoystickHandle joystick) => public static Ptr GetJoystickPath(JoystickHandle joystick) => (sbyte*)GetJoystickPathRaw(joystick); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPathForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickPathForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (sbyte*)GetJoystickPathForIDRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickPathForID")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetJoystickPathForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickPath")] [return: NativeTypeName("const char *")] public static extern sbyte* GetJoystickPathRaw(JoystickHandle joystick); @@ -3487,6 +4005,11 @@ public static Ptr GetJoystickPath(JoystickHandle joystick) => [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickPlayerIndex")] public static extern int GetJoystickPlayerIndex(JoystickHandle joystick); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickPlayerIndexForID")] + public static extern int GetJoystickPlayerIndexForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickPowerInfo")] public static extern PowerState GetJoystickPowerInfo(JoystickHandle joystick, int* percent); @@ -3507,10 +4030,22 @@ public static PowerState GetJoystickPowerInfo(JoystickHandle joystick, Ref [return: NativeTypeName("Uint16")] public static extern ushort GetJoystickProduct(JoystickHandle joystick); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickProductForID")] + [return: NativeTypeName("Uint16")] + public static extern ushort GetJoystickProductForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickProductVersion")] [return: NativeTypeName("Uint16")] public static extern ushort GetJoystickProductVersion(JoystickHandle joystick); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickProductVersionForID")] + [return: NativeTypeName("Uint16")] + public static extern ushort GetJoystickProductVersionForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickProperties")] [return: NativeTypeName("SDL_PropertiesID")] public static extern uint GetJoystickProperties(JoystickHandle joystick); @@ -3549,26 +4084,37 @@ public static Ptr GetJoystickSerial(JoystickHandle joystick) => [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickType")] public static extern JoystickType GetJoystickType(JoystickHandle joystick); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickTypeForID")] + public static extern JoystickType GetJoystickTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickVendor")] [return: NativeTypeName("Uint16")] public static extern ushort GetJoystickVendor(JoystickHandle joystick); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickVendorForID")] + [return: NativeTypeName("Uint16")] + public static extern ushort GetJoystickVendorForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetKeyboardFocus")] public static extern WindowHandle GetKeyboardFocus(); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetKeyboardInstanceName( + public static Ptr GetKeyboardNameForID( [NativeTypeName("SDL_KeyboardID")] uint instance_id - ) => (sbyte*)GetKeyboardInstanceNameRaw(instance_id); + ) => (sbyte*)GetKeyboardNameForIDRaw(instance_id); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetKeyboardInstanceName")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetKeyboardNameForID")] [return: NativeTypeName("const char *")] - public static extern sbyte* GetKeyboardInstanceNameRaw( + public static extern sbyte* GetKeyboardNameForIDRaw( [NativeTypeName("SDL_KeyboardID")] uint instance_id ); @@ -3591,26 +4137,26 @@ public static Ptr GetKeyboards(Ref count) } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetKeyboardState")] - [return: NativeTypeName("const Uint8 *")] - public static extern byte* GetKeyboardState(int* numkeys); + [return: NativeTypeName("const bool *")] + public static extern bool* GetKeyboardState(int* numkeys); - [return: NativeTypeName("const Uint8 *")] + [return: NativeTypeName("const bool *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetKeyboardState(Ref numkeys) + public static Ptr GetKeyboardState(Ref numkeys) { fixed (int* __dsl_numkeys = numkeys) { - return (byte*)GetKeyboardState(__dsl_numkeys); + return (bool*)GetKeyboardState(__dsl_numkeys); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetKeyFromName")] [return: NativeTypeName("SDL_Keycode")] - public static extern int GetKeyFromName([NativeTypeName("const char *")] sbyte* name); + public static extern uint GetKeyFromName([NativeTypeName("const char *")] sbyte* name); [return: NativeTypeName("SDL_Keycode")] [Transformed] @@ -3618,17 +4164,30 @@ public static Ptr GetKeyboardState(Ref numkeys) [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetKeyFromName([NativeTypeName("const char *")] Ref name) + public static uint GetKeyFromName([NativeTypeName("const char *")] Ref name) { fixed (sbyte* __dsl_name = name) { - return (int)GetKeyFromName(__dsl_name); + return (uint)GetKeyFromName(__dsl_name); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetKeyFromScancode")] [return: NativeTypeName("SDL_Keycode")] - public static extern int GetKeyFromScancode(Scancode scancode); + public static extern uint GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] byte key_event + ); + + [return: NativeTypeName("SDL_Keycode")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromScancode")] + public static uint GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] MaybeBool key_event + ) => (uint)GetKeyFromScancode(scancode, modstate, (byte)key_event); [return: NativeTypeName("const char *")] [Transformed] @@ -3636,12 +4195,12 @@ public static int GetKeyFromName([NativeTypeName("const char *")] Ref nam [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int key) => + public static Ptr GetKeyName([NativeTypeName("SDL_Keycode")] uint key) => (sbyte*)GetKeyNameRaw(key); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetKeyName")] [return: NativeTypeName("const char *")] - public static extern sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] int key); + public static extern sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] uint key); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetLogOutputFunction")] public static extern void GetLogOutputFunction( @@ -3666,10 +4225,13 @@ Ref2D userdata } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetMasksForPixelFormatEnum")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetMasksForPixelFormatEnum( - PixelFormatEnum format, + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetLogPriority")] + public static extern LogPriority GetLogPriority(int category); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetMasksForPixelFormat")] + [return: NativeTypeName("bool")] + public static extern byte GetMasksForPixelFormat( + PixelFormat format, int* bpp, [NativeTypeName("Uint32 *")] uint* Rmask, [NativeTypeName("Uint32 *")] uint* Gmask, @@ -3677,14 +4239,14 @@ public static extern int GetMasksForPixelFormatEnum( [NativeTypeName("Uint32 *")] uint* Amask ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetMasksForPixelFormatEnum( - PixelFormatEnum format, + public static MaybeBool GetMasksForPixelFormat( + PixelFormat format, Ref bpp, [NativeTypeName("Uint32 *")] Ref Rmask, [NativeTypeName("Uint32 *")] Ref Gmask, @@ -3698,8 +4260,8 @@ public static MaybeBool GetMasksForPixelFormatEnum( fixed (uint* __dsl_Rmask = Rmask) fixed (int* __dsl_bpp = bpp) { - return (MaybeBool) - (int)GetMasksForPixelFormatEnum( + return (MaybeBool) + (byte)GetMasksForPixelFormat( format, __dsl_bpp, __dsl_Rmask, @@ -3735,32 +4297,33 @@ public static Ptr GetMice(Ref count) } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetModState")] - public static extern Keymod GetModState(); + [return: NativeTypeName("SDL_Keymod")] + public static extern ushort GetModState(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetMouseFocus")] public static extern WindowHandle GetMouseFocus(); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetMouseInstanceName( + public static Ptr GetMouseNameForID( [NativeTypeName("SDL_MouseID")] uint instance_id - ) => (sbyte*)GetMouseInstanceNameRaw(instance_id); + ) => (sbyte*)GetMouseNameForIDRaw(instance_id); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetMouseInstanceName")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetMouseNameForID")] [return: NativeTypeName("const char *")] - public static extern sbyte* GetMouseInstanceNameRaw( + public static extern sbyte* GetMouseNameForIDRaw( [NativeTypeName("SDL_MouseID")] uint instance_id ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetMouseState")] - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] public static extern uint GetMouseState(float* x, float* y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] [MethodImpl( @@ -3833,6 +4396,9 @@ public static long GetNumberProperty( [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetNumJoystickHats")] public static extern int GetNumJoystickHats(JoystickHandle joystick); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetNumLogicalCPUCores")] + public static extern int GetNumLogicalCPUCores(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetNumRenderDrivers")] public static extern int GetNumRenderDrivers(); @@ -3840,17 +4406,19 @@ public static long GetNumberProperty( public static extern int GetNumVideoDrivers(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPathInfo")] - public static extern int GetPathInfo( + [return: NativeTypeName("bool")] + public static extern byte GetPathInfo( [NativeTypeName("const char *")] sbyte* path, PathInfo* info ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetPathInfo( + public static MaybeBool GetPathInfo( [NativeTypeName("const char *")] Ref path, Ref info ) @@ -3858,107 +4426,10 @@ Ref info fixed (PathInfo* __dsl_info = info) fixed (sbyte* __dsl_path = path) { - return (int)GetPathInfo(__dsl_path, __dsl_info); - } - } - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPenCapabilities")] - [return: NativeTypeName("Uint32")] - public static extern uint GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - PenCapabilityInfo* capabilities - ); - - [return: NativeTypeName("Uint32")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenCapabilities")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static uint GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref capabilities - ) - { - fixed (PenCapabilityInfo* __dsl_capabilities = capabilities) - { - return (uint)GetPenCapabilities(instance_id, __dsl_capabilities); - } - } - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPenFromGUID")] - [return: NativeTypeName("SDL_PenID")] - public static extern uint GetPenFromGuid(Guid guid); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPenGUID")] - public static extern Guid GetPenGuid([NativeTypeName("SDL_PenID")] uint instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetPenName([NativeTypeName("SDL_PenID")] uint instance_id) => - (sbyte*)GetPenNameRaw(instance_id); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPenName")] - [return: NativeTypeName("const char *")] - public static extern sbyte* GetPenNameRaw([NativeTypeName("SDL_PenID")] uint instance_id); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPens")] - [return: NativeTypeName("SDL_PenID *")] - public static extern uint* GetPens(int* count); - - [return: NativeTypeName("SDL_PenID *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetPens(Ref count) - { - fixed (int* __dsl_count = count) - { - return (uint*)GetPens(__dsl_count); - } - } - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPenStatus")] - [return: NativeTypeName("Uint32")] - public static extern uint GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - float* x, - float* y, - float* axes, - [NativeTypeName("size_t")] nuint num_axes - ); - - [return: NativeTypeName("Uint32")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenStatus")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static uint GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref x, - Ref y, - Ref axes, - [NativeTypeName("size_t")] nuint num_axes - ) - { - fixed (float* __dsl_axes = axes) - fixed (float* __dsl_y = y) - fixed (float* __dsl_x = x) - { - return (uint)GetPenStatus(instance_id, __dsl_x, __dsl_y, __dsl_axes, num_axes); + return (MaybeBool)(byte)GetPathInfo(__dsl_path, __dsl_info); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPenType")] - public static extern PenSubtype GetPenType([NativeTypeName("SDL_PenID")] uint instance_id); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPerformanceCounter")] [return: NativeTypeName("Uint64")] public static extern ulong GetPerformanceCounter(); @@ -3967,8 +4438,21 @@ public static uint GetPenStatus( [return: NativeTypeName("Uint64")] public static extern ulong GetPerformanceFrequency(); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPixelFormatEnumForMasks")] - public static extern PixelFormatEnum GetPixelFormatEnumForMasks( + [return: NativeTypeName("const SDL_PixelFormatDetails *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatDetails")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetPixelFormatDetails(PixelFormat format) => + (PixelFormatDetails*)GetPixelFormatDetailsRaw(format); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPixelFormatDetails")] + [return: NativeTypeName("const SDL_PixelFormatDetails *")] + public static extern PixelFormatDetails* GetPixelFormatDetailsRaw(PixelFormat format); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPixelFormatForMasks")] + public static extern PixelFormat GetPixelFormatForMasks( int bpp, [NativeTypeName("Uint32")] uint Rmask, [NativeTypeName("Uint32")] uint Gmask, @@ -3982,12 +4466,12 @@ public static extern PixelFormatEnum GetPixelFormatEnumForMasks( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetPixelFormatName(PixelFormatEnum format) => + public static Ptr GetPixelFormatName(PixelFormat format) => (sbyte*)GetPixelFormatNameRaw(format); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPixelFormatName")] [return: NativeTypeName("const char *")] - public static extern sbyte* GetPixelFormatNameRaw(PixelFormatEnum format); + public static extern sbyte* GetPixelFormatNameRaw(PixelFormat format); [return: NativeTypeName("const char *")] [Transformed] @@ -4001,6 +4485,31 @@ public static Ptr GetPixelFormatName(PixelFormatEnum format) => [return: NativeTypeName("const char *")] public static extern sbyte* GetPlatformRaw(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPointerProperty")] + public static extern void* GetPointerProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* default_value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPointerProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetPointerProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref default_value + ) + { + fixed (void* __dsl_default_value = default_value) + fixed (sbyte* __dsl_name = name) + { + return (void*)GetPointerProperty(props, __dsl_name, __dsl_default_value); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPowerInfo")] public static extern PowerState GetPowerInfo(int* seconds, int* percent); @@ -4018,15 +4527,21 @@ public static PowerState GetPowerInfo(Ref seconds, Ref percent) } } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPreferredLocales")] + public static extern Locale** GetPreferredLocales(int* count); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetPreferredLocales() => (Locale*)GetPreferredLocalesRaw(); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPreferredLocales")] - public static extern Locale* GetPreferredLocalesRaw(); + public static Ptr2D GetPreferredLocales(Ref count) + { + fixed (int* __dsl_count = count) + { + return (Locale**)GetPreferredLocales(__dsl_count); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPrefPath")] [return: NativeTypeName("char *")] @@ -4069,31 +4584,6 @@ public static Ptr GetPrefPath( [return: NativeTypeName("char *")] public static extern sbyte* GetPrimarySelectionTextRaw(); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetProperty")] - public static extern void* GetProperty( - [NativeTypeName("SDL_PropertiesID")] uint props, - [NativeTypeName("const char *")] sbyte* name, - void* default_value - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetProperty")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetProperty( - [NativeTypeName("SDL_PropertiesID")] uint props, - [NativeTypeName("const char *")] Ref name, - Ref default_value - ) - { - fixed (void* __dsl_default_value = default_value) - fixed (sbyte* __dsl_name = name) - { - return (void*)GetProperty(props, __dsl_name, __dsl_default_value); - } - } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPropertyType")] public static extern PropertyType GetPropertyType( [NativeTypeName("SDL_PropertiesID")] uint props, @@ -4116,17 +4606,17 @@ public static PropertyType GetPropertyType( } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRealGamepadInstanceType")] - public static extern GamepadType GetRealGamepadInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRealGamepadType")] public static extern GamepadType GetRealGamepadType(GamepadHandle gamepad); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRealGamepadTypeForID")] + public static extern GamepadType GetRealGamepadTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRectAndLineIntersection")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetRectAndLineIntersection( + [return: NativeTypeName("bool")] + public static extern byte GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Rect* rect, int* X1, int* Y1, @@ -4134,13 +4624,13 @@ public static extern int GetRectAndLineIntersection( int* Y2 ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetRectAndLineIntersection( + public static MaybeBool GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Ref rect, Ref X1, Ref Y1, @@ -4154,8 +4644,8 @@ Ref Y2 fixed (int* __dsl_X1 = X1) fixed (Rect* __dsl_rect = rect) { - return (MaybeBool) - (int)GetRectAndLineIntersection( + return (MaybeBool) + (byte)GetRectAndLineIntersection( __dsl_rect, __dsl_X1, __dsl_Y1, @@ -4170,8 +4660,8 @@ Ref Y2 ExactSpelling = true, EntryPoint = "SDL_GetRectAndLineIntersectionFloat" )] - [return: NativeTypeName("SDL_bool")] - public static extern int GetRectAndLineIntersectionFloat( + [return: NativeTypeName("bool")] + public static extern byte GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* rect, float* X1, float* Y1, @@ -4179,13 +4669,13 @@ public static extern int GetRectAndLineIntersectionFloat( float* Y2 ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetRectAndLineIntersectionFloat( + public static MaybeBool GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref rect, Ref X1, Ref Y1, @@ -4199,8 +4689,8 @@ Ref Y2 fixed (float* __dsl_X1 = X1) fixed (FRect* __dsl_rect = rect) { - return (MaybeBool) - (int)GetRectAndLineIntersectionFloat( + return (MaybeBool) + (byte)GetRectAndLineIntersectionFloat( __dsl_rect, __dsl_X1, __dsl_Y1, @@ -4211,21 +4701,21 @@ Ref Y2 } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRectEnclosingPoints")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetRectEnclosingPoints( + [return: NativeTypeName("bool")] + public static extern byte GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Point* points, int count, [NativeTypeName("const SDL_Rect *")] Rect* clip, Rect* result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetRectEnclosingPoints( + public static MaybeBool GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Ref points, int count, [NativeTypeName("const SDL_Rect *")] Ref clip, @@ -4236,27 +4726,27 @@ Ref result fixed (Rect* __dsl_clip = clip) fixed (Point* __dsl_points = points) { - return (MaybeBool) - (int)GetRectEnclosingPoints(__dsl_points, count, __dsl_clip, __dsl_result); + return (MaybeBool) + (byte)GetRectEnclosingPoints(__dsl_points, count, __dsl_clip, __dsl_result); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRectEnclosingPointsFloat")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetRectEnclosingPointsFloat( + [return: NativeTypeName("bool")] + public static extern byte GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count, [NativeTypeName("const SDL_FRect *")] FRect* clip, FRect* result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetRectEnclosingPointsFloat( + public static MaybeBool GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] Ref points, int count, [NativeTypeName("const SDL_FRect *")] Ref clip, @@ -4267,26 +4757,31 @@ Ref result fixed (FRect* __dsl_clip = clip) fixed (FPoint* __dsl_points = points) { - return (MaybeBool) - (int)GetRectEnclosingPointsFloat(__dsl_points, count, __dsl_clip, __dsl_result); + return (MaybeBool) + (byte)GetRectEnclosingPointsFloat( + __dsl_points, + count, + __dsl_clip, + __dsl_result + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRectIntersection")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetRectIntersection( + [return: NativeTypeName("bool")] + public static extern byte GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetRectIntersection( + public static MaybeBool GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result @@ -4296,25 +4791,25 @@ Ref result fixed (Rect* __dsl_B = B) fixed (Rect* __dsl_A = A) { - return (MaybeBool)(int)GetRectIntersection(__dsl_A, __dsl_B, __dsl_result); + return (MaybeBool)(byte)GetRectIntersection(__dsl_A, __dsl_B, __dsl_result); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRectIntersectionFloat")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetRectIntersectionFloat( + [return: NativeTypeName("bool")] + public static extern byte GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetRectIntersectionFloat( + public static MaybeBool GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result @@ -4324,24 +4819,26 @@ Ref result fixed (FRect* __dsl_B = B) fixed (FRect* __dsl_A = A) { - return (MaybeBool) - (int)GetRectIntersectionFloat(__dsl_A, __dsl_B, __dsl_result); + return (MaybeBool) + (byte)GetRectIntersectionFloat(__dsl_A, __dsl_B, __dsl_result); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRectUnion")] - public static extern int GetRectUnion( + [return: NativeTypeName("bool")] + public static extern byte GetRectUnion( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRectUnion( + public static MaybeBool GetRectUnion( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result @@ -4351,23 +4848,25 @@ Ref result fixed (Rect* __dsl_B = B) fixed (Rect* __dsl_A = A) { - return (int)GetRectUnion(__dsl_A, __dsl_B, __dsl_result); + return (MaybeBool)(byte)GetRectUnion(__dsl_A, __dsl_B, __dsl_result); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRectUnionFloat")] - public static extern int GetRectUnionFloat( + [return: NativeTypeName("bool")] + public static extern byte GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRectUnionFloat( + public static MaybeBool GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result @@ -4377,25 +4876,15 @@ Ref result fixed (FRect* __dsl_B = B) fixed (FRect* __dsl_A = A) { - return (int)GetRectUnionFloat(__dsl_A, __dsl_B, __dsl_result); + return (MaybeBool)(byte)GetRectUnionFloat(__dsl_A, __dsl_B, __dsl_result); } } - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseMode")] - public static MaybeBool GetRelativeMouseMode() => - (MaybeBool)(int)GetRelativeMouseModeRaw(); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRelativeMouseMode")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetRelativeMouseModeRaw(); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRelativeMouseState")] - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] public static extern uint GetRelativeMouseState(float* x, float* y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] [MethodImpl( @@ -4411,58 +4900,68 @@ public static uint GetRelativeMouseState(Ref x, Ref y) } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderClipRect")] - public static extern int GetRenderClipRect(RendererHandle renderer, Rect* rect); + [return: NativeTypeName("bool")] + public static extern byte GetRenderClipRect(RendererHandle renderer, Rect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderClipRect(RendererHandle renderer, Ref rect) + public static MaybeBool GetRenderClipRect(RendererHandle renderer, Ref rect) { fixed (Rect* __dsl_rect = rect) { - return (int)GetRenderClipRect(renderer, __dsl_rect); + return (MaybeBool)(byte)GetRenderClipRect(renderer, __dsl_rect); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderColorScale")] - public static extern int GetRenderColorScale(RendererHandle renderer, float* scale); + [return: NativeTypeName("bool")] + public static extern byte GetRenderColorScale(RendererHandle renderer, float* scale); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderColorScale(RendererHandle renderer, Ref scale) + public static MaybeBool GetRenderColorScale(RendererHandle renderer, Ref scale) { fixed (float* __dsl_scale = scale) { - return (int)GetRenderColorScale(renderer, __dsl_scale); + return (MaybeBool)(byte)GetRenderColorScale(renderer, __dsl_scale); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderDrawBlendMode")] - public static extern int GetRenderDrawBlendMode( + [return: NativeTypeName("bool")] + public static extern byte GetRenderDrawBlendMode( RendererHandle renderer, - BlendMode* blendMode + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderDrawBlendMode(RendererHandle renderer, Ref blendMode) + public static MaybeBool GetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) { fixed (BlendMode* __dsl_blendMode = blendMode) { - return (int)GetRenderDrawBlendMode(renderer, __dsl_blendMode); + return (MaybeBool)(byte)GetRenderDrawBlendMode(renderer, __dsl_blendMode); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderDrawColor")] - public static extern int GetRenderDrawColor( + [return: NativeTypeName("bool")] + public static extern byte GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, @@ -4470,12 +4969,13 @@ public static extern int GetRenderDrawColor( [NativeTypeName("Uint8 *")] byte* a ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderDrawColor( + public static MaybeBool GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -4488,12 +4988,14 @@ public static int GetRenderDrawColor( fixed (byte* __dsl_g = g) fixed (byte* __dsl_r = r) { - return (int)GetRenderDrawColor(renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + return (MaybeBool) + (byte)GetRenderDrawColor(renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderDrawColorFloat")] - public static extern int GetRenderDrawColorFloat( + [return: NativeTypeName("bool")] + public static extern byte GetRenderDrawColorFloat( RendererHandle renderer, float* r, float* g, @@ -4501,12 +5003,13 @@ public static extern int GetRenderDrawColorFloat( float* a ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderDrawColorFloat( + public static MaybeBool GetRenderDrawColorFloat( RendererHandle renderer, Ref r, Ref g, @@ -4519,7 +5022,8 @@ Ref a fixed (float* __dsl_g = g) fixed (float* __dsl_r = r) { - return (int)GetRenderDrawColorFloat(renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + return (MaybeBool) + (byte)GetRenderDrawColorFloat(renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); } } @@ -4539,62 +5043,95 @@ Ref a public static extern RendererHandle GetRenderer(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRendererFromTexture")] - public static extern RendererHandle GetRendererFromTexture(TextureHandle texture); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRendererInfo")] - public static extern int GetRendererInfo(RendererHandle renderer, RendererInfo* info); + public static extern RendererHandle GetRendererFromTexture(Texture* texture); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRendererInfo(RendererHandle renderer, Ref info) + public static RendererHandle GetRendererFromTexture(Ref texture) { - fixed (RendererInfo* __dsl_info = info) + fixed (Texture* __dsl_texture = texture) { - return (int)GetRendererInfo(renderer, __dsl_info); + return (RendererHandle)GetRendererFromTexture(__dsl_texture); } } + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRendererName(RendererHandle renderer) => + (sbyte*)GetRendererNameRaw(renderer); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRendererName")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetRendererNameRaw(RendererHandle renderer); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRendererProperties")] [return: NativeTypeName("SDL_PropertiesID")] public static extern uint GetRendererProperties(RendererHandle renderer); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderLogicalPresentation")] - public static extern int GetRenderLogicalPresentation( + [return: NativeTypeName("bool")] + public static extern byte GetRenderLogicalPresentation( RendererHandle renderer, int* w, int* h, - RendererLogicalPresentation* mode, - ScaleMode* scale_mode + RendererLogicalPresentation* mode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderLogicalPresentation( + public static MaybeBool GetRenderLogicalPresentation( RendererHandle renderer, Ref w, Ref h, - Ref mode, - Ref scale_mode + Ref mode ) { - fixed (ScaleMode* __dsl_scale_mode = scale_mode) fixed (RendererLogicalPresentation* __dsl_mode = mode) fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetRenderLogicalPresentation( - renderer, - __dsl_w, - __dsl_h, - __dsl_mode, - __dsl_scale_mode - ); + return (MaybeBool) + (byte)GetRenderLogicalPresentation(renderer, __dsl_w, __dsl_h, __dsl_mode); + } + } + + [DllImport( + "SDL3", + ExactSpelling = true, + EntryPoint = "SDL_GetRenderLogicalPresentationRect" + )] + [return: NativeTypeName("bool")] + public static extern byte GetRenderLogicalPresentationRect( + RendererHandle renderer, + FRect* rect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentationRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRenderLogicalPresentationRect( + RendererHandle renderer, + Ref rect + ) + { + fixed (FRect* __dsl_rect = rect) + { + return (MaybeBool) + (byte)GetRenderLogicalPresentationRect(renderer, __dsl_rect); } } @@ -4621,35 +5158,61 @@ public static Ptr GetRenderMetalLayer(RendererHandle renderer) => public static extern void* GetRenderMetalLayerRaw(RendererHandle renderer); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderOutputSize")] - public static extern int GetRenderOutputSize(RendererHandle renderer, int* w, int* h); + [return: NativeTypeName("bool")] + public static extern byte GetRenderOutputSize(RendererHandle renderer, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderOutputSize(RendererHandle renderer, Ref w, Ref h) + public static MaybeBool GetRenderOutputSize( + RendererHandle renderer, + Ref w, + Ref h + ) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetRenderOutputSize(renderer, __dsl_w, __dsl_h); + return (MaybeBool)(byte)GetRenderOutputSize(renderer, __dsl_w, __dsl_h); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderSafeArea")] + [return: NativeTypeName("bool")] + public static extern byte GetRenderSafeArea(RendererHandle renderer, Rect* rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderSafeArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRenderSafeArea(RendererHandle renderer, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + { + return (MaybeBool)(byte)GetRenderSafeArea(renderer, __dsl_rect); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderScale")] - public static extern int GetRenderScale( + [return: NativeTypeName("bool")] + public static extern byte GetRenderScale( RendererHandle renderer, float* scaleX, float* scaleY ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderScale( + public static MaybeBool GetRenderScale( RendererHandle renderer, Ref scaleX, Ref scaleY @@ -4658,42 +5221,54 @@ Ref scaleY fixed (float* __dsl_scaleY = scaleY) fixed (float* __dsl_scaleX = scaleX) { - return (int)GetRenderScale(renderer, __dsl_scaleX, __dsl_scaleY); + return (MaybeBool)(byte)GetRenderScale(renderer, __dsl_scaleX, __dsl_scaleY); } } + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderTarget(RendererHandle renderer) => + (Texture*)GetRenderTargetRaw(renderer); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderTarget")] - public static extern TextureHandle GetRenderTarget(RendererHandle renderer); + public static extern Texture* GetRenderTargetRaw(RendererHandle renderer); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderViewport")] - public static extern int GetRenderViewport(RendererHandle renderer, Rect* rect); + [return: NativeTypeName("bool")] + public static extern byte GetRenderViewport(RendererHandle renderer, Rect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderViewport(RendererHandle renderer, Ref rect) + public static MaybeBool GetRenderViewport(RendererHandle renderer, Ref rect) { fixed (Rect* __dsl_rect = rect) { - return (int)GetRenderViewport(renderer, __dsl_rect); + return (MaybeBool)(byte)GetRenderViewport(renderer, __dsl_rect); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderVSync")] - public static extern int GetRenderVSync(RendererHandle renderer, int* vsync); + [return: NativeTypeName("bool")] + public static extern byte GetRenderVSync(RendererHandle renderer, int* vsync); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderVSync(RendererHandle renderer, Ref vsync) + public static MaybeBool GetRenderVSync(RendererHandle renderer, Ref vsync) { fixed (int* __dsl_vsync = vsync) { - return (int)GetRenderVSync(renderer, __dsl_vsync); + return (MaybeBool)(byte)GetRenderVSync(renderer, __dsl_vsync); } } @@ -4715,7 +5290,8 @@ public static int GetRenderVSync(RendererHandle renderer, Ref vsync) [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRGB")] public static extern void GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b @@ -4728,7 +5304,8 @@ public static extern void GetRGB( )] public static void GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b @@ -4737,16 +5314,18 @@ public static void GetRGB( fixed (byte* __dsl_b = b) fixed (byte* __dsl_g = g) fixed (byte* __dsl_r = r) - fixed (PixelFormat* __dsl_format = format) + fixed (Palette* __dsl_palette = palette) + fixed (PixelFormatDetails* __dsl_format = format) { - GetRGB(pixel, __dsl_format, __dsl_r, __dsl_g, __dsl_b); + GetRGB(pixel, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRGBA")] public static extern void GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b, @@ -4760,7 +5339,8 @@ public static extern void GetRgba( )] public static void GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b, @@ -4771,14 +5351,37 @@ public static void GetRgba( fixed (byte* __dsl_b = b) fixed (byte* __dsl_g = g) fixed (byte* __dsl_r = r) - fixed (PixelFormat* __dsl_format = format) + fixed (Palette* __dsl_palette = palette) + fixed (PixelFormatDetails* __dsl_format = format) { - GetRgba(pixel, __dsl_format, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + GetRgba(pixel, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b, __dsl_a); } } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSandbox")] + public static extern Sandbox GetSandbox(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetScancodeFromKey")] - public static extern Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key); + public static extern Scancode GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] ushort* modstate + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Scancode GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] Ref modstate + ) + { + fixed (ushort* __dsl_modstate = modstate) + { + return (Scancode)GetScancodeFromKey(key, __dsl_modstate); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetScancodeFromName")] public static extern Scancode GetScancodeFromName( @@ -4816,69 +5419,61 @@ public static Ptr GetScancodeName(Scancode scancode) => public static extern uint GetSemaphoreValue(SemaphoreHandle sem); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorData")] - public static extern int GetSensorData(SensorHandle sensor, float* data, int num_values); + [return: NativeTypeName("bool")] + public static extern byte GetSensorData(SensorHandle sensor, float* data, int num_values); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSensorData(SensorHandle sensor, Ref data, int num_values) + public static MaybeBool GetSensorData( + SensorHandle sensor, + Ref data, + int num_values + ) { fixed (float* __dsl_data = data) { - return (int)GetSensorData(sensor, __dsl_data, num_values); + return (MaybeBool)(byte)GetSensorData(sensor, __dsl_data, num_values); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorFromInstanceID")] - public static extern SensorHandle GetSensorFromInstanceID( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorFromID")] + public static extern SensorHandle GetSensorFromID( [NativeTypeName("SDL_SensorID")] uint instance_id ); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorInstanceID")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorID")] [return: NativeTypeName("SDL_SensorID")] - public static extern uint GetSensorInstanceID(SensorHandle sensor); + public static extern uint GetSensorID(SensorHandle sensor); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetSensorInstanceName( - [NativeTypeName("SDL_SensorID")] uint instance_id - ) => (sbyte*)GetSensorInstanceNameRaw(instance_id); + public static Ptr GetSensorName(SensorHandle sensor) => + (sbyte*)GetSensorNameRaw(sensor); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorInstanceName")] [return: NativeTypeName("const char *")] - public static extern sbyte* GetSensorInstanceNameRaw( - [NativeTypeName("SDL_SensorID")] uint instance_id - ); - - [DllImport( - "SDL3", - ExactSpelling = true, - EntryPoint = "SDL_GetSensorInstanceNonPortableType" + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNameForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static extern int GetSensorInstanceNonPortableType( + public static Ptr GetSensorNameForID( [NativeTypeName("SDL_SensorID")] uint instance_id - ); + ) => (sbyte*)GetSensorNameForIDRaw(instance_id); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorInstanceType")] - public static extern SensorType GetSensorInstanceType( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorNameForID")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetSensorNameForIDRaw( [NativeTypeName("SDL_SensorID")] uint instance_id ); - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetSensorName(SensorHandle sensor) => - (sbyte*)GetSensorNameRaw(sensor); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorName")] [return: NativeTypeName("const char *")] public static extern sbyte* GetSensorNameRaw(SensorHandle sensor); @@ -4886,6 +5481,11 @@ public static Ptr GetSensorName(SensorHandle sensor) => [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorNonPortableType")] public static extern int GetSensorNonPortableType(SensorHandle sensor); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorNonPortableTypeForID")] + public static extern int GetSensorNonPortableTypeForID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorProperties")] [return: NativeTypeName("SDL_PropertiesID")] public static extern uint GetSensorProperties(SensorHandle sensor); @@ -4911,24 +5511,33 @@ public static Ptr GetSensors(Ref count) [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorType")] public static extern SensorType GetSensorType(SensorHandle sensor); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSilenceValueForFormat")] - public static extern int GetSilenceValueForFormat( - [NativeTypeName("SDL_AudioFormat")] ushort format + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorTypeForID")] + public static extern SensorType GetSensorTypeForID( + [NativeTypeName("SDL_SensorID")] uint instance_id ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSilenceValueForFormat")] + public static extern int GetSilenceValueForFormat(AudioFormat format); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSIMDAlignment")] + [return: NativeTypeName("size_t")] + public static extern nuint GetSimdAlignment(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetStorageFileSize")] - public static extern int GetStorageFileSize( + [return: NativeTypeName("bool")] + public static extern byte GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("Uint64 *")] ulong* length ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetStorageFileSize( + public static MaybeBool GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("Uint64 *")] Ref length @@ -4937,23 +5546,25 @@ public static int GetStorageFileSize( fixed (ulong* __dsl_length = length) fixed (sbyte* __dsl_path = path) { - return (int)GetStorageFileSize(storage, __dsl_path, __dsl_length); + return (MaybeBool)(byte)GetStorageFileSize(storage, __dsl_path, __dsl_length); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetStoragePathInfo")] - public static extern int GetStoragePathInfo( + [return: NativeTypeName("bool")] + public static extern byte GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, PathInfo* info ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetStoragePathInfo( + public static MaybeBool GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref info @@ -4962,7 +5573,7 @@ Ref info fixed (PathInfo* __dsl_info = info) fixed (sbyte* __dsl_path = path) { - return (int)GetStoragePathInfo(storage, __dsl_path, __dsl_info); + return (MaybeBool)(byte)GetStoragePathInfo(storage, __dsl_path, __dsl_info); } } @@ -4998,17 +5609,19 @@ public static Ptr GetStringProperty( } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSurfaceAlphaMod")] - public static extern int GetSurfaceAlphaMod( + [return: NativeTypeName("bool")] + public static extern byte GetSurfaceAlphaMod( Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceAlphaMod( + public static MaybeBool GetSurfaceAlphaMod( Ref surface, [NativeTypeName("Uint8 *")] Ref alpha ) @@ -5016,56 +5629,68 @@ public static int GetSurfaceAlphaMod( fixed (byte* __dsl_alpha = alpha) fixed (Surface* __dsl_surface = surface) { - return (int)GetSurfaceAlphaMod(__dsl_surface, __dsl_alpha); + return (MaybeBool)(byte)GetSurfaceAlphaMod(__dsl_surface, __dsl_alpha); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSurfaceBlendMode")] - public static extern int GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode); + [return: NativeTypeName("bool")] + public static extern byte GetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceBlendMode(Ref surface, Ref blendMode) + public static MaybeBool GetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) { fixed (BlendMode* __dsl_blendMode = blendMode) fixed (Surface* __dsl_surface = surface) { - return (int)GetSurfaceBlendMode(__dsl_surface, __dsl_blendMode); + return (MaybeBool)(byte)GetSurfaceBlendMode(__dsl_surface, __dsl_blendMode); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSurfaceClipRect")] - public static extern int GetSurfaceClipRect(Surface* surface, Rect* rect); + [return: NativeTypeName("bool")] + public static extern byte GetSurfaceClipRect(Surface* surface, Rect* rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceClipRect(Ref surface, Ref rect) + public static MaybeBool GetSurfaceClipRect(Ref surface, Ref rect) { fixed (Rect* __dsl_rect = rect) fixed (Surface* __dsl_surface = surface) { - return (int)GetSurfaceClipRect(__dsl_surface, __dsl_rect); + return (MaybeBool)(byte)GetSurfaceClipRect(__dsl_surface, __dsl_rect); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSurfaceColorKey")] - public static extern int GetSurfaceColorKey( + [return: NativeTypeName("bool")] + public static extern byte GetSurfaceColorKey( Surface* surface, [NativeTypeName("Uint32 *")] uint* key ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceColorKey( + public static MaybeBool GetSurfaceColorKey( Ref surface, [NativeTypeName("Uint32 *")] Ref key ) @@ -5073,24 +5698,26 @@ public static int GetSurfaceColorKey( fixed (uint* __dsl_key = key) fixed (Surface* __dsl_surface = surface) { - return (int)GetSurfaceColorKey(__dsl_surface, __dsl_key); + return (MaybeBool)(byte)GetSurfaceColorKey(__dsl_surface, __dsl_key); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSurfaceColorMod")] - public static extern int GetSurfaceColorMod( + [return: NativeTypeName("bool")] + public static extern byte GetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceColorMod( + public static MaybeBool GetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -5102,24 +5729,57 @@ public static int GetSurfaceColorMod( fixed (byte* __dsl_r = r) fixed (Surface* __dsl_surface = surface) { - return (int)GetSurfaceColorMod(__dsl_surface, __dsl_r, __dsl_g, __dsl_b); + return (MaybeBool) + (byte)GetSurfaceColorMod(__dsl_surface, __dsl_r, __dsl_g, __dsl_b); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSurfaceColorspace")] - public static extern int GetSurfaceColorspace(Surface* surface, Colorspace* colorspace); + public static extern Colorspace GetSurfaceColorspace(Surface* surface); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceColorspace(Ref surface, Ref colorspace) + public static Colorspace GetSurfaceColorspace(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (Colorspace)GetSurfaceColorspace(__dsl_surface); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSurfaceImages")] + public static extern Surface** GetSurfaceImages(Surface* surface, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GetSurfaceImages(Ref surface, Ref count) { - fixed (Colorspace* __dsl_colorspace = colorspace) + fixed (int* __dsl_count = count) fixed (Surface* __dsl_surface = surface) { - return (int)GetSurfaceColorspace(__dsl_surface, __dsl_colorspace); + return (Surface**)GetSurfaceImages(__dsl_surface, __dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSurfacePalette")] + public static extern Palette* GetSurfacePalette(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetSurfacePalette(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (Palette*)GetSurfacePalette(__dsl_surface); } } @@ -5147,75 +5807,118 @@ public static uint GetSurfaceProperties(Ref surface) [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSystemTheme")] public static extern SystemTheme GetSystemTheme(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTextInputArea")] + [return: NativeTypeName("bool")] + public static extern byte GetTextInputArea(WindowHandle window, Rect* rect, int* cursor); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextInputArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetTextInputArea( + WindowHandle window, + Ref rect, + Ref cursor + ) + { + fixed (int* __dsl_cursor = cursor) + fixed (Rect* __dsl_rect = rect) + { + return (MaybeBool)(byte)GetTextInputArea(window, __dsl_rect, __dsl_cursor); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTextureAlphaMod")] - public static extern int GetTextureAlphaMod( - TextureHandle texture, + [return: NativeTypeName("bool")] + public static extern byte GetTextureAlphaMod( + Texture* texture, [NativeTypeName("Uint8 *")] byte* alpha ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureAlphaMod( - TextureHandle texture, + public static MaybeBool GetTextureAlphaMod( + Ref texture, [NativeTypeName("Uint8 *")] Ref alpha ) { fixed (byte* __dsl_alpha = alpha) + fixed (Texture* __dsl_texture = texture) { - return (int)GetTextureAlphaMod(texture, __dsl_alpha); + return (MaybeBool)(byte)GetTextureAlphaMod(__dsl_texture, __dsl_alpha); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTextureAlphaModFloat")] - public static extern int GetTextureAlphaModFloat(TextureHandle texture, float* alpha); + [return: NativeTypeName("bool")] + public static extern byte GetTextureAlphaModFloat(Texture* texture, float* alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureAlphaModFloat(TextureHandle texture, Ref alpha) + public static MaybeBool GetTextureAlphaModFloat( + Ref texture, + Ref alpha + ) { fixed (float* __dsl_alpha = alpha) + fixed (Texture* __dsl_texture = texture) { - return (int)GetTextureAlphaModFloat(texture, __dsl_alpha); + return (MaybeBool)(byte)GetTextureAlphaModFloat(__dsl_texture, __dsl_alpha); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTextureBlendMode")] - public static extern int GetTextureBlendMode(TextureHandle texture, BlendMode* blendMode); + [return: NativeTypeName("bool")] + public static extern byte GetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureBlendMode(TextureHandle texture, Ref blendMode) + public static MaybeBool GetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) { fixed (BlendMode* __dsl_blendMode = blendMode) + fixed (Texture* __dsl_texture = texture) { - return (int)GetTextureBlendMode(texture, __dsl_blendMode); + return (MaybeBool)(byte)GetTextureBlendMode(__dsl_texture, __dsl_blendMode); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTextureColorMod")] - public static extern int GetTextureColorMod( - TextureHandle texture, + [return: NativeTypeName("bool")] + public static extern byte GetTextureColorMod( + Texture* texture, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureColorMod( - TextureHandle texture, + public static MaybeBool GetTextureColorMod( + Ref texture, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b @@ -5224,26 +5927,30 @@ public static int GetTextureColorMod( fixed (byte* __dsl_b = b) fixed (byte* __dsl_g = g) fixed (byte* __dsl_r = r) + fixed (Texture* __dsl_texture = texture) { - return (int)GetTextureColorMod(texture, __dsl_r, __dsl_g, __dsl_b); + return (MaybeBool) + (byte)GetTextureColorMod(__dsl_texture, __dsl_r, __dsl_g, __dsl_b); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTextureColorModFloat")] - public static extern int GetTextureColorModFloat( - TextureHandle texture, + [return: NativeTypeName("bool")] + public static extern byte GetTextureColorModFloat( + Texture* texture, float* r, float* g, float* b ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureColorModFloat( - TextureHandle texture, + public static MaybeBool GetTextureColorModFloat( + Ref texture, Ref r, Ref g, Ref b @@ -5252,28 +5959,74 @@ Ref b fixed (float* __dsl_b = b) fixed (float* __dsl_g = g) fixed (float* __dsl_r = r) + fixed (Texture* __dsl_texture = texture) { - return (int)GetTextureColorModFloat(texture, __dsl_r, __dsl_g, __dsl_b); + return (MaybeBool) + (byte)GetTextureColorModFloat(__dsl_texture, __dsl_r, __dsl_g, __dsl_b); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTextureProperties")] [return: NativeTypeName("SDL_PropertiesID")] - public static extern uint GetTextureProperties(TextureHandle texture); + public static extern uint GetTextureProperties(Texture* texture); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetTextureProperties(Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + return (uint)GetTextureProperties(__dsl_texture); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTextureScaleMode")] - public static extern int GetTextureScaleMode(TextureHandle texture, ScaleMode* scaleMode); + [return: NativeTypeName("bool")] + public static extern byte GetTextureScaleMode(Texture* texture, ScaleMode* scaleMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureScaleMode(TextureHandle texture, Ref scaleMode) + public static MaybeBool GetTextureScaleMode( + Ref texture, + Ref scaleMode + ) { fixed (ScaleMode* __dsl_scaleMode = scaleMode) + fixed (Texture* __dsl_texture = texture) { - return (int)GetTextureScaleMode(texture, __dsl_scaleMode); + return (MaybeBool)(byte)GetTextureScaleMode(__dsl_texture, __dsl_scaleMode); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTextureSize")] + [return: NativeTypeName("bool")] + public static extern byte GetTextureSize(Texture* texture, float* w, float* h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetTextureSize( + Ref texture, + Ref w, + Ref h + ) + { + fixed (float* __dsl_h = h) + fixed (float* __dsl_w = w) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)GetTextureSize(__dsl_texture, __dsl_w, __dsl_h); } } @@ -5302,15 +6055,21 @@ public static Ptr GetThreadName(ThreadHandle thread) => [return: NativeTypeName("Uint64")] public static extern ulong GetTicksNS(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTLS")] + public static extern void* GetTLS([NativeTypeName("SDL_TLSID *")] AtomicInt* id); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetTLS([NativeTypeName("SDL_TLSID")] uint id) => (void*)GetTLSRaw(id); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTLS")] - public static extern void* GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id); + public static Ptr GetTLS([NativeTypeName("SDL_TLSID *")] Ref id) + { + fixed (AtomicInt* __dsl_id = id) + { + return (void*)GetTLS(__dsl_id); + } + } [return: NativeTypeName("const char *")] [Transformed] @@ -5373,7 +6132,7 @@ Ref count } } - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] [MethodImpl( @@ -5382,24 +6141,11 @@ Ref count public static Ptr GetUserFolder(Folder folder) => (sbyte*)GetUserFolderRaw(folder); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetUserFolder")] - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] public static extern sbyte* GetUserFolderRaw(Folder folder); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetVersion")] - public static extern int GetVersion(Version* ver); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetVersion")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetVersion(Ref ver) - { - fixed (Version* __dsl_ver = ver) - { - return (int)GetVersion(__dsl_ver); - } - } + public static extern int GetVersion(); [return: NativeTypeName("const char *")] [Transformed] @@ -5413,8 +6159,37 @@ public static int GetVersion(Ref ver) [return: NativeTypeName("const char *")] public static extern sbyte* GetVideoDriverRaw(int index); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowAspectRatio")] + [return: NativeTypeName("bool")] + public static extern byte GetWindowAspectRatio( + WindowHandle window, + float* min_aspect, + float* max_aspect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowAspectRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetWindowAspectRatio( + WindowHandle window, + Ref min_aspect, + Ref max_aspect + ) + { + fixed (float* __dsl_max_aspect = max_aspect) + fixed (float* __dsl_min_aspect = min_aspect) + { + return (MaybeBool) + (byte)GetWindowAspectRatio(window, __dsl_min_aspect, __dsl_max_aspect); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowBordersSize")] - public static extern int GetWindowBordersSize( + [return: NativeTypeName("bool")] + public static extern byte GetWindowBordersSize( WindowHandle window, int* top, int* left, @@ -5422,12 +6197,13 @@ public static extern int GetWindowBordersSize( int* right ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowBordersSize( + public static MaybeBool GetWindowBordersSize( WindowHandle window, Ref top, Ref left, @@ -5440,13 +6216,14 @@ Ref right fixed (int* __dsl_left = left) fixed (int* __dsl_top = top) { - return (int)GetWindowBordersSize( - window, - __dsl_top, - __dsl_left, - __dsl_bottom, - __dsl_right - ); + return (MaybeBool) + (byte)GetWindowBordersSize( + window, + __dsl_top, + __dsl_left, + __dsl_bottom, + __dsl_right + ); } } @@ -5455,7 +6232,27 @@ Ref right [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowFlags")] [return: NativeTypeName("SDL_WindowFlags")] - public static extern uint GetWindowFlags(WindowHandle window); + public static extern ulong GetWindowFlags(WindowHandle window); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowFromEvent")] + public static extern WindowHandle GetWindowFromEvent( + [NativeTypeName("const SDL_Event *")] Event* @event + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static WindowHandle GetWindowFromEvent( + [NativeTypeName("const SDL_Event *")] Ref @event + ) + { + fixed (Event* __dsl_event = @event) + { + return (WindowHandle)GetWindowFromEvent(__dsl_event); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowFromID")] public static extern WindowHandle GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id); @@ -5499,59 +6296,71 @@ public static Ptr GetWindowICCProfile( [return: NativeTypeName("SDL_WindowID")] public static extern uint GetWindowID(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] - public static MaybeBool GetWindowKeyboardGrab(WindowHandle window) => - (MaybeBool)(int)GetWindowKeyboardGrabRaw(window); + public static MaybeBool GetWindowKeyboardGrab(WindowHandle window) => + (MaybeBool)(byte)GetWindowKeyboardGrabRaw(window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowKeyboardGrab")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetWindowKeyboardGrabRaw(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte GetWindowKeyboardGrabRaw(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowMaximumSize")] - public static extern int GetWindowMaximumSize(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] + public static extern byte GetWindowMaximumSize(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowMaximumSize(WindowHandle window, Ref w, Ref h) + public static MaybeBool GetWindowMaximumSize( + WindowHandle window, + Ref w, + Ref h + ) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetWindowMaximumSize(window, __dsl_w, __dsl_h); + return (MaybeBool)(byte)GetWindowMaximumSize(window, __dsl_w, __dsl_h); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowMinimumSize")] - public static extern int GetWindowMinimumSize(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] + public static extern byte GetWindowMinimumSize(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowMinimumSize(WindowHandle window, Ref w, Ref h) + public static MaybeBool GetWindowMinimumSize( + WindowHandle window, + Ref w, + Ref h + ) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetWindowMinimumSize(window, __dsl_w, __dsl_h); + return (MaybeBool)(byte)GetWindowMinimumSize(window, __dsl_w, __dsl_h); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] - public static MaybeBool GetWindowMouseGrab(WindowHandle window) => - (MaybeBool)(int)GetWindowMouseGrabRaw(window); + public static MaybeBool GetWindowMouseGrab(WindowHandle window) => + (MaybeBool)(byte)GetWindowMouseGrabRaw(window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowMouseGrab")] - [return: NativeTypeName("SDL_bool")] - public static extern int GetWindowMouseGrabRaw(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte GetWindowMouseGrabRaw(WindowHandle window); [return: NativeTypeName("const SDL_Rect *")] [Transformed] @@ -5567,20 +6376,7 @@ public static Ptr GetWindowMouseRect(WindowHandle window) => public static extern Rect* GetWindowMouseRectRaw(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowOpacity")] - public static extern int GetWindowOpacity(WindowHandle window, float* out_opacity); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetWindowOpacity(WindowHandle window, Ref out_opacity) - { - fixed (float* __dsl_out_opacity = out_opacity) - { - return (int)GetWindowOpacity(window, __dsl_out_opacity); - } - } + public static extern float GetWindowOpacity(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowParent")] public static extern WindowHandle GetWindowParent(WindowHandle window); @@ -5589,23 +6385,24 @@ public static int GetWindowOpacity(WindowHandle window, Ref out_opacity) public static extern float GetWindowPixelDensity(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowPixelFormat")] - [return: NativeTypeName("Uint32")] - public static extern uint GetWindowPixelFormat(WindowHandle window); + public static extern PixelFormat GetWindowPixelFormat(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowPosition")] - public static extern int GetWindowPosition(WindowHandle window, int* x, int* y); + [return: NativeTypeName("bool")] + public static extern byte GetWindowPosition(WindowHandle window, int* x, int* y); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowPosition(WindowHandle window, Ref x, Ref y) + public static MaybeBool GetWindowPosition(WindowHandle window, Ref x, Ref y) { fixed (int* __dsl_y = y) fixed (int* __dsl_x = x) { - return (int)GetWindowPosition(window, __dsl_x, __dsl_y); + return (MaybeBool)(byte)GetWindowPosition(window, __dsl_x, __dsl_y); } } @@ -5613,37 +6410,89 @@ public static int GetWindowPosition(WindowHandle window, Ref x, Ref y) [return: NativeTypeName("SDL_PropertiesID")] public static extern uint GetWindowProperties(WindowHandle window); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowRelativeMouseMode")] + public static MaybeBool GetWindowRelativeMouseMode(WindowHandle window) => + (MaybeBool)(byte)GetWindowRelativeMouseModeRaw(window); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowRelativeMouseMode")] + [return: NativeTypeName("bool")] + public static extern byte GetWindowRelativeMouseModeRaw(WindowHandle window); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindows")] + public static extern WindowHandle* GetWindows(int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindows")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindows(Ref count) + { + fixed (int* __dsl_count = count) + { + return (WindowHandle*)GetWindows(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowSafeArea")] + [return: NativeTypeName("bool")] + public static extern byte GetWindowSafeArea(WindowHandle window, Rect* rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSafeArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetWindowSafeArea(WindowHandle window, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + { + return (MaybeBool)(byte)GetWindowSafeArea(window, __dsl_rect); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowSize")] - public static extern int GetWindowSize(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] + public static extern byte GetWindowSize(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowSize(WindowHandle window, Ref w, Ref h) + public static MaybeBool GetWindowSize(WindowHandle window, Ref w, Ref h) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetWindowSize(window, __dsl_w, __dsl_h); + return (MaybeBool)(byte)GetWindowSize(window, __dsl_w, __dsl_h); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowSizeInPixels")] - public static extern int GetWindowSizeInPixels(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] + public static extern byte GetWindowSizeInPixels(WindowHandle window, int* w, int* h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowSizeInPixels(WindowHandle window, Ref w, Ref h) + public static MaybeBool GetWindowSizeInPixels( + WindowHandle window, + Ref w, + Ref h + ) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetWindowSizeInPixels(window, __dsl_w, __dsl_h); + return (MaybeBool)(byte)GetWindowSizeInPixels(window, __dsl_w, __dsl_h); } } @@ -5658,6 +6507,24 @@ public static Ptr GetWindowSurface(WindowHandle window) => [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowSurface")] public static extern Surface* GetWindowSurfaceRaw(WindowHandle window); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowSurfaceVSync")] + [return: NativeTypeName("bool")] + public static extern byte GetWindowSurfaceVSync(WindowHandle window, int* vsync); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurfaceVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetWindowSurfaceVSync(WindowHandle window, Ref vsync) + { + fixed (int* __dsl_vsync = vsync) + { + return (MaybeBool)(byte)GetWindowSurfaceVSync(window, __dsl_vsync); + } + } + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] @@ -5671,83 +6538,66 @@ public static Ptr GetWindowTitle(WindowHandle window) => [return: NativeTypeName("const char *")] public static extern sbyte* GetWindowTitleRaw(WindowHandle window); - [return: NativeTypeName("SDL_GLContext")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GLCreateContext(WindowHandle window) => (void*)GLCreateContextRaw(window); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_CreateContext")] [return: NativeTypeName("SDL_GLContext")] - public static extern void* GLCreateContextRaw(WindowHandle window); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_DeleteContext")] - public static extern int GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context); + public static extern GLContextStateHandle GLCreateContext(WindowHandle window); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GLDeleteContext([NativeTypeName("SDL_GLContext")] Ref context) - { - fixed (void* __dsl_context = context) - { - return (int)GLDeleteContext(__dsl_context); - } - } + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DestroyContext")] + public static MaybeBool GLDestroyContext( + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => (MaybeBool)(byte)GLDestroyContextRaw(context); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_DestroyContext")] + [return: NativeTypeName("bool")] + public static extern byte GLDestroyContextRaw( + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_ExtensionSupported")] - [return: NativeTypeName("SDL_bool")] - public static extern int GLExtensionSupported( + [return: NativeTypeName("bool")] + public static extern byte GLExtensionSupported( [NativeTypeName("const char *")] sbyte* extension ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GLExtensionSupported( + public static MaybeBool GLExtensionSupported( [NativeTypeName("const char *")] Ref extension ) { fixed (sbyte* __dsl_extension = extension) { - return (MaybeBool)(int)GLExtensionSupported(__dsl_extension); + return (MaybeBool)(byte)GLExtensionSupported(__dsl_extension); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_GetAttribute")] - public static extern int GLGetAttribute(GLattr attr, int* value); + [return: NativeTypeName("bool")] + public static extern byte GLGetAttribute(GLAttr attr, int* value); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLGetAttribute(GLattr attr, Ref value) + public static MaybeBool GLGetAttribute(GLAttr attr, Ref value) { fixed (int* __dsl_value = value) { - return (int)GLGetAttribute(attr, __dsl_value); + return (MaybeBool)(byte)GLGetAttribute(attr, __dsl_value); } } - [return: NativeTypeName("SDL_GLContext")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GLGetCurrentContext() => (void*)GLGetCurrentContextRaw(); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_GetCurrentContext")] [return: NativeTypeName("SDL_GLContext")] - public static extern void* GLGetCurrentContextRaw(); + public static extern GLContextStateHandle GLGetCurrentContext(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_GetCurrentWindow")] public static extern WindowHandle GLGetCurrentWindow(); @@ -5775,70 +6625,90 @@ public static FunctionPointer GLGetProcAddress( } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_GetSwapInterval")] - public static extern int GLGetSwapInterval(int* interval); + [return: NativeTypeName("bool")] + public static extern byte GLGetSwapInterval(int* interval); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLGetSwapInterval(Ref interval) + public static MaybeBool GLGetSwapInterval(Ref interval) { fixed (int* __dsl_interval = interval) { - return (int)GLGetSwapInterval(__dsl_interval); + return (MaybeBool)(byte)GLGetSwapInterval(__dsl_interval); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_LoadLibrary")] - public static extern int GLLoadLibrary([NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] + public static extern byte GLLoadLibrary([NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLLoadLibrary([NativeTypeName("const char *")] Ref path) + public static MaybeBool GLLoadLibrary( + [NativeTypeName("const char *")] Ref path + ) { fixed (sbyte* __dsl_path = path) { - return (int)GLLoadLibrary(__dsl_path); + return (MaybeBool)(byte)GLLoadLibrary(__dsl_path); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_MakeCurrent")] - public static extern int GLMakeCurrent( - WindowHandle window, - [NativeTypeName("SDL_GLContext")] void* context - ); - + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GLMakeCurrent( + public static MaybeBool GLMakeCurrent( WindowHandle window, - [NativeTypeName("SDL_GLContext")] Ref context - ) - { - fixed (void* __dsl_context = context) - { - return (int)GLMakeCurrent(window, __dsl_context); - } - } + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => (MaybeBool)(byte)GLMakeCurrentRaw(window, context); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_MakeCurrent")] + [return: NativeTypeName("bool")] + public static extern byte GLMakeCurrentRaw( + WindowHandle window, + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_ResetAttributes")] public static extern void GLResetAttributes(); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetAttribute")] + public static MaybeBool GLSetAttribute(GLAttr attr, int value) => + (MaybeBool)(byte)GLSetAttributeRaw(attr, value); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_SetAttribute")] - public static extern int GLSetAttribute(GLattr attr, int value); + [return: NativeTypeName("bool")] + public static extern byte GLSetAttributeRaw(GLAttr attr, int value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetSwapInterval")] + public static MaybeBool GLSetSwapInterval(int interval) => + (MaybeBool)(byte)GLSetSwapIntervalRaw(interval); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_SetSwapInterval")] - public static extern int GLSetSwapInterval(int interval); + [return: NativeTypeName("bool")] + public static extern byte GLSetSwapIntervalRaw(int interval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] + public static MaybeBool GLSwapWindow(WindowHandle window) => + (MaybeBool)(byte)GLSwapWindowRaw(window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_SwapWindow")] - public static extern int GLSwapWindow(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte GLSwapWindowRaw(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_UnloadLibrary")] public static extern void GLUnloadLibrary(); @@ -5848,7 +6718,7 @@ public static int GLMakeCurrent( public static extern sbyte** GlobDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ); @@ -5861,7 +6731,7 @@ public static int GLMakeCurrent( public static Ptr2D GlobDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ) { @@ -5879,7 +6749,7 @@ Ref count StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ); @@ -5893,7 +6763,7 @@ public static Ptr2D GlobStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ) { @@ -5911,24 +6781,8 @@ Ref count } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GUIDFromString")] - public static extern Guid GuidFromString([NativeTypeName("const char *")] sbyte* pchGUID); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Guid GuidFromString([NativeTypeName("const char *")] Ref pchGUID) - { - fixed (sbyte* __dsl_pchGUID = pchGUID) - { - return (Guid)GuidFromString(__dsl_pchGUID); - } - } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GUIDToString")] - public static extern int GuidToString( + public static extern void GuidToString( Guid guid, [NativeTypeName("char *")] sbyte* pszGUID, int cbGUID @@ -5939,7 +6793,7 @@ int cbGUID [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GuidToString( + public static void GuidToString( Guid guid, [NativeTypeName("char *")] Ref pszGUID, int cbGUID @@ -5947,266 +6801,266 @@ int cbGUID { fixed (sbyte* __dsl_pszGUID = pszGUID) { - return (int)GuidToString(guid, __dsl_pszGUID, cbGUID); + GuidToString(guid, __dsl_pszGUID, cbGUID); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HapticEffectSupported")] - [return: NativeTypeName("SDL_bool")] - public static extern int HapticEffectSupported( + [return: NativeTypeName("bool")] + public static extern byte HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HapticEffectSupported( + public static MaybeBool HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] Ref effect ) { fixed (HapticEffect* __dsl_effect = effect) { - return (MaybeBool)(int)HapticEffectSupported(haptic, __dsl_effect); + return (MaybeBool)(byte)HapticEffectSupported(haptic, __dsl_effect); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] - public static MaybeBool HapticRumbleSupported(HapticHandle haptic) => - (MaybeBool)(int)HapticRumbleSupportedRaw(haptic); + public static MaybeBool HapticRumbleSupported(HapticHandle haptic) => + (MaybeBool)(byte)HapticRumbleSupportedRaw(haptic); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HapticRumbleSupported")] - [return: NativeTypeName("SDL_bool")] - public static extern int HapticRumbleSupportedRaw(HapticHandle haptic); + [return: NativeTypeName("bool")] + public static extern byte HapticRumbleSupportedRaw(HapticHandle haptic); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] - public static MaybeBool HasAltiVec() => (MaybeBool)(int)HasAltiVecRaw(); + public static MaybeBool HasAltiVec() => (MaybeBool)(byte)HasAltiVecRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasAltiVec")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasAltiVecRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasAltiVecRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] - public static MaybeBool HasArmsimd() => (MaybeBool)(int)HasArmsimdRaw(); + public static MaybeBool HasArmsimd() => (MaybeBool)(byte)HasArmsimdRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasARMSIMD")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasArmsimdRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasArmsimdRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] - public static MaybeBool HasAVX() => (MaybeBool)(int)HasAVXRaw(); + public static MaybeBool HasAVX() => (MaybeBool)(byte)HasAVXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] - public static MaybeBool HasAVX2() => (MaybeBool)(int)HasAVX2Raw(); + public static MaybeBool HasAVX2() => (MaybeBool)(byte)HasAVX2Raw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasAVX2")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasAVX2Raw(); + [return: NativeTypeName("bool")] + public static extern byte HasAVX2Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] - public static MaybeBool HasAVX512F() => (MaybeBool)(int)HasAVX512FRaw(); + public static MaybeBool HasAVX512F() => (MaybeBool)(byte)HasAVX512FRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasAVX512F")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasAVX512FRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasAVX512FRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasAVX")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasAVXRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasAVXRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasClipboardData")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasClipboardData( + [return: NativeTypeName("bool")] + public static extern byte HasClipboardData( [NativeTypeName("const char *")] sbyte* mime_type ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasClipboardData( + public static MaybeBool HasClipboardData( [NativeTypeName("const char *")] Ref mime_type ) { fixed (sbyte* __dsl_mime_type = mime_type) { - return (MaybeBool)(int)HasClipboardData(__dsl_mime_type); + return (MaybeBool)(byte)HasClipboardData(__dsl_mime_type); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] - public static MaybeBool HasClipboardText() => - (MaybeBool)(int)HasClipboardTextRaw(); + public static MaybeBool HasClipboardText() => + (MaybeBool)(byte)HasClipboardTextRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasClipboardText")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasClipboardTextRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasClipboardTextRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] - public static MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => - (MaybeBool)(int)HasEventRaw(type); + public static MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => + (MaybeBool)(byte)HasEventRaw(type); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasEvent")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasEventRaw([NativeTypeName("Uint32")] uint type); + [return: NativeTypeName("bool")] + public static extern byte HasEventRaw([NativeTypeName("Uint32")] uint type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] - public static MaybeBool HasEvents( + public static MaybeBool HasEvents( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType - ) => (MaybeBool)(int)HasEventsRaw(minType, maxType); + ) => (MaybeBool)(byte)HasEventsRaw(minType, maxType); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasEvents")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasEventsRaw( + [return: NativeTypeName("bool")] + public static extern byte HasEventsRaw( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] - public static MaybeBool HasGamepad() => (MaybeBool)(int)HasGamepadRaw(); + public static MaybeBool HasGamepad() => (MaybeBool)(byte)HasGamepadRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasGamepad")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasGamepadRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasGamepadRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] - public static MaybeBool HasJoystick() => (MaybeBool)(int)HasJoystickRaw(); + public static MaybeBool HasJoystick() => (MaybeBool)(byte)HasJoystickRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasJoystick")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasJoystickRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasJoystickRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] - public static MaybeBool HasKeyboard() => (MaybeBool)(int)HasKeyboardRaw(); + public static MaybeBool HasKeyboard() => (MaybeBool)(byte)HasKeyboardRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasKeyboard")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasKeyboardRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasKeyboardRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] - public static MaybeBool HasLasx() => (MaybeBool)(int)HasLasxRaw(); + public static MaybeBool HasLasx() => (MaybeBool)(byte)HasLasxRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasLASX")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasLasxRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasLasxRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] - public static MaybeBool HasLSX() => (MaybeBool)(int)HasLSXRaw(); + public static MaybeBool HasLSX() => (MaybeBool)(byte)HasLSXRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasLSX")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasLSXRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasLSXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] - public static MaybeBool HasMMX() => (MaybeBool)(int)HasMMXRaw(); + public static MaybeBool HasMMX() => (MaybeBool)(byte)HasMMXRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasMMX")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasMMXRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasMMXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] - public static MaybeBool HasMouse() => (MaybeBool)(int)HasMouseRaw(); + public static MaybeBool HasMouse() => (MaybeBool)(byte)HasMouseRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasMouse")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasMouseRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasMouseRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] - public static MaybeBool HasNeon() => (MaybeBool)(int)HasNeonRaw(); + public static MaybeBool HasNeon() => (MaybeBool)(byte)HasNeonRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasNEON")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasNeonRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasNeonRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] - public static MaybeBool HasPrimarySelectionText() => - (MaybeBool)(int)HasPrimarySelectionTextRaw(); + public static MaybeBool HasPrimarySelectionText() => + (MaybeBool)(byte)HasPrimarySelectionTextRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasPrimarySelectionText")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasPrimarySelectionTextRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasPrimarySelectionTextRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasProperty")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasProperty( + [return: NativeTypeName("bool")] + public static extern byte HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasProperty( + public static MaybeBool HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ) { fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)HasProperty(props, __dsl_name); + return (MaybeBool)(byte)HasProperty(props, __dsl_name); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasRectIntersection")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasRectIntersection( + [return: NativeTypeName("bool")] + public static extern byte HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasRectIntersection( + public static MaybeBool HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B ) @@ -6214,24 +7068,24 @@ public static MaybeBool HasRectIntersection( fixed (Rect* __dsl_B = B) fixed (Rect* __dsl_A = A) { - return (MaybeBool)(int)HasRectIntersection(__dsl_A, __dsl_B); + return (MaybeBool)(byte)HasRectIntersection(__dsl_A, __dsl_B); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasRectIntersectionFloat")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasRectIntersectionFloat( + [return: NativeTypeName("bool")] + public static extern byte HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasRectIntersectionFloat( + public static MaybeBool HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B ) @@ -6239,72 +7093,72 @@ public static MaybeBool HasRectIntersectionFloat( fixed (FRect* __dsl_B = B) fixed (FRect* __dsl_A = A) { - return (MaybeBool)(int)HasRectIntersectionFloat(__dsl_A, __dsl_B); + return (MaybeBool)(byte)HasRectIntersectionFloat(__dsl_A, __dsl_B); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] - public static MaybeBool HasScreenKeyboardSupport() => - (MaybeBool)(int)HasScreenKeyboardSupportRaw(); + public static MaybeBool HasScreenKeyboardSupport() => + (MaybeBool)(byte)HasScreenKeyboardSupportRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasScreenKeyboardSupport")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasScreenKeyboardSupportRaw(); + [return: NativeTypeName("bool")] + public static extern byte HasScreenKeyboardSupportRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] - public static MaybeBool HasSSE() => (MaybeBool)(int)HasSSERaw(); + public static MaybeBool HasSSE() => (MaybeBool)(byte)HasSSERaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] - public static MaybeBool HasSSE2() => (MaybeBool)(int)HasSSE2Raw(); + public static MaybeBool HasSSE2() => (MaybeBool)(byte)HasSSE2Raw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasSSE2")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasSSE2Raw(); + [return: NativeTypeName("bool")] + public static extern byte HasSSE2Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] - public static MaybeBool HasSSE3() => (MaybeBool)(int)HasSSE3Raw(); + public static MaybeBool HasSSE3() => (MaybeBool)(byte)HasSSE3Raw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasSSE3")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasSSE3Raw(); + [return: NativeTypeName("bool")] + public static extern byte HasSSE3Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] - public static MaybeBool HasSSE41() => (MaybeBool)(int)HasSSE41Raw(); + public static MaybeBool HasSSE41() => (MaybeBool)(byte)HasSSE41Raw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasSSE41")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasSSE41Raw(); + [return: NativeTypeName("bool")] + public static extern byte HasSSE41Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] - public static MaybeBool HasSSE42() => (MaybeBool)(int)HasSSE42Raw(); + public static MaybeBool HasSSE42() => (MaybeBool)(byte)HasSSE42Raw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasSSE42")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasSSE42Raw(); + [return: NativeTypeName("bool")] + public static extern byte HasSSE42Raw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasSSE")] - [return: NativeTypeName("SDL_bool")] - public static extern int HasSSERaw(); + [return: NativeTypeName("bool")] + public static extern byte HasSSERaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_hid_ble_scan")] - public static extern void HidBleScan([NativeTypeName("SDL_bool")] int active); + public static extern void HidBleScan([NativeTypeName("bool")] byte active); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] - public static void HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active) => - HidBleScan((int)active); + public static void HidBleScan([NativeTypeName("bool")] MaybeBool active) => + HidBleScan((byte)active); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_hid_close")] public static extern int HidClose(HidDeviceHandle dev); @@ -6675,20 +7529,54 @@ public static int HidWrite( } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideCursor")] + public static MaybeBool HideCursor() => (MaybeBool)(byte)HideCursorRaw(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HideCursor")] - public static extern int HideCursor(); + [return: NativeTypeName("bool")] + public static extern byte HideCursorRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] + public static MaybeBool HideWindow(WindowHandle window) => + (MaybeBool)(byte)HideWindowRaw(window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HideWindow")] - public static extern int HideWindow(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte HideWindowRaw(WindowHandle window); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_Init")] - public static extern int Init([NativeTypeName("Uint32")] uint flags); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Init")] + public static MaybeBool Init([NativeTypeName("SDL_InitFlags")] uint flags) => + (MaybeBool)(byte)InitRaw(flags); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] + public static MaybeBool InitHapticRumble(HapticHandle haptic) => + (MaybeBool)(byte)InitHapticRumbleRaw(haptic); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_InitHapticRumble")] - public static extern int InitHapticRumble(HapticHandle haptic); + [return: NativeTypeName("bool")] + public static extern byte InitHapticRumbleRaw(HapticHandle haptic); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_Init")] + [return: NativeTypeName("bool")] + public static extern byte InitRaw([NativeTypeName("SDL_InitFlags")] uint flags); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitSubSystem")] + public static MaybeBool InitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags) => + (MaybeBool)(byte)InitSubSystemRaw(flags); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_InitSubSystem")] - public static extern int InitSubSystem([NativeTypeName("Uint32")] uint flags); + [return: NativeTypeName("bool")] + public static extern byte InitSubSystemRaw([NativeTypeName("SDL_InitFlags")] uint flags); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IOFromConstMem")] public static extern IOStreamHandle IOFromConstMem( @@ -6784,77 +7672,86 @@ public static nuint IOvprintf( } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] - public static MaybeBool IsGamepad( + public static MaybeBool IsGamepad( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => (MaybeBool)(int)IsGamepadRaw(instance_id); + ) => (MaybeBool)(byte)IsGamepadRaw(instance_id); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IsGamepad")] - [return: NativeTypeName("SDL_bool")] - public static extern int IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + [return: NativeTypeName("bool")] + public static extern byte IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] - public static MaybeBool IsJoystickHaptic(JoystickHandle joystick) => - (MaybeBool)(int)IsJoystickHapticRaw(joystick); + public static MaybeBool IsJoystickHaptic(JoystickHandle joystick) => + (MaybeBool)(byte)IsJoystickHapticRaw(joystick); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IsJoystickHaptic")] - [return: NativeTypeName("SDL_bool")] - public static extern int IsJoystickHapticRaw(JoystickHandle joystick); + [return: NativeTypeName("bool")] + public static extern byte IsJoystickHapticRaw(JoystickHandle joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] - public static MaybeBool IsJoystickVirtual( + public static MaybeBool IsJoystickVirtual( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => (MaybeBool)(int)IsJoystickVirtualRaw(instance_id); + ) => (MaybeBool)(byte)IsJoystickVirtualRaw(instance_id); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IsJoystickVirtual")] - [return: NativeTypeName("SDL_bool")] - public static extern int IsJoystickVirtualRaw( + [return: NativeTypeName("bool")] + public static extern byte IsJoystickVirtualRaw( [NativeTypeName("SDL_JoystickID")] uint instance_id ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] - public static MaybeBool IsMouseHaptic() => (MaybeBool)(int)IsMouseHapticRaw(); + public static MaybeBool IsMouseHaptic() => (MaybeBool)(byte)IsMouseHapticRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IsMouseHaptic")] - [return: NativeTypeName("SDL_bool")] - public static extern int IsMouseHapticRaw(); + [return: NativeTypeName("bool")] + public static extern byte IsMouseHapticRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] - public static MaybeBool IsTablet() => (MaybeBool)(int)IsTabletRaw(); + public static MaybeBool IsTablet() => (MaybeBool)(byte)IsTabletRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IsTablet")] - [return: NativeTypeName("SDL_bool")] - public static extern int IsTabletRaw(); + [return: NativeTypeName("bool")] + public static extern byte IsTabletRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTV")] + public static MaybeBool IsTV() => (MaybeBool)(byte)IsTVRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IsTV")] + [return: NativeTypeName("bool")] + public static extern byte IsTVRaw(); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] - public static MaybeBool JoystickConnected(JoystickHandle joystick) => - (MaybeBool)(int)JoystickConnectedRaw(joystick); + public static MaybeBool JoystickConnected(JoystickHandle joystick) => + (MaybeBool)(byte)JoystickConnectedRaw(joystick); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_JoystickConnected")] - [return: NativeTypeName("SDL_bool")] - public static extern int JoystickConnectedRaw(JoystickHandle joystick); + [return: NativeTypeName("bool")] + public static extern byte JoystickConnectedRaw(JoystickHandle joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] - public static MaybeBool JoystickEventsEnabled() => - (MaybeBool)(int)JoystickEventsEnabledRaw(); + public static MaybeBool JoystickEventsEnabled() => + (MaybeBool)(byte)JoystickEventsEnabledRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_JoystickEventsEnabled")] - [return: NativeTypeName("SDL_bool")] - public static extern int JoystickEventsEnabledRaw(); + [return: NativeTypeName("bool")] + public static extern byte JoystickEventsEnabledRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LoadBMP")] public static extern Surface* LoadBMP([NativeTypeName("const char *")] sbyte* file); @@ -6875,7 +7772,7 @@ public static Ptr LoadBMP([NativeTypeName("const char *")] Ref f [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LoadBMP_IO")] public static extern Surface* LoadBMPIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ); [Transformed] @@ -6885,8 +7782,8 @@ public static Ptr LoadBMP([NativeTypeName("const char *")] Ref f )] public static Ptr LoadBMPIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio - ) => (Surface*)LoadBMPIO(src, (int)closeio); + [NativeTypeName("bool")] MaybeBool closeio + ) => (Surface*)LoadBMPIO(src, (byte)closeio); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LoadFile")] public static extern void* LoadFile( @@ -6915,7 +7812,7 @@ public static Ptr LoadFile( public static extern void* LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] nuint* datasize, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ); [Transformed] @@ -6926,19 +7823,19 @@ public static Ptr LoadFile( public static Ptr LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] Ref datasize, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) { fixed (nuint* __dsl_datasize = datasize) { - return (void*)LoadFileIO(src, __dsl_datasize, (int)closeio); + return (void*)LoadFileIO(src, __dsl_datasize, (byte)closeio); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LoadFunction")] [return: NativeTypeName("SDL_FunctionPointer")] public static extern FunctionPointer LoadFunction( - void* handle, + SharedObjectHandle handle, [NativeTypeName("const char *")] sbyte* name ); @@ -6949,47 +7846,52 @@ public static extern FunctionPointer LoadFunction( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static FunctionPointer LoadFunction( - Ref handle, + SharedObjectHandle handle, [NativeTypeName("const char *")] Ref name ) { fixed (sbyte* __dsl_name = name) - fixed (void* __dsl_handle = handle) { - return (FunctionPointer)LoadFunction(__dsl_handle, __dsl_name); + return (FunctionPointer)LoadFunction(handle, __dsl_name); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LoadObject")] - public static extern void* LoadObject([NativeTypeName("const char *")] sbyte* sofile); + public static extern SharedObjectHandle LoadObject( + [NativeTypeName("const char *")] sbyte* sofile + ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr LoadObject([NativeTypeName("const char *")] Ref sofile) + public static SharedObjectHandle LoadObject( + [NativeTypeName("const char *")] Ref sofile + ) { fixed (sbyte* __dsl_sofile = sofile) { - return (void*)LoadObject(__dsl_sofile); + return (SharedObjectHandle)LoadObject(__dsl_sofile); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LoadWAV")] - public static extern int LoadWAV( + [return: NativeTypeName("bool")] + public static extern byte LoadWAV( [NativeTypeName("const char *")] sbyte* path, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LoadWAV( + public static MaybeBool LoadWAV( [NativeTypeName("const char *")] Ref path, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, @@ -7001,27 +7903,30 @@ public static int LoadWAV( fixed (AudioSpec* __dsl_spec = spec) fixed (sbyte* __dsl_path = path) { - return (int)LoadWAV(__dsl_path, __dsl_spec, __dsl_audio_buf, __dsl_audio_len); + return (MaybeBool) + (byte)LoadWAV(__dsl_path, __dsl_spec, __dsl_audio_buf, __dsl_audio_len); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LoadWAV_IO")] - public static extern int LoadWAVIO( + [return: NativeTypeName("bool")] + public static extern byte LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio, + [NativeTypeName("bool")] byte closeio, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LoadWAVIO( + public static MaybeBool LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio, + [NativeTypeName("bool")] MaybeBool closeio, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, [NativeTypeName("Uint32 *")] Ref audio_len @@ -7031,18 +7936,26 @@ public static int LoadWAVIO( fixed (byte** __dsl_audio_buf = audio_buf) fixed (AudioSpec* __dsl_spec = spec) { - return (int)LoadWAVIO( - src, - (int)closeio, - __dsl_spec, - __dsl_audio_buf, - __dsl_audio_len - ); + return (MaybeBool) + (byte)LoadWAVIO( + src, + (byte)closeio, + __dsl_spec, + __dsl_audio_buf, + __dsl_audio_len + ); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] + public static MaybeBool LockAudioStream(AudioStreamHandle stream) => + (MaybeBool)(byte)LockAudioStreamRaw(stream); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LockAudioStream")] - public static extern int LockAudioStream(AudioStreamHandle stream); + [return: NativeTypeName("bool")] + public static extern byte LockAudioStreamRaw(AudioStreamHandle stream); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LockJoysticks")] public static extern void LockJoysticks(); @@ -7050,8 +7963,18 @@ public static int LoadWAVIO( [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LockMutex")] public static extern void LockMutex(MutexHandle mutex); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockProperties")] + public static MaybeBool LockProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => (MaybeBool)(byte)LockPropertiesRaw(props); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LockProperties")] - public static extern int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props); + [return: NativeTypeName("bool")] + public static extern byte LockPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LockRWLockForReading")] public static extern void LockRWLockForReading(RWLockHandle rwlock); @@ -7076,36 +7999,40 @@ public static void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @loc } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LockSurface")] - public static extern int LockSurface(Surface* surface); + [return: NativeTypeName("bool")] + public static extern byte LockSurface(Surface* surface); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LockSurface(Ref surface) + public static MaybeBool LockSurface(Ref surface) { fixed (Surface* __dsl_surface = surface) { - return (int)LockSurface(__dsl_surface); + return (MaybeBool)(byte)LockSurface(__dsl_surface); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LockTexture")] - public static extern int LockTexture( - TextureHandle texture, + [return: NativeTypeName("bool")] + public static extern byte LockTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, void** pixels, int* pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LockTexture( - TextureHandle texture, + public static MaybeBool LockTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D pixels, Ref pitch @@ -7114,39 +8041,42 @@ Ref pitch fixed (int* __dsl_pitch = pitch) fixed (void** __dsl_pixels = pixels) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)LockTexture(texture, __dsl_rect, __dsl_pixels, __dsl_pitch); + return (MaybeBool) + (byte)LockTexture(__dsl_texture, __dsl_rect, __dsl_pixels, __dsl_pitch); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LockTextureToSurface")] - public static extern int LockTextureToSurface( - TextureHandle texture, + [return: NativeTypeName("bool")] + public static extern byte LockTextureToSurface( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, Surface** surface ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LockTextureToSurface( - TextureHandle texture, + public static MaybeBool LockTextureToSurface( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D surface ) { fixed (Surface** __dsl_surface = surface) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)LockTextureToSurface(texture, __dsl_rect, __dsl_surface); + return (MaybeBool) + (byte)LockTextureToSurface(__dsl_texture, __dsl_rect, __dsl_surface); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LogGetPriority")] - public static extern LogPriority LogGetPriority(int category); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LogMessageV")] public static extern void LogMessageV( int category, @@ -7174,19 +8104,11 @@ public static void LogMessageV( } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LogResetPriorities")] - public static extern void LogResetPriorities(); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LogSetAllPriority")] - public static extern void LogSetAllPriority(LogPriority priority); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LogSetPriority")] - public static extern void LogSetPriority(int category, LogPriority priority); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_MapRGB")] [return: NativeTypeName("Uint32")] public static extern uint MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b @@ -7199,22 +8121,25 @@ public static extern uint MapRGB( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static uint MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ) { - fixed (PixelFormat* __dsl_format = format) + fixed (Palette* __dsl_palette = palette) + fixed (PixelFormatDetails* __dsl_format = format) { - return (uint)MapRGB(__dsl_format, r, g, b); + return (uint)MapRGB(__dsl_format, __dsl_palette, r, g, b); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_MapRGBA")] [return: NativeTypeName("Uint32")] public static extern uint MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, @@ -7228,21 +8153,88 @@ public static extern uint MapRgba( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static uint MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a ) { - fixed (PixelFormat* __dsl_format = format) + fixed (Palette* __dsl_palette = palette) + fixed (PixelFormatDetails* __dsl_format = format) { - return (uint)MapRgba(__dsl_format, r, g, b, a); + return (uint)MapRgba(__dsl_format, __dsl_palette, r, g, b, a); } } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_MapSurfaceRGB")] + [return: NativeTypeName("Uint32")] + public static extern uint MapSurfaceRGB( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint MapSurfaceRGB( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (uint)MapSurfaceRGB(__dsl_surface, r, g, b); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_MapSurfaceRGBA")] + [return: NativeTypeName("Uint32")] + public static extern uint MapSurfaceRgba( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGBA")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint MapSurfaceRgba( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (uint)MapSurfaceRgba(__dsl_surface, r, g, b, a); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] + public static MaybeBool MaximizeWindow(WindowHandle window) => + (MaybeBool)(byte)MaximizeWindowRaw(window); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_MaximizeWindow")] - public static extern int MaximizeWindow(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte MaximizeWindowRaw(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_MemoryBarrierAcquireFunction")] public static extern void MemoryBarrierAcquireFunction(); @@ -7294,41 +8286,47 @@ public static Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view) } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] + public static MaybeBool MinimizeWindow(WindowHandle window) => + (MaybeBool)(byte)MinimizeWindowRaw(window); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_MinimizeWindow")] - public static extern int MinimizeWindow(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte MinimizeWindowRaw(WindowHandle window); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_MixAudioFormat")] - public static extern int MixAudioFormat( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_MixAudio")] + [return: NativeTypeName("bool")] + public static extern byte MixAudio( [NativeTypeName("Uint8 *")] byte* dst, [NativeTypeName("const Uint8 *")] byte* src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume + float volume ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudio")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int MixAudioFormat( + public static MaybeBool MixAudio( [NativeTypeName("Uint8 *")] Ref dst, [NativeTypeName("const Uint8 *")] Ref src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume + float volume ) { fixed (byte* __dsl_src = src) fixed (byte* __dsl_dst = dst) { - return (int)MixAudioFormat(__dsl_dst, __dsl_src, format, len, volume); + return (MaybeBool)(byte)MixAudio(__dsl_dst, __dsl_src, format, len, volume); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_OnApplicationDidBecomeActive")] - public static extern void OnApplicationDidBecomeActive(); - [DllImport( "SDL3", ExactSpelling = true, @@ -7336,6 +8334,13 @@ int volume )] public static extern void OnApplicationDidEnterBackground(); + [DllImport( + "SDL3", + ExactSpelling = true, + EntryPoint = "SDL_OnApplicationDidEnterForeground" + )] + public static extern void OnApplicationDidEnterForeground(); + [DllImport( "SDL3", ExactSpelling = true, @@ -7343,6 +8348,13 @@ int volume )] public static extern void OnApplicationDidReceiveMemoryWarning(); + [DllImport( + "SDL3", + ExactSpelling = true, + EntryPoint = "SDL_OnApplicationWillEnterBackground" + )] + public static extern void OnApplicationWillEnterBackground(); + [DllImport( "SDL3", ExactSpelling = true, @@ -7350,9 +8362,6 @@ int volume )] public static extern void OnApplicationWillEnterForeground(); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_OnApplicationWillResignActive")] - public static extern void OnApplicationWillResignActive(); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_OnApplicationWillTerminate")] public static extern void OnApplicationWillTerminate(); @@ -7412,25 +8421,25 @@ Ref userdata } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_OpenCameraDevice")] - public static extern CameraHandle OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_OpenCamera")] + public static extern CameraHandle OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec ); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCamera")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static CameraHandle OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + public static CameraHandle OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] Ref spec ) { fixed (CameraSpec* __dsl_spec = spec) { - return (CameraHandle)OpenCameraDevice(instance_id, __dsl_spec); + return (CameraHandle)OpenCamera(instance_id, __dsl_spec); } } @@ -7549,18 +8558,20 @@ public static StorageHandle OpenTitleStorage( } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_OpenURL")] - public static extern int OpenURL([NativeTypeName("const char *")] sbyte* url); + [return: NativeTypeName("bool")] + public static extern byte OpenURL([NativeTypeName("const char *")] sbyte* url); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int OpenURL([NativeTypeName("const char *")] Ref url) + public static MaybeBool OpenURL([NativeTypeName("const char *")] Ref url) { fixed (sbyte* __dsl_url = url) { - return (int)OpenURL(__dsl_url); + return (MaybeBool)(byte)OpenURL(__dsl_url); } } @@ -7589,11 +8600,47 @@ public static StorageHandle OpenUserStorage( } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OutOfMemory")] + public static MaybeBool OutOfMemory() => (MaybeBool)(byte)OutOfMemoryRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_OutOfMemory")] + [return: NativeTypeName("bool")] + public static extern byte OutOfMemoryRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] + public static MaybeBool PauseAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ) => (MaybeBool)(byte)PauseAudioDeviceRaw(dev); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PauseAudioDevice")] - public static extern int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + [return: NativeTypeName("bool")] + public static extern byte PauseAudioDeviceRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioStreamDevice")] + public static MaybeBool PauseAudioStreamDevice(AudioStreamHandle stream) => + (MaybeBool)(byte)PauseAudioStreamDeviceRaw(stream); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PauseAudioStreamDevice")] + [return: NativeTypeName("bool")] + public static extern byte PauseAudioStreamDeviceRaw(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] + public static MaybeBool PauseHaptic(HapticHandle haptic) => + (MaybeBool)(byte)PauseHapticRaw(haptic); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PauseHaptic")] - public static extern int PauseHaptic(HapticHandle haptic); + [return: NativeTypeName("bool")] + public static extern byte PauseHapticRaw(HapticHandle haptic); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PeepEvents")] public static extern int PeepEvents( @@ -7623,85 +8670,112 @@ public static int PeepEvents( } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] - public static MaybeBool PenConnected([NativeTypeName("SDL_PenID")] uint instance_id) => - (MaybeBool)(int)PenConnectedRaw(instance_id); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PenConnected")] - [return: NativeTypeName("SDL_bool")] - public static extern int PenConnectedRaw([NativeTypeName("SDL_PenID")] uint instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] + public static MaybeBool PlayHapticRumble( + HapticHandle haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) => (MaybeBool)(byte)PlayHapticRumbleRaw(haptic, strength, length); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PlayHapticRumble")] - public static extern int PlayHapticRumble( + [return: NativeTypeName("bool")] + public static extern byte PlayHapticRumbleRaw( HapticHandle haptic, float strength, [NativeTypeName("Uint32")] uint length ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PollEvent")] - [return: NativeTypeName("SDL_bool")] - public static extern int PollEvent(Event* @event); + [return: NativeTypeName("bool")] + public static extern byte PollEvent(Event* @event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool PollEvent(Ref @event) + public static MaybeBool PollEvent(Ref @event) { fixed (Event* __dsl_event = @event) { - return (MaybeBool)(int)PollEvent(__dsl_event); + return (MaybeBool)(byte)PollEvent(__dsl_event); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PostSemaphore")] - public static extern int PostSemaphore(SemaphoreHandle sem); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PremultiplyAlpha")] - public static extern int PremultiplyAlpha( + [return: NativeTypeName("bool")] + public static extern byte PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] byte linear ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PremultiplyAlpha( + public static MaybeBool PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] MaybeBool linear ) { fixed (void* __dsl_dst = dst) fixed (void* __dsl_src = src) { - return (int)PremultiplyAlpha( - width, - height, - src_format, - __dsl_src, - src_pitch, - dst_format, - __dsl_dst, - dst_pitch - ); + return (MaybeBool) + (byte)PremultiplyAlpha( + width, + height, + src_format, + __dsl_src, + src_pitch, + dst_format, + __dsl_dst, + dst_pitch, + (byte)linear + ); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PremultiplySurfaceAlpha")] + [return: NativeTypeName("bool")] + public static extern byte PremultiplySurfaceAlpha( + Surface* surface, + [NativeTypeName("bool")] byte linear + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplySurfaceAlpha")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool PremultiplySurfaceAlpha( + Ref surface, + [NativeTypeName("bool")] MaybeBool linear + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)PremultiplySurfaceAlpha(__dsl_surface, (byte)linear); } } @@ -7709,34 +8783,38 @@ int dst_pitch public static extern void PumpEvents(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PushEvent")] - public static extern int PushEvent(Event* @event); + [return: NativeTypeName("bool")] + public static extern byte PushEvent(Event* @event); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PushEvent(Ref @event) + public static MaybeBool PushEvent(Ref @event) { fixed (Event* __dsl_event = @event) { - return (int)PushEvent(__dsl_event); + return (MaybeBool)(byte)PushEvent(__dsl_event); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PutAudioStreamData")] - public static extern int PutAudioStreamData( + [return: NativeTypeName("bool")] + public static extern byte PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] void* buf, int len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PutAudioStreamData( + public static MaybeBool PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] Ref buf, int len @@ -7744,38 +8822,7 @@ int len { fixed (void* __dsl_buf = buf) { - return (int)PutAudioStreamData(stream, __dsl_buf, len); - } - } - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_QueryTexture")] - public static extern int QueryTexture( - TextureHandle texture, - PixelFormatEnum* format, - int* access, - int* w, - int* h - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int QueryTexture( - TextureHandle texture, - Ref format, - Ref access, - Ref w, - Ref h - ) - { - fixed (int* __dsl_h = h) - fixed (int* __dsl_w = w) - fixed (int* __dsl_access = access) - fixed (PixelFormatEnum* __dsl_format = format) - { - return (int)QueryTexture(texture, __dsl_format, __dsl_access, __dsl_w, __dsl_h); + return (MaybeBool)(byte)PutAudioStreamData(stream, __dsl_buf, len); } } @@ -7783,10 +8830,17 @@ Ref h public static extern void Quit(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_QuitSubSystem")] - public static extern void QuitSubSystem([NativeTypeName("Uint32")] uint flags); + public static extern void QuitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] + public static MaybeBool RaiseWindow(WindowHandle window) => + (MaybeBool)(byte)RaiseWindowRaw(window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RaiseWindow")] - public static extern int RaiseWindow(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte RaiseWindowRaw(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadIO")] [return: NativeTypeName("size_t")] @@ -7815,163 +8869,189 @@ public static nuint ReadIO( } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadS16BE")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadS16BE( + [return: NativeTypeName("bool")] + public static extern byte ReadS16BE( IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadS16BE( + public static MaybeBool ReadS16BE( IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value ) { fixed (short* __dsl_value = value) { - return (MaybeBool)(int)ReadS16BE(src, __dsl_value); + return (MaybeBool)(byte)ReadS16BE(src, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadS16LE")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadS16LE( + [return: NativeTypeName("bool")] + public static extern byte ReadS16LE( IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadS16LE( + public static MaybeBool ReadS16LE( IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value ) { fixed (short* __dsl_value = value) { - return (MaybeBool)(int)ReadS16LE(src, __dsl_value); + return (MaybeBool)(byte)ReadS16LE(src, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadS32BE")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadS32BE( + [return: NativeTypeName("bool")] + public static extern byte ReadS32BE( IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadS32BE( + public static MaybeBool ReadS32BE( IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value ) { fixed (int* __dsl_value = value) { - return (MaybeBool)(int)ReadS32BE(src, __dsl_value); + return (MaybeBool)(byte)ReadS32BE(src, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadS32LE")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadS32LE( + [return: NativeTypeName("bool")] + public static extern byte ReadS32LE( IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadS32LE( + public static MaybeBool ReadS32LE( IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value ) { fixed (int* __dsl_value = value) { - return (MaybeBool)(int)ReadS32LE(src, __dsl_value); + return (MaybeBool)(byte)ReadS32LE(src, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadS64BE")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadS64BE( + [return: NativeTypeName("bool")] + public static extern byte ReadS64BE( IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadS64BE( + public static MaybeBool ReadS64BE( IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value ) { fixed (long* __dsl_value = value) { - return (MaybeBool)(int)ReadS64BE(src, __dsl_value); + return (MaybeBool)(byte)ReadS64BE(src, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadS64LE")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadS64LE( + [return: NativeTypeName("bool")] + public static extern byte ReadS64LE( IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadS64LE( + public static MaybeBool ReadS64LE( IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value ) { fixed (long* __dsl_value = value) { - return (MaybeBool)(int)ReadS64LE(src, __dsl_value); + return (MaybeBool)(byte)ReadS64LE(src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadS8")] + [return: NativeTypeName("bool")] + public static extern byte ReadS8( + IOStreamHandle src, + [NativeTypeName("Sint8 *")] sbyte* value + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS8( + IOStreamHandle src, + [NativeTypeName("Sint8 *")] Ref value + ) + { + fixed (sbyte* __dsl_value = value) + { + return (MaybeBool)(byte)ReadS8(src, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadStorageFile")] - public static extern int ReadStorageFile( + [return: NativeTypeName("bool")] + public static extern byte ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, void* destination, [NativeTypeName("Uint64")] ulong length ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadStorageFile( + public static MaybeBool ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref destination, @@ -7981,12 +9061,14 @@ public static int ReadStorageFile( fixed (void* __dsl_destination = destination) fixed (sbyte* __dsl_path = path) { - return (int)ReadStorageFile(storage, __dsl_path, __dsl_destination, length); + return (MaybeBool) + (byte)ReadStorageFile(storage, __dsl_path, __dsl_destination, length); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadSurfacePixel")] - public static extern int ReadSurfacePixel( + [return: NativeTypeName("bool")] + public static extern byte ReadSurfacePixel( Surface* surface, int x, int y, @@ -7996,12 +9078,13 @@ public static extern int ReadSurfacePixel( [NativeTypeName("Uint8 *")] byte* a ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadSurfacePixel( + public static MaybeBool ReadSurfacePixel( Ref surface, int x, int y, @@ -8017,183 +9100,223 @@ public static int ReadSurfacePixel( fixed (byte* __dsl_r = r) fixed (Surface* __dsl_surface = surface) { - return (int)ReadSurfacePixel( - __dsl_surface, - x, - y, - __dsl_r, - __dsl_g, - __dsl_b, - __dsl_a - ); + return (MaybeBool) + (byte)ReadSurfacePixel(__dsl_surface, x, y, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadSurfacePixelFloat")] + [return: NativeTypeName("bool")] + public static extern byte ReadSurfacePixelFloat( + Surface* surface, + int x, + int y, + float* r, + float* g, + float* b, + float* a + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixelFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadSurfacePixelFloat( + Ref surface, + int x, + int y, + Ref r, + Ref g, + Ref b, + Ref a + ) + { + fixed (float* __dsl_a = a) + fixed (float* __dsl_b = b) + fixed (float* __dsl_g = g) + fixed (float* __dsl_r = r) + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool) + (byte)ReadSurfacePixelFloat( + __dsl_surface, + x, + y, + __dsl_r, + __dsl_g, + __dsl_b, + __dsl_a + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadU16BE")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadU16BE( + [return: NativeTypeName("bool")] + public static extern byte ReadU16BE( IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU16BE( + public static MaybeBool ReadU16BE( IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value ) { fixed (ushort* __dsl_value = value) { - return (MaybeBool)(int)ReadU16BE(src, __dsl_value); + return (MaybeBool)(byte)ReadU16BE(src, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadU16LE")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadU16LE( + [return: NativeTypeName("bool")] + public static extern byte ReadU16LE( IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU16LE( + public static MaybeBool ReadU16LE( IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value ) { fixed (ushort* __dsl_value = value) { - return (MaybeBool)(int)ReadU16LE(src, __dsl_value); + return (MaybeBool)(byte)ReadU16LE(src, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadU32BE")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadU32BE( + [return: NativeTypeName("bool")] + public static extern byte ReadU32BE( IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU32BE( + public static MaybeBool ReadU32BE( IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value ) { fixed (uint* __dsl_value = value) { - return (MaybeBool)(int)ReadU32BE(src, __dsl_value); + return (MaybeBool)(byte)ReadU32BE(src, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadU32LE")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadU32LE( + [return: NativeTypeName("bool")] + public static extern byte ReadU32LE( IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU32LE( + public static MaybeBool ReadU32LE( IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value ) { fixed (uint* __dsl_value = value) { - return (MaybeBool)(int)ReadU32LE(src, __dsl_value); + return (MaybeBool)(byte)ReadU32LE(src, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadU64BE")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadU64BE( + [return: NativeTypeName("bool")] + public static extern byte ReadU64BE( IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU64BE( + public static MaybeBool ReadU64BE( IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value ) { fixed (ulong* __dsl_value = value) { - return (MaybeBool)(int)ReadU64BE(src, __dsl_value); + return (MaybeBool)(byte)ReadU64BE(src, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadU64LE")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadU64LE( + [return: NativeTypeName("bool")] + public static extern byte ReadU64LE( IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU64LE( + public static MaybeBool ReadU64LE( IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value ) { fixed (ulong* __dsl_value = value) { - return (MaybeBool)(int)ReadU64LE(src, __dsl_value); + return (MaybeBool)(byte)ReadU64LE(src, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReadU8")] - [return: NativeTypeName("SDL_bool")] - public static extern int ReadU8( + [return: NativeTypeName("bool")] + public static extern byte ReadU8( IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU8( + public static MaybeBool ReadU8( IOStreamHandle src, [NativeTypeName("Uint8 *")] Ref value ) { fixed (byte* __dsl_value = value) { - return (MaybeBool)(int)ReadU8(src, __dsl_value); + return (MaybeBool)(byte)ReadU8(src, __dsl_value); } } @@ -8202,84 +9325,160 @@ public static MaybeBool ReadU8( public static extern uint RegisterEvents(int numevents); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReleaseCameraFrame")] - public static extern int ReleaseCameraFrame(CameraHandle camera, Surface* frame); + public static extern void ReleaseCameraFrame(CameraHandle camera, Surface* frame); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReleaseCameraFrame(CameraHandle camera, Ref frame) + public static void ReleaseCameraFrame(CameraHandle camera, Ref frame) { fixed (Surface* __dsl_frame = frame) { - return (int)ReleaseCameraFrame(camera, __dsl_frame); + ReleaseCameraFrame(camera, __dsl_frame); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReloadGamepadMappings")] + public static MaybeBool ReloadGamepadMappings() => + (MaybeBool)(byte)ReloadGamepadMappingsRaw(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReloadGamepadMappings")] - public static extern int ReloadGamepadMappings(); + [return: NativeTypeName("bool")] + public static extern byte ReloadGamepadMappingsRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RemoveEventWatch")] + public static extern void RemoveEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void RemoveEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + RemoveEventWatch(filter, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RemoveHintCallback")] + public static extern void RemoveHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void RemoveHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_name = name) + { + RemoveHintCallback(__dsl_name, callback, __dsl_userdata); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RemovePath")] - public static extern int RemovePath([NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] + public static extern byte RemovePath([NativeTypeName("const char *")] sbyte* path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RemovePath([NativeTypeName("const char *")] Ref path) + public static MaybeBool RemovePath([NativeTypeName("const char *")] Ref path) { fixed (sbyte* __dsl_path = path) { - return (int)RemovePath(__dsl_path); + return (MaybeBool)(byte)RemovePath(__dsl_path); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RemoveStoragePath")] - public static extern int RemoveStoragePath( + [return: NativeTypeName("bool")] + public static extern byte RemoveStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RemoveStoragePath( + public static MaybeBool RemoveStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref path ) { fixed (sbyte* __dsl_path = path) { - return (int)RemoveStoragePath(storage, __dsl_path); + return (MaybeBool)(byte)RemoveStoragePath(storage, __dsl_path); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RemoveSurfaceAlternateImages")] + public static extern void RemoveSurfaceAlternateImages(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveSurfaceAlternateImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void RemoveSurfaceAlternateImages(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + RemoveSurfaceAlternateImages(__dsl_surface); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] - public static MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => - (MaybeBool)(int)RemoveTimerRaw(id); + public static MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => + (MaybeBool)(byte)RemoveTimerRaw(id); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RemoveTimer")] - [return: NativeTypeName("SDL_bool")] - public static extern int RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id); + [return: NativeTypeName("bool")] + public static extern byte RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenamePath")] - public static extern int RenamePath( + [return: NativeTypeName("bool")] + public static extern byte RenamePath( [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenamePath( + public static MaybeBool RenamePath( [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath ) @@ -8287,23 +9486,25 @@ public static int RenamePath( fixed (sbyte* __dsl_newpath = newpath) fixed (sbyte* __dsl_oldpath = oldpath) { - return (int)RenamePath(__dsl_oldpath, __dsl_newpath); + return (MaybeBool)(byte)RenamePath(__dsl_oldpath, __dsl_newpath); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenameStoragePath")] - public static extern int RenameStoragePath( + [return: NativeTypeName("bool")] + public static extern byte RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenameStoragePath( + public static MaybeBool RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath @@ -8312,25 +9513,34 @@ public static int RenameStoragePath( fixed (sbyte* __dsl_newpath = newpath) fixed (sbyte* __dsl_oldpath = oldpath) { - return (int)RenameStoragePath(storage, __dsl_oldpath, __dsl_newpath); + return (MaybeBool) + (byte)RenameStoragePath(storage, __dsl_oldpath, __dsl_newpath); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] + public static MaybeBool RenderClear(RendererHandle renderer) => + (MaybeBool)(byte)RenderClearRaw(renderer); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderClear")] - public static extern int RenderClear(RendererHandle renderer); + [return: NativeTypeName("bool")] + public static extern byte RenderClearRaw(RendererHandle renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] - public static MaybeBool RenderClipEnabled(RendererHandle renderer) => - (MaybeBool)(int)RenderClipEnabledRaw(renderer); + public static MaybeBool RenderClipEnabled(RendererHandle renderer) => + (MaybeBool)(byte)RenderClipEnabledRaw(renderer); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderClipEnabled")] - [return: NativeTypeName("SDL_bool")] - public static extern int RenderClipEnabledRaw(RendererHandle renderer); + [return: NativeTypeName("bool")] + public static extern byte RenderClipEnabledRaw(RendererHandle renderer); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderCoordinatesFromWindow")] - public static extern int RenderCoordinatesFromWindow( + [return: NativeTypeName("bool")] + public static extern byte RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -8338,12 +9548,13 @@ public static extern int RenderCoordinatesFromWindow( float* y ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderCoordinatesFromWindow( + public static MaybeBool RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -8354,18 +9565,20 @@ Ref y fixed (float* __dsl_y = y) fixed (float* __dsl_x = x) { - return (int)RenderCoordinatesFromWindow( - renderer, - window_x, - window_y, - __dsl_x, - __dsl_y - ); + return (MaybeBool) + (byte)RenderCoordinatesFromWindow( + renderer, + window_x, + window_y, + __dsl_x, + __dsl_y + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderCoordinatesToWindow")] - public static extern int RenderCoordinatesToWindow( + [return: NativeTypeName("bool")] + public static extern byte RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -8373,12 +9586,13 @@ public static extern int RenderCoordinatesToWindow( float* window_y ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderCoordinatesToWindow( + public static MaybeBool RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -8389,51 +9603,78 @@ Ref window_y fixed (float* __dsl_window_y = window_y) fixed (float* __dsl_window_x = window_x) { - return (int)RenderCoordinatesToWindow( - renderer, - x, - y, - __dsl_window_x, - __dsl_window_y - ); + return (MaybeBool) + (byte)RenderCoordinatesToWindow(renderer, x, y, __dsl_window_x, __dsl_window_y); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderDebugText")] + [return: NativeTypeName("bool")] + public static extern byte RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] sbyte* str + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderDebugText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] Ref str + ) + { + fixed (sbyte* __dsl_str = str) + { + return (MaybeBool)(byte)RenderDebugText(renderer, x, y, __dsl_str); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderFillRect")] - public static extern int RenderFillRect( + [return: NativeTypeName("bool")] + public static extern byte RenderFillRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderFillRect( + public static MaybeBool RenderFillRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ) { fixed (FRect* __dsl_rect = rect) { - return (int)RenderFillRect(renderer, __dsl_rect); + return (MaybeBool)(byte)RenderFillRect(renderer, __dsl_rect); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderFillRects")] - public static extern int RenderFillRects( + [return: NativeTypeName("bool")] + public static extern byte RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderFillRects( + public static MaybeBool RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count @@ -8441,28 +9682,30 @@ int count { fixed (FRect* __dsl_rects = rects) { - return (int)RenderFillRects(renderer, __dsl_rects, count); + return (MaybeBool)(byte)RenderFillRects(renderer, __dsl_rects, count); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderGeometry")] - public static extern int RenderGeometry( + [return: NativeTypeName("bool")] + public static extern byte RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, int num_vertices, [NativeTypeName("const int *")] int* indices, int num_indices ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderGeometry( + public static MaybeBool RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_Vertex *")] Ref vertices, int num_vertices, [NativeTypeName("const int *")] Ref indices, @@ -8471,25 +9714,28 @@ int num_indices { fixed (int* __dsl_indices = indices) fixed (Vertex* __dsl_vertices = vertices) - { - return (int)RenderGeometry( - renderer, - texture, - __dsl_vertices, - num_vertices, - __dsl_indices, - num_indices - ); + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderGeometry( + renderer, + __dsl_texture, + __dsl_vertices, + num_vertices, + __dsl_indices, + num_indices + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderGeometryRaw")] - public static extern int RenderGeometryRaw( + [return: NativeTypeName("bool")] + public static extern byte RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const float *")] float* xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Color* color, + [NativeTypeName("const SDL_FColor *")] FColor* color, int color_stride, [NativeTypeName("const float *")] float* uv, int uv_stride, @@ -8499,17 +9745,18 @@ public static extern int RenderGeometryRaw( int size_indices ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderGeometryRaw( + public static MaybeBool RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const float *")] Ref xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Ref color, + [NativeTypeName("const SDL_FColor *")] Ref color, int color_stride, [NativeTypeName("const float *")] Ref uv, int uv_stride, @@ -8521,86 +9768,42 @@ int size_indices { fixed (void* __dsl_indices = indices) fixed (float* __dsl_uv = uv) - fixed (Color* __dsl_color = color) + fixed (FColor* __dsl_color = color) fixed (float* __dsl_xy = xy) - { - return (int)RenderGeometryRaw( - renderer, - texture, - __dsl_xy, - xy_stride, - __dsl_color, - color_stride, - __dsl_uv, - uv_stride, - num_vertices, - __dsl_indices, - num_indices, - size_indices - ); + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderGeometryRaw( + renderer, + __dsl_texture, + __dsl_xy, + xy_stride, + __dsl_color, + color_stride, + __dsl_uv, + uv_stride, + num_vertices, + __dsl_indices, + num_indices, + size_indices + ); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderGeometryRawFloat")] - public static extern int RenderGeometryRawFloat( - RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] float* xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] FColor* color, - int color_stride, - [NativeTypeName("const float *")] float* uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] void* indices, - int num_indices, - int size_indices - ); - + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int RenderGeometryRawFloat( + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] + public static MaybeBool RenderLine( RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] Ref xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] Ref color, - int color_stride, - [NativeTypeName("const float *")] Ref uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] Ref indices, - int num_indices, - int size_indices - ) - { - fixed (void* __dsl_indices = indices) - fixed (float* __dsl_uv = uv) - fixed (FColor* __dsl_color = color) - fixed (float* __dsl_xy = xy) - { - return (int)RenderGeometryRawFloat( - renderer, - texture, - __dsl_xy, - xy_stride, - __dsl_color, - color_stride, - __dsl_uv, - uv_stride, - num_vertices, - __dsl_indices, - num_indices, - size_indices - ); - } - } + float x1, + float y1, + float x2, + float y2 + ) => (MaybeBool)(byte)RenderLineRaw(renderer, x1, y1, x2, y2); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderLine")] - public static extern int RenderLine( + [return: NativeTypeName("bool")] + public static extern byte RenderLineRaw( RendererHandle renderer, float x1, float y1, @@ -8609,18 +9812,20 @@ float y2 ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderLines")] - public static extern int RenderLines( + [return: NativeTypeName("bool")] + public static extern byte RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderLines( + public static MaybeBool RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count @@ -8628,26 +9833,35 @@ int count { fixed (FPoint* __dsl_points = points) { - return (int)RenderLines(renderer, __dsl_points, count); + return (MaybeBool)(byte)RenderLines(renderer, __dsl_points, count); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] + public static MaybeBool RenderPoint(RendererHandle renderer, float x, float y) => + (MaybeBool)(byte)RenderPointRaw(renderer, x, y); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderPoint")] - public static extern int RenderPoint(RendererHandle renderer, float x, float y); + [return: NativeTypeName("bool")] + public static extern byte RenderPointRaw(RendererHandle renderer, float x, float y); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderPoints")] - public static extern int RenderPoints( + [return: NativeTypeName("bool")] + public static extern byte RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderPoints( + public static MaybeBool RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count @@ -8655,12 +9869,19 @@ int count { fixed (FPoint* __dsl_points = points) { - return (int)RenderPoints(renderer, __dsl_points, count); + return (MaybeBool)(byte)RenderPoints(renderer, __dsl_points, count); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] + public static MaybeBool RenderPresent(RendererHandle renderer) => + (MaybeBool)(byte)RenderPresentRaw(renderer); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderPresent")] - public static extern int RenderPresent(RendererHandle renderer); + [return: NativeTypeName("bool")] + public static extern byte RenderPresentRaw(RendererHandle renderer); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderReadPixels")] public static extern Surface* RenderReadPixels( @@ -8685,40 +9906,44 @@ public static Ptr RenderReadPixels( } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderRect")] - public static extern int RenderRect( + [return: NativeTypeName("bool")] + public static extern byte RenderRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderRect( + public static MaybeBool RenderRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ) { fixed (FRect* __dsl_rect = rect) { - return (int)RenderRect(renderer, __dsl_rect); + return (MaybeBool)(byte)RenderRect(renderer, __dsl_rect); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderRects")] - public static extern int RenderRects( + [return: NativeTypeName("bool")] + public static extern byte RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderRects( + public static MaybeBool RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count @@ -8726,88 +9951,186 @@ int count { fixed (FRect* __dsl_rects = rects) { - return (int)RenderRects(renderer, __dsl_rects, count); + return (MaybeBool)(byte)RenderRects(renderer, __dsl_rects, count); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderTexture")] - public static extern int RenderTexture( + [return: NativeTypeName("bool")] + public static extern byte RenderTexture( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, [NativeTypeName("const SDL_FRect *")] FRect* dstrect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderTexture( + public static MaybeBool RenderTexture( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, [NativeTypeName("const SDL_FRect *")] Ref dstrect ) { fixed (FRect* __dsl_dstrect = dstrect) fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) { - return (int)RenderTexture(renderer, texture, __dsl_srcrect, __dsl_dstrect); + return (MaybeBool) + (byte)RenderTexture(renderer, __dsl_texture, __dsl_srcrect, __dsl_dstrect); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderTexture9Grid")] + [return: NativeTypeName("bool")] + public static extern byte RenderTexture9Grid( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9Grid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderTexture9Grid( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ) + { + fixed (FRect* __dsl_dstrect = dstrect) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderTexture9Grid( + renderer, + __dsl_texture, + __dsl_srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + __dsl_dstrect + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderTextureRotated")] - public static extern int RenderTextureRotated( + [return: NativeTypeName("bool")] + public static extern byte RenderTextureRotated( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, [NativeTypeName("const SDL_FRect *")] FRect* dstrect, - [NativeTypeName("const double")] double angle, + double angle, [NativeTypeName("const SDL_FPoint *")] FPoint* center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip + FlipMode flip ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderTextureRotated( + public static MaybeBool RenderTextureRotated( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, [NativeTypeName("const SDL_FRect *")] Ref dstrect, - [NativeTypeName("const double")] double angle, + double angle, [NativeTypeName("const SDL_FPoint *")] Ref center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip + FlipMode flip ) { fixed (FPoint* __dsl_center = center) fixed (FRect* __dsl_dstrect = dstrect) fixed (FRect* __dsl_srcrect = srcrect) - { - return (int)RenderTextureRotated( - renderer, - texture, - __dsl_srcrect, - __dsl_dstrect, - angle, - __dsl_center, - flip - ); + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderTextureRotated( + renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_dstrect, + angle, + __dsl_center, + flip + ); } } - [return: NativeTypeName("SDL_bool")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderTextureTiled")] + [return: NativeTypeName("bool")] + public static extern byte RenderTextureTiled( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderTextureTiled( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + float scale, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ) + { + fixed (FRect* __dsl_dstrect = dstrect) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderTextureTiled( + renderer, + __dsl_texture, + __dsl_srcrect, + scale, + __dsl_dstrect + ); + } + } + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] - public static MaybeBool RenderViewportSet(RendererHandle renderer) => - (MaybeBool)(int)RenderViewportSetRaw(renderer); + public static MaybeBool RenderViewportSet(RendererHandle renderer) => + (MaybeBool)(byte)RenderViewportSetRaw(renderer); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderViewportSet")] - [return: NativeTypeName("SDL_bool")] - public static extern int RenderViewportSetRaw(RendererHandle renderer); + [return: NativeTypeName("bool")] + public static extern byte RenderViewportSetRaw(RendererHandle renderer); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ReportAssertion")] public static extern AssertState ReportAssertion( @@ -8841,20 +10164,20 @@ int line public static extern void ResetAssertionReport(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ResetHint")] - [return: NativeTypeName("SDL_bool")] - public static extern int ResetHint([NativeTypeName("const char *")] sbyte* name); + [return: NativeTypeName("bool")] + public static extern byte ResetHint([NativeTypeName("const char *")] sbyte* name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref name) + public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref name) { fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)ResetHint(__dsl_name); + return (MaybeBool)(byte)ResetHint(__dsl_name); } } @@ -8864,66 +10187,177 @@ public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref RestoreWindow(WindowHandle window) => + (MaybeBool)(byte)RestoreWindowRaw(window); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RestoreWindow")] - public static extern int RestoreWindow(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte RestoreWindowRaw(WindowHandle window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] + public static MaybeBool ResumeAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ) => (MaybeBool)(byte)ResumeAudioDeviceRaw(dev); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ResumeAudioDevice")] - public static extern int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + [return: NativeTypeName("bool")] + public static extern byte ResumeAudioDeviceRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioStreamDevice")] + public static MaybeBool ResumeAudioStreamDevice(AudioStreamHandle stream) => + (MaybeBool)(byte)ResumeAudioStreamDeviceRaw(stream); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ResumeAudioStreamDevice")] + [return: NativeTypeName("bool")] + public static extern byte ResumeAudioStreamDeviceRaw(AudioStreamHandle stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] + public static MaybeBool ResumeHaptic(HapticHandle haptic) => + (MaybeBool)(byte)ResumeHapticRaw(haptic); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ResumeHaptic")] - public static extern int ResumeHaptic(HapticHandle haptic); + [return: NativeTypeName("bool")] + public static extern byte ResumeHapticRaw(HapticHandle haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] + public static MaybeBool RumbleGamepad( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + (MaybeBool) + (byte)RumbleGamepadRaw( + gamepad, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RumbleGamepad")] - public static extern int RumbleGamepad( + [return: NativeTypeName("bool")] + public static extern byte RumbleGamepadRaw( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] + public static MaybeBool RumbleGamepadTriggers( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + (MaybeBool) + (byte)RumbleGamepadTriggersRaw(gamepad, left_rumble, right_rumble, duration_ms); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RumbleGamepadTriggers")] - public static extern int RumbleGamepadTriggers( + [return: NativeTypeName("bool")] + public static extern byte RumbleGamepadTriggersRaw( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] + public static MaybeBool RumbleJoystick( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + (MaybeBool) + (byte)RumbleJoystickRaw( + joystick, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RumbleJoystick")] - public static extern int RumbleJoystick( + [return: NativeTypeName("bool")] + public static extern byte RumbleJoystickRaw( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] + public static MaybeBool RumbleJoystickTriggers( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + (MaybeBool) + (byte)RumbleJoystickTriggersRaw(joystick, left_rumble, right_rumble, duration_ms); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RumbleJoystickTriggers")] - public static extern int RumbleJoystickTriggers( + [return: NativeTypeName("bool")] + public static extern byte RumbleJoystickTriggersRaw( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] + public static MaybeBool RunHapticEffect( + HapticHandle haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) => (MaybeBool)(byte)RunHapticEffectRaw(haptic, effect, iterations); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RunHapticEffect")] - public static extern int RunHapticEffect( + [return: NativeTypeName("bool")] + public static extern byte RunHapticEffectRaw( HapticHandle haptic, int effect, [NativeTypeName("Uint32")] uint iterations ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SaveBMP")] - public static extern int SaveBMP( + [return: NativeTypeName("bool")] + public static extern byte SaveBMP( Surface* surface, [NativeTypeName("const char *")] sbyte* file ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SaveBMP( + public static MaybeBool SaveBMP( Ref surface, [NativeTypeName("const char *")] Ref file ) @@ -8931,75 +10365,105 @@ public static int SaveBMP( fixed (sbyte* __dsl_file = file) fixed (Surface* __dsl_surface = surface) { - return (int)SaveBMP(__dsl_surface, __dsl_file); + return (MaybeBool)(byte)SaveBMP(__dsl_surface, __dsl_file); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SaveBMP_IO")] - public static extern int SaveBMPIO( + [return: NativeTypeName("bool")] + public static extern byte SaveBMPIO( Surface* surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SaveBMPIO( + public static MaybeBool SaveBMPIO( Ref surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) { fixed (Surface* __dsl_surface = surface) { - return (int)SaveBMPIO(__dsl_surface, dst, (int)closeio); + return (MaybeBool)(byte)SaveBMPIO(__dsl_surface, dst, (byte)closeio); } } - [return: NativeTypeName("SDL_bool")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ScaleSurface")] + public static extern Surface* ScaleSurface( + Surface* surface, + int width, + int height, + ScaleMode scaleMode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScaleSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr ScaleSurface( + Ref surface, + int width, + int height, + ScaleMode scaleMode + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)ScaleSurface(__dsl_surface, width, height, scaleMode); + } + } + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] - public static MaybeBool ScreenKeyboardShown(WindowHandle window) => - (MaybeBool)(int)ScreenKeyboardShownRaw(window); + public static MaybeBool ScreenKeyboardShown(WindowHandle window) => + (MaybeBool)(byte)ScreenKeyboardShownRaw(window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ScreenKeyboardShown")] - [return: NativeTypeName("SDL_bool")] - public static extern int ScreenKeyboardShownRaw(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte ScreenKeyboardShownRaw(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] - public static MaybeBool ScreenSaverEnabled() => - (MaybeBool)(int)ScreenSaverEnabledRaw(); + public static MaybeBool ScreenSaverEnabled() => + (MaybeBool)(byte)ScreenSaverEnabledRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ScreenSaverEnabled")] - [return: NativeTypeName("SDL_bool")] - public static extern int ScreenSaverEnabledRaw(); + [return: NativeTypeName("bool")] + public static extern byte ScreenSaverEnabledRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SeekIO")] [return: NativeTypeName("Sint64")] public static extern long SeekIO( IOStreamHandle context, [NativeTypeName("Sint64")] long offset, - int whence + IOWhence whence ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SendGamepadEffect")] - public static extern int SendGamepadEffect( + [return: NativeTypeName("bool")] + public static extern byte SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] void* data, int size ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SendGamepadEffect( + public static MaybeBool SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] Ref data, int size @@ -9007,23 +10471,25 @@ int size { fixed (void* __dsl_data = data) { - return (int)SendGamepadEffect(gamepad, __dsl_data, size); + return (MaybeBool)(byte)SendGamepadEffect(gamepad, __dsl_data, size); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SendJoystickEffect")] - public static extern int SendJoystickEffect( + [return: NativeTypeName("bool")] + public static extern byte SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] void* data, int size ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SendJoystickEffect( + public static MaybeBool SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] Ref data, int size @@ -9031,7 +10497,98 @@ int size { fixed (void* __dsl_data = data) { - return (int)SendJoystickEffect(joystick, __dsl_data, size); + return (MaybeBool)(byte)SendJoystickEffect(joystick, __dsl_data, size); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SendJoystickVirtualSensorData")] + [return: NativeTypeName("bool")] + public static extern byte SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] float* data, + int num_values + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickVirtualSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] Ref data, + int num_values + ) + { + fixed (float* __dsl_data = data) + { + return (MaybeBool) + (byte)SendJoystickVirtualSensorData( + joystick, + type, + sensor_timestamp, + __dsl_data, + num_values + ); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAppMetadata")] + [return: NativeTypeName("bool")] + public static extern byte SetAppMetadata( + [NativeTypeName("const char *")] sbyte* appname, + [NativeTypeName("const char *")] sbyte* appversion, + [NativeTypeName("const char *")] sbyte* appidentifier + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadata")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetAppMetadata( + [NativeTypeName("const char *")] Ref appname, + [NativeTypeName("const char *")] Ref appversion, + [NativeTypeName("const char *")] Ref appidentifier + ) + { + fixed (sbyte* __dsl_appidentifier = appidentifier) + fixed (sbyte* __dsl_appversion = appversion) + fixed (sbyte* __dsl_appname = appname) + { + return (MaybeBool) + (byte)SetAppMetadata(__dsl_appname, __dsl_appversion, __dsl_appidentifier); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAppMetadataProperty")] + [return: NativeTypeName("bool")] + public static extern byte SetAppMetadataProperty( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadataProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetAppMetadataProperty( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ) + { + fixed (sbyte* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(byte)SetAppMetadataProperty(__dsl_name, __dsl_value); } } @@ -9057,19 +10614,87 @@ Ref userdata } } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAtomicInt")] + public static extern int SetAtomicInt(AtomicInt* a, int v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAtomicInt(Ref a, int v) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)SetAtomicInt(__dsl_a, v); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAtomicPointer")] + public static extern void* SetAtomicPointer(void** a, void* v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr SetAtomicPointer(Ref2D a, Ref v) + { + fixed (void* __dsl_v = v) + fixed (void** __dsl_a = a) + { + return (void*)SetAtomicPointer(__dsl_a, __dsl_v); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAtomicU32")] + [return: NativeTypeName("Uint32")] + public static extern uint SetAtomicU32(AtomicU32* a, [NativeTypeName("Uint32")] uint v); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint SetAtomicU32(Ref a, [NativeTypeName("Uint32")] uint v) + { + fixed (AtomicU32* __dsl_a = a) + { + return (uint)SetAtomicU32(__dsl_a, v); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioDeviceGain")] + public static MaybeBool SetAudioDeviceGain( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + float gain + ) => (MaybeBool)(byte)SetAudioDeviceGainRaw(devid, gain); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAudioDeviceGain")] + [return: NativeTypeName("bool")] + public static extern byte SetAudioDeviceGainRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + float gain + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAudioPostmixCallback")] - public static extern int SetAudioPostmixCallback( + [return: NativeTypeName("bool")] + public static extern byte SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioPostmixCallback( + public static MaybeBool SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, Ref userdata @@ -9077,23 +10702,26 @@ Ref userdata { fixed (void* __dsl_userdata = userdata) { - return (int)SetAudioPostmixCallback(devid, callback, __dsl_userdata); + return (MaybeBool) + (byte)SetAudioPostmixCallback(devid, callback, __dsl_userdata); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAudioStreamFormat")] - public static extern int SetAudioStreamFormat( + [return: NativeTypeName("bool")] + public static extern byte SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioStreamFormat( + public static MaybeBool SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec @@ -9102,29 +10730,51 @@ public static int SetAudioStreamFormat( fixed (AudioSpec* __dsl_dst_spec = dst_spec) fixed (AudioSpec* __dsl_src_spec = src_spec) { - return (int)SetAudioStreamFormat(stream, __dsl_src_spec, __dsl_dst_spec); + return (MaybeBool) + (byte)SetAudioStreamFormat(stream, __dsl_src_spec, __dsl_dst_spec); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] + public static MaybeBool SetAudioStreamFrequencyRatio( + AudioStreamHandle stream, + float ratio + ) => (MaybeBool)(byte)SetAudioStreamFrequencyRatioRaw(stream, ratio); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] - public static extern int SetAudioStreamFrequencyRatio( + [return: NativeTypeName("bool")] + public static extern byte SetAudioStreamFrequencyRatioRaw( AudioStreamHandle stream, float ratio ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGain")] + public static MaybeBool SetAudioStreamGain(AudioStreamHandle stream, float gain) => + (MaybeBool)(byte)SetAudioStreamGainRaw(stream, gain); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAudioStreamGain")] + [return: NativeTypeName("bool")] + public static extern byte SetAudioStreamGainRaw(AudioStreamHandle stream, float gain); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAudioStreamGetCallback")] - public static extern int SetAudioStreamGetCallback( + [return: NativeTypeName("bool")] + public static extern byte SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioStreamGetCallback( + public static MaybeBool SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata @@ -9132,23 +10782,80 @@ Ref userdata { fixed (void* __dsl_userdata = userdata) { - return (int)SetAudioStreamGetCallback(stream, callback, __dsl_userdata); + return (MaybeBool) + (byte)SetAudioStreamGetCallback(stream, callback, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAudioStreamInputChannelMap")] + [return: NativeTypeName("bool")] + public static extern byte SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamInputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ) + { + fixed (int* __dsl_chmap = chmap) + { + return (MaybeBool) + (byte)SetAudioStreamInputChannelMap(stream, __dsl_chmap, count); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAudioStreamOutputChannelMap")] + [return: NativeTypeName("bool")] + public static extern byte SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamOutputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ) + { + fixed (int* __dsl_chmap = chmap) + { + return (MaybeBool) + (byte)SetAudioStreamOutputChannelMap(stream, __dsl_chmap, count); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetAudioStreamPutCallback")] - public static extern int SetAudioStreamPutCallback( + [return: NativeTypeName("bool")] + public static extern byte SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioStreamPutCallback( + public static MaybeBool SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata @@ -9156,36 +10863,40 @@ Ref userdata { fixed (void* __dsl_userdata = userdata) { - return (int)SetAudioStreamPutCallback(stream, callback, __dsl_userdata); + return (MaybeBool) + (byte)SetAudioStreamPutCallback(stream, callback, __dsl_userdata); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetBooleanProperty")] - public static extern int SetBooleanProperty( + [return: NativeTypeName("bool")] + public static extern byte SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int value + [NativeTypeName("bool")] byte value ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetBooleanProperty( + public static MaybeBool SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool value + [NativeTypeName("bool")] MaybeBool value ) { fixed (sbyte* __dsl_name = name) { - return (int)SetBooleanProperty(props, __dsl_name, (int)value); + return (MaybeBool)(byte)SetBooleanProperty(props, __dsl_name, (byte)value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetClipboardData")] - public static extern int SetClipboardData( + [return: NativeTypeName("bool")] + public static extern byte SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, void* userdata, @@ -9193,12 +10904,13 @@ public static extern int SetClipboardData( [NativeTypeName("size_t")] nuint num_mime_types ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetClipboardData( + public static MaybeBool SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, Ref userdata, @@ -9209,47 +10921,94 @@ public static int SetClipboardData( fixed (sbyte** __dsl_mime_types = mime_types) fixed (void* __dsl_userdata = userdata) { - return (int)SetClipboardData( - callback, - cleanup, - __dsl_userdata, - __dsl_mime_types, - num_mime_types - ); + return (MaybeBool) + (byte)SetClipboardData( + callback, + cleanup, + __dsl_userdata, + __dsl_mime_types, + num_mime_types + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetClipboardText")] - public static extern int SetClipboardText([NativeTypeName("const char *")] sbyte* text); + [return: NativeTypeName("bool")] + public static extern byte SetClipboardText([NativeTypeName("const char *")] sbyte* text); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetClipboardText([NativeTypeName("const char *")] Ref text) + public static MaybeBool SetClipboardText( + [NativeTypeName("const char *")] Ref text + ) { fixed (sbyte* __dsl_text = text) { - return (int)SetClipboardText(__dsl_text); + return (MaybeBool)(byte)SetClipboardText(__dsl_text); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCurrentThreadPriority")] + public static MaybeBool SetCurrentThreadPriority(ThreadPriority priority) => + (MaybeBool)(byte)SetCurrentThreadPriorityRaw(priority); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetCurrentThreadPriority")] + [return: NativeTypeName("bool")] + public static extern byte SetCurrentThreadPriorityRaw(ThreadPriority priority); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] + public static MaybeBool SetCursor(CursorHandle cursor) => + (MaybeBool)(byte)SetCursorRaw(cursor); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetCursor")] - public static extern int SetCursor(CursorHandle cursor); + [return: NativeTypeName("bool")] + public static extern byte SetCursorRaw(CursorHandle cursor); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetErrorV")] + [return: NativeTypeName("bool")] + public static extern byte SetErrorV( + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetErrorV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetErrorV( + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) + { + fixed (sbyte* __dsl_ap = ap) + fixed (sbyte* __dsl_fmt = fmt) + { + return (MaybeBool)(byte)SetErrorV(__dsl_fmt, __dsl_ap); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetEventEnabled")] public static extern void SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] public static void SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] MaybeBool enabled - ) => SetEventEnabled(type, (int)enabled); + [NativeTypeName("bool")] MaybeBool enabled + ) => SetEventEnabled(type, (byte)enabled); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetEventFilter")] public static extern void SetEventFilter( @@ -9274,18 +11033,20 @@ Ref userdata } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetFloatProperty")] - public static extern int SetFloatProperty( + [return: NativeTypeName("bool")] + public static extern byte SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, float value ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetFloatProperty( + public static MaybeBool SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, float value @@ -9293,21 +11054,32 @@ float value { fixed (sbyte* __dsl_name = name) { - return (int)SetFloatProperty(props, __dsl_name, value); + return (MaybeBool)(byte)SetFloatProperty(props, __dsl_name, value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetGamepadEventsEnabled")] - public static extern void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled); + public static extern void SetGamepadEventsEnabled([NativeTypeName("bool")] byte enabled); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] public static void SetGamepadEventsEnabled( - [NativeTypeName("SDL_bool")] MaybeBool enabled - ) => SetGamepadEventsEnabled((int)enabled); + [NativeTypeName("bool")] MaybeBool enabled + ) => SetGamepadEventsEnabled((byte)enabled); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] + public static MaybeBool SetGamepadLED( + GamepadHandle gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => (MaybeBool)(byte)SetGamepadLEDRaw(gamepad, red, green, blue); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetGamepadLED")] - public static extern int SetGamepadLED( + [return: NativeTypeName("bool")] + public static extern byte SetGamepadLEDRaw( GamepadHandle gamepad, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, @@ -9315,65 +11087,92 @@ public static extern int SetGamepadLED( ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetGamepadMapping")] - public static extern int SetGamepadMapping( + [return: NativeTypeName("bool")] + public static extern byte SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] sbyte* mapping ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetGamepadMapping( + public static MaybeBool SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] Ref mapping ) { fixed (sbyte* __dsl_mapping = mapping) { - return (int)SetGamepadMapping(instance_id, __dsl_mapping); + return (MaybeBool)(byte)SetGamepadMapping(instance_id, __dsl_mapping); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] + public static MaybeBool SetGamepadPlayerIndex( + GamepadHandle gamepad, + int player_index + ) => (MaybeBool)(byte)SetGamepadPlayerIndexRaw(gamepad, player_index); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetGamepadPlayerIndex")] - public static extern int SetGamepadPlayerIndex(GamepadHandle gamepad, int player_index); + [return: NativeTypeName("bool")] + public static extern byte SetGamepadPlayerIndexRaw(GamepadHandle gamepad, int player_index); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetGamepadSensorEnabled")] - public static extern int SetGamepadSensorEnabled( + [return: NativeTypeName("bool")] + public static extern byte SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] - public static int SetGamepadSensorEnabled( + public static MaybeBool SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] MaybeBool enabled - ) => (int)SetGamepadSensorEnabled(gamepad, type, (int)enabled); + [NativeTypeName("bool")] MaybeBool enabled + ) => (MaybeBool)(byte)SetGamepadSensorEnabled(gamepad, type, (byte)enabled); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] + public static MaybeBool SetHapticAutocenter(HapticHandle haptic, int autocenter) => + (MaybeBool)(byte)SetHapticAutocenterRaw(haptic, autocenter); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetHapticAutocenter")] - public static extern int SetHapticAutocenter(HapticHandle haptic, int autocenter); + [return: NativeTypeName("bool")] + public static extern byte SetHapticAutocenterRaw(HapticHandle haptic, int autocenter); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] + public static MaybeBool SetHapticGain(HapticHandle haptic, int gain) => + (MaybeBool)(byte)SetHapticGainRaw(haptic, gain); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetHapticGain")] - public static extern int SetHapticGain(HapticHandle haptic, int gain); + [return: NativeTypeName("bool")] + public static extern byte SetHapticGainRaw(HapticHandle haptic, int gain); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetHint")] - [return: NativeTypeName("SDL_bool")] - public static extern int SetHint( + [return: NativeTypeName("bool")] + public static extern byte SetHint( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool SetHint( + public static MaybeBool SetHint( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value ) @@ -9381,25 +11180,25 @@ public static MaybeBool SetHint( fixed (sbyte* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)SetHint(__dsl_name, __dsl_value); + return (MaybeBool)(byte)SetHint(__dsl_name, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetHintWithPriority")] - [return: NativeTypeName("SDL_bool")] - public static extern int SetHintWithPriority( + [return: NativeTypeName("bool")] + public static extern byte SetHintWithPriority( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value, HintPriority priority ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool SetHintWithPriority( + public static MaybeBool SetHintWithPriority( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value, HintPriority priority @@ -9408,53 +11207,181 @@ HintPriority priority fixed (sbyte* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)SetHintWithPriority(__dsl_name, __dsl_value, priority); + return (MaybeBool) + (byte)SetHintWithPriority(__dsl_name, __dsl_value, priority); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetJoystickEventsEnabled")] - public static extern void SetJoystickEventsEnabled( - [NativeTypeName("SDL_bool")] int enabled + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetInitialized")] + public static extern void SetInitialized( + InitState* state, + [NativeTypeName("bool")] byte initialized ); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetInitialized")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetInitialized( + Ref state, + [NativeTypeName("bool")] MaybeBool initialized + ) + { + fixed (InitState* __dsl_state = state) + { + SetInitialized(__dsl_state, (byte)initialized); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetJoystickEventsEnabled")] + public static extern void SetJoystickEventsEnabled([NativeTypeName("bool")] byte enabled); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] public static void SetJoystickEventsEnabled( - [NativeTypeName("SDL_bool")] MaybeBool enabled - ) => SetJoystickEventsEnabled((int)enabled); + [NativeTypeName("bool")] MaybeBool enabled + ) => SetJoystickEventsEnabled((byte)enabled); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] + public static MaybeBool SetJoystickLED( + JoystickHandle joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => (MaybeBool)(byte)SetJoystickLEDRaw(joystick, red, green, blue); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetJoystickLED")] - public static extern int SetJoystickLED( + [return: NativeTypeName("bool")] + public static extern byte SetJoystickLEDRaw( JoystickHandle joystick, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] + public static MaybeBool SetJoystickPlayerIndex( + JoystickHandle joystick, + int player_index + ) => (MaybeBool)(byte)SetJoystickPlayerIndexRaw(joystick, player_index); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetJoystickPlayerIndex")] - public static extern int SetJoystickPlayerIndex(JoystickHandle joystick, int player_index); + [return: NativeTypeName("bool")] + public static extern byte SetJoystickPlayerIndexRaw( + JoystickHandle joystick, + int player_index + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] + public static MaybeBool SetJoystickVirtualAxis( + JoystickHandle joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) => (MaybeBool)(byte)SetJoystickVirtualAxisRaw(joystick, axis, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetJoystickVirtualAxis")] - public static extern int SetJoystickVirtualAxis( + [return: NativeTypeName("bool")] + public static extern byte SetJoystickVirtualAxisRaw( JoystickHandle joystick, int axis, [NativeTypeName("Sint16")] short value ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualBall")] + public static MaybeBool SetJoystickVirtualBall( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ) => (MaybeBool)(byte)SetJoystickVirtualBallRaw(joystick, ball, xrel, yrel); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetJoystickVirtualBall")] + [return: NativeTypeName("bool")] + public static extern byte SetJoystickVirtualBallRaw( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetJoystickVirtualButton")] - public static extern int SetJoystickVirtualButton( + [return: NativeTypeName("bool")] + public static extern byte SetJoystickVirtualButton( JoystickHandle joystick, int button, - [NativeTypeName("Uint8")] byte value + [NativeTypeName("bool")] byte down ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] + public static MaybeBool SetJoystickVirtualButton( + JoystickHandle joystick, + int button, + [NativeTypeName("bool")] MaybeBool down + ) => (MaybeBool)(byte)SetJoystickVirtualButton(joystick, button, (byte)down); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] + public static MaybeBool SetJoystickVirtualHat( + JoystickHandle joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) => (MaybeBool)(byte)SetJoystickVirtualHatRaw(joystick, hat, value); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetJoystickVirtualHat")] - public static extern int SetJoystickVirtualHat( + [return: NativeTypeName("bool")] + public static extern byte SetJoystickVirtualHatRaw( JoystickHandle joystick, int hat, [NativeTypeName("Uint8")] byte value ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetJoystickVirtualTouchpad")] + [return: NativeTypeName("bool")] + public static extern byte SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] byte down, + float x, + float y, + float pressure + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualTouchpad")] + public static MaybeBool SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] MaybeBool down, + float x, + float y, + float pressure + ) => + (MaybeBool) + (byte)SetJoystickVirtualTouchpad( + joystick, + touchpad, + finger, + (byte)down, + x, + y, + pressure + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetLogOutputFunction")] public static extern void SetLogOutputFunction( [NativeTypeName("SDL_LogOutputFunction")] LogOutputFunction callback, @@ -9477,22 +11404,54 @@ Ref userdata } } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetLogPriorities")] + public static extern void SetLogPriorities(LogPriority priority); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetLogPriority")] + public static extern void SetLogPriority(int category, LogPriority priority); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetLogPriorityPrefix")] + [return: NativeTypeName("bool")] + public static extern byte SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] sbyte* prefix + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorityPrefix")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] Ref prefix + ) + { + fixed (sbyte* __dsl_prefix = prefix) + { + return (MaybeBool)(byte)SetLogPriorityPrefix(priority, __dsl_prefix); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetModState")] - public static extern void SetModState(Keymod modstate); + public static extern void SetModState([NativeTypeName("SDL_Keymod")] ushort modstate); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetNumberProperty")] - public static extern int SetNumberProperty( + [return: NativeTypeName("bool")] + public static extern byte SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("Sint64")] long value ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetNumberProperty( + public static MaybeBool SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("Sint64")] long value @@ -9500,24 +11459,26 @@ public static int SetNumberProperty( { fixed (sbyte* __dsl_name = name) { - return (int)SetNumberProperty(props, __dsl_name, value); + return (MaybeBool)(byte)SetNumberProperty(props, __dsl_name, value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetPaletteColors")] - public static extern int SetPaletteColors( + [return: NativeTypeName("bool")] + public static extern byte SetPaletteColors( Palette* palette, [NativeTypeName("const SDL_Color *")] Color* colors, int firstcolor, int ncolors ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetPaletteColors( + public static MaybeBool SetPaletteColors( Ref palette, [NativeTypeName("const SDL_Color *")] Ref colors, int firstcolor, @@ -9527,58 +11488,26 @@ int ncolors fixed (Color* __dsl_colors = colors) fixed (Palette* __dsl_palette = palette) { - return (int)SetPaletteColors(__dsl_palette, __dsl_colors, firstcolor, ncolors); - } - } - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetPixelFormatPalette")] - public static extern int SetPixelFormatPalette(PixelFormat* format, Palette* palette); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int SetPixelFormatPalette(Ref format, Ref palette) - { - fixed (Palette* __dsl_palette = palette) - fixed (PixelFormat* __dsl_format = format) - { - return (int)SetPixelFormatPalette(__dsl_format, __dsl_palette); - } - } - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetPrimarySelectionText")] - public static extern int SetPrimarySelectionText( - [NativeTypeName("const char *")] sbyte* text - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int SetPrimarySelectionText([NativeTypeName("const char *")] Ref text) - { - fixed (sbyte* __dsl_text = text) - { - return (int)SetPrimarySelectionText(__dsl_text); + return (MaybeBool) + (byte)SetPaletteColors(__dsl_palette, __dsl_colors, firstcolor, ncolors); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetProperty")] - public static extern int SetProperty( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetPointerProperty")] + [return: NativeTypeName("bool")] + public static extern byte SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetProperty( + public static MaybeBool SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value @@ -9587,29 +11516,31 @@ Ref value fixed (void* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (int)SetProperty(props, __dsl_name, __dsl_value); + return (MaybeBool)(byte)SetPointerProperty(props, __dsl_name, __dsl_value); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetPropertyWithCleanup")] - public static extern int SetPropertyWithCleanup( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetPointerPropertyWithCleanup")] + [return: NativeTypeName("bool")] + public static extern byte SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, void* userdata ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerPropertyWithCleanup")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetPropertyWithCleanup( + public static MaybeBool SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, Ref userdata ) { @@ -9617,67 +11548,113 @@ Ref userdata fixed (void* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (int)SetPropertyWithCleanup( - props, - __dsl_name, - __dsl_value, - cleanup, - __dsl_userdata - ); + return (MaybeBool) + (byte)SetPointerPropertyWithCleanup( + props, + __dsl_name, + __dsl_value, + cleanup, + __dsl_userdata + ); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRelativeMouseMode")] - public static extern int SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetPrimarySelectionText")] + [return: NativeTypeName("bool")] + public static extern byte SetPrimarySelectionText( + [NativeTypeName("const char *")] sbyte* text + ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] - public static int SetRelativeMouseMode( - [NativeTypeName("SDL_bool")] MaybeBool enabled - ) => (int)SetRelativeMouseMode((int)enabled); + [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetPrimarySelectionText( + [NativeTypeName("const char *")] Ref text + ) + { + fixed (sbyte* __dsl_text = text) + { + return (MaybeBool)(byte)SetPrimarySelectionText(__dsl_text); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderClipRect")] - public static extern int SetRenderClipRect( + [return: NativeTypeName("bool")] + public static extern byte SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderClipRect( + public static MaybeBool SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)SetRenderClipRect(renderer, __dsl_rect); + return (MaybeBool)(byte)SetRenderClipRect(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] + public static MaybeBool SetRenderColorScale(RendererHandle renderer, float scale) => + (MaybeBool)(byte)SetRenderColorScaleRaw(renderer, scale); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderColorScale")] - public static extern int SetRenderColorScale(RendererHandle renderer, float scale); + [return: NativeTypeName("bool")] + public static extern byte SetRenderColorScaleRaw(RendererHandle renderer, float scale); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] + public static MaybeBool SetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => (MaybeBool)(byte)SetRenderDrawBlendModeRaw(renderer, blendMode); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderDrawBlendMode")] - public static extern int SetRenderDrawBlendMode( + [return: NativeTypeName("bool")] + public static extern byte SetRenderDrawBlendModeRaw( RendererHandle renderer, - BlendMode blendMode + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode ); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderDrawColor")] - public static extern int SetRenderDrawColor( + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] + public static MaybeBool SetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a - ); + ) => (MaybeBool)(byte)SetRenderDrawColorRaw(renderer, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] + public static MaybeBool SetRenderDrawColorFloat( + RendererHandle renderer, + float r, + float g, + float b, + float a + ) => (MaybeBool)(byte)SetRenderDrawColorFloatRaw(renderer, r, g, b, a); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderDrawColorFloat")] - public static extern int SetRenderDrawColorFloat( + [return: NativeTypeName("bool")] + public static extern byte SetRenderDrawColorFloatRaw( RendererHandle renderer, float r, float g, @@ -9685,63 +11662,143 @@ public static extern int SetRenderDrawColorFloat( float a ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderDrawColor")] + [return: NativeTypeName("bool")] + public static extern byte SetRenderDrawColorRaw( + RendererHandle renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] + public static MaybeBool SetRenderLogicalPresentation( + RendererHandle renderer, + int w, + int h, + RendererLogicalPresentation mode + ) => (MaybeBool)(byte)SetRenderLogicalPresentationRaw(renderer, w, h, mode); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderLogicalPresentation")] - public static extern int SetRenderLogicalPresentation( + [return: NativeTypeName("bool")] + public static extern byte SetRenderLogicalPresentationRaw( RendererHandle renderer, int w, int h, - RendererLogicalPresentation mode, - ScaleMode scale_mode + RendererLogicalPresentation mode ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] + public static MaybeBool SetRenderScale( + RendererHandle renderer, + float scaleX, + float scaleY + ) => (MaybeBool)(byte)SetRenderScaleRaw(renderer, scaleX, scaleY); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderScale")] - public static extern int SetRenderScale( + [return: NativeTypeName("bool")] + public static extern byte SetRenderScaleRaw( RendererHandle renderer, float scaleX, float scaleY ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderTarget")] - public static extern int SetRenderTarget(RendererHandle renderer, TextureHandle texture); + [return: NativeTypeName("bool")] + public static extern byte SetRenderTarget(RendererHandle renderer, Texture* texture); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetRenderTarget(RendererHandle renderer, Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetRenderTarget(renderer, __dsl_texture); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderViewport")] - public static extern int SetRenderViewport( + [return: NativeTypeName("bool")] + public static extern byte SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderViewport( + public static MaybeBool SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)SetRenderViewport(renderer, __dsl_rect); + return (MaybeBool)(byte)SetRenderViewport(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] + public static MaybeBool SetRenderVSync(RendererHandle renderer, int vsync) => + (MaybeBool)(byte)SetRenderVSyncRaw(renderer, vsync); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderVSync")] - public static extern int SetRenderVSync(RendererHandle renderer, int vsync); + [return: NativeTypeName("bool")] + public static extern byte SetRenderVSyncRaw(RendererHandle renderer, int vsync); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetScancodeName")] + [return: NativeTypeName("bool")] + public static extern byte SetScancodeName( + Scancode scancode, + [NativeTypeName("const char *")] sbyte* name + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetScancodeName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetScancodeName( + Scancode scancode, + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(byte)SetScancodeName(scancode, __dsl_name); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetStringProperty")] - public static extern int SetStringProperty( + [return: NativeTypeName("bool")] + public static extern byte SetStringProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetStringProperty( + public static MaybeBool SetStringProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value @@ -9750,62 +11807,72 @@ public static int SetStringProperty( fixed (sbyte* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (int)SetStringProperty(props, __dsl_name, __dsl_value); + return (MaybeBool)(byte)SetStringProperty(props, __dsl_name, __dsl_value); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetSurfaceAlphaMod")] - public static extern int SetSurfaceAlphaMod( + [return: NativeTypeName("bool")] + public static extern byte SetSurfaceAlphaMod( Surface* surface, [NativeTypeName("Uint8")] byte alpha ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceAlphaMod( + public static MaybeBool SetSurfaceAlphaMod( Ref surface, [NativeTypeName("Uint8")] byte alpha ) { fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfaceAlphaMod(__dsl_surface, alpha); + return (MaybeBool)(byte)SetSurfaceAlphaMod(__dsl_surface, alpha); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetSurfaceBlendMode")] - public static extern int SetSurfaceBlendMode(Surface* surface, BlendMode blendMode); + [return: NativeTypeName("bool")] + public static extern byte SetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceBlendMode(Ref surface, BlendMode blendMode) + public static MaybeBool SetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) { fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfaceBlendMode(__dsl_surface, blendMode); + return (MaybeBool)(byte)SetSurfaceBlendMode(__dsl_surface, blendMode); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetSurfaceClipRect")] - [return: NativeTypeName("SDL_bool")] - public static extern int SetSurfaceClipRect( + [return: NativeTypeName("bool")] + public static extern byte SetSurfaceClipRect( Surface* surface, [NativeTypeName("const SDL_Rect *")] Rect* rect ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool SetSurfaceClipRect( + public static MaybeBool SetSurfaceClipRect( Ref surface, [NativeTypeName("const SDL_Rect *")] Ref rect ) @@ -9813,48 +11880,52 @@ public static MaybeBool SetSurfaceClipRect( fixed (Rect* __dsl_rect = rect) fixed (Surface* __dsl_surface = surface) { - return (MaybeBool)(int)SetSurfaceClipRect(__dsl_surface, __dsl_rect); + return (MaybeBool)(byte)SetSurfaceClipRect(__dsl_surface, __dsl_rect); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetSurfaceColorKey")] - public static extern int SetSurfaceColorKey( + [return: NativeTypeName("bool")] + public static extern byte SetSurfaceColorKey( Surface* surface, - int flag, + [NativeTypeName("bool")] byte enabled, [NativeTypeName("Uint32")] uint key ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceColorKey( + public static MaybeBool SetSurfaceColorKey( Ref surface, - int flag, + [NativeTypeName("bool")] MaybeBool enabled, [NativeTypeName("Uint32")] uint key ) { fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfaceColorKey(__dsl_surface, flag, key); + return (MaybeBool)(byte)SetSurfaceColorKey(__dsl_surface, (byte)enabled, key); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetSurfaceColorMod")] - public static extern int SetSurfaceColorMod( + [return: NativeTypeName("bool")] + public static extern byte SetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceColorMod( + public static MaybeBool SetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, @@ -9863,220 +11934,383 @@ public static int SetSurfaceColorMod( { fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfaceColorMod(__dsl_surface, r, g, b); + return (MaybeBool)(byte)SetSurfaceColorMod(__dsl_surface, r, g, b); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetSurfaceColorspace")] - public static extern int SetSurfaceColorspace(Surface* surface, Colorspace colorspace); + [return: NativeTypeName("bool")] + public static extern byte SetSurfaceColorspace(Surface* surface, Colorspace colorspace); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceColorspace(Ref surface, Colorspace colorspace) + public static MaybeBool SetSurfaceColorspace( + Ref surface, + Colorspace colorspace + ) { fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfaceColorspace(__dsl_surface, colorspace); + return (MaybeBool)(byte)SetSurfaceColorspace(__dsl_surface, colorspace); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetSurfacePalette")] - public static extern int SetSurfacePalette(Surface* surface, Palette* palette); + [return: NativeTypeName("bool")] + public static extern byte SetSurfacePalette(Surface* surface, Palette* palette); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfacePalette(Ref surface, Ref palette) + public static MaybeBool SetSurfacePalette(Ref surface, Ref palette) { fixed (Palette* __dsl_palette = palette) fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfacePalette(__dsl_surface, __dsl_palette); + return (MaybeBool)(byte)SetSurfacePalette(__dsl_surface, __dsl_palette); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetSurfaceRLE")] - public static extern int SetSurfaceRLE(Surface* surface, int flag); + [return: NativeTypeName("bool")] + public static extern byte SetSurfaceRLE( + Surface* surface, + [NativeTypeName("bool")] byte enabled + ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceRLE(Ref surface, int flag) + public static MaybeBool SetSurfaceRLE( + Ref surface, + [NativeTypeName("bool")] MaybeBool enabled + ) { fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfaceRLE(__dsl_surface, flag); + return (MaybeBool)(byte)SetSurfaceRLE(__dsl_surface, (byte)enabled); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetTextInputRect")] - public static extern int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetTextInputArea")] + [return: NativeTypeName("bool")] + public static extern byte SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int cursor + ); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputArea")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect) + public static MaybeBool SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Ref rect, + int cursor + ) { fixed (Rect* __dsl_rect = rect) { - return (int)SetTextInputRect(__dsl_rect); + return (MaybeBool)(byte)SetTextInputArea(window, __dsl_rect, cursor); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetTextureAlphaMod")] - public static extern int SetTextureAlphaMod( - TextureHandle texture, + [return: NativeTypeName("bool")] + public static extern byte SetTextureAlphaMod( + Texture* texture, [NativeTypeName("Uint8")] byte alpha ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8")] byte alpha + ) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTextureAlphaMod(__dsl_texture, alpha); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetTextureAlphaModFloat")] - public static extern int SetTextureAlphaModFloat(TextureHandle texture, float alpha); + [return: NativeTypeName("bool")] + public static extern byte SetTextureAlphaModFloat(Texture* texture, float alpha); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetTextureAlphaModFloat(Ref texture, float alpha) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTextureAlphaModFloat(__dsl_texture, alpha); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetTextureBlendMode")] - public static extern int SetTextureBlendMode(TextureHandle texture, BlendMode blendMode); + [return: NativeTypeName("bool")] + public static extern byte SetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTextureBlendMode(__dsl_texture, blendMode); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetTextureColorMod")] - public static extern int SetTextureColorMod( - TextureHandle texture, + [return: NativeTypeName("bool")] + public static extern byte SetTextureColorMod( + Texture* texture, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTextureColorMod(__dsl_texture, r, g, b); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetTextureColorModFloat")] - public static extern int SetTextureColorModFloat( - TextureHandle texture, + [return: NativeTypeName("bool")] + public static extern byte SetTextureColorModFloat( + Texture* texture, float r, float g, float b ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetTextureColorModFloat( + Ref texture, + float r, + float g, + float b + ) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTextureColorModFloat(__dsl_texture, r, g, b); + } + } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetTextureScaleMode")] - public static extern int SetTextureScaleMode(TextureHandle texture, ScaleMode scaleMode); + [return: NativeTypeName("bool")] + public static extern byte SetTextureScaleMode(Texture* texture, ScaleMode scaleMode); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetThreadPriority")] - public static extern int SetThreadPriority(ThreadPriority priority); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetTextureScaleMode(Ref texture, ScaleMode scaleMode) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTextureScaleMode(__dsl_texture, scaleMode); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetTLS")] - public static extern int SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + [return: NativeTypeName("bool")] + public static extern byte SetTLS( + [NativeTypeName("SDL_TLSID *")] AtomicInt* id, [NativeTypeName("const void *")] void* value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + public static MaybeBool SetTLS( + [NativeTypeName("SDL_TLSID *")] Ref id, [NativeTypeName("const void *")] Ref value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ) { fixed (void* __dsl_value = value) + fixed (AtomicInt* __dsl_id = id) { - return (int)SetTLS(id, __dsl_value, destructor); + return (MaybeBool)(byte)SetTLS(__dsl_id, __dsl_value, destructor); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowAlwaysOnTop")] - public static extern int SetWindowAlwaysOnTop( + [return: NativeTypeName("bool")] + public static extern byte SetWindowAlwaysOnTop( WindowHandle window, - [NativeTypeName("SDL_bool")] int on_top + [NativeTypeName("bool")] byte on_top ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] - public static int SetWindowAlwaysOnTop( + public static MaybeBool SetWindowAlwaysOnTop( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool on_top + ) => (MaybeBool)(byte)SetWindowAlwaysOnTop(window, (byte)on_top); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAspectRatio")] + public static MaybeBool SetWindowAspectRatio( + WindowHandle window, + float min_aspect, + float max_aspect + ) => (MaybeBool)(byte)SetWindowAspectRatioRaw(window, min_aspect, max_aspect); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowAspectRatio")] + [return: NativeTypeName("bool")] + public static extern byte SetWindowAspectRatioRaw( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool on_top - ) => (int)SetWindowAlwaysOnTop(window, (int)on_top); + float min_aspect, + float max_aspect + ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowBordered")] - public static extern int SetWindowBordered( + [return: NativeTypeName("bool")] + public static extern byte SetWindowBordered( WindowHandle window, - [NativeTypeName("SDL_bool")] int bordered + [NativeTypeName("bool")] byte bordered ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] - public static int SetWindowBordered( + public static MaybeBool SetWindowBordered( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool bordered - ) => (int)SetWindowBordered(window, (int)bordered); + [NativeTypeName("bool")] MaybeBool bordered + ) => (MaybeBool)(byte)SetWindowBordered(window, (byte)bordered); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowFocusable")] - public static extern int SetWindowFocusable( + [return: NativeTypeName("bool")] + public static extern byte SetWindowFocusable( WindowHandle window, - [NativeTypeName("SDL_bool")] int focusable + [NativeTypeName("bool")] byte focusable ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] - public static int SetWindowFocusable( + public static MaybeBool SetWindowFocusable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool focusable - ) => (int)SetWindowFocusable(window, (int)focusable); + [NativeTypeName("bool")] MaybeBool focusable + ) => (MaybeBool)(byte)SetWindowFocusable(window, (byte)focusable); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowFullscreen")] - public static extern int SetWindowFullscreen( + [return: NativeTypeName("bool")] + public static extern byte SetWindowFullscreen( WindowHandle window, - [NativeTypeName("SDL_bool")] int fullscreen + [NativeTypeName("bool")] byte fullscreen ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] - public static int SetWindowFullscreen( + public static MaybeBool SetWindowFullscreen( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool fullscreen - ) => (int)SetWindowFullscreen(window, (int)fullscreen); + [NativeTypeName("bool")] MaybeBool fullscreen + ) => (MaybeBool)(byte)SetWindowFullscreen(window, (byte)fullscreen); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowFullscreenMode")] - public static extern int SetWindowFullscreenMode( + [return: NativeTypeName("bool")] + public static extern byte SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowFullscreenMode( + public static MaybeBool SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] Ref mode ) { fixed (DisplayMode* __dsl_mode = mode) { - return (int)SetWindowFullscreenMode(window, __dsl_mode); + return (MaybeBool)(byte)SetWindowFullscreenMode(window, __dsl_mode); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowHitTest")] - public static extern int SetWindowHitTest( + [return: NativeTypeName("bool")] + public static extern byte SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, void* callback_data ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowHitTest( + public static MaybeBool SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, Ref callback_data @@ -10084,164 +12318,313 @@ Ref callback_data { fixed (void* __dsl_callback_data = callback_data) { - return (int)SetWindowHitTest(window, callback, __dsl_callback_data); + return (MaybeBool) + (byte)SetWindowHitTest(window, callback, __dsl_callback_data); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowIcon")] - public static extern int SetWindowIcon(WindowHandle window, Surface* icon); + [return: NativeTypeName("bool")] + public static extern byte SetWindowIcon(WindowHandle window, Surface* icon); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowIcon(WindowHandle window, Ref icon) + public static MaybeBool SetWindowIcon(WindowHandle window, Ref icon) { fixed (Surface* __dsl_icon = icon) { - return (int)SetWindowIcon(window, __dsl_icon); + return (MaybeBool)(byte)SetWindowIcon(window, __dsl_icon); } } - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowInputFocus")] - public static extern int SetWindowInputFocus(WindowHandle window); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowKeyboardGrab")] - public static extern int SetWindowKeyboardGrab( + [return: NativeTypeName("bool")] + public static extern byte SetWindowKeyboardGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] int grabbed + [NativeTypeName("bool")] byte grabbed ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] - public static int SetWindowKeyboardGrab( + public static MaybeBool SetWindowKeyboardGrab( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool grabbed + ) => (MaybeBool)(byte)SetWindowKeyboardGrab(window, (byte)grabbed); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] + public static MaybeBool SetWindowMaximumSize( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed - ) => (int)SetWindowKeyboardGrab(window, (int)grabbed); + int max_w, + int max_h + ) => (MaybeBool)(byte)SetWindowMaximumSizeRaw(window, max_w, max_h); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowMaximumSize")] - public static extern int SetWindowMaximumSize(WindowHandle window, int max_w, int max_h); + [return: NativeTypeName("bool")] + public static extern byte SetWindowMaximumSizeRaw( + WindowHandle window, + int max_w, + int max_h + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] + public static MaybeBool SetWindowMinimumSize( + WindowHandle window, + int min_w, + int min_h + ) => (MaybeBool)(byte)SetWindowMinimumSizeRaw(window, min_w, min_h); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowMinimumSize")] - public static extern int SetWindowMinimumSize(WindowHandle window, int min_w, int min_h); + [return: NativeTypeName("bool")] + public static extern byte SetWindowMinimumSizeRaw( + WindowHandle window, + int min_w, + int min_h + ); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowModalFor")] - public static extern int SetWindowModalFor( - WindowHandle modal_window, - WindowHandle parent_window + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowModal")] + [return: NativeTypeName("bool")] + public static extern byte SetWindowModal( + WindowHandle window, + [NativeTypeName("bool")] byte modal ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModal")] + public static MaybeBool SetWindowModal( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool modal + ) => (MaybeBool)(byte)SetWindowModal(window, (byte)modal); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowMouseGrab")] - public static extern int SetWindowMouseGrab( + [return: NativeTypeName("bool")] + public static extern byte SetWindowMouseGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] int grabbed + [NativeTypeName("bool")] byte grabbed ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] - public static int SetWindowMouseGrab( + public static MaybeBool SetWindowMouseGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed - ) => (int)SetWindowMouseGrab(window, (int)grabbed); + [NativeTypeName("bool")] MaybeBool grabbed + ) => (MaybeBool)(byte)SetWindowMouseGrab(window, (byte)grabbed); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowMouseRect")] - public static extern int SetWindowMouseRect( + [return: NativeTypeName("bool")] + public static extern byte SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rect ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowMouseRect( + public static MaybeBool SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)SetWindowMouseRect(window, __dsl_rect); + return (MaybeBool)(byte)SetWindowMouseRect(window, __dsl_rect); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] + public static MaybeBool SetWindowOpacity(WindowHandle window, float opacity) => + (MaybeBool)(byte)SetWindowOpacityRaw(window, opacity); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowOpacity")] - public static extern int SetWindowOpacity(WindowHandle window, float opacity); + [return: NativeTypeName("bool")] + public static extern byte SetWindowOpacityRaw(WindowHandle window, float opacity); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowPosition")] - public static extern int SetWindowPosition(WindowHandle window, int x, int y); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowParent")] + public static MaybeBool SetWindowParent(WindowHandle window, WindowHandle parent) => + (MaybeBool)(byte)SetWindowParentRaw(window, parent); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowResizable")] - public static extern int SetWindowResizable( + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowParent")] + [return: NativeTypeName("bool")] + public static extern byte SetWindowParentRaw(WindowHandle window, WindowHandle parent); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] + public static MaybeBool SetWindowPosition(WindowHandle window, int x, int y) => + (MaybeBool)(byte)SetWindowPositionRaw(window, x, y); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowPosition")] + [return: NativeTypeName("bool")] + public static extern byte SetWindowPositionRaw(WindowHandle window, int x, int y); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowRelativeMouseMode")] + [return: NativeTypeName("bool")] + public static extern byte SetWindowRelativeMouseMode( WindowHandle window, - [NativeTypeName("SDL_bool")] int resizable + [NativeTypeName("bool")] byte enabled ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] + public static MaybeBool SetWindowRelativeMouseMode( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool enabled + ) => (MaybeBool)(byte)SetWindowRelativeMouseMode(window, (byte)enabled); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowResizable")] + [return: NativeTypeName("bool")] + public static extern byte SetWindowResizable( + WindowHandle window, + [NativeTypeName("bool")] byte resizable + ); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] - public static int SetWindowResizable( + public static MaybeBool SetWindowResizable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool resizable - ) => (int)SetWindowResizable(window, (int)resizable); + [NativeTypeName("bool")] MaybeBool resizable + ) => (MaybeBool)(byte)SetWindowResizable(window, (byte)resizable); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowShape")] - public static extern int SetWindowShape(WindowHandle window, Surface* shape); + [return: NativeTypeName("bool")] + public static extern byte SetWindowShape(WindowHandle window, Surface* shape); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowShape(WindowHandle window, Ref shape) + public static MaybeBool SetWindowShape(WindowHandle window, Ref shape) { fixed (Surface* __dsl_shape = shape) { - return (int)SetWindowShape(window, __dsl_shape); + return (MaybeBool)(byte)SetWindowShape(window, __dsl_shape); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] + public static MaybeBool SetWindowSize(WindowHandle window, int w, int h) => + (MaybeBool)(byte)SetWindowSizeRaw(window, w, h); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowSize")] - public static extern int SetWindowSize(WindowHandle window, int w, int h); + [return: NativeTypeName("bool")] + public static extern byte SetWindowSizeRaw(WindowHandle window, int w, int h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSurfaceVSync")] + public static MaybeBool SetWindowSurfaceVSync(WindowHandle window, int vsync) => + (MaybeBool)(byte)SetWindowSurfaceVSyncRaw(window, vsync); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowSurfaceVSync")] + [return: NativeTypeName("bool")] + public static extern byte SetWindowSurfaceVSyncRaw(WindowHandle window, int vsync); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowTitle")] - public static extern int SetWindowTitle( + [return: NativeTypeName("bool")] + public static extern byte SetWindowTitle( WindowHandle window, [NativeTypeName("const char *")] sbyte* title ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowTitle( + public static MaybeBool SetWindowTitle( WindowHandle window, [NativeTypeName("const char *")] Ref title ) { fixed (sbyte* __dsl_title = title) { - return (int)SetWindowTitle(window, __dsl_title); + return (MaybeBool)(byte)SetWindowTitle(window, __dsl_title); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ShouldInit")] + [return: NativeTypeName("bool")] + public static extern byte ShouldInit(InitState* state); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldInit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ShouldInit(Ref state) + { + fixed (InitState* __dsl_state = state) + { + return (MaybeBool)(byte)ShouldInit(__dsl_state); } } + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ShouldQuit")] + [return: NativeTypeName("bool")] + public static extern byte ShouldQuit(InitState* state); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldQuit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ShouldQuit(Ref state) + { + fixed (InitState* __dsl_state = state) + { + return (MaybeBool)(byte)ShouldQuit(__dsl_state); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] + public static MaybeBool ShowCursor() => (MaybeBool)(byte)ShowCursorRaw(); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ShowCursor")] - public static extern int ShowCursor(); + [return: NativeTypeName("bool")] + public static extern byte ShowCursorRaw(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ShowMessageBox")] - public static extern int ShowMessageBox( + [return: NativeTypeName("bool")] + public static extern byte ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, int* buttonid ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ShowMessageBox( + public static MaybeBool ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, Ref buttonid ) @@ -10249,7 +12632,7 @@ Ref buttonid fixed (int* __dsl_buttonid = buttonid) fixed (MessageBoxData* __dsl_messageboxdata = messageboxdata) { - return (int)ShowMessageBox(__dsl_messageboxdata, __dsl_buttonid); + return (MaybeBool)(byte)ShowMessageBox(__dsl_messageboxdata, __dsl_buttonid); } } @@ -10259,8 +12642,9 @@ public static extern void ShowOpenFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ); [Transformed] @@ -10273,8 +12657,9 @@ public static void ShowOpenFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ) { fixed (sbyte* __dsl_default_location = default_location) @@ -10286,8 +12671,9 @@ public static void ShowOpenFileDialog( __dsl_userdata, window, __dsl_filters, + nfilters, __dsl_default_location, - (int)allow_many + (byte)allow_many ); } } @@ -10298,7 +12684,7 @@ public static extern void ShowOpenFolderDialog( void* userdata, WindowHandle window, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ); [Transformed] @@ -10311,7 +12697,7 @@ public static void ShowOpenFolderDialog( Ref userdata, WindowHandle window, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ) { fixed (sbyte* __dsl_default_location = default_location) @@ -10322,7 +12708,7 @@ public static void ShowOpenFolderDialog( __dsl_userdata, window, __dsl_default_location, - (int)allow_many + (byte)allow_many ); } } @@ -10333,6 +12719,7 @@ public static extern void ShowSaveFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location ); @@ -10346,6 +12733,7 @@ public static void ShowSaveFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location ) { @@ -10358,26 +12746,29 @@ public static void ShowSaveFileDialog( __dsl_userdata, window, __dsl_filters, + nfilters, __dsl_default_location ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ShowSimpleMessageBox")] - public static extern int ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + [return: NativeTypeName("bool")] + public static extern byte ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] sbyte* title, [NativeTypeName("const char *")] sbyte* message, WindowHandle window ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + public static MaybeBool ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] Ref title, [NativeTypeName("const char *")] Ref message, WindowHandle window @@ -10386,136 +12777,205 @@ WindowHandle window fixed (sbyte* __dsl_message = message) fixed (sbyte* __dsl_title = title) { - return (int)ShowSimpleMessageBox(flags, __dsl_title, __dsl_message, window); + return (MaybeBool) + (byte)ShowSimpleMessageBox(flags, __dsl_title, __dsl_message, window); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] + public static MaybeBool ShowWindow(WindowHandle window) => + (MaybeBool)(byte)ShowWindowRaw(window); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ShowWindow")] - public static extern int ShowWindow(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte ShowWindowRaw(WindowHandle window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] + public static MaybeBool ShowWindowSystemMenu(WindowHandle window, int x, int y) => + (MaybeBool)(byte)ShowWindowSystemMenuRaw(window, x, y); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ShowWindowSystemMenu")] - public static extern int ShowWindowSystemMenu(WindowHandle window, int x, int y); + [return: NativeTypeName("bool")] + public static extern byte ShowWindowSystemMenuRaw(WindowHandle window, int x, int y); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SignalCondition")] - public static extern int SignalCondition(ConditionHandle cond); - - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SIMDGetAlignment")] - [return: NativeTypeName("size_t")] - public static extern nuint SimdGetAlignment(); + public static extern void SignalCondition(ConditionHandle cond); - [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SoftStretch")] - public static extern int SoftStretch( - Surface* src, - [NativeTypeName("const SDL_Rect *")] Rect* srcrect, - Surface* dst, - [NativeTypeName("const SDL_Rect *")] Rect* dstrect, - ScaleMode scaleMode - ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SignalSemaphore")] + public static extern void SignalSemaphore(SemaphoreHandle sem); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int SoftStretch( - Ref src, - [NativeTypeName("const SDL_Rect *")] Ref srcrect, - Ref dst, - [NativeTypeName("const SDL_Rect *")] Ref dstrect, - ScaleMode scaleMode - ) - { - fixed (Rect* __dsl_dstrect = dstrect) - fixed (Surface* __dsl_dst = dst) - fixed (Rect* __dsl_srcrect = srcrect) - fixed (Surface* __dsl_src = src) - { - return (int)SoftStretch( - __dsl_src, - __dsl_srcrect, - __dsl_dst, - __dsl_dstrect, - scaleMode - ); - } - } + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] + public static MaybeBool StartTextInput(WindowHandle window) => + (MaybeBool)(byte)StartTextInputRaw(window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_StartTextInput")] - public static extern void StartTextInput(); + [return: NativeTypeName("bool")] + public static extern byte StartTextInputRaw(WindowHandle window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInputWithProperties")] + public static MaybeBool StartTextInputWithProperties( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => (MaybeBool)(byte)StartTextInputWithPropertiesRaw(window, props); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_StartTextInputWithProperties")] + [return: NativeTypeName("bool")] + public static extern byte StartTextInputWithPropertiesRaw( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + public static MaybeBool StopHapticEffect(HapticHandle haptic, int effect) => + (MaybeBool)(byte)StopHapticEffectRaw(haptic, effect); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_StopHapticEffect")] - public static extern int StopHapticEffect(HapticHandle haptic, int effect); + [return: NativeTypeName("bool")] + public static extern byte StopHapticEffectRaw(HapticHandle haptic, int effect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + public static MaybeBool StopHapticEffects(HapticHandle haptic) => + (MaybeBool)(byte)StopHapticEffectsRaw(haptic); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_StopHapticEffects")] - public static extern int StopHapticEffects(HapticHandle haptic); + [return: NativeTypeName("bool")] + public static extern byte StopHapticEffectsRaw(HapticHandle haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] + public static MaybeBool StopHapticRumble(HapticHandle haptic) => + (MaybeBool)(byte)StopHapticRumbleRaw(haptic); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_StopHapticRumble")] - public static extern int StopHapticRumble(HapticHandle haptic); + [return: NativeTypeName("bool")] + public static extern byte StopHapticRumbleRaw(HapticHandle haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopTextInput")] + public static MaybeBool StopTextInput(WindowHandle window) => + (MaybeBool)(byte)StopTextInputRaw(window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_StopTextInput")] - public static extern void StopTextInput(); + [return: NativeTypeName("bool")] + public static extern byte StopTextInputRaw(WindowHandle window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] - public static MaybeBool StorageReady(StorageHandle storage) => - (MaybeBool)(int)StorageReadyRaw(storage); + public static MaybeBool StorageReady(StorageHandle storage) => + (MaybeBool)(byte)StorageReadyRaw(storage); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_StorageReady")] - [return: NativeTypeName("SDL_bool")] - public static extern int StorageReadyRaw(StorageHandle storage); + [return: NativeTypeName("bool")] + public static extern byte StorageReadyRaw(StorageHandle storage); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_StringToGUID")] + public static extern Guid StringToGuid([NativeTypeName("const char *")] sbyte* pchGUID); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Guid StringToGuid([NativeTypeName("const char *")] Ref pchGUID) + { + fixed (sbyte* __dsl_pchGUID = pchGUID) + { + return (Guid)StringToGuid(__dsl_pchGUID); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SurfaceHasAlternateImages")] + [return: NativeTypeName("bool")] + public static extern byte SurfaceHasAlternateImages(Surface* surface); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasAlternateImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SurfaceHasAlternateImages(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)SurfaceHasAlternateImages(__dsl_surface); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SurfaceHasColorKey")] - [return: NativeTypeName("SDL_bool")] - public static extern int SurfaceHasColorKey(Surface* surface); + [return: NativeTypeName("bool")] + public static extern byte SurfaceHasColorKey(Surface* surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool SurfaceHasColorKey(Ref surface) + public static MaybeBool SurfaceHasColorKey(Ref surface) { fixed (Surface* __dsl_surface = surface) { - return (MaybeBool)(int)SurfaceHasColorKey(__dsl_surface); + return (MaybeBool)(byte)SurfaceHasColorKey(__dsl_surface); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SurfaceHasRLE")] - [return: NativeTypeName("SDL_bool")] - public static extern int SurfaceHasRLE(Surface* surface); + [return: NativeTypeName("bool")] + public static extern byte SurfaceHasRLE(Surface* surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool SurfaceHasRLE(Ref surface) + public static MaybeBool SurfaceHasRLE(Ref surface) { fixed (Surface* __dsl_surface = surface) { - return (MaybeBool)(int)SurfaceHasRLE(__dsl_surface); + return (MaybeBool)(byte)SurfaceHasRLE(__dsl_surface); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] + public static MaybeBool SyncWindow(WindowHandle window) => + (MaybeBool)(byte)SyncWindowRaw(window); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SyncWindow")] - public static extern int SyncWindow(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte SyncWindowRaw(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_TellIO")] [return: NativeTypeName("Sint64")] public static extern long TellIO(IOStreamHandle context); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] - public static MaybeBool TextInputActive() => (MaybeBool)(int)TextInputActiveRaw(); + public static MaybeBool TextInputActive(WindowHandle window) => + (MaybeBool)(byte)TextInputActiveRaw(window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_TextInputActive")] - [return: NativeTypeName("SDL_bool")] - public static extern int TextInputActiveRaw(); + [return: NativeTypeName("bool")] + public static extern byte TextInputActiveRaw(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_TimeFromWindows")] [return: NativeTypeName("SDL_Time")] @@ -10525,26 +12985,28 @@ public static extern long TimeFromWindows( ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_TimeToDateTime")] - public static extern int TimeToDateTime( + [return: NativeTypeName("bool")] + public static extern byte TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, DateTime* dt, - [NativeTypeName("SDL_bool")] int localTime + [NativeTypeName("bool")] byte localTime ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int TimeToDateTime( + public static MaybeBool TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, Ref dt, - [NativeTypeName("SDL_bool")] MaybeBool localTime + [NativeTypeName("bool")] MaybeBool localTime ) { fixed (DateTime* __dsl_dt = dt) { - return (int)TimeToDateTime(ticks, __dsl_dt, (int)localTime); + return (MaybeBool)(byte)TimeToDateTime(ticks, __dsl_dt, (byte)localTime); } } @@ -10573,37 +13035,65 @@ public static void TimeToWindows( } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] + public static MaybeBool TryLockMutex(MutexHandle mutex) => + (MaybeBool)(byte)TryLockMutexRaw(mutex); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_TryLockMutex")] - public static extern int TryLockMutex(MutexHandle mutex); + [return: NativeTypeName("bool")] + public static extern byte TryLockMutexRaw(MutexHandle mutex); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] + public static MaybeBool TryLockRWLockForReading(RWLockHandle rwlock) => + (MaybeBool)(byte)TryLockRWLockForReadingRaw(rwlock); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_TryLockRWLockForReading")] - public static extern int TryLockRWLockForReading(RWLockHandle rwlock); + [return: NativeTypeName("bool")] + public static extern byte TryLockRWLockForReadingRaw(RWLockHandle rwlock); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] + public static MaybeBool TryLockRWLockForWriting(RWLockHandle rwlock) => + (MaybeBool)(byte)TryLockRWLockForWritingRaw(rwlock); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_TryLockRWLockForWriting")] - public static extern int TryLockRWLockForWriting(RWLockHandle rwlock); + [return: NativeTypeName("bool")] + public static extern byte TryLockRWLockForWritingRaw(RWLockHandle rwlock); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_TryLockSpinlock")] - [return: NativeTypeName("SDL_bool")] - public static extern int TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); + [return: NativeTypeName("bool")] + public static extern byte TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool TryLockSpinlock( + public static MaybeBool TryLockSpinlock( [NativeTypeName("SDL_SpinLock *")] Ref @lock ) { fixed (int* __dsl_lock = @lock) { - return (MaybeBool)(int)TryLockSpinlock(__dsl_lock); + return (MaybeBool)(byte)TryLockSpinlock(__dsl_lock); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] + public static MaybeBool TryWaitSemaphore(SemaphoreHandle sem) => + (MaybeBool)(byte)TryWaitSemaphoreRaw(sem); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_TryWaitSemaphore")] - public static extern int TryWaitSemaphore(SemaphoreHandle sem); + [return: NativeTypeName("bool")] + public static extern byte TryWaitSemaphoreRaw(SemaphoreHandle sem); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UnbindAudioStream")] public static extern void UnbindAudioStream(AudioStreamHandle stream); @@ -10625,23 +13115,17 @@ public static void UnbindAudioStreams(Ref streams, int num_st } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UnloadObject")] - public static extern void UnloadObject(void* handle); + public static extern void UnloadObject(SharedObjectHandle handle); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void UnloadObject(Ref handle) - { - fixed (void* __dsl_handle = handle) - { - UnloadObject(__dsl_handle); - } - } + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] + public static MaybeBool UnlockAudioStream(AudioStreamHandle stream) => + (MaybeBool)(byte)UnlockAudioStreamRaw(stream); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UnlockAudioStream")] - public static extern int UnlockAudioStream(AudioStreamHandle stream); + [return: NativeTypeName("bool")] + public static extern byte UnlockAudioStreamRaw(AudioStreamHandle stream); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UnlockJoysticks")] public static extern void UnlockJoysticks(); @@ -10688,24 +13172,39 @@ public static void UnlockSurface(Ref surface) } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UnlockTexture")] - public static extern void UnlockTexture(TextureHandle texture); + public static extern void UnlockTexture(Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockTexture(Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + UnlockTexture(__dsl_texture); + } + } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UpdateGamepads")] public static extern void UpdateGamepads(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UpdateHapticEffect")] - public static extern int UpdateHapticEffect( + [return: NativeTypeName("bool")] + public static extern byte UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateHapticEffect( + public static MaybeBool UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] Ref data @@ -10713,7 +13212,7 @@ public static int UpdateHapticEffect( { fixed (HapticEffect* __dsl_data = data) { - return (int)UpdateHapticEffect(haptic, effect, __dsl_data); + return (MaybeBool)(byte)UpdateHapticEffect(haptic, effect, __dsl_data); } } @@ -10721,8 +13220,9 @@ public static int UpdateHapticEffect( public static extern void UpdateJoysticks(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UpdateNVTexture")] - public static extern int UpdateNVTexture( - TextureHandle texture, + [return: NativeTypeName("bool")] + public static extern byte UpdateNVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -10730,13 +13230,14 @@ public static extern int UpdateNVTexture( int UVpitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateNVTexture( - TextureHandle texture, + public static MaybeBool UpdateNVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -10747,15 +13248,17 @@ int UVpitch fixed (byte* __dsl_UVplane = UVplane) fixed (byte* __dsl_Yplane = Yplane) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)UpdateNVTexture( - texture, - __dsl_rect, - __dsl_Yplane, - Ypitch, - __dsl_UVplane, - UVpitch - ); + return (MaybeBool) + (byte)UpdateNVTexture( + __dsl_texture, + __dsl_rect, + __dsl_Yplane, + Ypitch, + __dsl_UVplane, + UVpitch + ); } } @@ -10763,20 +13266,22 @@ int UVpitch public static extern void UpdateSensors(); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UpdateTexture")] - public static extern int UpdateTexture( - TextureHandle texture, + [return: NativeTypeName("bool")] + public static extern byte UpdateTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const void *")] void* pixels, int pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateTexture( - TextureHandle texture, + public static MaybeBool UpdateTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const void *")] Ref pixels, int pitch @@ -10784,27 +13289,38 @@ int pitch { fixed (void* __dsl_pixels = pixels) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)UpdateTexture(texture, __dsl_rect, __dsl_pixels, pitch); + return (MaybeBool) + (byte)UpdateTexture(__dsl_texture, __dsl_rect, __dsl_pixels, pitch); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] + public static MaybeBool UpdateWindowSurface(WindowHandle window) => + (MaybeBool)(byte)UpdateWindowSurfaceRaw(window); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UpdateWindowSurface")] - public static extern int UpdateWindowSurface(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte UpdateWindowSurfaceRaw(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UpdateWindowSurfaceRects")] - public static extern int UpdateWindowSurfaceRects( + [return: NativeTypeName("bool")] + public static extern byte UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rects, int numrects ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateWindowSurfaceRects( + public static MaybeBool UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rects, int numrects @@ -10812,13 +13328,15 @@ int numrects { fixed (Rect* __dsl_rects = rects) { - return (int)UpdateWindowSurfaceRects(window, __dsl_rects, numrects); + return (MaybeBool) + (byte)UpdateWindowSurfaceRects(window, __dsl_rects, numrects); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_UpdateYUVTexture")] - public static extern int UpdateYUVTexture( - TextureHandle texture, + [return: NativeTypeName("bool")] + public static extern byte UpdateYUVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -10828,13 +13346,14 @@ public static extern int UpdateYUVTexture( int Vpitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateYUVTexture( - TextureHandle texture, + public static MaybeBool UpdateYUVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -10848,77 +13367,98 @@ int Vpitch fixed (byte* __dsl_Uplane = Uplane) fixed (byte* __dsl_Yplane = Yplane) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)UpdateYUVTexture( - texture, - __dsl_rect, - __dsl_Yplane, - Ypitch, - __dsl_Uplane, - Upitch, - __dsl_Vplane, - Vpitch - ); + return (MaybeBool) + (byte)UpdateYUVTexture( + __dsl_texture, + __dsl_rect, + __dsl_Yplane, + Ypitch, + __dsl_Uplane, + Upitch, + __dsl_Vplane, + Vpitch + ); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WaitCondition")] - public static extern int WaitCondition(ConditionHandle cond, MutexHandle mutex); + public static extern void WaitCondition(ConditionHandle cond, MutexHandle mutex); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] + public static MaybeBool WaitConditionTimeout( + ConditionHandle cond, + MutexHandle mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) => (MaybeBool)(byte)WaitConditionTimeoutRaw(cond, mutex, timeoutMS); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WaitConditionTimeout")] - public static extern int WaitConditionTimeout( + [return: NativeTypeName("bool")] + public static extern byte WaitConditionTimeoutRaw( ConditionHandle cond, MutexHandle mutex, [NativeTypeName("Sint32")] int timeoutMS ); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WaitEvent")] - [return: NativeTypeName("SDL_bool")] - public static extern int WaitEvent(Event* @event); + [return: NativeTypeName("bool")] + public static extern byte WaitEvent(Event* @event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WaitEvent(Ref @event) + public static MaybeBool WaitEvent(Ref @event) { fixed (Event* __dsl_event = @event) { - return (MaybeBool)(int)WaitEvent(__dsl_event); + return (MaybeBool)(byte)WaitEvent(__dsl_event); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WaitEventTimeout")] - [return: NativeTypeName("SDL_bool")] - public static extern int WaitEventTimeout( + [return: NativeTypeName("bool")] + public static extern byte WaitEventTimeout( Event* @event, [NativeTypeName("Sint32")] int timeoutMS ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WaitEventTimeout( + public static MaybeBool WaitEventTimeout( Ref @event, [NativeTypeName("Sint32")] int timeoutMS ) { fixed (Event* __dsl_event = @event) { - return (MaybeBool)(int)WaitEventTimeout(__dsl_event, timeoutMS); + return (MaybeBool)(byte)WaitEventTimeout(__dsl_event, timeoutMS); } } [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WaitSemaphore")] - public static extern int WaitSemaphore(SemaphoreHandle sem); + public static extern void WaitSemaphore(SemaphoreHandle sem); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] + public static MaybeBool WaitSemaphoreTimeout( + SemaphoreHandle sem, + [NativeTypeName("Sint32")] int timeoutMS + ) => (MaybeBool)(byte)WaitSemaphoreTimeoutRaw(sem, timeoutMS); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WaitSemaphoreTimeout")] - public static extern int WaitSemaphoreTimeout( + [return: NativeTypeName("bool")] + public static extern byte WaitSemaphoreTimeoutRaw( SemaphoreHandle sem, [NativeTypeName("Sint32")] int timeoutMS ); @@ -10939,25 +13479,32 @@ public static void WaitThread(ThreadHandle thread, Ref status) } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseGlobal")] + public static MaybeBool WarpMouseGlobal(float x, float y) => + (MaybeBool)(byte)WarpMouseGlobalRaw(x, y); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WarpMouseGlobal")] - public static extern int WarpMouseGlobal(float x, float y); + [return: NativeTypeName("bool")] + public static extern byte WarpMouseGlobalRaw(float x, float y); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WarpMouseInWindow")] public static extern void WarpMouseInWindow(WindowHandle window, float x, float y); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WasInit")] - [return: NativeTypeName("Uint32")] - public static extern uint WasInit([NativeTypeName("Uint32")] uint flags); + [return: NativeTypeName("SDL_InitFlags")] + public static extern uint WasInit([NativeTypeName("SDL_InitFlags")] uint flags); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] - public static MaybeBool WindowHasSurface(WindowHandle window) => - (MaybeBool)(int)WindowHasSurfaceRaw(window); + public static MaybeBool WindowHasSurface(WindowHandle window) => + (MaybeBool)(byte)WindowHasSurfaceRaw(window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WindowHasSurface")] - [return: NativeTypeName("SDL_bool")] - public static extern int WindowHasSurfaceRaw(WindowHandle window); + [return: NativeTypeName("bool")] + public static extern byte WindowHasSurfaceRaw(WindowHandle window); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteIO")] [return: NativeTypeName("size_t")] @@ -10985,110 +13532,127 @@ public static nuint WriteIO( } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] - public static MaybeBool WriteS16BE( + public static MaybeBool WriteS16BE( IOStreamHandle dst, [NativeTypeName("Sint16")] short value - ) => (MaybeBool)(int)WriteS16BERaw(dst, value); + ) => (MaybeBool)(byte)WriteS16BERaw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteS16BE")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteS16BERaw( + [return: NativeTypeName("bool")] + public static extern byte WriteS16BERaw( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] - public static MaybeBool WriteS16LE( + public static MaybeBool WriteS16LE( IOStreamHandle dst, [NativeTypeName("Sint16")] short value - ) => (MaybeBool)(int)WriteS16LERaw(dst, value); + ) => (MaybeBool)(byte)WriteS16LERaw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteS16LE")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteS16LERaw( + [return: NativeTypeName("bool")] + public static extern byte WriteS16LERaw( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] - public static MaybeBool WriteS32BE( + public static MaybeBool WriteS32BE( IOStreamHandle dst, [NativeTypeName("Sint32")] int value - ) => (MaybeBool)(int)WriteS32BERaw(dst, value); + ) => (MaybeBool)(byte)WriteS32BERaw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteS32BE")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteS32BERaw( + [return: NativeTypeName("bool")] + public static extern byte WriteS32BERaw( IOStreamHandle dst, [NativeTypeName("Sint32")] int value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] - public static MaybeBool WriteS32LE( + public static MaybeBool WriteS32LE( IOStreamHandle dst, [NativeTypeName("Sint32")] int value - ) => (MaybeBool)(int)WriteS32LERaw(dst, value); + ) => (MaybeBool)(byte)WriteS32LERaw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteS32LE")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteS32LERaw( + [return: NativeTypeName("bool")] + public static extern byte WriteS32LERaw( IOStreamHandle dst, [NativeTypeName("Sint32")] int value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] - public static MaybeBool WriteS64BE( + public static MaybeBool WriteS64BE( IOStreamHandle dst, [NativeTypeName("Sint64")] long value - ) => (MaybeBool)(int)WriteS64BERaw(dst, value); + ) => (MaybeBool)(byte)WriteS64BERaw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteS64BE")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteS64BERaw( + [return: NativeTypeName("bool")] + public static extern byte WriteS64BERaw( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] - public static MaybeBool WriteS64LE( + public static MaybeBool WriteS64LE( IOStreamHandle dst, [NativeTypeName("Sint64")] long value - ) => (MaybeBool)(int)WriteS64LERaw(dst, value); + ) => (MaybeBool)(byte)WriteS64LERaw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteS64LE")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteS64LERaw( + [return: NativeTypeName("bool")] + public static extern byte WriteS64LERaw( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS8")] + public static MaybeBool WriteS8( + IOStreamHandle dst, + [NativeTypeName("Sint8")] sbyte value + ) => (MaybeBool)(byte)WriteS8Raw(dst, value); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteS8")] + [return: NativeTypeName("bool")] + public static extern byte WriteS8Raw( + IOStreamHandle dst, + [NativeTypeName("Sint8")] sbyte value + ); + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteStorageFile")] - public static extern int WriteStorageFile( + [return: NativeTypeName("bool")] + public static extern byte WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const void *")] void* source, [NativeTypeName("Uint64")] ulong length ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteStorageFile( + public static MaybeBool WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const void *")] Ref source, @@ -11098,111 +13662,181 @@ public static int WriteStorageFile( fixed (void* __dsl_source = source) fixed (sbyte* __dsl_path = path) { - return (int)WriteStorageFile(storage, __dsl_path, __dsl_source, length); + return (MaybeBool) + (byte)WriteStorageFile(storage, __dsl_path, __dsl_source, length); } } - [return: NativeTypeName("SDL_bool")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteSurfacePixel")] + [return: NativeTypeName("bool")] + public static extern byte WriteSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)WriteSurfacePixel(__dsl_surface, x, y, r, g, b, a); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteSurfacePixelFloat")] + [return: NativeTypeName("bool")] + public static extern byte WriteSurfacePixelFloat( + Surface* surface, + int x, + int y, + float r, + float g, + float b, + float a + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixelFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteSurfacePixelFloat( + Ref surface, + int x, + int y, + float r, + float g, + float b, + float a + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool) + (byte)WriteSurfacePixelFloat(__dsl_surface, x, y, r, g, b, a); + } + } + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] - public static MaybeBool WriteU16BE( + public static MaybeBool WriteU16BE( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value - ) => (MaybeBool)(int)WriteU16BERaw(dst, value); + ) => (MaybeBool)(byte)WriteU16BERaw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteU16BE")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteU16BERaw( + [return: NativeTypeName("bool")] + public static extern byte WriteU16BERaw( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] - public static MaybeBool WriteU16LE( + public static MaybeBool WriteU16LE( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value - ) => (MaybeBool)(int)WriteU16LERaw(dst, value); + ) => (MaybeBool)(byte)WriteU16LERaw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteU16LE")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteU16LERaw( + [return: NativeTypeName("bool")] + public static extern byte WriteU16LERaw( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] - public static MaybeBool WriteU32BE( + public static MaybeBool WriteU32BE( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value - ) => (MaybeBool)(int)WriteU32BERaw(dst, value); + ) => (MaybeBool)(byte)WriteU32BERaw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteU32BE")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteU32BERaw( + [return: NativeTypeName("bool")] + public static extern byte WriteU32BERaw( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] - public static MaybeBool WriteU32LE( + public static MaybeBool WriteU32LE( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value - ) => (MaybeBool)(int)WriteU32LERaw(dst, value); + ) => (MaybeBool)(byte)WriteU32LERaw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteU32LE")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteU32LERaw( + [return: NativeTypeName("bool")] + public static extern byte WriteU32LERaw( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] - public static MaybeBool WriteU64BE( + public static MaybeBool WriteU64BE( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value - ) => (MaybeBool)(int)WriteU64BERaw(dst, value); + ) => (MaybeBool)(byte)WriteU64BERaw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteU64BE")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteU64BERaw( + [return: NativeTypeName("bool")] + public static extern byte WriteU64BERaw( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] - public static MaybeBool WriteU64LE( + public static MaybeBool WriteU64LE( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value - ) => (MaybeBool)(int)WriteU64LERaw(dst, value); + ) => (MaybeBool)(byte)WriteU64LERaw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteU64LE")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteU64LERaw( + [return: NativeTypeName("bool")] + public static extern byte WriteU64LERaw( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] - public static MaybeBool WriteU8( + public static MaybeBool WriteU8( IOStreamHandle dst, [NativeTypeName("Uint8")] byte value - ) => (MaybeBool)(int)WriteU8Raw(dst, value); + ) => (MaybeBool)(byte)WriteU8Raw(dst, value); [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_WriteU8")] - [return: NativeTypeName("SDL_bool")] - public static extern int WriteU8Raw( + [return: NativeTypeName("bool")] + public static extern byte WriteU8Raw( IOStreamHandle dst, [NativeTypeName("Uint8")] byte value ); @@ -11230,21 +13864,36 @@ public Ptr AcquireCameraFrame( [NativeTypeName("Uint64 *")] Ref timestampNS ) => T.AcquireCameraFrame(camera, timestampNS); + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddAtomicInt(AtomicInt* a, int v) => T.AddAtomicInt(a, v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddAtomicInt(Ref a, int v) => T.AddAtomicInt(a, v); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int AddEventWatch( + public byte AddEventWatch( [NativeTypeName("SDL_EventFilter")] EventFilter filter, void* userdata ) => T.AddEventWatch(filter, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int AddEventWatch( + public MaybeBool AddEventWatch( [NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata ) => T.AddEventWatch(filter, userdata); @@ -11285,7 +13934,7 @@ public int AddGamepadMappingsFromFile([NativeTypeName("const char *")] Ref T.AddGamepadMappingsFromIO(src, closeio); [Transformed] @@ -11295,30 +13944,49 @@ public int AddGamepadMappingsFromIO( )] public int AddGamepadMappingsFromIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) => T.AddGamepadMappingsFromIO(src, closeio); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int AddHintCallback( + public byte AddHintCallback( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, void* userdata ) => T.AddHintCallback(name, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int AddHintCallback( + public MaybeBool AddHintCallback( [NativeTypeName("const char *")] Ref name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, Ref userdata ) => T.AddHintCallback(name, callback, userdata); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddSurfaceAlternateImage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte AddSurfaceAlternateImage(Surface* surface, Surface* image) => + T.AddSurfaceAlternateImage(surface, image); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddSurfaceAlternateImage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool AddSurfaceAlternateImage(Ref surface, Ref image) => + T.AddSurfaceAlternateImage(surface, image); + [return: NativeTypeName("SDL_TimerID")] [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] [MethodImpl( @@ -11327,8 +13995,8 @@ Ref userdata public uint AddTimer( [NativeTypeName("Uint32")] uint interval, [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - void* param2 - ) => T.AddTimer(interval, callback, param2); + void* userdata + ) => T.AddTimer(interval, callback, userdata); [return: NativeTypeName("SDL_TimerID")] [Transformed] @@ -11339,14 +14007,39 @@ public uint AddTimer( public uint AddTimer( [NativeTypeName("Uint32")] uint interval, [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - Ref param2 - ) => T.AddTimer(interval, callback, param2); + Ref userdata + ) => T.AddTimer(interval, callback, userdata); + + [return: NativeTypeName("SDL_TimerID")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimerNS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + void* userdata + ) => T.AddTimerNS(interval, callback, userdata); + [return: NativeTypeName("SDL_TimerID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimerNS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + Ref userdata + ) => T.AddTimerNS(interval, callback, userdata); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int AddVulkanRenderSemaphores( + public MaybeBool AddVulkanRenderSemaphores( RendererHandle renderer, [NativeTypeName("Uint32")] uint wait_stage_mask, [NativeTypeName("Sint64")] long wait_semaphore, @@ -11359,270 +14052,302 @@ public int AddVulkanRenderSemaphores( signal_semaphore ); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AllocateEventMemory")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Ptr AllocateEventMemory([NativeTypeName("size_t")] nuint size) => - T.AllocateEventMemory(size); - - [NativeFunction("SDL3", EntryPoint = "SDL_AllocateEventMemory")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public void* AllocateEventMemoryRaw([NativeTypeName("size_t")] nuint size) => - T.AllocateEventMemoryRaw(size); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int AtomicAdd(AtomicInt* a, int v) => T.AtomicAdd(a, v); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int AtomicAdd(Ref a, int v) => T.AtomicAdd(a, v); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwap")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int AtomicCompareAndSwap(AtomicInt* a, int oldval, int newval) => - T.AtomicCompareAndSwap(a, oldval, newval); - - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwap")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public MaybeBool AtomicCompareAndSwap(Ref a, int oldval, int newval) => - T.AtomicCompareAndSwap(a, oldval, newval); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwapPointer")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int AtomicCompareAndSwapPointer(void** a, void* oldval, void* newval) => - T.AtomicCompareAndSwapPointer(a, oldval, newval); - - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwapPointer")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public MaybeBool AtomicCompareAndSwapPointer(Ref2D a, Ref oldval, Ref newval) => - T.AtomicCompareAndSwapPointer(a, oldval, newval); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int AtomicGet(AtomicInt* a) => T.AtomicGet(a); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int AtomicGet(Ref a) => T.AtomicGet(a); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public void* AtomicGetPtr(void** a) => T.AtomicGetPtr(a); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Ptr AtomicGetPtr(Ref2D a) => T.AtomicGetPtr(a); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int AtomicSet(AtomicInt* a, int v) => T.AtomicSet(a, v); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int AtomicSet(Ref a, int v) => T.AtomicSet(a, v); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public void* AtomicSetPtr(void** a, void* v) => T.AtomicSetPtr(a, v); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr AtomicSetPtr(Ref2D a, Ref v) => T.AtomicSetPtr(a, v); + public byte AddVulkanRenderSemaphoresRaw( + RendererHandle renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) => + T.AddVulkanRenderSemaphoresRaw( + renderer, + wait_stage_mask, + wait_semaphore, + signal_semaphore + ); [return: NativeTypeName("SDL_JoystickID")] [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint AttachVirtualJoystick(JoystickType type, int naxes, int nbuttons, int nhats) => - T.AttachVirtualJoystick(type, naxes, nbuttons, nhats); - - [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public uint AttachVirtualJoystickEx( + public uint AttachVirtualJoystick( [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc - ) => T.AttachVirtualJoystickEx(desc); + ) => T.AttachVirtualJoystick(desc); [return: NativeTypeName("SDL_JoystickID")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] + [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint AttachVirtualJoystickEx( + public uint AttachVirtualJoystick( [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc - ) => T.AttachVirtualJoystickEx(desc); + ) => T.AttachVirtualJoystick(desc); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + public MaybeBool AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint dev) => T.AudioDevicePaused(dev); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + public byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => T.AudioDevicePausedRaw(dev); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int BindAudioStream( + public MaybeBool BindAudioStream( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioStreamHandle stream ) => T.BindAudioStream(devid, stream); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte BindAudioStreamRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioStreamHandle stream + ) => T.BindAudioStreamRaw(devid, stream); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int BindAudioStreams( + public byte BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioStreamHandle* streams, int num_streams ) => T.BindAudioStreams(devid, streams, num_streams); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int BindAudioStreams( + public MaybeBool BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, Ref streams, int num_streams ) => T.BindAudioStreams(devid, streams, num_streams); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int BlitSurface( + public byte BlitSurface( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, - Rect* dstrect + [NativeTypeName("const SDL_Rect *")] Rect* dstrect ) => T.BlitSurface(src, srcrect, dst, dstrect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int BlitSurface( + public MaybeBool BlitSurface( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, - Ref dstrect + [NativeTypeName("const SDL_Rect *")] Ref dstrect ) => T.BlitSurface(src, srcrect, dst, dstrect); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface9Grid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte BlitSurface9Grid( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => + T.BlitSurface9Grid( + src, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + scaleMode, + dst, + dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface9Grid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool BlitSurface9Grid( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) => + T.BlitSurface9Grid( + src, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + scaleMode, + dst, + dstrect + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int BlitSurfaceScaled( + public byte BlitSurfaceScaled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, - Rect* dstrect, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, ScaleMode scaleMode ) => T.BlitSurfaceScaled(src, srcrect, dst, dstrect, scaleMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int BlitSurfaceScaled( + public MaybeBool BlitSurfaceScaled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, - Ref dstrect, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, ScaleMode scaleMode ) => T.BlitSurfaceScaled(src, srcrect, dst, dstrect, scaleMode); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte BlitSurfaceTiled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => T.BlitSurfaceTiled(src, srcrect, dst, dstrect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool BlitSurfaceTiled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) => T.BlitSurfaceTiled(src, srcrect, dst, dstrect); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiledWithScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte BlitSurfaceTiledWithScale( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + float scale, + ScaleMode scaleMode, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => T.BlitSurfaceTiledWithScale(src, srcrect, scale, scaleMode, dst, dstrect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiledWithScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool BlitSurfaceTiledWithScale( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + float scale, + ScaleMode scaleMode, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) => T.BlitSurfaceTiledWithScale(src, srcrect, scale, scaleMode, dst, dstrect); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int BlitSurfaceUnchecked( + public byte BlitSurfaceUnchecked( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* dstrect ) => T.BlitSurfaceUnchecked(src, srcrect, dst, dstrect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int BlitSurfaceUnchecked( + public MaybeBool BlitSurfaceUnchecked( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, [NativeTypeName("const SDL_Rect *")] Ref dstrect ) => T.BlitSurfaceUnchecked(src, srcrect, dst, dstrect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int BlitSurfaceUncheckedScaled( + public byte BlitSurfaceUncheckedScaled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, @@ -11630,12 +14355,13 @@ public int BlitSurfaceUncheckedScaled( ScaleMode scaleMode ) => T.BlitSurfaceUncheckedScaled(src, srcrect, dst, dstrect, scaleMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int BlitSurfaceUncheckedScaled( + public MaybeBool BlitSurfaceUncheckedScaled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, @@ -11647,21 +14373,22 @@ ScaleMode scaleMode [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int BroadcastCondition(ConditionHandle cond) => T.BroadcastCondition(cond); + public void BroadcastCondition(ConditionHandle cond) => T.BroadcastCondition(cond); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int CaptureMouse([NativeTypeName("SDL_bool")] int enabled) => - T.CaptureMouse(enabled); + public byte CaptureMouse([NativeTypeName("bool")] byte enabled) => T.CaptureMouse(enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled) => + public MaybeBool CaptureMouse([NativeTypeName("bool")] MaybeBool enabled) => T.CaptureMouse(enabled); [NativeFunction("SDL3", EntryPoint = "SDL_CleanupTLS")] @@ -11670,49 +14397,110 @@ public int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled) => )] public void CleanupTLS() => T.CleanupTLS(); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ClearAudioStream(AudioStreamHandle stream) => T.ClearAudioStream(stream); + public MaybeBool ClearAudioStream(AudioStreamHandle stream) => + T.ClearAudioStream(stream); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte ClearAudioStreamRaw(AudioStreamHandle stream) => T.ClearAudioStreamRaw(stream); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ClearClipboardData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ClearClipboardData() => T.ClearClipboardData(); + public MaybeBool ClearClipboardData() => T.ClearClipboardData(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte ClearClipboardDataRaw() => T.ClearClipboardDataRaw(); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ClearComposition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void ClearComposition() => T.ClearComposition(); + public MaybeBool ClearComposition(WindowHandle window) => T.ClearComposition(window); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearComposition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte ClearCompositionRaw(WindowHandle window) => T.ClearCompositionRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearError")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ClearError() => T.ClearError(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearError")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void ClearError() => T.ClearError(); + public byte ClearErrorRaw() => T.ClearErrorRaw(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ClearProperty( + public byte ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ) => T.ClearProperty(props, name); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ClearProperty( + public MaybeBool ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ) => T.ClearProperty(props, name); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte ClearSurface(Surface* surface, float r, float g, float b, float a) => + T.ClearSurface(surface, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ClearSurface( + Ref surface, + float r, + float g, + float b, + float a + ) => T.ClearSurface(surface, r, g, b, a); + [NativeFunction("SDL3", EntryPoint = "SDL_CloseAudioDevice")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -11738,11 +14526,20 @@ public void CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid) = )] public void CloseHaptic(HapticHandle haptic) => T.CloseHaptic(haptic); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool CloseIO(IOStreamHandle context) => T.CloseIO(context); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int CloseIO(IOStreamHandle context) => T.CloseIO(context); + public byte CloseIORaw(IOStreamHandle context) => T.CloseIORaw(context); [NativeFunction("SDL3", EntryPoint = "SDL_CloseJoystick")] [MethodImpl( @@ -11756,17 +14553,84 @@ public void CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid) = )] public void CloseSensor(SensorHandle sensor) => T.CloseSensor(sensor); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool CloseStorage(StorageHandle storage) => T.CloseStorage(storage); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int CloseStorage(StorageHandle storage) => T.CloseStorage(storage); + public byte CloseStorageRaw(StorageHandle storage) => T.CloseStorageRaw(storage); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte CompareAndSwapAtomicInt(AtomicInt* a, int oldval, int newval) => + T.CompareAndSwapAtomicInt(a, oldval, newval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool CompareAndSwapAtomicInt(Ref a, int oldval, int newval) => + T.CompareAndSwapAtomicInt(a, oldval, newval); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte CompareAndSwapAtomicPointer(void** a, void* oldval, void* newval) => + T.CompareAndSwapAtomicPointer(a, oldval, newval); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool CompareAndSwapAtomicPointer(Ref2D a, Ref oldval, Ref newval) => + T.CompareAndSwapAtomicPointer(a, oldval, newval); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte CompareAndSwapAtomicU32( + AtomicU32* a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ) => T.CompareAndSwapAtomicU32(a, oldval, newval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool CompareAndSwapAtomicU32( + Ref a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ) => T.CompareAndSwapAtomicU32(a, oldval, newval); + + [return: NativeTypeName("SDL_BlendMode")] [NativeFunction("SDL3", EntryPoint = "SDL_ComposeCustomBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public BlendMode ComposeCustomBlendMode( + public uint ComposeCustomBlendMode( BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendOperation colorOperation, @@ -11783,11 +14647,12 @@ BlendOperation alphaOperation alphaOperation ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ConvertAudioSamples( + public byte ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const Uint8 *")] byte* src_data, int src_len, @@ -11796,12 +14661,13 @@ public int ConvertAudioSamples( int* dst_len ) => T.ConvertAudioSamples(src_spec, src_data, src_len, dst_spec, dst_data, dst_len); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ConvertAudioSamples( + public MaybeBool ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const Uint8 *")] Ref src_data, int src_len, @@ -11810,65 +14676,72 @@ public int ConvertAudioSamples( Ref dst_len ) => T.ConvertAudioSamples(src_spec, src_data, src_len, dst_spec, dst_data, dst_len); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event) => + public byte ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event) => T.ConvertEventToRenderCoordinates(renderer, @event); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ConvertEventToRenderCoordinates(RendererHandle renderer, Ref @event) => - T.ConvertEventToRenderCoordinates(renderer, @event); + public MaybeBool ConvertEventToRenderCoordinates( + RendererHandle renderer, + Ref @event + ) => T.ConvertEventToRenderCoordinates(renderer, @event); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ConvertPixels( + public byte ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, int dst_pitch ) => T.ConvertPixels(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ConvertPixels( + public MaybeBool ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, int dst_pitch ) => T.ConvertPixels(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ConvertPixelsAndColorspace( + public byte ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, void* dst, @@ -11889,20 +14762,21 @@ int dst_pitch dst_pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ConvertPixelsAndColorspace( + public MaybeBool ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, Ref dst, @@ -11927,70 +14801,107 @@ int dst_pitch [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Surface* ConvertSurface( - Surface* surface, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format - ) => T.ConvertSurface(surface, format); + public Surface* ConvertSurface(Surface* surface, PixelFormat format) => + T.ConvertSurface(surface, format); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr ConvertSurface( - Ref surface, - [NativeTypeName("const SDL_PixelFormat *")] Ref format - ) => T.ConvertSurface(surface, format); + public Ptr ConvertSurface(Ref surface, PixelFormat format) => + T.ConvertSurface(surface, format); - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceAndColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Surface* ConvertSurfaceFormat(Surface* surface, PixelFormatEnum pixel_format) => - T.ConvertSurfaceFormat(surface, pixel_format); + public Surface* ConvertSurfaceAndColorspace( + Surface* surface, + PixelFormat format, + Palette* palette, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.ConvertSurfaceAndColorspace(surface, format, palette, colorspace, props); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceAndColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr ConvertSurfaceFormat( + public Ptr ConvertSurfaceAndColorspace( Ref surface, - PixelFormatEnum pixel_format - ) => T.ConvertSurfaceFormat(surface, pixel_format); + PixelFormat format, + Ref palette, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.ConvertSurfaceAndColorspace(surface, format, palette, colorspace, props); - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Surface* ConvertSurfaceFormatAndColorspace( - Surface* surface, - PixelFormatEnum pixel_format, - Colorspace colorspace, - [NativeTypeName("SDL_PropertiesID")] uint props - ) => T.ConvertSurfaceFormatAndColorspace(surface, pixel_format, colorspace, props); + public byte CopyFile( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => T.CopyFile(oldpath, newpath); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr ConvertSurfaceFormatAndColorspace( - Ref surface, - PixelFormatEnum pixel_format, - Colorspace colorspace, - [NativeTypeName("SDL_PropertiesID")] uint props - ) => T.ConvertSurfaceFormatAndColorspace(surface, pixel_format, colorspace, props); + public MaybeBool CopyFile( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) => T.CopyFile(oldpath, newpath); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CopyProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int CopyProperties( + public MaybeBool CopyProperties( [NativeTypeName("SDL_PropertiesID")] uint src, [NativeTypeName("SDL_PropertiesID")] uint dst ) => T.CopyProperties(src, dst); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte CopyPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ) => T.CopyPropertiesRaw(src, dst); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => T.CopyStorageFile(storage, oldpath, newpath); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) => T.CopyStorageFile(storage, oldpath, newpath); + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -12058,19 +14969,21 @@ public CursorHandle CreateCursor( int hot_y ) => T.CreateCursor(data, mask, w, h, hot_x, hot_y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int CreateDirectory([NativeTypeName("const char *")] sbyte* path) => + public byte CreateDirectory([NativeTypeName("const char *")] sbyte* path) => T.CreateDirectory(path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int CreateDirectory([NativeTypeName("const char *")] Ref path) => + public MaybeBool CreateDirectory([NativeTypeName("const char *")] Ref path) => T.CreateDirectory(path); [NativeFunction("SDL3", EntryPoint = "SDL_CreateHapticEffect")] @@ -12111,21 +15024,6 @@ public int CreateHapticEffect( )] public Palette* CreatePaletteRaw(int ncolors) => T.CreatePaletteRaw(ncolors); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePixelFormat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Ptr CreatePixelFormat(PixelFormatEnum pixel_format) => - T.CreatePixelFormat(pixel_format); - - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePixelFormat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public PixelFormat* CreatePixelFormatRaw(PixelFormatEnum pixel_format) => - T.CreatePixelFormatRaw(pixel_format); - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePopupWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -12136,7 +15034,7 @@ public WindowHandle CreatePopupWindow( int offset_y, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) => T.CreatePopupWindow(parent, offset_x, offset_y, w, h, flags); [return: NativeTypeName("SDL_PropertiesID")] @@ -12152,9 +15050,8 @@ public WindowHandle CreatePopupWindow( )] public RendererHandle CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("Uint32")] uint flags - ) => T.CreateRenderer(window, name, flags); + [NativeTypeName("const char *")] sbyte* name + ) => T.CreateRenderer(window, name); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] @@ -12163,9 +15060,8 @@ public RendererHandle CreateRenderer( )] public RendererHandle CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("Uint32")] uint flags - ) => T.CreateRenderer(window, name, flags); + [NativeTypeName("const char *")] Ref name + ) => T.CreateRenderer(window, name); [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] [MethodImpl( @@ -12203,21 +15099,23 @@ public RendererHandle CreateSoftwareRenderer(Surface* surface) => public RendererHandle CreateSoftwareRenderer(Ref surface) => T.CreateSoftwareRenderer(surface); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int CreateStorageDirectory( + public byte CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path ) => T.CreateStorageDirectory(storage, path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int CreateStorageDirectory( + public MaybeBool CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path ) => T.CreateStorageDirectory(storage, path); @@ -12227,7 +15125,7 @@ public int CreateStorageDirectory( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr CreateSurface(int width, int height, PixelFormatEnum format) => + public Ptr CreateSurface(int width, int height, PixelFormat format) => T.CreateSurface(width, height, format); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] @@ -12235,12 +15133,12 @@ public Ptr CreateSurface(int width, int height, PixelFormatEnum format) MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public Surface* CreateSurfaceFrom( - void* pixels, int width, int height, - int pitch, - PixelFormatEnum format - ) => T.CreateSurfaceFrom(pixels, width, height, pitch, format); + PixelFormat format, + void* pixels, + int pitch + ) => T.CreateSurfaceFrom(width, height, format, pixels, pitch); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] @@ -12248,18 +15146,32 @@ PixelFormatEnum format MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public Ptr CreateSurfaceFrom( - Ref pixels, int width, int height, - int pitch, - PixelFormatEnum format - ) => T.CreateSurfaceFrom(pixels, width, height, pitch, format); + PixelFormat format, + Ref pixels, + int pitch + ) => T.CreateSurfaceFrom(width, height, format, pixels, pitch); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Palette* CreateSurfacePalette(Surface* surface) => T.CreateSurfacePalette(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateSurfacePalette(Ref surface) => + T.CreateSurfacePalette(surface); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Surface* CreateSurfaceRaw(int width, int height, PixelFormatEnum format) => + public Surface* CreateSurfaceRaw(int width, int height, PixelFormat format) => T.CreateSurfaceRaw(width, height, format); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] @@ -12268,14 +15180,15 @@ PixelFormatEnum format )] public CursorHandle CreateSystemCursor(SystemCursor id) => T.CreateSystemCursor(id); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public TextureHandle CreateTexture( + public Ptr CreateTexture( RendererHandle renderer, - PixelFormatEnum format, - int access, + PixelFormat format, + TextureAccess access, int w, int h ) => T.CreateTexture(renderer, format, access, w, h); @@ -12284,7 +15197,7 @@ int h [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public TextureHandle CreateTextureFromSurface(RendererHandle renderer, Surface* surface) => + public Texture* CreateTextureFromSurface(RendererHandle renderer, Surface* surface) => T.CreateTextureFromSurface(renderer, surface); [Transformed] @@ -12292,70 +15205,76 @@ public TextureHandle CreateTextureFromSurface(RendererHandle renderer, Surface* [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public TextureHandle CreateTextureFromSurface( + public Ptr CreateTextureFromSurface( RendererHandle renderer, Ref surface ) => T.CreateTextureFromSurface(renderer, surface); - [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public TextureHandle CreateTextureWithProperties( + public Texture* CreateTextureRaw( RendererHandle renderer, - [NativeTypeName("SDL_PropertiesID")] uint props - ) => T.CreateTextureWithProperties(renderer, props); + PixelFormat format, + TextureAccess access, + int w, + int h + ) => T.CreateTextureRaw(renderer, format, access, w, h); - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public ThreadHandle CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] sbyte* name, - void* data - ) => T.CreateThread(fn, name, data); + public Ptr CreateTextureWithProperties( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.CreateTextureWithProperties(renderer, props); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public ThreadHandle CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] Ref name, - Ref data - ) => T.CreateThread(fn, name, data); + public Texture* CreateTextureWithPropertiesRaw( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.CreateTextureWithPropertiesRaw(renderer, props); - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadRuntime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public ThreadHandle CreateThreadWithStackSize( + public ThreadHandle CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("const size_t")] nuint stacksize, - void* data - ) => T.CreateThreadWithStackSize(fn, name, stacksize, data); + void* data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread + ) => T.CreateThreadRuntime(fn, name, data, pfnBeginThread, pfnEndThread); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadRuntime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public ThreadHandle CreateThreadWithStackSize( + public ThreadHandle CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("const size_t")] nuint stacksize, - Ref data - ) => T.CreateThreadWithStackSize(fn, name, stacksize, data); + Ref data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread + ) => T.CreateThreadRuntime(fn, name, data, pfnBeginThread, pfnEndThread); - [return: NativeTypeName("SDL_TLSID")] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateTLS")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithPropertiesRuntime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint CreateTLS() => T.CreateTLS(); + public ThreadHandle CreateThreadWithPropertiesRuntime( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread + ) => T.CreateThreadWithPropertiesRuntime(props, pfnBeginThread, pfnEndThread); [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindow")] [MethodImpl( @@ -12365,7 +15284,7 @@ public WindowHandle CreateWindow( [NativeTypeName("const char *")] sbyte* title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) => T.CreateWindow(title, w, h, flags); [Transformed] @@ -12377,32 +15296,34 @@ public WindowHandle CreateWindow( [NativeTypeName("const char *")] Ref title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) => T.CreateWindow(title, w, h, flags); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int CreateWindowAndRenderer( + public byte CreateWindowAndRenderer( [NativeTypeName("const char *")] sbyte* title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, WindowHandle* window, RendererHandle* renderer ) => T.CreateWindowAndRenderer(title, width, height, window_flags, window, renderer); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int CreateWindowAndRenderer( + public MaybeBool CreateWindowAndRenderer( [NativeTypeName("const char *")] Ref title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, Ref window, Ref renderer ) => T.CreateWindowAndRenderer(title, width, height, window_flags, window, renderer); @@ -12415,36 +15336,38 @@ public WindowHandle CreateWindowWithProperties( [NativeTypeName("SDL_PropertiesID")] uint props ) => T.CreateWindowWithProperties(props); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool CursorVisible() => T.CursorVisible(); + public MaybeBool CursorVisible() => T.CursorVisible(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int CursorVisibleRaw() => T.CursorVisibleRaw(); + public byte CursorVisibleRaw() => T.CursorVisibleRaw(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int DateTimeToTime( + public byte DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] DateTime* dt, [NativeTypeName("SDL_Time *")] long* ticks ) => T.DateTimeToTime(dt, ticks); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int DateTimeToTime( + public MaybeBool DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] Ref dt, [NativeTypeName("SDL_Time *")] Ref ticks ) => T.DateTimeToTime(dt, ticks); @@ -12461,45 +15384,11 @@ public int DateTimeToTime( )] public void DelayNS([NativeTypeName("Uint64")] ulong ns) => T.DelayNS(ns); - [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public void DelEventWatch( - [NativeTypeName("SDL_EventFilter")] EventFilter filter, - void* userdata - ) => T.DelEventWatch(filter, userdata); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public void DelEventWatch( - [NativeTypeName("SDL_EventFilter")] EventFilter filter, - Ref userdata - ) => T.DelEventWatch(filter, userdata); - - [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public void DelHintCallback( - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - void* userdata - ) => T.DelHintCallback(name, callback, userdata); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] + [NativeFunction("SDL3", EntryPoint = "SDL_DelayPrecise")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void DelHintCallback( - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - Ref userdata - ) => T.DelHintCallback(name, callback, userdata); + public void DelayPrecise([NativeTypeName("Uint64")] ulong ns) => T.DelayPrecise(ns); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyAudioStream")] [MethodImpl( @@ -12545,19 +15434,6 @@ public void DestroyHapticEffect(HapticHandle haptic, int effect) => )] public void DestroyPalette(Ref palette) => T.DestroyPalette(palette); - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public void DestroyPixelFormat(PixelFormat* format) => T.DestroyPixelFormat(format); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public void DestroyPixelFormat(Ref format) => T.DestroyPixelFormat(format); - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -12600,7 +15476,14 @@ public void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props) = [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void DestroyTexture(TextureHandle texture) => T.DestroyTexture(texture); + public void DestroyTexture(Texture* texture) => T.DestroyTexture(texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyTexture(Ref texture) => T.DestroyTexture(texture); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindow")] [MethodImpl( @@ -12608,11 +15491,22 @@ public void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props) = )] public void DestroyWindow(WindowHandle window) => T.DestroyWindow(window); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int DestroyWindowSurface(WindowHandle window) => T.DestroyWindowSurface(window); + public MaybeBool DestroyWindowSurface(WindowHandle window) => + T.DestroyWindowSurface(window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte DestroyWindowSurfaceRaw(WindowHandle window) => + T.DestroyWindowSurfaceRaw(window); [NativeFunction("SDL3", EntryPoint = "SDL_DetachThread")] [MethodImpl( @@ -12620,18 +15514,38 @@ public void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props) = )] public void DetachThread(ThreadHandle thread) => T.DetachThread(thread); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DetachVirtualJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool DetachVirtualJoystick( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.DetachVirtualJoystick(instance_id); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DetachVirtualJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id) => - T.DetachVirtualJoystick(instance_id); + public byte DetachVirtualJoystickRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.DetachVirtualJoystickRaw(instance_id); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int DisableScreenSaver() => T.DisableScreenSaver(); + public MaybeBool DisableScreenSaver() => T.DisableScreenSaver(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte DisableScreenSaverRaw() => T.DisableScreenSaverRaw(); [NativeFunction("SDL3", EntryPoint = "SDL_DuplicateSurface")] [MethodImpl( @@ -12648,33 +15562,33 @@ public int DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint instanc [return: NativeTypeName("SDL_EGLConfig")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentConfig")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr EGLGetCurrentEGLConfig() => T.EGLGetCurrentEGLConfig(); + public Ptr EGLGetCurrentConfig() => T.EGLGetCurrentConfig(); [return: NativeTypeName("SDL_EGLConfig")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentConfig")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void* EGLGetCurrentEGLConfigRaw() => T.EGLGetCurrentEGLConfigRaw(); + public void* EGLGetCurrentConfigRaw() => T.EGLGetCurrentConfigRaw(); [return: NativeTypeName("SDL_EGLDisplay")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentDisplay")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr EGLGetCurrentEGLDisplay() => T.EGLGetCurrentEGLDisplay(); + public Ptr EGLGetCurrentDisplay() => T.EGLGetCurrentDisplay(); [return: NativeTypeName("SDL_EGLDisplay")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentDisplay")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void* EGLGetCurrentEGLDisplayRaw() => T.EGLGetCurrentEGLDisplayRaw(); + public void* EGLGetCurrentDisplayRaw() => T.EGLGetCurrentDisplayRaw(); [return: NativeTypeName("SDL_FunctionPointer")] [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetProcAddress")] @@ -12696,169 +15610,204 @@ public FunctionPointer EGLGetProcAddress( [return: NativeTypeName("SDL_EGLSurface")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr EGLGetWindowEGLSurface(WindowHandle window) => T.EGLGetWindowEGLSurface(window); + public Ptr EGLGetWindowSurface(WindowHandle window) => T.EGLGetWindowSurface(window); [return: NativeTypeName("SDL_EGLSurface")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* EGLGetWindowSurfaceRaw(WindowHandle window) => + T.EGLGetWindowSurfaceRaw(window); + + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetAttributeCallbacks")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void* EGLGetWindowEGLSurfaceRaw(WindowHandle window) => - T.EGLGetWindowEGLSurfaceRaw(window); + public void EGLSetAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + EGLAttribArrayCallback platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + void* userdata + ) => + T.EGLSetAttributeCallbacks( + platformAttribCallback, + surfaceAttribCallback, + contextAttribCallback, + userdata + ); - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetEGLAttributeCallbacks")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetAttributeCallbacks")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void EGLSetEGLAttributeCallbacks( + public void EGLSetAttributeCallbacks( [NativeTypeName("SDL_EGLAttribArrayCallback")] EGLAttribArrayCallback platformAttribCallback, [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, - [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + Ref userdata ) => - T.EGLSetEGLAttributeCallbacks( + T.EGLSetAttributeCallbacks( platformAttribCallback, surfaceAttribCallback, - contextAttribCallback + contextAttribCallback, + userdata ); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnableScreenSaver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool EnableScreenSaver() => T.EnableScreenSaver(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnableScreenSaver")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int EnableScreenSaver() => T.EnableScreenSaver(); + public byte EnableScreenSaverRaw() => T.EnableScreenSaverRaw(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int EnumerateDirectory( + public byte EnumerateDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ) => T.EnumerateDirectory(path, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int EnumerateDirectory( + public MaybeBool EnumerateDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, Ref userdata ) => T.EnumerateDirectory(path, callback, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int EnumerateProperties( + public byte EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, void* userdata ) => T.EnumerateProperties(props, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int EnumerateProperties( + public MaybeBool EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, Ref userdata ) => T.EnumerateProperties(props, callback, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int EnumerateStorageDirectory( + public byte EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ) => T.EnumerateStorageDirectory(storage, path, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int EnumerateStorageDirectory( + public MaybeBool EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, Ref userdata ) => T.EnumerateStorageDirectory(storage, path, callback, userdata); - [NativeFunction("SDL3", EntryPoint = "SDL_Error")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int Error(Errorcode code) => T.Error(code); - - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) => + public MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) => T.EventEnabled(type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int EventEnabledRaw([NativeTypeName("Uint32")] uint type) => T.EventEnabledRaw(type); + public byte EventEnabledRaw([NativeTypeName("Uint32")] uint type) => + T.EventEnabledRaw(type); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int FillSurfaceRect( + public byte FillSurfaceRect( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("Uint32")] uint color ) => T.FillSurfaceRect(dst, rect, color); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int FillSurfaceRect( + public MaybeBool FillSurfaceRect( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("Uint32")] uint color ) => T.FillSurfaceRect(dst, rect, color); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int FillSurfaceRects( + public byte FillSurfaceRects( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rects, int count, [NativeTypeName("Uint32")] uint color ) => T.FillSurfaceRects(dst, rects, count, color); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int FillSurfaceRects( + public MaybeBool FillSurfaceRects( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rects, int count, @@ -12884,31 +15833,54 @@ public void FilterEvents( Ref userdata ) => T.FilterEvents(filter, userdata); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int FlashWindow(WindowHandle window, FlashOperation operation) => + public MaybeBool FlashWindow(WindowHandle window, FlashOperation operation) => T.FlashWindow(window, operation); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte FlashWindowRaw(WindowHandle window, FlashOperation operation) => + T.FlashWindowRaw(window, operation); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int FlipSurface(Surface* surface, FlipMode flip) => T.FlipSurface(surface, flip); + public byte FlipSurface(Surface* surface, FlipMode flip) => T.FlipSurface(surface, flip); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int FlipSurface(Ref surface, FlipMode flip) => T.FlipSurface(surface, flip); + public MaybeBool FlipSurface(Ref surface, FlipMode flip) => + T.FlipSurface(surface, flip); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int FlushAudioStream(AudioStreamHandle stream) => T.FlushAudioStream(stream); + public MaybeBool FlushAudioStream(AudioStreamHandle stream) => + T.FlushAudioStream(stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte FlushAudioStreamRaw(AudioStreamHandle stream) => T.FlushAudioStreamRaw(stream); [NativeFunction("SDL3", EntryPoint = "SDL_FlushEvent")] [MethodImpl( @@ -12925,111 +15897,153 @@ public void FlushEvents( [NativeTypeName("Uint32")] uint maxType ) => T.FlushEvents(minType, maxType); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool FlushIO(IOStreamHandle context) => T.FlushIO(context); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte FlushIORaw(IOStreamHandle context) => T.FlushIORaw(context); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool FlushRenderer(RendererHandle renderer) => T.FlushRenderer(renderer); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int FlushRenderer(RendererHandle renderer) => T.FlushRenderer(renderer); + public byte FlushRendererRaw(RendererHandle renderer) => T.FlushRendererRaw(renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GamepadConnected(GamepadHandle gamepad) => + public MaybeBool GamepadConnected(GamepadHandle gamepad) => T.GamepadConnected(gamepad); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GamepadConnectedRaw(GamepadHandle gamepad) => T.GamepadConnectedRaw(gamepad); + public byte GamepadConnectedRaw(GamepadHandle gamepad) => T.GamepadConnectedRaw(gamepad); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GamepadEventsEnabled() => T.GamepadEventsEnabled(); + public MaybeBool GamepadEventsEnabled() => T.GamepadEventsEnabled(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GamepadEventsEnabledRaw() => T.GamepadEventsEnabledRaw(); + public byte GamepadEventsEnabledRaw() => T.GamepadEventsEnabledRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis) => + public MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis) => T.GamepadHasAxis(gamepad, axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => + public byte GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => T.GamepadHasAxisRaw(gamepad, axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GamepadHasButton(GamepadHandle gamepad, GamepadButton button) => + public MaybeBool GamepadHasButton(GamepadHandle gamepad, GamepadButton button) => T.GamepadHasButton(gamepad, button); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button) => + public byte GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button) => T.GamepadHasButtonRaw(gamepad, button); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType type) => + public MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType type) => T.GamepadHasSensor(gamepad, type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type) => + public byte GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type) => T.GamepadHasSensorRaw(gamepad, type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, SensorType type) => + public MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, SensorType type) => T.GamepadSensorEnabled(gamepad, type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => + public byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => T.GamepadSensorEnabledRaw(gamepad, type); + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAppMetadataProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetAppMetadataProperty([NativeTypeName("const char *")] sbyte* name) => + T.GetAppMetadataProperty(name); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAppMetadataProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetAppMetadataProperty( + [NativeTypeName("const char *")] Ref name + ) => T.GetAppMetadataProperty(name); + [return: NativeTypeName("SDL_AssertionHandler")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionHandler")] [MethodImpl( @@ -13062,43 +16076,97 @@ public AssertionHandler GetAssertionHandler(Ref2D puserdata) => )] public AssertData* GetAssertionReportRaw() => T.GetAssertionReportRaw(); - [return: NativeTypeName("SDL_AudioDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicInt")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint* GetAudioCaptureDevices(int* count) => T.GetAudioCaptureDevices(count); + public int GetAtomicInt(AtomicInt* a) => T.GetAtomicInt(a); - [return: NativeTypeName("SDL_AudioDeviceID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetAtomicInt(Ref a) => T.GetAtomicInt(a); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* GetAtomicPointer(void** a) => T.GetAtomicPointer(a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetAtomicPointer(Ref2D a) => T.GetAtomicPointer(a); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetAtomicU32(AtomicU32* a) => T.GetAtomicU32(a); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetAtomicU32(Ref a) => T.GetAtomicU32(a); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceChannelMap")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetAudioCaptureDevices(Ref count) => T.GetAudioCaptureDevices(count); + public int* GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + int* count + ) => T.GetAudioDeviceChannelMap(devid, count); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref count + ) => T.GetAudioDeviceChannelMap(devid, count); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetAudioDeviceFormat( + public byte GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioSpec* spec, int* sample_frames ) => T.GetAudioDeviceFormat(devid, spec, sample_frames); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetAudioDeviceFormat( + public MaybeBool GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, Ref spec, Ref sample_frames ) => T.GetAudioDeviceFormat(devid, spec, sample_frames); - [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetAudioDeviceGain([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + T.GetAudioDeviceGain(devid); + + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] [MethodImpl( @@ -13107,7 +16175,7 @@ Ref sample_frames public Ptr GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID")] uint devid) => T.GetAudioDeviceName(devid); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -13130,20 +16198,52 @@ public Ptr GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID")] uint )] public sbyte* GetAudioDriverRaw(int index) => T.GetAudioDriverRaw(index); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioFormatName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetAudioFormatName(AudioFormat format) => T.GetAudioFormatName(format); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioFormatName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetAudioFormatNameRaw(AudioFormat format) => T.GetAudioFormatNameRaw(format); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioPlaybackDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint* GetAudioPlaybackDevices(int* count) => T.GetAudioPlaybackDevices(count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioPlaybackDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetAudioPlaybackDevices(Ref count) => + T.GetAudioPlaybackDevices(count); + [return: NativeTypeName("SDL_AudioDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioRecordingDevices")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint* GetAudioOutputDevices(int* count) => T.GetAudioOutputDevices(count); + public uint* GetAudioRecordingDevices(int* count) => T.GetAudioRecordingDevices(count); [return: NativeTypeName("SDL_AudioDeviceID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioRecordingDevices")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetAudioOutputDevices(Ref count) => T.GetAudioOutputDevices(count); + public Ptr GetAudioRecordingDevices(Ref count) => + T.GetAudioRecordingDevices(count); [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamAvailable")] [MethodImpl( @@ -13175,22 +16275,24 @@ public int GetAudioStreamData(AudioStreamHandle stream, Ref buf, int len) => public uint GetAudioStreamDevice(AudioStreamHandle stream) => T.GetAudioStreamDevice(stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetAudioStreamFormat( + public byte GetAudioStreamFormat( AudioStreamHandle stream, AudioSpec* src_spec, AudioSpec* dst_spec ) => T.GetAudioStreamFormat(stream, src_spec, dst_spec); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetAudioStreamFormat( + public MaybeBool GetAudioStreamFormat( AudioStreamHandle stream, Ref src_spec, Ref dst_spec @@ -13203,6 +16305,42 @@ Ref dst_spec public float GetAudioStreamFrequencyRatio(AudioStreamHandle stream) => T.GetAudioStreamFrequencyRatio(stream); + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetAudioStreamGain(AudioStreamHandle stream) => T.GetAudioStreamGain(stream); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamInputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int* GetAudioStreamInputChannelMap(AudioStreamHandle stream, int* count) => + T.GetAudioStreamInputChannelMap(stream, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamInputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetAudioStreamInputChannelMap(AudioStreamHandle stream, Ref count) => + T.GetAudioStreamInputChannelMap(stream, count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamOutputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int* GetAudioStreamOutputChannelMap(AudioStreamHandle stream, int* count) => + T.GetAudioStreamOutputChannelMap(stream, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamOutputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetAudioStreamOutputChannelMap(AudioStreamHandle stream, Ref count) => + T.GetAudioStreamOutputChannelMap(stream, count); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamProperties")] [MethodImpl( @@ -13217,7 +16355,7 @@ public uint GetAudioStreamProperties(AudioStreamHandle stream) => )] public int GetAudioStreamQueued(AudioStreamHandle stream) => T.GetAudioStreamQueued(stream); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] [MethodImpl( @@ -13225,147 +16363,147 @@ public uint GetAudioStreamProperties(AudioStreamHandle stream) => )] public Ptr GetBasePath() => T.GetBasePath(); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public sbyte* GetBasePathRaw() => T.GetBasePathRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetBooleanProperty( + public byte GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ) => T.GetBooleanProperty(props, name, default_value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetBooleanProperty( + public MaybeBool GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value + [NativeTypeName("bool")] MaybeBool default_value ) => T.GetBooleanProperty(props, name, default_value); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetCameraDeviceName( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ) => T.GetCameraDeviceName(instance_id); + public Ptr GetCameraDriver(int index) => T.GetCameraDriver(index); - [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public sbyte* GetCameraDeviceNameRaw( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ) => T.GetCameraDeviceNameRaw(instance_id); + public sbyte* GetCameraDriverRaw(int index) => T.GetCameraDriverRaw(index); - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevicePosition")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public CameraPosition GetCameraDevicePosition( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ) => T.GetCameraDevicePosition(instance_id); + public byte GetCameraFormat(CameraHandle camera, CameraSpec* spec) => + T.GetCameraFormat(camera, spec); - [return: NativeTypeName("SDL_CameraDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint* GetCameraDevices(int* count) => T.GetCameraDevices(count); + public MaybeBool GetCameraFormat(CameraHandle camera, Ref spec) => + T.GetCameraFormat(camera, spec); - [return: NativeTypeName("SDL_CameraDeviceID *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] + [return: NativeTypeName("SDL_CameraID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetCameraDevices(Ref count) => T.GetCameraDevices(count); + public uint GetCameraID(CameraHandle camera) => T.GetCameraID(camera); - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public CameraSpec* GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - int* count - ) => T.GetCameraDeviceSupportedFormats(devid, count); + public Ptr GetCameraName([NativeTypeName("SDL_CameraID")] uint instance_id) => + T.GetCameraName(instance_id); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - Ref count - ) => T.GetCameraDeviceSupportedFormats(devid, count); + public sbyte* GetCameraNameRaw([NativeTypeName("SDL_CameraID")] uint instance_id) => + T.GetCameraNameRaw(instance_id); - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetCameraDriver(int index) => T.GetCameraDriver(index); + public int GetCameraPermissionState(CameraHandle camera) => + T.GetCameraPermissionState(camera); - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPosition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public sbyte* GetCameraDriverRaw(int index) => T.GetCameraDriverRaw(index); + public CameraPosition GetCameraPosition( + [NativeTypeName("SDL_CameraID")] uint instance_id + ) => T.GetCameraPosition(instance_id); - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetCameraFormat(CameraHandle camera, CameraSpec* spec) => - T.GetCameraFormat(camera, spec); + public uint GetCameraProperties(CameraHandle camera) => T.GetCameraProperties(camera); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] + [return: NativeTypeName("SDL_CameraID *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameras")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetCameraFormat(CameraHandle camera, Ref spec) => - T.GetCameraFormat(camera, spec); + public uint* GetCameras(int* count) => T.GetCameras(count); - [return: NativeTypeName("SDL_CameraDeviceID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraInstanceID")] + [return: NativeTypeName("SDL_CameraID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameras")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint GetCameraInstanceID(CameraHandle camera) => T.GetCameraInstanceID(camera); + public Ptr GetCameras(Ref count) => T.GetCameras(count); - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetCameraPermissionState(CameraHandle camera) => - T.GetCameraPermissionState(camera); + public CameraSpec** GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + int* count + ) => T.GetCameraSupportedFormats(devid, count); - [return: NativeTypeName("SDL_PropertiesID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraProperties")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint GetCameraProperties(CameraHandle camera) => T.GetCameraProperties(camera); + public Ptr2D GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + Ref count + ) => T.GetCameraSupportedFormats(devid, count); [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardData")] [MethodImpl( @@ -13386,6 +16524,24 @@ public Ptr GetClipboardData( [NativeTypeName("size_t *")] Ref size ) => T.GetClipboardData(mime_type, size); + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardMimeTypes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte** GetClipboardMimeTypes([NativeTypeName("size_t *")] nuint* num_mime_types) => + T.GetClipboardMimeTypes(num_mime_types); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardMimeTypes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr2D GetClipboardMimeTypes( + [NativeTypeName("size_t *")] Ref num_mime_types + ) => T.GetClipboardMimeTypes(num_mime_types); + [return: NativeTypeName("char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] @@ -13401,45 +16557,49 @@ public Ptr GetClipboardData( )] public sbyte* GetClipboardTextRaw() => T.GetClipboardTextRaw(); - [return: NativeTypeName("const SDL_DisplayMode *")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public DisplayMode* GetClosestFullscreenDisplayMode( + public byte GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] int include_high_density_modes + [NativeTypeName("bool")] byte include_high_density_modes, + DisplayMode* mode ) => T.GetClosestFullscreenDisplayMode( displayID, w, h, refresh_rate, - include_high_density_modes + include_high_density_modes, + mode ); - [return: NativeTypeName("const SDL_DisplayMode *")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetClosestFullscreenDisplayMode( + public MaybeBool GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] MaybeBool include_high_density_modes + [NativeTypeName("bool")] MaybeBool include_high_density_modes, + Ref mode ) => T.GetClosestFullscreenDisplayMode( displayID, w, h, refresh_rate, - include_high_density_modes + include_high_density_modes, + mode ); [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCacheLineSize")] @@ -13448,12 +16608,6 @@ public Ptr GetClosestFullscreenDisplayMode( )] public int GetCPUCacheLineSize() => T.GetCPUCacheLineSize(); - [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCount")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int GetCPUCount() => T.GetCPUCount(); - [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] @@ -13511,20 +16665,25 @@ public DisplayOrientation GetCurrentDisplayOrientation( [NativeTypeName("SDL_DisplayID")] uint displayID ) => T.GetCurrentDisplayOrientation(displayID); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h) => + public byte GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h) => T.GetCurrentRenderOutputSize(renderer, w, h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetCurrentRenderOutputSize(RendererHandle renderer, Ref w, Ref h) => - T.GetCurrentRenderOutputSize(renderer, w, h); + public MaybeBool GetCurrentRenderOutputSize( + RendererHandle renderer, + Ref w, + Ref h + ) => T.GetCurrentRenderOutputSize(renderer, w, h); [return: NativeTypeName("SDL_ThreadID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentThreadID")] @@ -13533,19 +16692,21 @@ public int GetCurrentRenderOutputSize(RendererHandle renderer, Ref w, Ref T.GetCurrentThreadID(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => + public byte GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => T.GetCurrentTime(ticks); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) => + public MaybeBool GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) => T.GetCurrentTime(ticks); [return: NativeTypeName("const char *")] @@ -13569,6 +16730,25 @@ public int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) => )] public CursorHandle GetCursor() => T.GetCursor(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDateTimeLocalePreferences")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetDateTimeLocalePreferences(DateFormat* dateFormat, TimeFormat* timeFormat) => + T.GetDateTimeLocalePreferences(dateFormat, timeFormat); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDateTimeLocalePreferences")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetDateTimeLocalePreferences( + Ref dateFormat, + Ref timeFormat + ) => T.GetDateTimeLocalePreferences(dateFormat, timeFormat); + [NativeFunction("SDL3", EntryPoint = "SDL_GetDayOfWeek")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -13600,6 +16780,13 @@ public int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) => )] public CursorHandle GetDefaultCursor() => T.GetDefaultCursor(); + [return: NativeTypeName("SDL_LogOutputFunction")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultLogOutputFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public LogOutputFunction GetDefaultLogOutputFunction() => T.GetDefaultLogOutputFunction(); + [return: NativeTypeName("const SDL_DisplayMode *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] @@ -13619,19 +16806,23 @@ public Ptr GetDesktopDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID ) => T.GetDesktopDisplayModeRaw(displayID); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect) => - T.GetDisplayBounds(displayID, rect); + public byte GetDisplayBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Rect* rect + ) => T.GetDisplayBounds(displayID, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetDisplayBounds( + public MaybeBool GetDisplayBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect ) => T.GetDisplayBounds(displayID, rect); @@ -13724,21 +16915,23 @@ public uint GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint displayI )] public Ptr GetDisplays(Ref count) => T.GetDisplays(count); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetDisplayUsableBounds( + public byte GetDisplayUsableBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect ) => T.GetDisplayUsableBounds(displayID, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetDisplayUsableBounds( + public MaybeBool GetDisplayUsableBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect ) => T.GetDisplayUsableBounds(displayID, rect); @@ -13758,23 +16951,23 @@ Ref rect )] public sbyte* GetErrorRaw() => T.GetErrorRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetEventFilter( + public byte GetEventFilter( [NativeTypeName("SDL_EventFilter *")] EventFilter* filter, void** userdata ) => T.GetEventFilter(filter, userdata); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetEventFilter( + public MaybeBool GetEventFilter( [NativeTypeName("SDL_EventFilter *")] Ref filter, Ref2D userdata ) => T.GetEventFilter(filter, userdata); @@ -13800,7 +16993,6 @@ public float GetFloatProperty( float default_value ) => T.GetFloatProperty(props, name, default_value); - [return: NativeTypeName("const SDL_DisplayMode **")] [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -13810,7 +17002,6 @@ float default_value int* count ) => T.GetFullscreenDisplayModes(displayID, count); - [return: NativeTypeName("const SDL_DisplayMode **")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] [MethodImpl( @@ -13902,12 +17093,13 @@ public GamepadAxis GetGamepadAxisFromString( public Ptr2D GetGamepadBindings(GamepadHandle gamepad, Ref count) => T.GetGamepadBindings(gamepad, count); - [return: NativeTypeName("Uint8")] + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public byte GetGamepadButton(GamepadHandle gamepad, GamepadButton button) => + public MaybeBool GetGamepadButton(GamepadHandle gamepad, GamepadButton button) => T.GetGamepadButton(gamepad, button); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonFromString")] @@ -13945,6 +17137,14 @@ public GamepadButtonLabel GetGamepadButtonLabelForType( GamepadButton button ) => T.GetGamepadButtonLabelForType(type, button); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetGamepadButtonRaw(GamepadHandle gamepad, GamepadButton button) => + T.GetGamepadButtonRaw(gamepad, button); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadConnectionState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -13960,13 +17160,13 @@ public JoystickConnectionState GetGamepadConnectionState(GamepadHandle gamepad) public ushort GetGamepadFirmwareVersion(GamepadHandle gamepad) => T.GetGamepadFirmwareVersion(gamepad); - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public GamepadHandle GetGamepadFromInstanceID( + public GamepadHandle GetGamepadFromID( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetGamepadFromInstanceID(instance_id); + ) => T.GetGamepadFromID(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] [MethodImpl( @@ -13975,153 +17175,68 @@ public GamepadHandle GetGamepadFromInstanceID( public GamepadHandle GetGamepadFromPlayerIndex(int player_index) => T.GetGamepadFromPlayerIndex(player_index); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceGUID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadGUIDForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Guid GetGamepadInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id) => - T.GetGamepadInstanceGuid(instance_id); + public Guid GetGamepadGuidForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.GetGamepadGuidForID(instance_id); [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint GetGamepadInstanceID(GamepadHandle gamepad) => T.GetGamepadInstanceID(gamepad); + public uint GetGamepadID(GamepadHandle gamepad) => T.GetGamepadID(gamepad); - [return: NativeTypeName("char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceMapping")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetGamepadInstanceMapping( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetGamepadInstanceMapping(instance_id); + public JoystickHandle GetGamepadJoystick(GamepadHandle gamepad) => + T.GetGamepadJoystick(gamepad); [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceMapping")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public sbyte* GetGamepadInstanceMappingRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetGamepadInstanceMappingRaw(instance_id); - - [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Ptr GetGamepadInstanceName( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetGamepadInstanceName(instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMapping")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public sbyte* GetGamepadInstanceNameRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetGamepadInstanceNameRaw(instance_id); + public Ptr GetGamepadMapping(GamepadHandle gamepad) => T.GetGamepadMapping(gamepad); - [return: NativeTypeName("const char *")] + [return: NativeTypeName("char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePath")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Ptr GetGamepadInstancePath( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetGamepadInstancePath(instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePath")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public sbyte* GetGamepadInstancePathRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetGamepadInstancePathRaw(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePlayerIndex")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int GetGamepadInstancePlayerIndex( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetGamepadInstancePlayerIndex(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceProduct")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public ushort GetGamepadInstanceProduct( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetGamepadInstanceProduct(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceProductVersion")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public ushort GetGamepadInstanceProductVersion( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetGamepadInstanceProductVersion(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceType")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public GamepadType GetGamepadInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetGamepadInstanceType(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceVendor")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public ushort GetGamepadInstanceVendor( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetGamepadInstanceVendor(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadJoystick")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public JoystickHandle GetGamepadJoystick(GamepadHandle gamepad) => - T.GetGamepadJoystick(gamepad); + public Ptr GetGamepadMappingForGuid(Guid guid) => T.GetGamepadMappingForGuid(guid); [return: NativeTypeName("char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMapping")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetGamepadMapping(GamepadHandle gamepad) => T.GetGamepadMapping(gamepad); + public sbyte* GetGamepadMappingForGuidRaw(Guid guid) => T.GetGamepadMappingForGuidRaw(guid); [return: NativeTypeName("char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetGamepadMappingForGuid( - [NativeTypeName("SDL_JoystickGUID")] Guid guid - ) => T.GetGamepadMappingForGuid(guid); + public Ptr GetGamepadMappingForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadMappingForID(instance_id); [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public sbyte* GetGamepadMappingForGuidRaw([NativeTypeName("SDL_JoystickGUID")] Guid guid) => - T.GetGamepadMappingForGuidRaw(guid); + public sbyte* GetGamepadMappingForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadMappingForIDRaw(instance_id); [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMapping")] @@ -14154,6 +17269,24 @@ public Ptr GetGamepadMappingForGuid( )] public Ptr GetGamepadName(GamepadHandle gamepad) => T.GetGamepadName(gamepad); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadNameForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadNameForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadNameForID(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadNameForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadNameForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.GetGamepadNameForIDRaw(instance_id); + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadName")] [MethodImpl( @@ -14169,6 +17302,24 @@ public Ptr GetGamepadMappingForGuid( )] public Ptr GetGamepadPath(GamepadHandle gamepad) => T.GetGamepadPath(gamepad); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPathForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadPathForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadPathForID(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPathForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadPathForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.GetGamepadPathForIDRaw(instance_id); + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPath")] [MethodImpl( @@ -14182,6 +17333,14 @@ public Ptr GetGamepadMappingForGuid( )] public int GetGamepadPlayerIndex(GamepadHandle gamepad) => T.GetGamepadPlayerIndex(gamepad); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndexForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetGamepadPlayerIndexForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadPlayerIndexForID(instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPowerInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -14204,6 +17363,14 @@ public PowerState GetGamepadPowerInfo(GamepadHandle gamepad, Ref percent) = )] public ushort GetGamepadProduct(GamepadHandle gamepad) => T.GetGamepadProduct(gamepad); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadProductForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.GetGamepadProductForID(instance_id); + [return: NativeTypeName("Uint16")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersion")] [MethodImpl( @@ -14212,6 +17379,15 @@ public PowerState GetGamepadPowerInfo(GamepadHandle gamepad, Ref percent) = public ushort GetGamepadProductVersion(GamepadHandle gamepad) => T.GetGamepadProductVersion(gamepad); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersionForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadProductVersionForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadProductVersionForID(instance_id); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProperties")] [MethodImpl( @@ -14234,23 +17410,25 @@ public ushort GetGamepadProductVersion(GamepadHandle gamepad) => )] public Ptr GetGamepads(Ref count) => T.GetGamepads(count); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetGamepadSensorData( + public byte GetGamepadSensorData( GamepadHandle gamepad, SensorType type, float* data, int num_values ) => T.GetGamepadSensorData(gamepad, type, data, num_values); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetGamepadSensorData( + public MaybeBool GetGamepadSensorData( GamepadHandle gamepad, SensorType type, Ref data, @@ -14338,34 +17516,36 @@ public Ptr GetGamepadStringForType(GamepadType type) => public sbyte* GetGamepadStringForTypeRaw(GamepadType type) => T.GetGamepadStringForTypeRaw(type); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetGamepadTouchpadFinger( + public byte GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] byte* state, + bool* down, float* x, float* y, float* pressure - ) => T.GetGamepadTouchpadFinger(gamepad, touchpad, finger, state, x, y, pressure); + ) => T.GetGamepadTouchpadFinger(gamepad, touchpad, finger, down, x, y, pressure); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetGamepadTouchpadFinger( + public MaybeBool GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] Ref state, + Ref down, Ref x, Ref y, Ref pressure - ) => T.GetGamepadTouchpadFinger(gamepad, touchpad, finger, state, x, y, pressure); + ) => T.GetGamepadTouchpadFinger(gamepad, touchpad, finger, down, x, y, pressure); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadType")] [MethodImpl( @@ -14373,6 +17553,14 @@ Ref pressure )] public GamepadType GetGamepadType(GamepadHandle gamepad) => T.GetGamepadType(gamepad); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadType GetGamepadTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadTypeForID(instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeFromString")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -14396,14 +17584,22 @@ public GamepadType GetGamepadTypeFromString( )] public ushort GetGamepadVendor(GamepadHandle gamepad) => T.GetGamepadVendor(gamepad); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendorForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadVendorForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.GetGamepadVendorForID(instance_id); + + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public uint GetGlobalMouseState(float* x, float* y) => T.GetGlobalMouseState(x, y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] [MethodImpl( @@ -14424,13 +17620,23 @@ public GamepadType GetGamepadTypeFromString( )] public WindowHandle GetGrabbedWindow() => T.GetGrabbedWindow(); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetHapticEffectStatus(HapticHandle haptic, int effect) => + public MaybeBool GetHapticEffectStatus(HapticHandle haptic, int effect) => T.GetHapticEffectStatus(haptic, effect); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetHapticEffectStatusRaw(HapticHandle haptic, int effect) => + T.GetHapticEffectStatusRaw(haptic, effect); + [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFeatures")] [MethodImpl( @@ -14438,46 +17644,44 @@ public int GetHapticEffectStatus(HapticHandle haptic, int effect) => )] public uint GetHapticFeatures(HapticHandle haptic) => T.GetHapticFeatures(haptic); - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public HapticHandle GetHapticFromInstanceID( - [NativeTypeName("SDL_HapticID")] uint instance_id - ) => T.GetHapticFromInstanceID(instance_id); + public HapticHandle GetHapticFromID([NativeTypeName("SDL_HapticID")] uint instance_id) => + T.GetHapticFromID(instance_id); [return: NativeTypeName("SDL_HapticID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint GetHapticInstanceID(HapticHandle haptic) => T.GetHapticInstanceID(haptic); + public uint GetHapticID(HapticHandle haptic) => T.GetHapticID(haptic); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetHapticInstanceName( - [NativeTypeName("SDL_HapticID")] uint instance_id - ) => T.GetHapticInstanceName(instance_id); + public Ptr GetHapticName(HapticHandle haptic) => T.GetHapticName(haptic); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public sbyte* GetHapticInstanceNameRaw([NativeTypeName("SDL_HapticID")] uint instance_id) => - T.GetHapticInstanceNameRaw(instance_id); + public Ptr GetHapticNameForID([NativeTypeName("SDL_HapticID")] uint instance_id) => + T.GetHapticNameForID(instance_id); [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetHapticName(HapticHandle haptic) => T.GetHapticName(haptic); + public sbyte* GetHapticNameForIDRaw([NativeTypeName("SDL_HapticID")] uint instance_id) => + T.GetHapticNameForIDRaw(instance_id); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] @@ -14517,25 +17721,25 @@ public Ptr GetHapticInstanceName( public Ptr GetHint([NativeTypeName("const char *")] Ref name) => T.GetHint(name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetHintBoolean( + public byte GetHintBoolean( [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ) => T.GetHintBoolean(name, default_value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetHintBoolean( + public MaybeBool GetHintBoolean( [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value + [NativeTypeName("bool")] MaybeBool default_value ) => T.GetHintBoolean(name, default_value); [return: NativeTypeName("SDL_PropertiesID")] @@ -14566,52 +17770,67 @@ public MaybeBool GetHintBoolean( public short GetJoystickAxis(JoystickHandle joystick, int axis) => T.GetJoystickAxis(joystick, axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetJoystickAxisInitialState( + public byte GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] short* state ) => T.GetJoystickAxisInitialState(joystick, axis, state); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetJoystickAxisInitialState( + public MaybeBool GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] Ref state ) => T.GetJoystickAxisInitialState(joystick, axis, state); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy) => + public byte GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy) => T.GetJoystickBall(joystick, ball, dx, dy); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetJoystickBall(JoystickHandle joystick, int ball, Ref dx, Ref dy) => - T.GetJoystickBall(joystick, ball, dx, dy); + public MaybeBool GetJoystickBall( + JoystickHandle joystick, + int ball, + Ref dx, + Ref dy + ) => T.GetJoystickBall(joystick, ball, dx, dy); - [return: NativeTypeName("Uint8")] + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public byte GetJoystickButton(JoystickHandle joystick, int button) => + public MaybeBool GetJoystickButton(JoystickHandle joystick, int button) => T.GetJoystickButton(joystick, button); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetJoystickButtonRaw(JoystickHandle joystick, int button) => + T.GetJoystickButtonRaw(joystick, button); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickConnectionState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -14627,13 +17846,13 @@ public JoystickConnectionState GetJoystickConnectionState(JoystickHandle joystic public ushort GetJoystickFirmwareVersion(JoystickHandle joystick) => T.GetJoystickFirmwareVersion(joystick); - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public JoystickHandle GetJoystickFromInstanceID( + public JoystickHandle GetJoystickFromID( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetJoystickFromInstanceID(instance_id); + ) => T.GetJoystickFromID(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] [MethodImpl( @@ -14642,37 +17861,25 @@ public JoystickHandle GetJoystickFromInstanceID( public JoystickHandle GetJoystickFromPlayerIndex(int player_index) => T.GetJoystickFromPlayerIndex(player_index); - [return: NativeTypeName("SDL_JoystickGUID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public Guid GetJoystickGuid(JoystickHandle joystick) => T.GetJoystickGuid(joystick); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDFromString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Guid GetJoystickGuidFromString([NativeTypeName("const char *")] sbyte* pchGUID) => - T.GetJoystickGuidFromString(pchGUID); - - [return: NativeTypeName("SDL_JoystickGUID")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDFromString")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Guid GetJoystickGuidFromString( - [NativeTypeName("const char *")] Ref pchGUID - ) => T.GetJoystickGuidFromString(pchGUID); + public Guid GetJoystickGuidForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.GetJoystickGuidForID(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public void GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] ushort* vendor, [NativeTypeName("Uint16 *")] ushort* product, [NativeTypeName("Uint16 *")] ushort* version, @@ -14685,34 +17892,13 @@ public void GetJoystickGuidInfo( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public void GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] Ref vendor, [NativeTypeName("Uint16 *")] Ref product, [NativeTypeName("Uint16 *")] Ref version, [NativeTypeName("Uint16 *")] Ref crc16 ) => T.GetJoystickGuidInfo(guid, vendor, product, version, crc16); - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] sbyte* pszGUID, - int cbGUID - ) => T.GetJoystickGuidString(guid, pszGUID, cbGUID); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] Ref pszGUID, - int cbGUID - ) => T.GetJoystickGuidString(guid, pszGUID, cbGUID); - [return: NativeTypeName("Uint8")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickHat")] [MethodImpl( @@ -14721,125 +17907,73 @@ int cbGUID public byte GetJoystickHat(JoystickHandle joystick, int hat) => T.GetJoystickHat(joystick, hat); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceGUID")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Guid GetJoystickInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id) => - T.GetJoystickInstanceGuid(instance_id); - [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint GetJoystickInstanceID(JoystickHandle joystick) => - T.GetJoystickInstanceID(joystick); + public uint GetJoystickID(JoystickHandle joystick) => T.GetJoystickID(joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Ptr GetJoystickInstanceName( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetJoystickInstanceName(instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public sbyte* GetJoystickInstanceNameRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetJoystickInstanceNameRaw(instance_id); + public Ptr GetJoystickName(JoystickHandle joystick) => T.GetJoystickName(joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetJoystickInstancePath( + public Ptr GetJoystickNameForID( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetJoystickInstancePath(instance_id); + ) => T.GetJoystickNameForID(instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public sbyte* GetJoystickInstancePathRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetJoystickInstancePathRaw(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePlayerIndex")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetJoystickInstancePlayerIndex( + public sbyte* GetJoystickNameForIDRaw( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetJoystickInstancePlayerIndex(instance_id); + ) => T.GetJoystickNameForIDRaw(instance_id); - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceProduct")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public ushort GetJoystickInstanceProduct( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetJoystickInstanceProduct(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceProductVersion")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public ushort GetJoystickInstanceProductVersion( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetJoystickInstanceProductVersion(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceType")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public JoystickType GetJoystickInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetJoystickInstanceType(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceVendor")] + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public ushort GetJoystickInstanceVendor( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetJoystickInstanceVendor(instance_id); + public sbyte* GetJoystickNameRaw(JoystickHandle joystick) => T.GetJoystickNameRaw(joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetJoystickName(JoystickHandle joystick) => T.GetJoystickName(joystick); + public Ptr GetJoystickPath(JoystickHandle joystick) => T.GetJoystickPath(joystick); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPathForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public sbyte* GetJoystickNameRaw(JoystickHandle joystick) => T.GetJoystickNameRaw(joystick); + public Ptr GetJoystickPathForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickPathForID(instance_id); [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPathForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetJoystickPath(JoystickHandle joystick) => T.GetJoystickPath(joystick); + public sbyte* GetJoystickPathForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickPathForIDRaw(instance_id); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] @@ -14855,6 +17989,14 @@ public ushort GetJoystickInstanceVendor( public int GetJoystickPlayerIndex(JoystickHandle joystick) => T.GetJoystickPlayerIndex(joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndexForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetJoystickPlayerIndexForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickPlayerIndexForID(instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPowerInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -14877,6 +18019,15 @@ public PowerState GetJoystickPowerInfo(JoystickHandle joystick, Ref percent )] public ushort GetJoystickProduct(JoystickHandle joystick) => T.GetJoystickProduct(joystick); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickProductForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickProductForID(instance_id); + [return: NativeTypeName("Uint16")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersion")] [MethodImpl( @@ -14885,6 +18036,15 @@ public PowerState GetJoystickPowerInfo(JoystickHandle joystick, Ref percent public ushort GetJoystickProductVersion(JoystickHandle joystick) => T.GetJoystickProductVersion(joystick); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersionForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickProductVersionForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickProductVersionForID(instance_id); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProperties")] [MethodImpl( @@ -14931,6 +18091,14 @@ public Ptr GetJoystickSerial(JoystickHandle joystick) => )] public JoystickType GetJoystickType(JoystickHandle joystick) => T.GetJoystickType(joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickTypeForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public JoystickType GetJoystickTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickTypeForID(instance_id); + [return: NativeTypeName("Uint16")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendor")] [MethodImpl( @@ -14938,6 +18106,14 @@ public Ptr GetJoystickSerial(JoystickHandle joystick) => )] public ushort GetJoystickVendor(JoystickHandle joystick) => T.GetJoystickVendor(joystick); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendorForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickVendorForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.GetJoystickVendorForID(instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -14946,22 +18122,22 @@ public Ptr GetJoystickSerial(JoystickHandle joystick) => [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetKeyboardInstanceName( + public Ptr GetKeyboardNameForID( [NativeTypeName("SDL_KeyboardID")] uint instance_id - ) => T.GetKeyboardInstanceName(instance_id); + ) => T.GetKeyboardNameForID(instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public sbyte* GetKeyboardInstanceNameRaw( + public sbyte* GetKeyboardNameForIDRaw( [NativeTypeName("SDL_KeyboardID")] uint instance_id - ) => T.GetKeyboardInstanceNameRaw(instance_id); + ) => T.GetKeyboardNameForIDRaw(instance_id); [return: NativeTypeName("SDL_KeyboardID *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboards")] @@ -14978,27 +18154,27 @@ public Ptr GetKeyboardInstanceName( )] public Ptr GetKeyboards(Ref count) => T.GetKeyboards(count); - [return: NativeTypeName("const Uint8 *")] + [return: NativeTypeName("const bool *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public byte* GetKeyboardState(int* numkeys) => T.GetKeyboardState(numkeys); + public bool* GetKeyboardState(int* numkeys) => T.GetKeyboardState(numkeys); - [return: NativeTypeName("const Uint8 *")] + [return: NativeTypeName("const bool *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetKeyboardState(Ref numkeys) => T.GetKeyboardState(numkeys); + public Ptr GetKeyboardState(Ref numkeys) => T.GetKeyboardState(numkeys); [return: NativeTypeName("SDL_Keycode")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => + public uint GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => T.GetKeyFromName(name); [return: NativeTypeName("SDL_Keycode")] @@ -15007,7 +18183,7 @@ public int GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetKeyFromName([NativeTypeName("const char *")] Ref name) => + public uint GetKeyFromName([NativeTypeName("const char *")] Ref name) => T.GetKeyFromName(name); [return: NativeTypeName("SDL_Keycode")] @@ -15015,7 +18191,23 @@ public int GetKeyFromName([NativeTypeName("const char *")] Ref name) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetKeyFromScancode(Scancode scancode) => T.GetKeyFromScancode(scancode); + public uint GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] byte key_event + ) => T.GetKeyFromScancode(scancode, modstate, key_event); + + [return: NativeTypeName("SDL_Keycode")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromScancode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] MaybeBool key_event + ) => T.GetKeyFromScancode(scancode, modstate, key_event); [return: NativeTypeName("const char *")] [Transformed] @@ -15023,14 +18215,14 @@ public int GetKeyFromName([NativeTypeName("const char *")] Ref name) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int key) => T.GetKeyName(key); + public Ptr GetKeyName([NativeTypeName("SDL_Keycode")] uint key) => T.GetKeyName(key); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] int key) => + public sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] uint key) => T.GetKeyNameRaw(key); [NativeFunction("SDL3", EntryPoint = "SDL_GetLogOutputFunction")] @@ -15052,34 +18244,40 @@ public void GetLogOutputFunction( Ref2D userdata ) => T.GetLogOutputFunction(callback, userdata); - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetLogPriority")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetMasksForPixelFormatEnum( - PixelFormatEnum format, + public LogPriority GetLogPriority(int category) => T.GetLogPriority(category); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetMasksForPixelFormat( + PixelFormat format, int* bpp, [NativeTypeName("Uint32 *")] uint* Rmask, [NativeTypeName("Uint32 *")] uint* Gmask, [NativeTypeName("Uint32 *")] uint* Bmask, [NativeTypeName("Uint32 *")] uint* Amask - ) => T.GetMasksForPixelFormatEnum(format, bpp, Rmask, Gmask, Bmask, Amask); + ) => T.GetMasksForPixelFormat(format, bpp, Rmask, Gmask, Bmask, Amask); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetMasksForPixelFormatEnum( - PixelFormatEnum format, + public MaybeBool GetMasksForPixelFormat( + PixelFormat format, Ref bpp, [NativeTypeName("Uint32 *")] Ref Rmask, [NativeTypeName("Uint32 *")] Ref Gmask, [NativeTypeName("Uint32 *")] Ref Bmask, [NativeTypeName("Uint32 *")] Ref Amask - ) => T.GetMasksForPixelFormatEnum(format, bpp, Rmask, Gmask, Bmask, Amask); + ) => T.GetMasksForPixelFormat(format, bpp, Rmask, Gmask, Bmask, Amask); [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffects")] [MethodImpl( @@ -15109,11 +18307,12 @@ public int GetMaxHapticEffectsPlaying(HapticHandle haptic) => )] public Ptr GetMice(Ref count) => T.GetMice(count); + [return: NativeTypeName("SDL_Keymod")] [NativeFunction("SDL3", EntryPoint = "SDL_GetModState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Keymod GetModState() => T.GetModState(); + public ushort GetModState() => T.GetModState(); [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] [MethodImpl( @@ -15123,29 +18322,29 @@ public int GetMaxHapticEffectsPlaying(HapticHandle haptic) => [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetMouseInstanceName([NativeTypeName("SDL_MouseID")] uint instance_id) => - T.GetMouseInstanceName(instance_id); + public Ptr GetMouseNameForID([NativeTypeName("SDL_MouseID")] uint instance_id) => + T.GetMouseNameForID(instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public sbyte* GetMouseInstanceNameRaw([NativeTypeName("SDL_MouseID")] uint instance_id) => - T.GetMouseInstanceNameRaw(instance_id); + public sbyte* GetMouseNameForIDRaw([NativeTypeName("SDL_MouseID")] uint instance_id) => + T.GetMouseNameForIDRaw(instance_id); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public uint GetMouseState(float* x, float* y) => T.GetMouseState(x, y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] [MethodImpl( @@ -15241,6 +18440,12 @@ public int GetNumJoystickButtons(JoystickHandle joystick) => )] public int GetNumJoystickHats(JoystickHandle joystick) => T.GetNumJoystickHats(joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumLogicalCPUCores")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumLogicalCPUCores() => T.GetNumLogicalCPUCores(); + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumRenderDrivers")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -15253,149 +18458,67 @@ public int GetNumJoystickButtons(JoystickHandle joystick) => )] public int GetNumVideoDrivers() => T.GetNumVideoDrivers(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info) => + public byte GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info) => T.GetPathInfo(path, info); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetPathInfo( + public MaybeBool GetPathInfo( [NativeTypeName("const char *")] Ref path, Ref info ) => T.GetPathInfo(path, info); - [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenCapabilities")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public uint GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - PenCapabilityInfo* capabilities - ) => T.GetPenCapabilities(instance_id, capabilities); - - [return: NativeTypeName("Uint32")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenCapabilities")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public uint GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref capabilities - ) => T.GetPenCapabilities(instance_id, capabilities); - - [return: NativeTypeName("SDL_PenID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenFromGUID")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public uint GetPenFromGuid(Guid guid) => T.GetPenFromGuid(guid); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenGUID")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Guid GetPenGuid([NativeTypeName("SDL_PenID")] uint instance_id) => - T.GetPenGuid(instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Ptr GetPenName([NativeTypeName("SDL_PenID")] uint instance_id) => - T.GetPenName(instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public sbyte* GetPenNameRaw([NativeTypeName("SDL_PenID")] uint instance_id) => - T.GetPenNameRaw(instance_id); - - [return: NativeTypeName("SDL_PenID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public uint* GetPens(int* count) => T.GetPens(count); - - [return: NativeTypeName("SDL_PenID *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceCounter")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetPens(Ref count) => T.GetPens(count); + public ulong GetPerformanceCounter() => T.GetPerformanceCounter(); - [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenStatus")] + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceFrequency")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - float* x, - float* y, - float* axes, - [NativeTypeName("size_t")] nuint num_axes - ) => T.GetPenStatus(instance_id, x, y, axes, num_axes); + public ulong GetPerformanceFrequency() => T.GetPerformanceFrequency(); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("const SDL_PixelFormatDetails *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenStatus")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatDetails")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref x, - Ref y, - Ref axes, - [NativeTypeName("size_t")] nuint num_axes - ) => T.GetPenStatus(instance_id, x, y, axes, num_axes); + public Ptr GetPixelFormatDetails(PixelFormat format) => + T.GetPixelFormatDetails(format); - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenType")] + [return: NativeTypeName("const SDL_PixelFormatDetails *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatDetails")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public PenSubtype GetPenType([NativeTypeName("SDL_PenID")] uint instance_id) => - T.GetPenType(instance_id); + public PixelFormatDetails* GetPixelFormatDetailsRaw(PixelFormat format) => + T.GetPixelFormatDetailsRaw(format); - [return: NativeTypeName("Uint64")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceCounter")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatForMasks")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public ulong GetPerformanceCounter() => T.GetPerformanceCounter(); - - [return: NativeTypeName("Uint64")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceFrequency")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public ulong GetPerformanceFrequency() => T.GetPerformanceFrequency(); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatEnumForMasks")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public PixelFormatEnum GetPixelFormatEnumForMasks( + public PixelFormat GetPixelFormatForMasks( int bpp, [NativeTypeName("Uint32")] uint Rmask, [NativeTypeName("Uint32")] uint Gmask, [NativeTypeName("Uint32")] uint Bmask, [NativeTypeName("Uint32")] uint Amask - ) => T.GetPixelFormatEnumForMasks(bpp, Rmask, Gmask, Bmask, Amask); + ) => T.GetPixelFormatForMasks(bpp, Rmask, Gmask, Bmask, Amask); [return: NativeTypeName("const char *")] [Transformed] @@ -15403,16 +18526,14 @@ public PixelFormatEnum GetPixelFormatEnumForMasks( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetPixelFormatName(PixelFormatEnum format) => - T.GetPixelFormatName(format); + public Ptr GetPixelFormatName(PixelFormat format) => T.GetPixelFormatName(format); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public sbyte* GetPixelFormatNameRaw(PixelFormatEnum format) => - T.GetPixelFormatNameRaw(format); + public sbyte* GetPixelFormatNameRaw(PixelFormat format) => T.GetPixelFormatNameRaw(format); [return: NativeTypeName("const char *")] [Transformed] @@ -15429,6 +18550,27 @@ public Ptr GetPixelFormatName(PixelFormatEnum format) => )] public sbyte* GetPlatformRaw() => T.GetPlatformRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_GetPointerProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* GetPointerProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* default_value + ) => T.GetPointerProperty(props, name, default_value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPointerProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetPointerProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref default_value + ) => T.GetPointerProperty(props, name, default_value); + [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -15444,18 +18586,18 @@ public PowerState GetPowerInfo(int* seconds, int* percent) => public PowerState GetPowerInfo(Ref seconds, Ref percent) => T.GetPowerInfo(seconds, percent); - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetPreferredLocales() => T.GetPreferredLocales(); + public Locale** GetPreferredLocales(int* count) => T.GetPreferredLocales(count); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Locale* GetPreferredLocalesRaw() => T.GetPreferredLocalesRaw(); + public Ptr2D GetPreferredLocales(Ref count) => T.GetPreferredLocales(count); [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPrefPath")] @@ -15500,27 +18642,6 @@ public Ptr GetPrefPath( )] public sbyte* GetPrimarySelectionTextRaw() => T.GetPrimarySelectionTextRaw(); - [NativeFunction("SDL3", EntryPoint = "SDL_GetProperty")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public void* GetProperty( - [NativeTypeName("SDL_PropertiesID")] uint props, - [NativeTypeName("const char *")] sbyte* name, - void* default_value - ) => T.GetProperty(props, name, default_value); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetProperty")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Ptr GetProperty( - [NativeTypeName("SDL_PropertiesID")] uint props, - [NativeTypeName("const char *")] Ref name, - Ref default_value - ) => T.GetProperty(props, name, default_value); - [NativeFunction("SDL3", EntryPoint = "SDL_GetPropertyType")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -15540,27 +18661,27 @@ public PropertyType GetPropertyType( [NativeTypeName("const char *")] Ref name ) => T.GetPropertyType(props, name); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadInstanceType")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public GamepadType GetRealGamepadInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => T.GetRealGamepadInstanceType(instance_id); + public GamepadType GetRealGamepadType(GamepadHandle gamepad) => + T.GetRealGamepadType(gamepad); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadTypeForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public GamepadType GetRealGamepadType(GamepadHandle gamepad) => - T.GetRealGamepadType(gamepad); + public GamepadType GetRealGamepadTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetRealGamepadTypeForID(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRectAndLineIntersection( + public byte GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Rect* rect, int* X1, int* Y1, @@ -15568,13 +18689,13 @@ public int GetRectAndLineIntersection( int* Y2 ) => T.GetRectAndLineIntersection(rect, X1, Y1, X2, Y2); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetRectAndLineIntersection( + public MaybeBool GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Ref rect, Ref X1, Ref Y1, @@ -15582,12 +18703,12 @@ public MaybeBool GetRectAndLineIntersection( Ref Y2 ) => T.GetRectAndLineIntersection(rect, X1, Y1, X2, Y2); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRectAndLineIntersectionFloat( + public byte GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* rect, float* X1, float* Y1, @@ -15595,13 +18716,13 @@ public int GetRectAndLineIntersectionFloat( float* Y2 ) => T.GetRectAndLineIntersectionFloat(rect, X1, Y1, X2, Y2); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetRectAndLineIntersectionFloat( + public MaybeBool GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref rect, Ref X1, Ref Y1, @@ -15609,167 +18730,156 @@ public MaybeBool GetRectAndLineIntersectionFloat( Ref Y2 ) => T.GetRectAndLineIntersectionFloat(rect, X1, Y1, X2, Y2); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRectEnclosingPoints( + public byte GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Point* points, int count, [NativeTypeName("const SDL_Rect *")] Rect* clip, Rect* result ) => T.GetRectEnclosingPoints(points, count, clip, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetRectEnclosingPoints( + public MaybeBool GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Ref points, int count, [NativeTypeName("const SDL_Rect *")] Ref clip, Ref result ) => T.GetRectEnclosingPoints(points, count, clip, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRectEnclosingPointsFloat( + public byte GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count, [NativeTypeName("const SDL_FRect *")] FRect* clip, FRect* result ) => T.GetRectEnclosingPointsFloat(points, count, clip, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetRectEnclosingPointsFloat( + public MaybeBool GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] Ref points, int count, [NativeTypeName("const SDL_FRect *")] Ref clip, Ref result ) => T.GetRectEnclosingPointsFloat(points, count, clip, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRectIntersection( + public byte GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ) => T.GetRectIntersection(A, B, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetRectIntersection( + public MaybeBool GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result ) => T.GetRectIntersection(A, B, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRectIntersectionFloat( + public byte GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ) => T.GetRectIntersectionFloat(A, B, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetRectIntersectionFloat( + public MaybeBool GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result ) => T.GetRectIntersectionFloat(A, B, result); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRectUnion( + public byte GetRectUnion( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ) => T.GetRectUnion(A, B, result); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRectUnion( + public MaybeBool GetRectUnion( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result ) => T.GetRectUnion(A, B, result); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRectUnionFloat( + public byte GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ) => T.GetRectUnionFloat(A, B, result); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRectUnionFloat( + public MaybeBool GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result ) => T.GetRectUnionFloat(A, B, result); - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseMode")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public MaybeBool GetRelativeMouseMode() => T.GetRelativeMouseMode(); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseMode")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int GetRelativeMouseModeRaw() => T.GetRelativeMouseModeRaw(); - - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public uint GetRelativeMouseState(float* x, float* y) => T.GetRelativeMouseState(x, y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] [MethodImpl( @@ -15778,56 +18888,67 @@ Ref result public uint GetRelativeMouseState(Ref x, Ref y) => T.GetRelativeMouseState(x, y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderClipRect(RendererHandle renderer, Rect* rect) => + public byte GetRenderClipRect(RendererHandle renderer, Rect* rect) => T.GetRenderClipRect(renderer, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderClipRect(RendererHandle renderer, Ref rect) => + public MaybeBool GetRenderClipRect(RendererHandle renderer, Ref rect) => T.GetRenderClipRect(renderer, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderColorScale(RendererHandle renderer, float* scale) => + public byte GetRenderColorScale(RendererHandle renderer, float* scale) => T.GetRenderColorScale(renderer, scale); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderColorScale(RendererHandle renderer, Ref scale) => + public MaybeBool GetRenderColorScale(RendererHandle renderer, Ref scale) => T.GetRenderColorScale(renderer, scale); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderDrawBlendMode(RendererHandle renderer, BlendMode* blendMode) => - T.GetRenderDrawBlendMode(renderer, blendMode); + public byte GetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ) => T.GetRenderDrawBlendMode(renderer, blendMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderDrawBlendMode(RendererHandle renderer, Ref blendMode) => - T.GetRenderDrawBlendMode(renderer, blendMode); + public MaybeBool GetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) => T.GetRenderDrawBlendMode(renderer, blendMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderDrawColor( + public byte GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, @@ -15835,12 +18956,13 @@ public int GetRenderDrawColor( [NativeTypeName("Uint8 *")] byte* a ) => T.GetRenderDrawColor(renderer, r, g, b, a); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderDrawColor( + public MaybeBool GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -15848,11 +18970,12 @@ public int GetRenderDrawColor( [NativeTypeName("Uint8 *")] Ref a ) => T.GetRenderDrawColor(renderer, r, g, b, a); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderDrawColorFloat( + public byte GetRenderDrawColorFloat( RendererHandle renderer, float* r, float* g, @@ -15860,12 +18983,13 @@ public int GetRenderDrawColorFloat( float* a ) => T.GetRenderDrawColorFloat(renderer, r, g, b, a); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderDrawColorFloat( + public MaybeBool GetRenderDrawColorFloat( RendererHandle renderer, Ref r, Ref g, @@ -15898,23 +19022,31 @@ Ref a [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public RendererHandle GetRendererFromTexture(TextureHandle texture) => + public RendererHandle GetRendererFromTexture(Texture* texture) => T.GetRendererFromTexture(texture); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRendererInfo(RendererHandle renderer, RendererInfo* info) => - T.GetRendererInfo(renderer, info); + public RendererHandle GetRendererFromTexture(Ref texture) => + T.GetRendererFromTexture(texture); + [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRendererInfo(RendererHandle renderer, Ref info) => - T.GetRendererInfo(renderer, info); + public Ptr GetRendererName(RendererHandle renderer) => T.GetRendererName(renderer); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetRendererNameRaw(RendererHandle renderer) => T.GetRendererNameRaw(renderer); [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererProperties")] @@ -15924,30 +19056,49 @@ public int GetRendererInfo(RendererHandle renderer, Ref info) => public uint GetRendererProperties(RendererHandle renderer) => T.GetRendererProperties(renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderLogicalPresentation( + public byte GetRenderLogicalPresentation( RendererHandle renderer, int* w, int* h, - RendererLogicalPresentation* mode, - ScaleMode* scale_mode - ) => T.GetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + RendererLogicalPresentation* mode + ) => T.GetRenderLogicalPresentation(renderer, w, h, mode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderLogicalPresentation( + public MaybeBool GetRenderLogicalPresentation( RendererHandle renderer, Ref w, Ref h, - Ref mode, - Ref scale_mode - ) => T.GetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + Ref mode + ) => T.GetRenderLogicalPresentation(renderer, w, h, mode); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentationRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetRenderLogicalPresentationRect(RendererHandle renderer, FRect* rect) => + T.GetRenderLogicalPresentationRect(renderer, rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentationRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetRenderLogicalPresentationRect( + RendererHandle renderer, + Ref rect + ) => T.GetRenderLogicalPresentationRect(renderer, rect); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalCommandEncoder")] @@ -15978,71 +19129,109 @@ public Ptr GetRenderMetalCommandEncoder(RendererHandle renderer) => public void* GetRenderMetalLayerRaw(RendererHandle renderer) => T.GetRenderMetalLayerRaw(renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderOutputSize(RendererHandle renderer, int* w, int* h) => + public byte GetRenderOutputSize(RendererHandle renderer, int* w, int* h) => T.GetRenderOutputSize(renderer, w, h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderOutputSize(RendererHandle renderer, Ref w, Ref h) => - T.GetRenderOutputSize(renderer, w, h); + public MaybeBool GetRenderOutputSize( + RendererHandle renderer, + Ref w, + Ref h + ) => T.GetRenderOutputSize(renderer, w, h); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderSafeArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetRenderSafeArea(RendererHandle renderer, Rect* rect) => + T.GetRenderSafeArea(renderer, rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderSafeArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetRenderSafeArea(RendererHandle renderer, Ref rect) => + T.GetRenderSafeArea(renderer, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderScale(RendererHandle renderer, float* scaleX, float* scaleY) => + public byte GetRenderScale(RendererHandle renderer, float* scaleX, float* scaleY) => T.GetRenderScale(renderer, scaleX, scaleY); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderScale(RendererHandle renderer, Ref scaleX, Ref scaleY) => - T.GetRenderScale(renderer, scaleX, scaleY); + public MaybeBool GetRenderScale( + RendererHandle renderer, + Ref scaleX, + Ref scaleY + ) => T.GetRenderScale(renderer, scaleX, scaleY); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetRenderTarget(RendererHandle renderer) => T.GetRenderTarget(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public TextureHandle GetRenderTarget(RendererHandle renderer) => - T.GetRenderTarget(renderer); + public Texture* GetRenderTargetRaw(RendererHandle renderer) => + T.GetRenderTargetRaw(renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderViewport(RendererHandle renderer, Rect* rect) => + public byte GetRenderViewport(RendererHandle renderer, Rect* rect) => T.GetRenderViewport(renderer, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderViewport(RendererHandle renderer, Ref rect) => + public MaybeBool GetRenderViewport(RendererHandle renderer, Ref rect) => T.GetRenderViewport(renderer, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderVSync(RendererHandle renderer, int* vsync) => + public byte GetRenderVSync(RendererHandle renderer, int* vsync) => T.GetRenderVSync(renderer, vsync); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetRenderVSync(RendererHandle renderer, Ref vsync) => + public MaybeBool GetRenderVSync(RendererHandle renderer, Ref vsync) => T.GetRenderVSync(renderer, vsync); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderWindow")] @@ -16072,11 +19261,12 @@ public int GetRenderVSync(RendererHandle renderer, Ref vsync) => )] public void GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b - ) => T.GetRGB(pixel, format, r, g, b); + ) => T.GetRGB(pixel, format, palette, r, g, b); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] @@ -16085,11 +19275,12 @@ public void GetRGB( )] public void GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b - ) => T.GetRGB(pixel, format, r, g, b); + ) => T.GetRGB(pixel, format, palette, r, g, b); [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] [MethodImpl( @@ -16097,12 +19288,13 @@ public void GetRGB( )] public void GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b, [NativeTypeName("Uint8 *")] byte* a - ) => T.GetRgba(pixel, format, r, g, b, a); + ) => T.GetRgba(pixel, format, palette, r, g, b, a); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] @@ -16111,19 +19303,38 @@ public void GetRgba( )] public void GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b, [NativeTypeName("Uint8 *")] Ref a - ) => T.GetRgba(pixel, format, r, g, b, a); + ) => T.GetRgba(pixel, format, palette, r, g, b, a); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSandbox")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Sandbox GetSandbox() => T.GetSandbox(); [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key) => - T.GetScancodeFromKey(key); + public Scancode GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] ushort* modstate + ) => T.GetScancodeFromKey(key, modstate); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Scancode GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] Ref modstate + ) => T.GetScancodeFromKey(key, modstate); [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromName")] [MethodImpl( @@ -16162,77 +19373,64 @@ public Scancode GetScancodeFromName([NativeTypeName("const char *")] Ref )] public uint GetSemaphoreValue(SemaphoreHandle sem) => T.GetSemaphoreValue(sem); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSensorData(SensorHandle sensor, float* data, int num_values) => + public byte GetSensorData(SensorHandle sensor, float* data, int num_values) => T.GetSensorData(sensor, data, num_values); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSensorData(SensorHandle sensor, Ref data, int num_values) => - T.GetSensorData(sensor, data, num_values); + public MaybeBool GetSensorData( + SensorHandle sensor, + Ref data, + int num_values + ) => T.GetSensorData(sensor, data, num_values); - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public SensorHandle GetSensorFromInstanceID( - [NativeTypeName("SDL_SensorID")] uint instance_id - ) => T.GetSensorFromInstanceID(instance_id); + public SensorHandle GetSensorFromID([NativeTypeName("SDL_SensorID")] uint instance_id) => + T.GetSensorFromID(instance_id); [return: NativeTypeName("SDL_SensorID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint GetSensorInstanceID(SensorHandle sensor) => T.GetSensorInstanceID(sensor); + public uint GetSensorID(SensorHandle sensor) => T.GetSensorID(sensor); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetSensorInstanceName( - [NativeTypeName("SDL_SensorID")] uint instance_id - ) => T.GetSensorInstanceName(instance_id); + public Ptr GetSensorName(SensorHandle sensor) => T.GetSensorName(sensor); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public sbyte* GetSensorInstanceNameRaw([NativeTypeName("SDL_SensorID")] uint instance_id) => - T.GetSensorInstanceNameRaw(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceNonPortableType")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int GetSensorInstanceNonPortableType( - [NativeTypeName("SDL_SensorID")] uint instance_id - ) => T.GetSensorInstanceNonPortableType(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceType")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public SensorType GetSensorInstanceType( - [NativeTypeName("SDL_SensorID")] uint instance_id - ) => T.GetSensorInstanceType(instance_id); + public Ptr GetSensorNameForID([NativeTypeName("SDL_SensorID")] uint instance_id) => + T.GetSensorNameForID(instance_id); [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetSensorName(SensorHandle sensor) => T.GetSensorName(sensor); + public sbyte* GetSensorNameForIDRaw([NativeTypeName("SDL_SensorID")] uint instance_id) => + T.GetSensorNameForIDRaw(instance_id); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] @@ -16248,6 +19446,14 @@ public SensorType GetSensorInstanceType( public int GetSensorNonPortableType(SensorHandle sensor) => T.GetSensorNonPortableType(sensor); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableTypeForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSensorNonPortableTypeForID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => T.GetSensorNonPortableTypeForID(instance_id); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorProperties")] [MethodImpl( @@ -16276,50 +19482,68 @@ public int GetSensorNonPortableType(SensorHandle sensor) => )] public SensorType GetSensorType(SensorHandle sensor) => T.GetSensorType(sensor); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorTypeForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SensorType GetSensorTypeForID([NativeTypeName("SDL_SensorID")] uint instance_id) => + T.GetSensorTypeForID(instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSilenceValueForFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSilenceValueForFormat([NativeTypeName("SDL_AudioFormat")] ushort format) => + public int GetSilenceValueForFormat(AudioFormat format) => T.GetSilenceValueForFormat(format); + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSIMDAlignment")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public nuint GetSimdAlignment() => T.GetSimdAlignment(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetStorageFileSize( + public byte GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("Uint64 *")] ulong* length ) => T.GetStorageFileSize(storage, path, length); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetStorageFileSize( + public MaybeBool GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("Uint64 *")] Ref length ) => T.GetStorageFileSize(storage, path, length); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetStoragePathInfo( + public byte GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, PathInfo* info ) => T.GetStoragePathInfo(storage, path, info); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetStoragePathInfo( + public MaybeBool GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref info @@ -16356,87 +19580,101 @@ public Ptr GetStringProperty( [NativeTypeName("const char *")] Ref default_value ) => T.GetStringProperty(props, name, default_value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha) => + public byte GetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha) => T.GetSurfaceAlphaMod(surface, alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSurfaceAlphaMod( + public MaybeBool GetSurfaceAlphaMod( Ref surface, [NativeTypeName("Uint8 *")] Ref alpha ) => T.GetSurfaceAlphaMod(surface, alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode) => - T.GetSurfaceBlendMode(surface, blendMode); + public byte GetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ) => T.GetSurfaceBlendMode(surface, blendMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSurfaceBlendMode(Ref surface, Ref blendMode) => - T.GetSurfaceBlendMode(surface, blendMode); + public MaybeBool GetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) => T.GetSurfaceBlendMode(surface, blendMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSurfaceClipRect(Surface* surface, Rect* rect) => + public byte GetSurfaceClipRect(Surface* surface, Rect* rect) => T.GetSurfaceClipRect(surface, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSurfaceClipRect(Ref surface, Ref rect) => + public MaybeBool GetSurfaceClipRect(Ref surface, Ref rect) => T.GetSurfaceClipRect(surface, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSurfaceColorKey(Surface* surface, [NativeTypeName("Uint32 *")] uint* key) => + public byte GetSurfaceColorKey(Surface* surface, [NativeTypeName("Uint32 *")] uint* key) => T.GetSurfaceColorKey(surface, key); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSurfaceColorKey( + public MaybeBool GetSurfaceColorKey( Ref surface, [NativeTypeName("Uint32 *")] Ref key ) => T.GetSurfaceColorKey(surface, key); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSurfaceColorMod( + public byte GetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ) => T.GetSurfaceColorMod(surface, r, g, b); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSurfaceColorMod( + public MaybeBool GetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -16447,16 +19685,43 @@ public int GetSurfaceColorMod( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSurfaceColorspace(Surface* surface, Colorspace* colorspace) => - T.GetSurfaceColorspace(surface, colorspace); + public Colorspace GetSurfaceColorspace(Surface* surface) => T.GetSurfaceColorspace(surface); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetSurfaceColorspace(Ref surface, Ref colorspace) => - T.GetSurfaceColorspace(surface, colorspace); + public Colorspace GetSurfaceColorspace(Ref surface) => + T.GetSurfaceColorspace(surface); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface** GetSurfaceImages(Surface* surface, int* count) => + T.GetSurfaceImages(surface, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr2D GetSurfaceImages(Ref surface, Ref count) => + T.GetSurfaceImages(surface, count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Palette* GetSurfacePalette(Surface* surface) => T.GetSurfacePalette(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetSurfacePalette(Ref surface) => T.GetSurfacePalette(surface); [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceProperties")] @@ -16485,92 +19750,124 @@ public int GetSurfaceColorspace(Ref surface, Ref colorspace )] public SystemTheme GetSystemTheme() => T.GetSystemTheme(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextInputArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetTextInputArea(WindowHandle window, Rect* rect, int* cursor) => + T.GetTextInputArea(window, rect, cursor); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextInputArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetTextInputArea( + WindowHandle window, + Ref rect, + Ref cursor + ) => T.GetTextInputArea(window, rect, cursor); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetTextureAlphaMod( - TextureHandle texture, - [NativeTypeName("Uint8 *")] byte* alpha - ) => T.GetTextureAlphaMod(texture, alpha); + public byte GetTextureAlphaMod(Texture* texture, [NativeTypeName("Uint8 *")] byte* alpha) => + T.GetTextureAlphaMod(texture, alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetTextureAlphaMod( - TextureHandle texture, + public MaybeBool GetTextureAlphaMod( + Ref texture, [NativeTypeName("Uint8 *")] Ref alpha ) => T.GetTextureAlphaMod(texture, alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetTextureAlphaModFloat(TextureHandle texture, float* alpha) => + public byte GetTextureAlphaModFloat(Texture* texture, float* alpha) => T.GetTextureAlphaModFloat(texture, alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetTextureAlphaModFloat(TextureHandle texture, Ref alpha) => + public MaybeBool GetTextureAlphaModFloat(Ref texture, Ref alpha) => T.GetTextureAlphaModFloat(texture, alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetTextureBlendMode(TextureHandle texture, BlendMode* blendMode) => - T.GetTextureBlendMode(texture, blendMode); + public byte GetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ) => T.GetTextureBlendMode(texture, blendMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetTextureBlendMode(TextureHandle texture, Ref blendMode) => - T.GetTextureBlendMode(texture, blendMode); + public MaybeBool GetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) => T.GetTextureBlendMode(texture, blendMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetTextureColorMod( - TextureHandle texture, + public byte GetTextureColorMod( + Texture* texture, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ) => T.GetTextureColorMod(texture, r, g, b); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetTextureColorMod( - TextureHandle texture, + public MaybeBool GetTextureColorMod( + Ref texture, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b ) => T.GetTextureColorMod(texture, r, g, b); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetTextureColorModFloat(TextureHandle texture, float* r, float* g, float* b) => + public byte GetTextureColorModFloat(Texture* texture, float* r, float* g, float* b) => T.GetTextureColorModFloat(texture, r, g, b); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetTextureColorModFloat( - TextureHandle texture, + public MaybeBool GetTextureColorModFloat( + Ref texture, Ref r, Ref g, Ref b @@ -16581,22 +19878,51 @@ Ref b [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint GetTextureProperties(TextureHandle texture) => T.GetTextureProperties(texture); + public uint GetTextureProperties(Texture* texture) => T.GetTextureProperties(texture); + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetTextureProperties(Ref texture) => T.GetTextureProperties(texture); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetTextureScaleMode(TextureHandle texture, ScaleMode* scaleMode) => + public byte GetTextureScaleMode(Texture* texture, ScaleMode* scaleMode) => T.GetTextureScaleMode(texture, scaleMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetTextureScaleMode(TextureHandle texture, Ref scaleMode) => - T.GetTextureScaleMode(texture, scaleMode); + public MaybeBool GetTextureScaleMode( + Ref texture, + Ref scaleMode + ) => T.GetTextureScaleMode(texture, scaleMode); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetTextureSize(Texture* texture, float* w, float* h) => + T.GetTextureSize(texture, w, h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetTextureSize(Ref texture, Ref w, Ref h) => + T.GetTextureSize(texture, w, h); [return: NativeTypeName("SDL_ThreadID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadID")] @@ -16634,18 +19960,18 @@ public int GetTextureScaleMode(TextureHandle texture, Ref scaleMode) )] public ulong GetTicksNS() => T.GetTicksNS(); - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetTLS([NativeTypeName("SDL_TLSID")] uint id) => T.GetTLS(id); + public void* GetTLS([NativeTypeName("SDL_TLSID *")] AtomicInt* id) => T.GetTLS(id); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void* GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id) => T.GetTLSRaw(id); + public Ptr GetTLS([NativeTypeName("SDL_TLSID *")] Ref id) => T.GetTLS(id); [return: NativeTypeName("const char *")] [Transformed] @@ -16705,7 +20031,7 @@ public Ptr2D GetTouchFingers( Ref count ) => T.GetTouchFingers(touchID, count); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] [MethodImpl( @@ -16713,7 +20039,7 @@ Ref count )] public Ptr GetUserFolder(Folder folder) => T.GetUserFolder(folder); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -16724,14 +20050,7 @@ Ref count [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetVersion(Version* ver) => T.GetVersion(ver); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetVersion")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int GetVersion(Ref ver) => T.GetVersion(ver); + public int GetVersion() => T.GetVersion(); [return: NativeTypeName("const char *")] [Transformed] @@ -16748,11 +20067,35 @@ Ref count )] public sbyte* GetVideoDriverRaw(int index) => T.GetVideoDriverRaw(index); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowAspectRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetWindowAspectRatio( + WindowHandle window, + float* min_aspect, + float* max_aspect + ) => T.GetWindowAspectRatio(window, min_aspect, max_aspect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowAspectRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetWindowAspectRatio( + WindowHandle window, + Ref min_aspect, + Ref max_aspect + ) => T.GetWindowAspectRatio(window, min_aspect, max_aspect); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowBordersSize( + public byte GetWindowBordersSize( WindowHandle window, int* top, int* left, @@ -16760,12 +20103,13 @@ public int GetWindowBordersSize( int* right ) => T.GetWindowBordersSize(window, top, left, bottom, right); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowBordersSize( + public MaybeBool GetWindowBordersSize( WindowHandle window, Ref top, Ref left, @@ -16784,7 +20128,24 @@ Ref right [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint GetWindowFlags(WindowHandle window) => T.GetWindowFlags(window); + public ulong GetWindowFlags(WindowHandle window) => T.GetWindowFlags(window); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public WindowHandle GetWindowFromEvent( + [NativeTypeName("const SDL_Event *")] Event* @event + ) => T.GetWindowFromEvent(@event); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public WindowHandle GetWindowFromEvent( + [NativeTypeName("const SDL_Event *")] Ref @event + ) => T.GetWindowFromEvent(@event); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] [MethodImpl( @@ -16836,68 +20197,72 @@ public Ptr GetWindowICCProfile( )] public uint GetWindowID(WindowHandle window) => T.GetWindowID(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetWindowKeyboardGrab(WindowHandle window) => + public MaybeBool GetWindowKeyboardGrab(WindowHandle window) => T.GetWindowKeyboardGrab(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowKeyboardGrabRaw(WindowHandle window) => + public byte GetWindowKeyboardGrabRaw(WindowHandle window) => T.GetWindowKeyboardGrabRaw(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowMaximumSize(WindowHandle window, int* w, int* h) => + public byte GetWindowMaximumSize(WindowHandle window, int* w, int* h) => T.GetWindowMaximumSize(window, w, h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowMaximumSize(WindowHandle window, Ref w, Ref h) => + public MaybeBool GetWindowMaximumSize(WindowHandle window, Ref w, Ref h) => T.GetWindowMaximumSize(window, w, h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowMinimumSize(WindowHandle window, int* w, int* h) => + public byte GetWindowMinimumSize(WindowHandle window, int* w, int* h) => T.GetWindowMinimumSize(window, w, h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowMinimumSize(WindowHandle window, Ref w, Ref h) => + public MaybeBool GetWindowMinimumSize(WindowHandle window, Ref w, Ref h) => T.GetWindowMinimumSize(window, w, h); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GetWindowMouseGrab(WindowHandle window) => + public MaybeBool GetWindowMouseGrab(WindowHandle window) => T.GetWindowMouseGrab(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowMouseGrabRaw(WindowHandle window) => T.GetWindowMouseGrabRaw(window); + public byte GetWindowMouseGrabRaw(WindowHandle window) => T.GetWindowMouseGrabRaw(window); [return: NativeTypeName("const SDL_Rect *")] [Transformed] @@ -16918,16 +20283,7 @@ public MaybeBool GetWindowMouseGrab(WindowHandle window) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowOpacity(WindowHandle window, float* out_opacity) => - T.GetWindowOpacity(window, out_opacity); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int GetWindowOpacity(WindowHandle window, Ref out_opacity) => - T.GetWindowOpacity(window, out_opacity); + public float GetWindowOpacity(WindowHandle window) => T.GetWindowOpacity(window); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowParent")] [MethodImpl( @@ -16941,26 +20297,28 @@ public int GetWindowOpacity(WindowHandle window, Ref out_opacity) => )] public float GetWindowPixelDensity(WindowHandle window) => T.GetWindowPixelDensity(window); - [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint GetWindowPixelFormat(WindowHandle window) => T.GetWindowPixelFormat(window); + public PixelFormat GetWindowPixelFormat(WindowHandle window) => + T.GetWindowPixelFormat(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowPosition(WindowHandle window, int* x, int* y) => + public byte GetWindowPosition(WindowHandle window, int* x, int* y) => T.GetWindowPosition(window, x, y); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowPosition(WindowHandle window, Ref x, Ref y) => + public MaybeBool GetWindowPosition(WindowHandle window, Ref x, Ref y) => T.GetWindowPosition(window, x, y); [return: NativeTypeName("SDL_PropertiesID")] @@ -16970,34 +20328,85 @@ public int GetWindowPosition(WindowHandle window, Ref x, Ref y) => )] public uint GetWindowProperties(WindowHandle window) => T.GetWindowProperties(window); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowRelativeMouseMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetWindowRelativeMouseMode(WindowHandle window) => + T.GetWindowRelativeMouseMode(window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowRelativeMouseMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetWindowRelativeMouseModeRaw(WindowHandle window) => + T.GetWindowRelativeMouseModeRaw(window); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindows")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public WindowHandle* GetWindows(int* count) => T.GetWindows(count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindows")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetWindows(Ref count) => T.GetWindows(count); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSafeArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetWindowSafeArea(WindowHandle window, Rect* rect) => + T.GetWindowSafeArea(window, rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSafeArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetWindowSafeArea(WindowHandle window, Ref rect) => + T.GetWindowSafeArea(window, rect); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowSize(WindowHandle window, int* w, int* h) => + public byte GetWindowSize(WindowHandle window, int* w, int* h) => T.GetWindowSize(window, w, h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowSize(WindowHandle window, Ref w, Ref h) => + public MaybeBool GetWindowSize(WindowHandle window, Ref w, Ref h) => T.GetWindowSize(window, w, h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowSizeInPixels(WindowHandle window, int* w, int* h) => + public byte GetWindowSizeInPixels(WindowHandle window, int* w, int* h) => T.GetWindowSizeInPixels(window, w, h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetWindowSizeInPixels(WindowHandle window, Ref w, Ref h) => + public MaybeBool GetWindowSizeInPixels(WindowHandle window, Ref w, Ref h) => T.GetWindowSizeInPixels(window, w, h); [Transformed] @@ -17013,96 +20422,105 @@ public int GetWindowSizeInPixels(WindowHandle window, Ref w, Ref h) => )] public Surface* GetWindowSurfaceRaw(WindowHandle window) => T.GetWindowSurfaceRaw(window); - [return: NativeTypeName("const char *")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurfaceVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetWindowSurfaceVSync(WindowHandle window, int* vsync) => + T.GetWindowSurfaceVSync(window, vsync); + + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurfaceVSync")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GetWindowTitle(WindowHandle window) => T.GetWindowTitle(window); + public MaybeBool GetWindowSurfaceVSync(WindowHandle window, Ref vsync) => + T.GetWindowSurfaceVSync(window, vsync); [return: NativeTypeName("const char *")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public sbyte* GetWindowTitleRaw(WindowHandle window) => T.GetWindowTitleRaw(window); + public Ptr GetWindowTitle(WindowHandle window) => T.GetWindowTitle(window); - [return: NativeTypeName("SDL_GLContext")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr GLCreateContext(WindowHandle window) => T.GLCreateContext(window); + public sbyte* GetWindowTitleRaw(WindowHandle window) => T.GetWindowTitleRaw(window); [return: NativeTypeName("SDL_GLContext")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void* GLCreateContextRaw(WindowHandle window) => T.GLCreateContextRaw(window); + public GLContextStateHandle GLCreateContext(WindowHandle window) => + T.GLCreateContext(window); - [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DestroyContext")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context) => - T.GLDeleteContext(context); + public MaybeBool GLDestroyContext( + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => T.GLDestroyContext(context); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DestroyContext")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLDeleteContext([NativeTypeName("SDL_GLContext")] Ref context) => - T.GLDeleteContext(context); + public byte GLDestroyContextRaw( + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => T.GLDestroyContextRaw(context); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => + public byte GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => T.GLExtensionSupported(extension); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool GLExtensionSupported( + public MaybeBool GLExtensionSupported( [NativeTypeName("const char *")] Ref extension ) => T.GLExtensionSupported(extension); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLGetAttribute(GLattr attr, int* value) => T.GLGetAttribute(attr, value); + public byte GLGetAttribute(GLAttr attr, int* value) => T.GLGetAttribute(attr, value); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLGetAttribute(GLattr attr, Ref value) => T.GLGetAttribute(attr, value); - - [return: NativeTypeName("SDL_GLContext")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Ptr GLGetCurrentContext() => T.GLGetCurrentContext(); + public MaybeBool GLGetAttribute(GLAttr attr, Ref value) => + T.GLGetAttribute(attr, value); [return: NativeTypeName("SDL_GLContext")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void* GLGetCurrentContextRaw() => T.GLGetCurrentContextRaw(); + public GLContextStateHandle GLGetCurrentContext() => T.GLGetCurrentContext(); [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] [MethodImpl( @@ -17127,52 +20545,59 @@ public FunctionPointer GLGetProcAddress([NativeTypeName("const char *")] sbyte* public FunctionPointer GLGetProcAddress([NativeTypeName("const char *")] Ref proc) => T.GLGetProcAddress(proc); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLGetSwapInterval(int* interval) => T.GLGetSwapInterval(interval); + public byte GLGetSwapInterval(int* interval) => T.GLGetSwapInterval(interval); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLGetSwapInterval(Ref interval) => T.GLGetSwapInterval(interval); + public MaybeBool GLGetSwapInterval(Ref interval) => + T.GLGetSwapInterval(interval); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => + public byte GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => T.GLLoadLibrary(path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLLoadLibrary([NativeTypeName("const char *")] Ref path) => + public MaybeBool GLLoadLibrary([NativeTypeName("const char *")] Ref path) => T.GLLoadLibrary(path); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLMakeCurrent( + public MaybeBool GLMakeCurrent( WindowHandle window, - [NativeTypeName("SDL_GLContext")] void* context + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context ) => T.GLMakeCurrent(window, context); - [Transformed] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLMakeCurrent( + public byte GLMakeCurrentRaw( WindowHandle window, - [NativeTypeName("SDL_GLContext")] Ref context - ) => T.GLMakeCurrent(window, context); + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => T.GLMakeCurrentRaw(window, context); [NativeFunction("SDL3", EntryPoint = "SDL_GL_ResetAttributes")] [MethodImpl( @@ -17180,23 +20605,51 @@ public int GLMakeCurrent( )] public void GLResetAttributes() => T.GLResetAttributes(); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetAttribute")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GLSetAttribute(GLAttr attr, int value) => + T.GLSetAttribute(attr, value); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetAttribute")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLSetAttribute(GLattr attr, int value) => T.GLSetAttribute(attr, value); + public byte GLSetAttributeRaw(GLAttr attr, int value) => T.GLSetAttributeRaw(attr, value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetSwapInterval")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GLSetSwapInterval(int interval) => T.GLSetSwapInterval(interval); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetSwapInterval")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLSetSwapInterval(int interval) => T.GLSetSwapInterval(interval); + public byte GLSetSwapIntervalRaw(int interval) => T.GLSetSwapIntervalRaw(interval); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GLSwapWindow(WindowHandle window) => T.GLSwapWindow(window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GLSwapWindow(WindowHandle window) => T.GLSwapWindow(window); + public byte GLSwapWindowRaw(WindowHandle window) => T.GLSwapWindowRaw(window); [NativeFunction("SDL3", EntryPoint = "SDL_GL_UnloadLibrary")] [MethodImpl( @@ -17212,7 +20665,7 @@ public int GLMakeCurrent( public sbyte** GlobDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ) => T.GlobDirectory(path, pattern, flags, count); @@ -17225,7 +20678,7 @@ public int GLMakeCurrent( public Ptr2D GlobDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ) => T.GlobDirectory(path, pattern, flags, count); @@ -17238,7 +20691,7 @@ Ref count StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ) => T.GlobStorageDirectory(storage, path, pattern, flags, count); @@ -17252,525 +20705,513 @@ public Ptr2D GlobStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ) => T.GlobStorageDirectory(storage, path, pattern, flags, count); - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Guid GuidFromString([NativeTypeName("const char *")] sbyte* pchGUID) => - T.GuidFromString(pchGUID); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public Guid GuidFromString([NativeTypeName("const char *")] Ref pchGUID) => - T.GuidFromString(pchGUID); - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GuidToString(Guid guid, [NativeTypeName("char *")] sbyte* pszGUID, int cbGUID) => - T.GuidToString(guid, pszGUID, cbGUID); + public void GuidToString( + Guid guid, + [NativeTypeName("char *")] sbyte* pszGUID, + int cbGUID + ) => T.GuidToString(guid, pszGUID, cbGUID); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GuidToString( + public void GuidToString( Guid guid, [NativeTypeName("char *")] Ref pszGUID, int cbGUID ) => T.GuidToString(guid, pszGUID, cbGUID); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HapticEffectSupported( + public byte HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect ) => T.HapticEffectSupported(haptic, effect); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HapticEffectSupported( + public MaybeBool HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] Ref effect ) => T.HapticEffectSupported(haptic, effect); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HapticRumbleSupported(HapticHandle haptic) => + public MaybeBool HapticRumbleSupported(HapticHandle haptic) => T.HapticRumbleSupported(haptic); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HapticRumbleSupportedRaw(HapticHandle haptic) => + public byte HapticRumbleSupportedRaw(HapticHandle haptic) => T.HapticRumbleSupportedRaw(haptic); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasAltiVec() => T.HasAltiVec(); + public MaybeBool HasAltiVec() => T.HasAltiVec(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasAltiVecRaw() => T.HasAltiVecRaw(); + public byte HasAltiVecRaw() => T.HasAltiVecRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasArmsimd() => T.HasArmsimd(); + public MaybeBool HasArmsimd() => T.HasArmsimd(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasArmsimdRaw() => T.HasArmsimdRaw(); + public byte HasArmsimdRaw() => T.HasArmsimdRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasAVX() => T.HasAVX(); + public MaybeBool HasAVX() => T.HasAVX(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasAVX2() => T.HasAVX2(); + public MaybeBool HasAVX2() => T.HasAVX2(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasAVX2Raw() => T.HasAVX2Raw(); + public byte HasAVX2Raw() => T.HasAVX2Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasAVX512F() => T.HasAVX512F(); + public MaybeBool HasAVX512F() => T.HasAVX512F(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasAVX512FRaw() => T.HasAVX512FRaw(); + public byte HasAVX512FRaw() => T.HasAVX512FRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasAVXRaw() => T.HasAVXRaw(); + public byte HasAVXRaw() => T.HasAVXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => + public byte HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => T.HasClipboardData(mime_type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasClipboardData( + public MaybeBool HasClipboardData( [NativeTypeName("const char *")] Ref mime_type ) => T.HasClipboardData(mime_type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasClipboardText() => T.HasClipboardText(); + public MaybeBool HasClipboardText() => T.HasClipboardText(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasClipboardTextRaw() => T.HasClipboardTextRaw(); + public byte HasClipboardTextRaw() => T.HasClipboardTextRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => T.HasEvent(type); + public MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => T.HasEvent(type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasEventRaw([NativeTypeName("Uint32")] uint type) => T.HasEventRaw(type); + public byte HasEventRaw([NativeTypeName("Uint32")] uint type) => T.HasEventRaw(type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasEvents( + public MaybeBool HasEvents( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ) => T.HasEvents(minType, maxType); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasEventsRaw( + public byte HasEventsRaw( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ) => T.HasEventsRaw(minType, maxType); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasGamepad() => T.HasGamepad(); + public MaybeBool HasGamepad() => T.HasGamepad(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasGamepadRaw() => T.HasGamepadRaw(); + public byte HasGamepadRaw() => T.HasGamepadRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasJoystick() => T.HasJoystick(); + public MaybeBool HasJoystick() => T.HasJoystick(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasJoystickRaw() => T.HasJoystickRaw(); + public byte HasJoystickRaw() => T.HasJoystickRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasKeyboard() => T.HasKeyboard(); + public MaybeBool HasKeyboard() => T.HasKeyboard(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasKeyboardRaw() => T.HasKeyboardRaw(); + public byte HasKeyboardRaw() => T.HasKeyboardRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasLasx() => T.HasLasx(); + public MaybeBool HasLasx() => T.HasLasx(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasLasxRaw() => T.HasLasxRaw(); + public byte HasLasxRaw() => T.HasLasxRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasLSX() => T.HasLSX(); + public MaybeBool HasLSX() => T.HasLSX(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasLSXRaw() => T.HasLSXRaw(); + public byte HasLSXRaw() => T.HasLSXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasMMX() => T.HasMMX(); + public MaybeBool HasMMX() => T.HasMMX(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasMMXRaw() => T.HasMMXRaw(); + public byte HasMMXRaw() => T.HasMMXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasMouse() => T.HasMouse(); + public MaybeBool HasMouse() => T.HasMouse(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasMouseRaw() => T.HasMouseRaw(); + public byte HasMouseRaw() => T.HasMouseRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasNeon() => T.HasNeon(); + public MaybeBool HasNeon() => T.HasNeon(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasNeonRaw() => T.HasNeonRaw(); + public byte HasNeonRaw() => T.HasNeonRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasPrimarySelectionText() => T.HasPrimarySelectionText(); + public MaybeBool HasPrimarySelectionText() => T.HasPrimarySelectionText(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasPrimarySelectionTextRaw() => T.HasPrimarySelectionTextRaw(); + public byte HasPrimarySelectionTextRaw() => T.HasPrimarySelectionTextRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasProperty( + public byte HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ) => T.HasProperty(props, name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasProperty( + public MaybeBool HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ) => T.HasProperty(props, name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasRectIntersection( + public byte HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B ) => T.HasRectIntersection(A, B); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasRectIntersection( + public MaybeBool HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B ) => T.HasRectIntersection(A, B); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasRectIntersectionFloat( + public byte HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B ) => T.HasRectIntersectionFloat(A, B); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasRectIntersectionFloat( + public MaybeBool HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B ) => T.HasRectIntersectionFloat(A, B); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasScreenKeyboardSupport() => T.HasScreenKeyboardSupport(); + public MaybeBool HasScreenKeyboardSupport() => T.HasScreenKeyboardSupport(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasScreenKeyboardSupportRaw() => T.HasScreenKeyboardSupportRaw(); + public byte HasScreenKeyboardSupportRaw() => T.HasScreenKeyboardSupportRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasSSE() => T.HasSSE(); + public MaybeBool HasSSE() => T.HasSSE(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasSSE2() => T.HasSSE2(); + public MaybeBool HasSSE2() => T.HasSSE2(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasSSE2Raw() => T.HasSSE2Raw(); + public byte HasSSE2Raw() => T.HasSSE2Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasSSE3() => T.HasSSE3(); + public MaybeBool HasSSE3() => T.HasSSE3(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasSSE3Raw() => T.HasSSE3Raw(); + public byte HasSSE3Raw() => T.HasSSE3Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasSSE41() => T.HasSSE41(); + public MaybeBool HasSSE41() => T.HasSSE41(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasSSE41Raw() => T.HasSSE41Raw(); + public byte HasSSE41Raw() => T.HasSSE41Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool HasSSE42() => T.HasSSE42(); + public MaybeBool HasSSE42() => T.HasSSE42(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasSSE42Raw() => T.HasSSE42Raw(); + public byte HasSSE42Raw() => T.HasSSE42Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HasSSERaw() => T.HasSSERaw(); + public byte HasSSERaw() => T.HasSSERaw(); [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void HidBleScan([NativeTypeName("SDL_bool")] int active) => T.HidBleScan(active); + public void HidBleScan([NativeTypeName("bool")] byte active) => T.HidBleScan(active); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active) => + public void HidBleScan([NativeTypeName("bool")] MaybeBool active) => T.HidBleScan(active); [NativeFunction("SDL3", EntryPoint = "SDL_hid_close")] @@ -18122,35 +21563,82 @@ public int HidWrite( [NativeTypeName("size_t")] nuint length ) => T.HidWrite(dev, data, length); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HideCursor() => T.HideCursor(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HideCursor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HideCursor() => T.HideCursor(); + public byte HideCursorRaw() => T.HideCursorRaw(); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HideWindow(WindowHandle window) => T.HideWindow(window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int HideWindow(WindowHandle window) => T.HideWindow(window); + public byte HideWindowRaw(WindowHandle window) => T.HideWindowRaw(window); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_Init")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int Init([NativeTypeName("Uint32")] uint flags) => T.Init(flags); + public MaybeBool Init([NativeTypeName("SDL_InitFlags")] uint flags) => T.Init(flags); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool InitHapticRumble(HapticHandle haptic) => T.InitHapticRumble(haptic); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int InitHapticRumble(HapticHandle haptic) => T.InitHapticRumble(haptic); + public byte InitHapticRumbleRaw(HapticHandle haptic) => T.InitHapticRumbleRaw(haptic); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_Init")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte InitRaw([NativeTypeName("SDL_InitFlags")] uint flags) => T.InitRaw(flags); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitSubSystem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool InitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags) => + T.InitSubSystem(flags); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_InitSubSystem")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int InitSubSystem([NativeTypeName("Uint32")] uint flags) => T.InitSubSystem(flags); + public byte InitSubSystemRaw([NativeTypeName("SDL_InitFlags")] uint flags) => + T.InitSubSystemRaw(flags); [NativeFunction("SDL3", EntryPoint = "SDL_IOFromConstMem")] [MethodImpl( @@ -18234,118 +21722,133 @@ public nuint IOvprintf( [NativeTypeName("va_list")] Ref ap ) => T.IOvprintf(context, fmt, ap); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool IsGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id) => + public MaybeBool IsGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id) => T.IsGamepad(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + public byte IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => T.IsGamepadRaw(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool IsJoystickHaptic(JoystickHandle joystick) => + public MaybeBool IsJoystickHaptic(JoystickHandle joystick) => T.IsJoystickHaptic(joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int IsJoystickHapticRaw(JoystickHandle joystick) => T.IsJoystickHapticRaw(joystick); + public byte IsJoystickHapticRaw(JoystickHandle joystick) => T.IsJoystickHapticRaw(joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool IsJoystickVirtual( + public MaybeBool IsJoystickVirtual( [NativeTypeName("SDL_JoystickID")] uint instance_id ) => T.IsJoystickVirtual(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + public byte IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => T.IsJoystickVirtualRaw(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool IsMouseHaptic() => T.IsMouseHaptic(); + public MaybeBool IsMouseHaptic() => T.IsMouseHaptic(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int IsMouseHapticRaw() => T.IsMouseHapticRaw(); + public byte IsMouseHapticRaw() => T.IsMouseHapticRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool IsTablet() => T.IsTablet(); + public MaybeBool IsTablet() => T.IsTablet(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int IsTabletRaw() => T.IsTabletRaw(); + public byte IsTabletRaw() => T.IsTabletRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool IsTV() => T.IsTV(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte IsTVRaw() => T.IsTVRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool JoystickConnected(JoystickHandle joystick) => + public MaybeBool JoystickConnected(JoystickHandle joystick) => T.JoystickConnected(joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int JoystickConnectedRaw(JoystickHandle joystick) => + public byte JoystickConnectedRaw(JoystickHandle joystick) => T.JoystickConnectedRaw(joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool JoystickEventsEnabled() => T.JoystickEventsEnabled(); + public MaybeBool JoystickEventsEnabled() => T.JoystickEventsEnabled(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int JoystickEventsEnabledRaw() => T.JoystickEventsEnabledRaw(); + public byte JoystickEventsEnabledRaw() => T.JoystickEventsEnabledRaw(); [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP")] [MethodImpl( @@ -18365,7 +21868,7 @@ public Ptr LoadBMP([NativeTypeName("const char *")] Ref file) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Surface* LoadBMPIO(IOStreamHandle src, [NativeTypeName("SDL_bool")] int closeio) => + public Surface* LoadBMPIO(IOStreamHandle src, [NativeTypeName("bool")] byte closeio) => T.LoadBMPIO(src, closeio); [Transformed] @@ -18375,7 +21878,7 @@ public Ptr LoadBMP([NativeTypeName("const char *")] Ref file) => )] public Ptr LoadBMPIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) => T.LoadBMPIO(src, closeio); [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile")] @@ -18404,7 +21907,7 @@ public Ptr LoadFile( public void* LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] nuint* datasize, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ) => T.LoadFileIO(src, datasize, closeio); [Transformed] @@ -18415,7 +21918,7 @@ public Ptr LoadFile( public Ptr LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] Ref datasize, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) => T.LoadFileIO(src, datasize, closeio); [return: NativeTypeName("SDL_FunctionPointer")] @@ -18424,7 +21927,7 @@ public Ptr LoadFileIO( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public FunctionPointer LoadFunction( - void* handle, + SharedObjectHandle handle, [NativeTypeName("const char *")] sbyte* name ) => T.LoadFunction(handle, name); @@ -18435,7 +21938,7 @@ public FunctionPointer LoadFunction( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public FunctionPointer LoadFunction( - Ref handle, + SharedObjectHandle handle, [NativeTypeName("const char *")] Ref name ) => T.LoadFunction(handle, name); @@ -18443,7 +21946,7 @@ public FunctionPointer LoadFunction( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void* LoadObject([NativeTypeName("const char *")] sbyte* sofile) => + public SharedObjectHandle LoadObject([NativeTypeName("const char *")] sbyte* sofile) => T.LoadObject(sofile); [Transformed] @@ -18451,62 +21954,76 @@ public FunctionPointer LoadFunction( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public Ptr LoadObject([NativeTypeName("const char *")] Ref sofile) => + public SharedObjectHandle LoadObject([NativeTypeName("const char *")] Ref sofile) => T.LoadObject(sofile); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int LoadWAV( + public byte LoadWAV( [NativeTypeName("const char *")] sbyte* path, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ) => T.LoadWAV(path, spec, audio_buf, audio_len); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int LoadWAV( + public MaybeBool LoadWAV( [NativeTypeName("const char *")] Ref path, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, [NativeTypeName("Uint32 *")] Ref audio_len ) => T.LoadWAV(path, spec, audio_buf, audio_len); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int LoadWAVIO( + public byte LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio, + [NativeTypeName("bool")] byte closeio, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ) => T.LoadWAVIO(src, closeio, spec, audio_buf, audio_len); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int LoadWAVIO( + public MaybeBool LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio, + [NativeTypeName("bool")] MaybeBool closeio, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, [NativeTypeName("Uint32 *")] Ref audio_len ) => T.LoadWAVIO(src, closeio, spec, audio_buf, audio_len); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool LockAudioStream(AudioStreamHandle stream) => + T.LockAudioStream(stream); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int LockAudioStream(AudioStreamHandle stream) => T.LockAudioStream(stream); + public byte LockAudioStreamRaw(AudioStreamHandle stream) => T.LockAudioStreamRaw(stream); [NativeFunction("SDL3", EntryPoint = "SDL_LockJoysticks")] [MethodImpl( @@ -18520,13 +22037,23 @@ public int LoadWAVIO( )] public void LockMutex(MutexHandle mutex) => T.LockMutex(mutex); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + public MaybeBool LockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => T.LockProperties(props); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_LockProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte LockPropertiesRaw([NativeTypeName("SDL_PropertiesID")] uint props) => + T.LockPropertiesRaw(props); + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForReading")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -18554,69 +22081,69 @@ public void LockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => public void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) => T.LockSpinlock(@lock); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int LockSurface(Surface* surface) => T.LockSurface(surface); + public byte LockSurface(Surface* surface) => T.LockSurface(surface); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int LockSurface(Ref surface) => T.LockSurface(surface); + public MaybeBool LockSurface(Ref surface) => T.LockSurface(surface); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int LockTexture( - TextureHandle texture, + public byte LockTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, void** pixels, int* pitch ) => T.LockTexture(texture, rect, pixels, pitch); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int LockTexture( - TextureHandle texture, + public MaybeBool LockTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D pixels, Ref pitch ) => T.LockTexture(texture, rect, pixels, pitch); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int LockTextureToSurface( - TextureHandle texture, + public byte LockTextureToSurface( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, Surface** surface ) => T.LockTextureToSurface(texture, rect, surface); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int LockTextureToSurface( - TextureHandle texture, + public MaybeBool LockTextureToSurface( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D surface ) => T.LockTextureToSurface(texture, rect, surface); - [NativeFunction("SDL3", EntryPoint = "SDL_LogGetPriority")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public LogPriority LogGetPriority(int category) => T.LogGetPriority(category); - [NativeFunction("SDL3", EntryPoint = "SDL_LogMessageV")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -18640,82 +22167,128 @@ public void LogMessageV( [NativeTypeName("va_list")] Ref ap ) => T.LogMessageV(category, priority, fmt, ap); - [NativeFunction("SDL3", EntryPoint = "SDL_LogResetPriorities")] + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void LogResetPriorities() => T.LogResetPriorities(); + public uint MapRGB( + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => T.MapRGB(format, palette, r, g, b); - [NativeFunction("SDL3", EntryPoint = "SDL_LogSetAllPriority")] + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void LogSetAllPriority(LogPriority priority) => T.LogSetAllPriority(priority); + public uint MapRGB( + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => T.MapRGB(format, palette, r, g, b); - [NativeFunction("SDL3", EntryPoint = "SDL_LogSetPriority")] + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void LogSetPriority(int category, LogPriority priority) => - T.LogSetPriority(category, priority); + public uint MapRgba( + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => T.MapRgba(format, palette, r, g, b, a); [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + public uint MapRgba( + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => T.MapRgba(format, palette, r, g, b, a); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint MapSurfaceRGB( + Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b - ) => T.MapRGB(format, r, g, b); + ) => T.MapSurfaceRGB(surface, r, g, b); [return: NativeTypeName("Uint32")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGB")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + public uint MapSurfaceRGB( + Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b - ) => T.MapRGB(format, r, g, b); + ) => T.MapSurfaceRGB(surface, r, g, b); [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGBA")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + public uint MapSurfaceRgba( + Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a - ) => T.MapRgba(format, r, g, b, a); + ) => T.MapSurfaceRgba(surface, r, g, b, a); [return: NativeTypeName("Uint32")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGBA")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + public uint MapSurfaceRgba( + Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a - ) => T.MapRgba(format, r, g, b, a); + ) => T.MapSurfaceRgba(surface, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool MaximizeWindow(WindowHandle window) => T.MaximizeWindow(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int MaximizeWindow(WindowHandle window) => T.MaximizeWindow(window); + public byte MaximizeWindowRaw(WindowHandle window) => T.MaximizeWindowRaw(window); [NativeFunction("SDL3", EntryPoint = "SDL_MemoryBarrierAcquireFunction")] [MethodImpl( @@ -18774,48 +22347,59 @@ public void MetalDestroyView([NativeTypeName("SDL_MetalView")] Ref view) => public Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view) => T.MetalGetLayer(view); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool MinimizeWindow(WindowHandle window) => T.MinimizeWindow(window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int MinimizeWindow(WindowHandle window) => T.MinimizeWindow(window); + public byte MinimizeWindowRaw(WindowHandle window) => T.MinimizeWindowRaw(window); - [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudio")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int MixAudioFormat( + public byte MixAudio( [NativeTypeName("Uint8 *")] byte* dst, [NativeTypeName("const Uint8 *")] byte* src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume - ) => T.MixAudioFormat(dst, src, format, len, volume); + float volume + ) => T.MixAudio(dst, src, format, len, volume); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudio")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int MixAudioFormat( + public MaybeBool MixAudio( [NativeTypeName("Uint8 *")] Ref dst, [NativeTypeName("const Uint8 *")] Ref src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume - ) => T.MixAudioFormat(dst, src, format, len, volume); + float volume + ) => T.MixAudio(dst, src, format, len, volume); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidBecomeActive")] + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterBackground")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void OnApplicationDidBecomeActive() => T.OnApplicationDidBecomeActive(); + public void OnApplicationDidEnterBackground() => T.OnApplicationDidEnterBackground(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterBackground")] + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterForeground")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void OnApplicationDidEnterBackground() => T.OnApplicationDidEnterBackground(); + public void OnApplicationDidEnterForeground() => T.OnApplicationDidEnterForeground(); [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidReceiveMemoryWarning")] [MethodImpl( @@ -18824,17 +22408,17 @@ int volume public void OnApplicationDidReceiveMemoryWarning() => T.OnApplicationDidReceiveMemoryWarning(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterForeground")] + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterBackground")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void OnApplicationWillEnterForeground() => T.OnApplicationWillEnterForeground(); + public void OnApplicationWillEnterBackground() => T.OnApplicationWillEnterBackground(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillResignActive")] + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterForeground")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void OnApplicationWillResignActive() => T.OnApplicationWillResignActive(); + public void OnApplicationWillEnterForeground() => T.OnApplicationWillEnterForeground(); [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillTerminate")] [MethodImpl( @@ -18886,24 +22470,24 @@ public AudioStreamHandle OpenAudioDeviceStream( Ref userdata ) => T.OpenAudioDeviceStream(devid, spec, callback, userdata); - [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCamera")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public CameraHandle OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + public CameraHandle OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec - ) => T.OpenCameraDevice(instance_id, spec); + ) => T.OpenCamera(instance_id, spec); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCamera")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public CameraHandle OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + public CameraHandle OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] Ref spec - ) => T.OpenCameraDevice(instance_id, spec); + ) => T.OpenCamera(instance_id, spec); [NativeFunction("SDL3", EntryPoint = "SDL_OpenFileStorage")] [MethodImpl( @@ -19018,18 +22602,21 @@ public StorageHandle OpenTitleStorage( [NativeTypeName("SDL_PropertiesID")] uint props ) => T.OpenTitleStorage(@override, props); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int OpenURL([NativeTypeName("const char *")] sbyte* url) => T.OpenURL(url); + public byte OpenURL([NativeTypeName("const char *")] sbyte* url) => T.OpenURL(url); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int OpenURL([NativeTypeName("const char *")] Ref url) => T.OpenURL(url); + public MaybeBool OpenURL([NativeTypeName("const char *")] Ref url) => + T.OpenURL(url); [NativeFunction("SDL3", EntryPoint = "SDL_OpenUserStorage")] [MethodImpl( @@ -19052,18 +22639,69 @@ public StorageHandle OpenUserStorage( [NativeTypeName("SDL_PropertiesID")] uint props ) => T.OpenUserStorage(org, app, props); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OutOfMemory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool OutOfMemory() => T.OutOfMemory(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_OutOfMemory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte OutOfMemoryRaw() => T.OutOfMemoryRaw(); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + public MaybeBool PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => T.PauseAudioDevice(dev); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + T.PauseAudioDeviceRaw(dev); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool PauseAudioStreamDevice(AudioStreamHandle stream) => + T.PauseAudioStreamDevice(stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte PauseAudioStreamDeviceRaw(AudioStreamHandle stream) => + T.PauseAudioStreamDeviceRaw(stream); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int PauseHaptic(HapticHandle haptic) => T.PauseHaptic(haptic); + public MaybeBool PauseHaptic(HapticHandle haptic) => T.PauseHaptic(haptic); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte PauseHapticRaw(HapticHandle haptic) => T.PauseHapticRaw(haptic); [NativeFunction("SDL3", EntryPoint = "SDL_PeepEvents")] [MethodImpl( @@ -19090,67 +22728,59 @@ public int PeepEvents( [NativeTypeName("Uint32")] uint maxType ) => T.PeepEvents(events, numevents, action, minType, maxType); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public MaybeBool PenConnected([NativeTypeName("SDL_PenID")] uint instance_id) => - T.PenConnected(instance_id); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] + [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int PenConnectedRaw([NativeTypeName("SDL_PenID")] uint instance_id) => - T.PenConnectedRaw(instance_id); + public MaybeBool PlayHapticRumble( + HapticHandle haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) => T.PlayHapticRumble(haptic, strength, length); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int PlayHapticRumble( + public byte PlayHapticRumbleRaw( HapticHandle haptic, float strength, [NativeTypeName("Uint32")] uint length - ) => T.PlayHapticRumble(haptic, strength, length); + ) => T.PlayHapticRumbleRaw(haptic, strength, length); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int PollEvent(Event* @event) => T.PollEvent(@event); + public byte PollEvent(Event* @event) => T.PollEvent(@event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool PollEvent(Ref @event) => T.PollEvent(@event); - - [NativeFunction("SDL3", EntryPoint = "SDL_PostSemaphore")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int PostSemaphore(SemaphoreHandle sem) => T.PostSemaphore(sem); + public MaybeBool PollEvent(Ref @event) => T.PollEvent(@event); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int PremultiplyAlpha( + public byte PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] byte linear ) => T.PremultiplyAlpha( width, @@ -19160,23 +22790,26 @@ int dst_pitch src_pitch, dst_format, dst, - dst_pitch + dst_pitch, + linear ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int PremultiplyAlpha( + public MaybeBool PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] MaybeBool linear ) => T.PremultiplyAlpha( width, @@ -19186,91 +22819,102 @@ int dst_pitch src_pitch, dst_format, dst, - dst_pitch + dst_pitch, + linear ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplySurfaceAlpha")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte PremultiplySurfaceAlpha( + Surface* surface, + [NativeTypeName("bool")] byte linear + ) => T.PremultiplySurfaceAlpha(surface, linear); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplySurfaceAlpha")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool PremultiplySurfaceAlpha( + Ref surface, + [NativeTypeName("bool")] MaybeBool linear + ) => T.PremultiplySurfaceAlpha(surface, linear); + [NativeFunction("SDL3", EntryPoint = "SDL_PumpEvents")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public void PumpEvents() => T.PumpEvents(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int PushEvent(Event* @event) => T.PushEvent(@event); + public byte PushEvent(Event* @event) => T.PushEvent(@event); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int PushEvent(Ref @event) => T.PushEvent(@event); + public MaybeBool PushEvent(Ref @event) => T.PushEvent(@event); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int PutAudioStreamData( + public byte PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] void* buf, int len ) => T.PutAudioStreamData(stream, buf, len); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int PutAudioStreamData( + public MaybeBool PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] Ref buf, int len ) => T.PutAudioStreamData(stream, buf, len); - [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int QueryTexture( - TextureHandle texture, - PixelFormatEnum* format, - int* access, - int* w, - int* h - ) => T.QueryTexture(texture, format, access, w, h); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] + [NativeFunction("SDL3", EntryPoint = "SDL_Quit")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int QueryTexture( - TextureHandle texture, - Ref format, - Ref access, - Ref w, - Ref h - ) => T.QueryTexture(texture, format, access, w, h); + public void Quit() => T.Quit(); - [NativeFunction("SDL3", EntryPoint = "SDL_Quit")] + [NativeFunction("SDL3", EntryPoint = "SDL_QuitSubSystem")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void Quit() => T.Quit(); + public void QuitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags) => + T.QuitSubSystem(flags); - [NativeFunction("SDL3", EntryPoint = "SDL_QuitSubSystem")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void QuitSubSystem([NativeTypeName("Uint32")] uint flags) => T.QuitSubSystem(flags); + public MaybeBool RaiseWindow(WindowHandle window) => T.RaiseWindow(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RaiseWindow(WindowHandle window) => T.RaiseWindow(window); + public byte RaiseWindowRaw(WindowHandle window) => T.RaiseWindowRaw(window); [return: NativeTypeName("size_t")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadIO")] @@ -19295,148 +22939,170 @@ public nuint ReadIO( [NativeTypeName("size_t")] nuint size ) => T.ReadIO(context, ptr, size); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => + public byte ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => T.ReadS16BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadS16BE( + public MaybeBool ReadS16BE( IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value ) => T.ReadS16BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => + public byte ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => T.ReadS16LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadS16LE( + public MaybeBool ReadS16LE( IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value ) => T.ReadS16LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => + public byte ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => T.ReadS32BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadS32BE( + public MaybeBool ReadS32BE( IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value ) => T.ReadS32BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => + public byte ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => T.ReadS32LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadS32LE( + public MaybeBool ReadS32LE( IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value ) => T.ReadS32LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => + public byte ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => T.ReadS64BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadS64BE( + public MaybeBool ReadS64BE( IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value ) => T.ReadS64BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => + public byte ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => T.ReadS64LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadS64LE( + public MaybeBool ReadS64LE( IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value ) => T.ReadS64LE(src, value); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte ReadS8(IOStreamHandle src, [NativeTypeName("Sint8 *")] sbyte* value) => + T.ReadS8(src, value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadS8( + IOStreamHandle src, + [NativeTypeName("Sint8 *")] Ref value + ) => T.ReadS8(src, value); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadStorageFile( + public byte ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, void* destination, [NativeTypeName("Uint64")] ulong length ) => T.ReadStorageFile(storage, path, destination, length); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadStorageFile( + public MaybeBool ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref destination, [NativeTypeName("Uint64")] ulong length ) => T.ReadStorageFile(storage, path, destination, length); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadSurfacePixel( + public byte ReadSurfacePixel( Surface* surface, int x, int y, @@ -19446,12 +23112,13 @@ public int ReadSurfacePixel( [NativeTypeName("Uint8 *")] byte* a ) => T.ReadSurfacePixel(surface, x, y, r, g, b, a); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadSurfacePixel( + public MaybeBool ReadSurfacePixel( Ref surface, int x, int y, @@ -19461,135 +23128,166 @@ public int ReadSurfacePixel( [NativeTypeName("Uint8 *")] Ref a ) => T.ReadSurfacePixel(surface, x, y, r, g, b, a); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixelFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte ReadSurfacePixelFloat( + Surface* surface, + int x, + int y, + float* r, + float* g, + float* b, + float* a + ) => T.ReadSurfacePixelFloat(surface, x, y, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixelFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadSurfacePixelFloat( + Ref surface, + int x, + int y, + Ref r, + Ref g, + Ref b, + Ref a + ) => T.ReadSurfacePixelFloat(surface, x, y, r, g, b, a); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadU16BE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => + public byte ReadU16BE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => T.ReadU16BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadU16BE( + public MaybeBool ReadU16BE( IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value ) => T.ReadU16BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadU16LE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => + public byte ReadU16LE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => T.ReadU16LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadU16LE( + public MaybeBool ReadU16LE( IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value ) => T.ReadU16LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => + public byte ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => T.ReadU32BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadU32BE( + public MaybeBool ReadU32BE( IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value ) => T.ReadU32BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => + public byte ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => T.ReadU32LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadU32LE( + public MaybeBool ReadU32LE( IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value ) => T.ReadU32LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => + public byte ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => T.ReadU64BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadU64BE( + public MaybeBool ReadU64BE( IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value ) => T.ReadU64BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => + public byte ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => T.ReadU64LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadU64LE( + public MaybeBool ReadU64LE( IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value ) => T.ReadU64LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value) => + public byte ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value) => T.ReadU8(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ReadU8( + public MaybeBool ReadU8( IOStreamHandle src, [NativeTypeName("Uint8 *")] Ref value ) => T.ReadU8(src, value); @@ -19605,7 +23303,7 @@ public MaybeBool ReadU8( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReleaseCameraFrame(CameraHandle camera, Surface* frame) => + public void ReleaseCameraFrame(CameraHandle camera, Surface* frame) => T.ReleaseCameraFrame(camera, frame); [Transformed] @@ -19613,132 +23311,214 @@ public int ReleaseCameraFrame(CameraHandle camera, Surface* frame) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReleaseCameraFrame(CameraHandle camera, Ref frame) => + public void ReleaseCameraFrame(CameraHandle camera, Ref frame) => T.ReleaseCameraFrame(camera, frame); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReloadGamepadMappings")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ReloadGamepadMappings() => T.ReloadGamepadMappings(); + public MaybeBool ReloadGamepadMappings() => T.ReloadGamepadMappings(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReloadGamepadMappings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte ReloadGamepadMappingsRaw() => T.ReloadGamepadMappingsRaw(); + + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void RemoveEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + void* userdata + ) => T.RemoveEventWatch(filter, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void RemoveEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + Ref userdata + ) => T.RemoveEventWatch(filter, userdata); + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void RemoveHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + void* userdata + ) => T.RemoveHintCallback(name, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void RemoveHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + Ref userdata + ) => T.RemoveHintCallback(name, callback, userdata); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RemovePath([NativeTypeName("const char *")] sbyte* path) => T.RemovePath(path); + public byte RemovePath([NativeTypeName("const char *")] sbyte* path) => T.RemovePath(path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RemovePath([NativeTypeName("const char *")] Ref path) => + public MaybeBool RemovePath([NativeTypeName("const char *")] Ref path) => T.RemovePath(path); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RemoveStoragePath( + public byte RemoveStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path ) => T.RemoveStoragePath(storage, path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RemoveStoragePath( + public MaybeBool RemoveStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref path ) => T.RemoveStoragePath(storage, path); - [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveSurfaceAlternateImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void RemoveSurfaceAlternateImages(Surface* surface) => + T.RemoveSurfaceAlternateImages(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveSurfaceAlternateImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void RemoveSurfaceAlternateImages(Ref surface) => + T.RemoveSurfaceAlternateImages(surface); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => + public MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => T.RemoveTimer(id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => T.RemoveTimerRaw(id); + public byte RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => T.RemoveTimerRaw(id); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenamePath( + public byte RenamePath( [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ) => T.RenamePath(oldpath, newpath); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenamePath( + public MaybeBool RenamePath( [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath ) => T.RenamePath(oldpath, newpath); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenameStoragePath( + public byte RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ) => T.RenameStoragePath(storage, oldpath, newpath); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenameStoragePath( + public MaybeBool RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath ) => T.RenameStoragePath(storage, oldpath, newpath); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderClear(RendererHandle renderer) => T.RenderClear(renderer); + public MaybeBool RenderClear(RendererHandle renderer) => T.RenderClear(renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RenderClearRaw(RendererHandle renderer) => T.RenderClearRaw(renderer); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool RenderClipEnabled(RendererHandle renderer) => + public MaybeBool RenderClipEnabled(RendererHandle renderer) => T.RenderClipEnabled(renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderClipEnabledRaw(RendererHandle renderer) => + public byte RenderClipEnabledRaw(RendererHandle renderer) => T.RenderClipEnabledRaw(renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderCoordinatesFromWindow( + public byte RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -19746,12 +23526,13 @@ public int RenderCoordinatesFromWindow( float* y ) => T.RenderCoordinatesFromWindow(renderer, window_x, window_y, x, y); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderCoordinatesFromWindow( + public MaybeBool RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -19759,11 +23540,12 @@ public int RenderCoordinatesFromWindow( Ref y ) => T.RenderCoordinatesFromWindow(renderer, window_x, window_y, x, y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderCoordinatesToWindow( + public byte RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -19771,12 +23553,13 @@ public int RenderCoordinatesToWindow( float* window_y ) => T.RenderCoordinatesToWindow(renderer, x, y, window_x, window_y); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderCoordinatesToWindow( + public MaybeBool RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -19784,83 +23567,115 @@ public int RenderCoordinatesToWindow( Ref window_y ) => T.RenderCoordinatesToWindow(renderer, x, y, window_x, window_y); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderDebugText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] sbyte* str + ) => T.RenderDebugText(renderer, x, y, str); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderDebugText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] Ref str + ) => T.RenderDebugText(renderer, x, y, str); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderFillRect( + public byte RenderFillRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect ) => T.RenderFillRect(renderer, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderFillRect( + public MaybeBool RenderFillRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ) => T.RenderFillRect(renderer, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderFillRects( + public byte RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ) => T.RenderFillRects(renderer, rects, count); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderFillRects( + public MaybeBool RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count ) => T.RenderFillRects(renderer, rects, count); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderGeometry( + public byte RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, int num_vertices, [NativeTypeName("const int *")] int* indices, int num_indices ) => T.RenderGeometry(renderer, texture, vertices, num_vertices, indices, num_indices); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderGeometry( + public MaybeBool RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_Vertex *")] Ref vertices, int num_vertices, [NativeTypeName("const int *")] Ref indices, int num_indices ) => T.RenderGeometry(renderer, texture, vertices, num_vertices, indices, num_indices); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderGeometryRaw( + public byte RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const float *")] float* xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Color* color, + [NativeTypeName("const SDL_FColor *")] FColor* color, int color_stride, [NativeTypeName("const float *")] float* uv, int uv_stride, @@ -19884,17 +23699,18 @@ int size_indices size_indices ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderGeometryRaw( + public MaybeBool RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const float *")] Ref xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Ref color, + [NativeTypeName("const SDL_FColor *")] Ref color, int color_stride, [NativeTypeName("const float *")] Ref uv, int uv_stride, @@ -19918,134 +23734,110 @@ int size_indices size_indices ); - [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int RenderGeometryRawFloat( - RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] float* xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] FColor* color, - int color_stride, - [NativeTypeName("const float *")] float* uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] void* indices, - int num_indices, - int size_indices - ) => - T.RenderGeometryRawFloat( - renderer, - texture, - xy, - xy_stride, - color, - color_stride, - uv, - uv_stride, - num_vertices, - indices, - num_indices, - size_indices - ); - + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderGeometryRawFloat( + public MaybeBool RenderLine( RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] Ref xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] Ref color, - int color_stride, - [NativeTypeName("const float *")] Ref uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] Ref indices, - int num_indices, - int size_indices - ) => - T.RenderGeometryRawFloat( - renderer, - texture, - xy, - xy_stride, - color, - color_stride, - uv, - uv_stride, - num_vertices, - indices, - num_indices, - size_indices - ); + float x1, + float y1, + float x2, + float y2 + ) => T.RenderLine(renderer, x1, y1, x2, y2); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderLine(RendererHandle renderer, float x1, float y1, float x2, float y2) => - T.RenderLine(renderer, x1, y1, x2, y2); + public byte RenderLineRaw( + RendererHandle renderer, + float x1, + float y1, + float x2, + float y2 + ) => T.RenderLineRaw(renderer, x1, y1, x2, y2); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderLines( + public byte RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ) => T.RenderLines(renderer, points, count); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderLines( + public MaybeBool RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count ) => T.RenderLines(renderer, points, count); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderPoint(RendererHandle renderer, float x, float y) => + public MaybeBool RenderPoint(RendererHandle renderer, float x, float y) => T.RenderPoint(renderer, x, y); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RenderPointRaw(RendererHandle renderer, float x, float y) => + T.RenderPointRaw(renderer, x, y); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderPoints( + public byte RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ) => T.RenderPoints(renderer, points, count); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderPoints( + public MaybeBool RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count ) => T.RenderPoints(renderer, points, count); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool RenderPresent(RendererHandle renderer) => T.RenderPresent(renderer); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderPresent(RendererHandle renderer) => T.RenderPresent(renderer); + public byte RenderPresentRaw(RendererHandle renderer) => T.RenderPresentRaw(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_RenderReadPixels")] [MethodImpl( @@ -20066,113 +23858,205 @@ public Ptr RenderReadPixels( [NativeTypeName("const SDL_Rect *")] Ref rect ) => T.RenderReadPixels(renderer, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderRect( + public byte RenderRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect ) => T.RenderRect(renderer, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderRect( + public MaybeBool RenderRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ) => T.RenderRect(renderer, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderRects( + public byte RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ) => T.RenderRects(renderer, rects, count); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderRects( + public MaybeBool RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count ) => T.RenderRects(renderer, rects, count); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderTexture( + public byte RenderTexture( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, [NativeTypeName("const SDL_FRect *")] FRect* dstrect ) => T.RenderTexture(renderer, texture, srcrect, dstrect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderTexture( + public MaybeBool RenderTexture( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, [NativeTypeName("const SDL_FRect *")] Ref dstrect ) => T.RenderTexture(renderer, texture, srcrect, dstrect); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9Grid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RenderTexture9Grid( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ) => + T.RenderTexture9Grid( + renderer, + texture, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9Grid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool RenderTexture9Grid( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ) => + T.RenderTexture9Grid( + renderer, + texture, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + dstrect + ); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderTextureRotated( + public byte RenderTextureRotated( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, [NativeTypeName("const SDL_FRect *")] FRect* dstrect, - [NativeTypeName("const double")] double angle, + double angle, [NativeTypeName("const SDL_FPoint *")] FPoint* center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip + FlipMode flip ) => T.RenderTextureRotated(renderer, texture, srcrect, dstrect, angle, center, flip); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderTextureRotated( + public MaybeBool RenderTextureRotated( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, [NativeTypeName("const SDL_FRect *")] Ref dstrect, - [NativeTypeName("const double")] double angle, + double angle, [NativeTypeName("const SDL_FPoint *")] Ref center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip + FlipMode flip ) => T.RenderTextureRotated(renderer, texture, srcrect, dstrect, angle, center, flip); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RenderTextureTiled( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ) => T.RenderTextureTiled(renderer, texture, srcrect, scale, dstrect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool RenderTextureTiled( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + float scale, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ) => T.RenderTextureTiled(renderer, texture, srcrect, scale, dstrect); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool RenderViewportSet(RendererHandle renderer) => + public MaybeBool RenderViewportSet(RendererHandle renderer) => T.RenderViewportSet(renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RenderViewportSetRaw(RendererHandle renderer) => + public byte RenderViewportSetRaw(RendererHandle renderer) => T.RenderViewportSetRaw(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_ReportAssertion")] @@ -20204,20 +24088,20 @@ int line )] public void ResetAssertionReport() => T.ResetAssertionReport(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ResetHint([NativeTypeName("const char *")] sbyte* name) => T.ResetHint(name); + public byte ResetHint([NativeTypeName("const char *")] sbyte* name) => T.ResetHint(name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ResetHint([NativeTypeName("const char *")] Ref name) => + public MaybeBool ResetHint([NativeTypeName("const char *")] Ref name) => T.ResetHint(name); [NativeFunction("SDL3", EntryPoint = "SDL_ResetHints")] @@ -20232,147 +24116,295 @@ public MaybeBool ResetHint([NativeTypeName("const char *")] Ref name )] public void ResetKeyboard() => T.ResetKeyboard(); + [NativeFunction("SDL3", EntryPoint = "SDL_ResetLogPriorities")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ResetLogPriorities() => T.ResetLogPriorities(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool RestoreWindow(WindowHandle window) => T.RestoreWindow(window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RestoreWindow(WindowHandle window) => T.RestoreWindow(window); + public byte RestoreWindowRaw(WindowHandle window) => T.RestoreWindowRaw(window); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + public MaybeBool ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => T.ResumeAudioDevice(dev); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + T.ResumeAudioDeviceRaw(dev); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ResumeAudioStreamDevice(AudioStreamHandle stream) => + T.ResumeAudioStreamDevice(stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte ResumeAudioStreamDeviceRaw(AudioStreamHandle stream) => + T.ResumeAudioStreamDeviceRaw(stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ResumeHaptic(HapticHandle haptic) => T.ResumeHaptic(haptic); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ResumeHaptic(HapticHandle haptic) => T.ResumeHaptic(haptic); + public byte ResumeHapticRaw(HapticHandle haptic) => T.ResumeHapticRaw(haptic); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RumbleGamepad( + public MaybeBool RumbleGamepad( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms ) => T.RumbleGamepad(gamepad, low_frequency_rumble, high_frequency_rumble, duration_ms); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RumbleGamepadRaw( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => T.RumbleGamepadRaw(gamepad, low_frequency_rumble, high_frequency_rumble, duration_ms); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RumbleGamepadTriggers( + public MaybeBool RumbleGamepadTriggers( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms ) => T.RumbleGamepadTriggers(gamepad, left_rumble, right_rumble, duration_ms); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RumbleGamepadTriggersRaw( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => T.RumbleGamepadTriggersRaw(gamepad, left_rumble, right_rumble, duration_ms); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RumbleJoystick( + public MaybeBool RumbleJoystick( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms ) => T.RumbleJoystick(joystick, low_frequency_rumble, high_frequency_rumble, duration_ms); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RumbleJoystickRaw( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + T.RumbleJoystickRaw(joystick, low_frequency_rumble, high_frequency_rumble, duration_ms); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RumbleJoystickTriggers( + public MaybeBool RumbleJoystickTriggers( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms ) => T.RumbleJoystickTriggers(joystick, left_rumble, right_rumble, duration_ms); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RumbleJoystickTriggersRaw( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => T.RumbleJoystickTriggersRaw(joystick, left_rumble, right_rumble, duration_ms); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int RunHapticEffect( + public MaybeBool RunHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("Uint32")] uint iterations ) => T.RunHapticEffect(haptic, effect, iterations); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RunHapticEffectRaw( + HapticHandle haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) => T.RunHapticEffectRaw(haptic, effect, iterations); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file) => + public byte SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file) => T.SaveBMP(surface, file); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SaveBMP( + public MaybeBool SaveBMP( Ref surface, [NativeTypeName("const char *")] Ref file ) => T.SaveBMP(surface, file); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SaveBMPIO( + public byte SaveBMPIO( Surface* surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ) => T.SaveBMPIO(surface, dst, closeio); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SaveBMPIO( + public MaybeBool SaveBMPIO( Ref surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) => T.SaveBMPIO(surface, dst, closeio); - [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ScaleSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* ScaleSurface( + Surface* surface, + int width, + int height, + ScaleMode scaleMode + ) => T.ScaleSurface(surface, width, height, scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScaleSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr ScaleSurface( + Ref surface, + int width, + int height, + ScaleMode scaleMode + ) => T.ScaleSurface(surface, width, height, scaleMode); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ScreenKeyboardShown(WindowHandle window) => + public MaybeBool ScreenKeyboardShown(WindowHandle window) => T.ScreenKeyboardShown(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ScreenKeyboardShownRaw(WindowHandle window) => T.ScreenKeyboardShownRaw(window); + public byte ScreenKeyboardShownRaw(WindowHandle window) => T.ScreenKeyboardShownRaw(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool ScreenSaverEnabled() => T.ScreenSaverEnabled(); + public MaybeBool ScreenSaverEnabled() => T.ScreenSaverEnabled(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ScreenSaverEnabledRaw() => T.ScreenSaverEnabledRaw(); + public byte ScreenSaverEnabledRaw() => T.ScreenSaverEnabledRaw(); [return: NativeTypeName("Sint64")] [NativeFunction("SDL3", EntryPoint = "SDL_SeekIO")] @@ -20382,51 +24414,126 @@ public MaybeBool ScreenKeyboardShown(WindowHandle window) => public long SeekIO( IOStreamHandle context, [NativeTypeName("Sint64")] long offset, - int whence + IOWhence whence ) => T.SeekIO(context, offset, whence); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SendGamepadEffect( + public byte SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] void* data, int size ) => T.SendGamepadEffect(gamepad, data, size); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SendGamepadEffect( + public MaybeBool SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] Ref data, int size ) => T.SendGamepadEffect(gamepad, data, size); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SendJoystickEffect( + public byte SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] void* data, int size ) => T.SendJoystickEffect(joystick, data, size); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SendJoystickEffect( + public MaybeBool SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] Ref data, int size ) => T.SendJoystickEffect(joystick, data, size); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickVirtualSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] float* data, + int num_values + ) => T.SendJoystickVirtualSensorData(joystick, type, sensor_timestamp, data, num_values); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickVirtualSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] Ref data, + int num_values + ) => T.SendJoystickVirtualSensorData(joystick, type, sensor_timestamp, data, num_values); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadata")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetAppMetadata( + [NativeTypeName("const char *")] sbyte* appname, + [NativeTypeName("const char *")] sbyte* appversion, + [NativeTypeName("const char *")] sbyte* appidentifier + ) => T.SetAppMetadata(appname, appversion, appidentifier); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadata")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetAppMetadata( + [NativeTypeName("const char *")] Ref appname, + [NativeTypeName("const char *")] Ref appversion, + [NativeTypeName("const char *")] Ref appidentifier + ) => T.SetAppMetadata(appname, appversion, appidentifier); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadataProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetAppMetadataProperty( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ) => T.SetAppMetadataProperty(name, value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadataProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetAppMetadataProperty( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ) => T.SetAppMetadataProperty(name, value); + [NativeFunction("SDL3", EntryPoint = "SDL_SetAssertionHandler")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -20446,123 +24553,273 @@ public void SetAssertionHandler( Ref userdata ) => T.SetAssertionHandler(handler, userdata); + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetAtomicInt(AtomicInt* a, int v) => T.SetAtomicInt(a, v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetAtomicInt(Ref a, int v) => T.SetAtomicInt(a, v); + + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* SetAtomicPointer(void** a, void* v) => T.SetAtomicPointer(a, v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr SetAtomicPointer(Ref2D a, Ref v) => T.SetAtomicPointer(a, v); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint SetAtomicU32(AtomicU32* a, [NativeTypeName("Uint32")] uint v) => + T.SetAtomicU32(a, v); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint SetAtomicU32(Ref a, [NativeTypeName("Uint32")] uint v) => + T.SetAtomicU32(a, v); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioDeviceGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetAudioDeviceGain( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + float gain + ) => T.SetAudioDeviceGain(devid, gain); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioDeviceGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetAudioDeviceGainRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + float gain + ) => T.SetAudioDeviceGainRaw(devid, gain); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetAudioPostmixCallback( + public byte SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, void* userdata ) => T.SetAudioPostmixCallback(devid, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetAudioPostmixCallback( + public MaybeBool SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, Ref userdata ) => T.SetAudioPostmixCallback(devid, callback, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetAudioStreamFormat( + public byte SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec ) => T.SetAudioStreamFormat(stream, src_spec, dst_spec); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetAudioStreamFormat( + public MaybeBool SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec ) => T.SetAudioStreamFormat(stream, src_spec, dst_spec); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetAudioStreamFrequencyRatio( + AudioStreamHandle stream, + float ratio + ) => T.SetAudioStreamFrequencyRatio(stream, ratio); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetAudioStreamFrequencyRatio(AudioStreamHandle stream, float ratio) => - T.SetAudioStreamFrequencyRatio(stream, ratio); + public byte SetAudioStreamFrequencyRatioRaw(AudioStreamHandle stream, float ratio) => + T.SetAudioStreamFrequencyRatioRaw(stream, ratio); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetAudioStreamGain(AudioStreamHandle stream, float gain) => + T.SetAudioStreamGain(stream, gain); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetAudioStreamGainRaw(AudioStreamHandle stream, float gain) => + T.SetAudioStreamGainRaw(stream, gain); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetAudioStreamGetCallback( + public byte SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ) => T.SetAudioStreamGetCallback(stream, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetAudioStreamGetCallback( + public MaybeBool SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata ) => T.SetAudioStreamGetCallback(stream, callback, userdata); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamInputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ) => T.SetAudioStreamInputChannelMap(stream, chmap, count); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamInputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ) => T.SetAudioStreamInputChannelMap(stream, chmap, count); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamOutputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ) => T.SetAudioStreamOutputChannelMap(stream, chmap, count); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamOutputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ) => T.SetAudioStreamOutputChannelMap(stream, chmap, count); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetAudioStreamPutCallback( + public byte SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ) => T.SetAudioStreamPutCallback(stream, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetAudioStreamPutCallback( + public MaybeBool SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata ) => T.SetAudioStreamPutCallback(stream, callback, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetBooleanProperty( + public byte SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int value + [NativeTypeName("bool")] byte value ) => T.SetBooleanProperty(props, name, value); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetBooleanProperty( + public MaybeBool SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool value + [NativeTypeName("bool")] MaybeBool value ) => T.SetBooleanProperty(props, name, value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetClipboardData( + public byte SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, void* userdata, @@ -20570,12 +24827,13 @@ public int SetClipboardData( [NativeTypeName("size_t")] nuint num_mime_types ) => T.SetClipboardData(callback, cleanup, userdata, mime_types, num_mime_types); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetClipboardData( + public MaybeBool SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, Ref userdata, @@ -20583,26 +24841,75 @@ public int SetClipboardData( [NativeTypeName("size_t")] nuint num_mime_types ) => T.SetClipboardData(callback, cleanup, userdata, mime_types, num_mime_types); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetClipboardText([NativeTypeName("const char *")] sbyte* text) => + public byte SetClipboardText([NativeTypeName("const char *")] sbyte* text) => T.SetClipboardText(text); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetClipboardText([NativeTypeName("const char *")] Ref text) => + public MaybeBool SetClipboardText([NativeTypeName("const char *")] Ref text) => T.SetClipboardText(text); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCurrentThreadPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetCurrentThreadPriority(ThreadPriority priority) => + T.SetCurrentThreadPriority(priority); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCurrentThreadPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetCurrentThreadPriorityRaw(ThreadPriority priority) => + T.SetCurrentThreadPriorityRaw(priority); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetCursor(CursorHandle cursor) => T.SetCursor(cursor); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetCursor(CursorHandle cursor) => T.SetCursor(cursor); + public byte SetCursorRaw(CursorHandle cursor) => T.SetCursorRaw(cursor); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetErrorV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetErrorV( + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ) => T.SetErrorV(fmt, ap); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetErrorV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetErrorV( + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) => T.SetErrorV(fmt, ap); [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] [MethodImpl( @@ -20610,7 +24917,7 @@ public int SetClipboardText([NativeTypeName("const char *")] Ref text) => )] public void SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ) => T.SetEventEnabled(type, enabled); [Transformed] @@ -20620,7 +24927,7 @@ public void SetEventEnabled( )] public void SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ) => T.SetEventEnabled(type, enabled); [NativeFunction("SDL3", EntryPoint = "SDL_SetEventFilter")] @@ -20642,22 +24949,24 @@ public void SetEventFilter( Ref userdata ) => T.SetEventFilter(filter, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetFloatProperty( + public byte SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, float value ) => T.SetFloatProperty(props, name, value); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetFloatProperty( + public MaybeBool SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, float value @@ -20667,7 +24976,7 @@ float value [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + public void SetGamepadEventsEnabled([NativeTypeName("bool")] byte enabled) => T.SetGamepadEventsEnabled(enabled); [Transformed] @@ -20675,129 +24984,195 @@ public void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] MaybeBool enabled) => + public void SetGamepadEventsEnabled([NativeTypeName("bool")] MaybeBool enabled) => T.SetGamepadEventsEnabled(enabled); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetGamepadLED( + public MaybeBool SetGamepadLED( GamepadHandle gamepad, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue ) => T.SetGamepadLED(gamepad, red, green, blue); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetGamepadLEDRaw( + GamepadHandle gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => T.SetGamepadLEDRaw(gamepad, red, green, blue); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetGamepadMapping( + public byte SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] sbyte* mapping ) => T.SetGamepadMapping(instance_id, mapping); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetGamepadMapping( + public MaybeBool SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] Ref mapping ) => T.SetGamepadMapping(instance_id, mapping); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetGamepadPlayerIndex(GamepadHandle gamepad, int player_index) => + public MaybeBool SetGamepadPlayerIndex(GamepadHandle gamepad, int player_index) => T.SetGamepadPlayerIndex(gamepad, player_index); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetGamepadPlayerIndexRaw(GamepadHandle gamepad, int player_index) => + T.SetGamepadPlayerIndexRaw(gamepad, player_index); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetGamepadSensorEnabled( + public byte SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ) => T.SetGamepadSensorEnabled(gamepad, type, enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetGamepadSensorEnabled( + public MaybeBool SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ) => T.SetGamepadSensorEnabled(gamepad, type, enabled); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetHapticAutocenter(HapticHandle haptic, int autocenter) => + public MaybeBool SetHapticAutocenter(HapticHandle haptic, int autocenter) => T.SetHapticAutocenter(haptic, autocenter); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetHapticAutocenterRaw(HapticHandle haptic, int autocenter) => + T.SetHapticAutocenterRaw(haptic, autocenter); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetHapticGain(HapticHandle haptic, int gain) => + T.SetHapticGain(haptic, gain); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetHapticGain(HapticHandle haptic, int gain) => T.SetHapticGain(haptic, gain); + public byte SetHapticGainRaw(HapticHandle haptic, int gain) => + T.SetHapticGainRaw(haptic, gain); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetHint( + public byte SetHint( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ) => T.SetHint(name, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool SetHint( + public MaybeBool SetHint( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value ) => T.SetHint(name, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetHintWithPriority( + public byte SetHintWithPriority( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value, HintPriority priority ) => T.SetHintWithPriority(name, value, priority); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool SetHintWithPriority( + public MaybeBool SetHintWithPriority( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value, HintPriority priority ) => T.SetHintWithPriority(name, value, priority); + [NativeFunction("SDL3", EntryPoint = "SDL_SetInitialized")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetInitialized(InitState* state, [NativeTypeName("bool")] byte initialized) => + T.SetInitialized(state, initialized); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetInitialized")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetInitialized( + Ref state, + [NativeTypeName("bool")] MaybeBool initialized + ) => T.SetInitialized(state, initialized); + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + public void SetJoystickEventsEnabled([NativeTypeName("bool")] byte enabled) => T.SetJoystickEventsEnabled(enabled); [Transformed] @@ -20805,57 +25180,176 @@ public void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled) = [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] MaybeBool enabled) => + public void SetJoystickEventsEnabled([NativeTypeName("bool")] MaybeBool enabled) => T.SetJoystickEventsEnabled(enabled); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetJoystickLED( + public MaybeBool SetJoystickLED( JoystickHandle joystick, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue ) => T.SetJoystickLED(joystick, red, green, blue); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetJoystickLEDRaw( + JoystickHandle joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => T.SetJoystickLEDRaw(joystick, red, green, blue); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetJoystickPlayerIndex(JoystickHandle joystick, int player_index) => + public MaybeBool SetJoystickPlayerIndex(JoystickHandle joystick, int player_index) => T.SetJoystickPlayerIndex(joystick, player_index); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetJoystickPlayerIndexRaw(JoystickHandle joystick, int player_index) => + T.SetJoystickPlayerIndexRaw(joystick, player_index); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetJoystickVirtualAxis( + public MaybeBool SetJoystickVirtualAxis( JoystickHandle joystick, int axis, [NativeTypeName("Sint16")] short value ) => T.SetJoystickVirtualAxis(joystick, axis, value); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetJoystickVirtualAxisRaw( + JoystickHandle joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) => T.SetJoystickVirtualAxisRaw(joystick, axis, value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualBall")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetJoystickVirtualBall( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ) => T.SetJoystickVirtualBall(joystick, ball, xrel, yrel); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualBall")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetJoystickVirtualBallRaw( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ) => T.SetJoystickVirtualBallRaw(joystick, ball, xrel, yrel); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetJoystickVirtualButton( + public byte SetJoystickVirtualButton( JoystickHandle joystick, int button, - [NativeTypeName("Uint8")] byte value - ) => T.SetJoystickVirtualButton(joystick, button, value); + [NativeTypeName("bool")] byte down + ) => T.SetJoystickVirtualButton(joystick, button, down); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetJoystickVirtualButton( + JoystickHandle joystick, + int button, + [NativeTypeName("bool")] MaybeBool down + ) => T.SetJoystickVirtualButton(joystick, button, down); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetJoystickVirtualHat( + public MaybeBool SetJoystickVirtualHat( JoystickHandle joystick, int hat, [NativeTypeName("Uint8")] byte value ) => T.SetJoystickVirtualHat(joystick, hat, value); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetJoystickVirtualHatRaw( + JoystickHandle joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) => T.SetJoystickVirtualHatRaw(joystick, hat, value); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualTouchpad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] byte down, + float x, + float y, + float pressure + ) => T.SetJoystickVirtualTouchpad(joystick, touchpad, finger, down, x, y, pressure); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualTouchpad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] MaybeBool down, + float x, + float y, + float pressure + ) => T.SetJoystickVirtualTouchpad(joystick, touchpad, finger, down, x, y, pressure); + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogOutputFunction")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -20875,185 +25369,229 @@ public void SetLogOutputFunction( Ref userdata ) => T.SetLogOutputFunction(callback, userdata); + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorities")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetLogPriorities(LogPriority priority) => T.SetLogPriorities(priority); + + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetLogPriority(int category, LogPriority priority) => + T.SetLogPriority(category, priority); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorityPrefix")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] sbyte* prefix + ) => T.SetLogPriorityPrefix(priority, prefix); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorityPrefix")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] Ref prefix + ) => T.SetLogPriorityPrefix(priority, prefix); + [NativeFunction("SDL3", EntryPoint = "SDL_SetModState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void SetModState(Keymod modstate) => T.SetModState(modstate); + public void SetModState([NativeTypeName("SDL_Keymod")] ushort modstate) => + T.SetModState(modstate); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetNumberProperty( + public byte SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("Sint64")] long value ) => T.SetNumberProperty(props, name, value); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetNumberProperty( + public MaybeBool SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("Sint64")] long value ) => T.SetNumberProperty(props, name, value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetPaletteColors( + public byte SetPaletteColors( Palette* palette, [NativeTypeName("const SDL_Color *")] Color* colors, int firstcolor, int ncolors ) => T.SetPaletteColors(palette, colors, firstcolor, ncolors); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetPaletteColors( + public MaybeBool SetPaletteColors( Ref palette, [NativeTypeName("const SDL_Color *")] Ref colors, int firstcolor, int ncolors ) => T.SetPaletteColors(palette, colors, firstcolor, ncolors); - [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int SetPixelFormatPalette(PixelFormat* format, Palette* palette) => - T.SetPixelFormatPalette(format, palette); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int SetPixelFormatPalette(Ref format, Ref palette) => - T.SetPixelFormatPalette(format, palette); - - [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text) => - T.SetPrimarySelectionText(text); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int SetPrimarySelectionText([NativeTypeName("const char *")] Ref text) => - T.SetPrimarySelectionText(text); - - [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetProperty( + public byte SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value - ) => T.SetProperty(props, name, value); + ) => T.SetPointerProperty(props, name, value); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetProperty( + public MaybeBool SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value - ) => T.SetProperty(props, name, value); + ) => T.SetPointerProperty(props, name, value); - [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerPropertyWithCleanup")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetPropertyWithCleanup( + public byte SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, void* userdata - ) => T.SetPropertyWithCleanup(props, name, value, cleanup, userdata); + ) => T.SetPointerPropertyWithCleanup(props, name, value, cleanup, userdata); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerPropertyWithCleanup")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetPropertyWithCleanup( + public MaybeBool SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, Ref userdata - ) => T.SetPropertyWithCleanup(props, name, value, cleanup, userdata); + ) => T.SetPointerPropertyWithCleanup(props, name, value, cleanup, userdata); - [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled) => - T.SetRelativeMouseMode(enabled); + public byte SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text) => + T.SetPrimarySelectionText(text); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRelativeMouseMode([NativeTypeName("SDL_bool")] MaybeBool enabled) => - T.SetRelativeMouseMode(enabled); + public MaybeBool SetPrimarySelectionText( + [NativeTypeName("const char *")] Ref text + ) => T.SetPrimarySelectionText(text); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRenderClipRect( + public byte SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => T.SetRenderClipRect(renderer, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRenderClipRect( + public MaybeBool SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ) => T.SetRenderClipRect(renderer, rect); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRenderColorScale(RendererHandle renderer, float scale) => + public MaybeBool SetRenderColorScale(RendererHandle renderer, float scale) => T.SetRenderColorScale(renderer, scale); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetRenderColorScaleRaw(RendererHandle renderer, float scale) => + T.SetRenderColorScaleRaw(renderer, scale); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => T.SetRenderDrawBlendMode(renderer, blendMode); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRenderDrawBlendMode(RendererHandle renderer, BlendMode blendMode) => - T.SetRenderDrawBlendMode(renderer, blendMode); + public byte SetRenderDrawBlendModeRaw( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => T.SetRenderDrawBlendModeRaw(renderer, blendMode); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRenderDrawColor( + public MaybeBool SetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, @@ -21061,11 +25599,13 @@ public int SetRenderDrawColor( [NativeTypeName("Uint8")] byte a ) => T.SetRenderDrawColor(renderer, r, g, b, a); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRenderDrawColorFloat( + public MaybeBool SetRenderDrawColorFloat( RendererHandle renderer, float r, float g, @@ -21073,617 +25613,1015 @@ public int SetRenderDrawColorFloat( float a ) => T.SetRenderDrawColorFloat(renderer, r, g, b, a); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetRenderDrawColorFloatRaw( + RendererHandle renderer, + float r, + float g, + float b, + float a + ) => T.SetRenderDrawColorFloatRaw(renderer, r, g, b, a); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetRenderDrawColorRaw( + RendererHandle renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => T.SetRenderDrawColorRaw(renderer, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetRenderLogicalPresentation( + RendererHandle renderer, + int w, + int h, + RendererLogicalPresentation mode + ) => T.SetRenderLogicalPresentation(renderer, w, h, mode); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRenderLogicalPresentation( + public byte SetRenderLogicalPresentationRaw( RendererHandle renderer, int w, int h, - RendererLogicalPresentation mode, - ScaleMode scale_mode - ) => T.SetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + RendererLogicalPresentation mode + ) => T.SetRenderLogicalPresentationRaw(renderer, w, h, mode); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetRenderScale( + RendererHandle renderer, + float scaleX, + float scaleY + ) => T.SetRenderScale(renderer, scaleX, scaleY); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRenderScale(RendererHandle renderer, float scaleX, float scaleY) => - T.SetRenderScale(renderer, scaleX, scaleY); + public byte SetRenderScaleRaw(RendererHandle renderer, float scaleX, float scaleY) => + T.SetRenderScaleRaw(renderer, scaleX, scaleY); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetRenderTarget(RendererHandle renderer, Texture* texture) => + T.SetRenderTarget(renderer, texture); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRenderTarget(RendererHandle renderer, TextureHandle texture) => + public MaybeBool SetRenderTarget(RendererHandle renderer, Ref texture) => T.SetRenderTarget(renderer, texture); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRenderViewport( + public byte SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => T.SetRenderViewport(renderer, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRenderViewport( + public MaybeBool SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ) => T.SetRenderViewport(renderer, rect); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetRenderVSync(RendererHandle renderer, int vsync) => + public MaybeBool SetRenderVSync(RendererHandle renderer, int vsync) => T.SetRenderVSync(renderer, vsync); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetRenderVSyncRaw(RendererHandle renderer, int vsync) => + T.SetRenderVSyncRaw(renderer, vsync); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetScancodeName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetScancodeName( + Scancode scancode, + [NativeTypeName("const char *")] sbyte* name + ) => T.SetScancodeName(scancode, name); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetScancodeName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetScancodeName( + Scancode scancode, + [NativeTypeName("const char *")] Ref name + ) => T.SetScancodeName(scancode, name); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetStringProperty( + public byte SetStringProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ) => T.SetStringProperty(props, name, value); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetStringProperty( + public MaybeBool SetStringProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value ) => T.SetStringProperty(props, name, value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8")] byte alpha) => + public byte SetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8")] byte alpha) => T.SetSurfaceAlphaMod(surface, alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceAlphaMod(Ref surface, [NativeTypeName("Uint8")] byte alpha) => - T.SetSurfaceAlphaMod(surface, alpha); + public MaybeBool SetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8")] byte alpha + ) => T.SetSurfaceAlphaMod(surface, alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceBlendMode(Surface* surface, BlendMode blendMode) => - T.SetSurfaceBlendMode(surface, blendMode); + public byte SetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => T.SetSurfaceBlendMode(surface, blendMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceBlendMode(Ref surface, BlendMode blendMode) => - T.SetSurfaceBlendMode(surface, blendMode); + public MaybeBool SetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => T.SetSurfaceBlendMode(surface, blendMode); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceClipRect( + public byte SetSurfaceClipRect( Surface* surface, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => T.SetSurfaceClipRect(surface, rect); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool SetSurfaceClipRect( + public MaybeBool SetSurfaceClipRect( Ref surface, [NativeTypeName("const SDL_Rect *")] Ref rect ) => T.SetSurfaceClipRect(surface, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceColorKey( + public byte SetSurfaceColorKey( Surface* surface, - int flag, + [NativeTypeName("bool")] byte enabled, [NativeTypeName("Uint32")] uint key - ) => T.SetSurfaceColorKey(surface, flag, key); + ) => T.SetSurfaceColorKey(surface, enabled, key); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceColorKey( + public MaybeBool SetSurfaceColorKey( Ref surface, - int flag, + [NativeTypeName("bool")] MaybeBool enabled, [NativeTypeName("Uint32")] uint key - ) => T.SetSurfaceColorKey(surface, flag, key); + ) => T.SetSurfaceColorKey(surface, enabled, key); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceColorMod( + public byte SetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ) => T.SetSurfaceColorMod(surface, r, g, b); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceColorMod( + public MaybeBool SetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ) => T.SetSurfaceColorMod(surface, r, g, b); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => + public byte SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => T.SetSurfaceColorspace(surface, colorspace); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceColorspace(Ref surface, Colorspace colorspace) => + public MaybeBool SetSurfaceColorspace(Ref surface, Colorspace colorspace) => T.SetSurfaceColorspace(surface, colorspace); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfacePalette(Surface* surface, Palette* palette) => + public byte SetSurfacePalette(Surface* surface, Palette* palette) => T.SetSurfacePalette(surface, palette); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfacePalette(Ref surface, Ref palette) => + public MaybeBool SetSurfacePalette(Ref surface, Ref palette) => T.SetSurfacePalette(surface, palette); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceRLE(Surface* surface, int flag) => T.SetSurfaceRLE(surface, flag); + public byte SetSurfaceRLE(Surface* surface, [NativeTypeName("bool")] byte enabled) => + T.SetSurfaceRLE(surface, enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetSurfaceRLE(Ref surface, int flag) => T.SetSurfaceRLE(surface, flag); + public MaybeBool SetSurfaceRLE( + Ref surface, + [NativeTypeName("bool")] MaybeBool enabled + ) => T.SetSurfaceRLE(surface, enabled); - [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputArea")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => - T.SetTextInputRect(rect); + public byte SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int cursor + ) => T.SetTextInputArea(window, rect, cursor); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Ref rect, + int cursor + ) => T.SetTextInputArea(window, rect, cursor); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect) => - T.SetTextInputRect(rect); + public byte SetTextureAlphaMod(Texture* texture, [NativeTypeName("Uint8")] byte alpha) => + T.SetTextureAlphaMod(texture, alpha); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetTextureAlphaMod( - TextureHandle texture, + public MaybeBool SetTextureAlphaMod( + Ref texture, [NativeTypeName("Uint8")] byte alpha ) => T.SetTextureAlphaMod(texture, alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetTextureAlphaModFloat(TextureHandle texture, float alpha) => + public byte SetTextureAlphaModFloat(Texture* texture, float alpha) => T.SetTextureAlphaModFloat(texture, alpha); - [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetTextureBlendMode(TextureHandle texture, BlendMode blendMode) => - T.SetTextureBlendMode(texture, blendMode); + public MaybeBool SetTextureAlphaModFloat(Ref texture, float alpha) => + T.SetTextureAlphaModFloat(texture, alpha); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => T.SetTextureBlendMode(texture, blendMode); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => T.SetTextureBlendMode(texture, blendMode); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetTextureColorMod( - TextureHandle texture, + public byte SetTextureColorMod( + Texture* texture, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ) => T.SetTextureColorMod(texture, r, g, b); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => T.SetTextureColorMod(texture, r, g, b); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetTextureColorModFloat(TextureHandle texture, float r, float g, float b) => + public byte SetTextureColorModFloat(Texture* texture, float r, float g, float b) => T.SetTextureColorModFloat(texture, r, g, b); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetTextureColorModFloat( + Ref texture, + float r, + float g, + float b + ) => T.SetTextureColorModFloat(texture, r, g, b); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetTextureScaleMode(TextureHandle texture, ScaleMode scaleMode) => + public byte SetTextureScaleMode(Texture* texture, ScaleMode scaleMode) => T.SetTextureScaleMode(texture, scaleMode); - [NativeFunction("SDL3", EntryPoint = "SDL_SetThreadPriority")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetThreadPriority(ThreadPriority priority) => T.SetThreadPriority(priority); + public MaybeBool SetTextureScaleMode(Ref texture, ScaleMode scaleMode) => + T.SetTextureScaleMode(texture, scaleMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + public byte SetTLS( + [NativeTypeName("SDL_TLSID *")] AtomicInt* id, [NativeTypeName("const void *")] void* value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ) => T.SetTLS(id, value, destructor); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + public MaybeBool SetTLS( + [NativeTypeName("SDL_TLSID *")] Ref id, [NativeTypeName("const void *")] Ref value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ) => T.SetTLS(id, value, destructor); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowAlwaysOnTop( + public byte SetWindowAlwaysOnTop( WindowHandle window, - [NativeTypeName("SDL_bool")] int on_top + [NativeTypeName("bool")] byte on_top ) => T.SetWindowAlwaysOnTop(window, on_top); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowAlwaysOnTop( + public MaybeBool SetWindowAlwaysOnTop( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool on_top + [NativeTypeName("bool")] MaybeBool on_top ) => T.SetWindowAlwaysOnTop(window, on_top); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAspectRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetWindowAspectRatio( + WindowHandle window, + float min_aspect, + float max_aspect + ) => T.SetWindowAspectRatio(window, min_aspect, max_aspect); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAspectRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetWindowAspectRatioRaw( + WindowHandle window, + float min_aspect, + float max_aspect + ) => T.SetWindowAspectRatioRaw(window, min_aspect, max_aspect); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowBordered( + public byte SetWindowBordered( WindowHandle window, - [NativeTypeName("SDL_bool")] int bordered + [NativeTypeName("bool")] byte bordered ) => T.SetWindowBordered(window, bordered); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowBordered( + public MaybeBool SetWindowBordered( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool bordered + [NativeTypeName("bool")] MaybeBool bordered ) => T.SetWindowBordered(window, bordered); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowFocusable( + public byte SetWindowFocusable( WindowHandle window, - [NativeTypeName("SDL_bool")] int focusable + [NativeTypeName("bool")] byte focusable ) => T.SetWindowFocusable(window, focusable); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowFocusable( + public MaybeBool SetWindowFocusable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool focusable + [NativeTypeName("bool")] MaybeBool focusable ) => T.SetWindowFocusable(window, focusable); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowFullscreen( + public byte SetWindowFullscreen( WindowHandle window, - [NativeTypeName("SDL_bool")] int fullscreen + [NativeTypeName("bool")] byte fullscreen ) => T.SetWindowFullscreen(window, fullscreen); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowFullscreen( + public MaybeBool SetWindowFullscreen( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool fullscreen + [NativeTypeName("bool")] MaybeBool fullscreen ) => T.SetWindowFullscreen(window, fullscreen); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowFullscreenMode( + public byte SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode ) => T.SetWindowFullscreenMode(window, mode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowFullscreenMode( + public MaybeBool SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] Ref mode ) => T.SetWindowFullscreenMode(window, mode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowHitTest( + public byte SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, void* callback_data ) => T.SetWindowHitTest(window, callback, callback_data); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowHitTest( + public MaybeBool SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, Ref callback_data ) => T.SetWindowHitTest(window, callback, callback_data); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowIcon(WindowHandle window, Surface* icon) => + public byte SetWindowIcon(WindowHandle window, Surface* icon) => T.SetWindowIcon(window, icon); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowIcon(WindowHandle window, Ref icon) => + public MaybeBool SetWindowIcon(WindowHandle window, Ref icon) => T.SetWindowIcon(window, icon); - [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowInputFocus")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public int SetWindowInputFocus(WindowHandle window) => T.SetWindowInputFocus(window); - + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowKeyboardGrab( + public byte SetWindowKeyboardGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] int grabbed + [NativeTypeName("bool")] byte grabbed ) => T.SetWindowKeyboardGrab(window, grabbed); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowKeyboardGrab( + public MaybeBool SetWindowKeyboardGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed + [NativeTypeName("bool")] MaybeBool grabbed ) => T.SetWindowKeyboardGrab(window, grabbed); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowMaximumSize(WindowHandle window, int max_w, int max_h) => + public MaybeBool SetWindowMaximumSize(WindowHandle window, int max_w, int max_h) => T.SetWindowMaximumSize(window, max_w, max_h); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetWindowMaximumSizeRaw(WindowHandle window, int max_w, int max_h) => + T.SetWindowMaximumSizeRaw(window, max_w, max_h); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowMinimumSize(WindowHandle window, int min_w, int min_h) => + public MaybeBool SetWindowMinimumSize(WindowHandle window, int min_w, int min_h) => T.SetWindowMinimumSize(window, min_w, min_h); - [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModalFor")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetWindowMinimumSizeRaw(WindowHandle window, int min_w, int min_h) => + T.SetWindowMinimumSizeRaw(window, min_w, min_h); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModal")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowModalFor(WindowHandle modal_window, WindowHandle parent_window) => - T.SetWindowModalFor(modal_window, parent_window); + public byte SetWindowModal(WindowHandle window, [NativeTypeName("bool")] byte modal) => + T.SetWindowModal(window, modal); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModal")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetWindowModal( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool modal + ) => T.SetWindowModal(window, modal); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowMouseGrab( + public byte SetWindowMouseGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] int grabbed + [NativeTypeName("bool")] byte grabbed ) => T.SetWindowMouseGrab(window, grabbed); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowMouseGrab( + public MaybeBool SetWindowMouseGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed + [NativeTypeName("bool")] MaybeBool grabbed ) => T.SetWindowMouseGrab(window, grabbed); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowMouseRect( + public byte SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => T.SetWindowMouseRect(window, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowMouseRect( + public MaybeBool SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rect ) => T.SetWindowMouseRect(window, rect); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowOpacity(WindowHandle window, float opacity) => + public MaybeBool SetWindowOpacity(WindowHandle window, float opacity) => T.SetWindowOpacity(window, opacity); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetWindowOpacityRaw(WindowHandle window, float opacity) => + T.SetWindowOpacityRaw(window, opacity); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowParent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetWindowParent(WindowHandle window, WindowHandle parent) => + T.SetWindowParent(window, parent); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowParent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetWindowParentRaw(WindowHandle window, WindowHandle parent) => + T.SetWindowParentRaw(window, parent); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowPosition(WindowHandle window, int x, int y) => + public MaybeBool SetWindowPosition(WindowHandle window, int x, int y) => T.SetWindowPosition(window, x, y); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetWindowPositionRaw(WindowHandle window, int x, int y) => + T.SetWindowPositionRaw(window, x, y); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetWindowRelativeMouseMode( + WindowHandle window, + [NativeTypeName("bool")] byte enabled + ) => T.SetWindowRelativeMouseMode(window, enabled); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetWindowRelativeMouseMode( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool enabled + ) => T.SetWindowRelativeMouseMode(window, enabled); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowResizable( + public byte SetWindowResizable( WindowHandle window, - [NativeTypeName("SDL_bool")] int resizable + [NativeTypeName("bool")] byte resizable ) => T.SetWindowResizable(window, resizable); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowResizable( + public MaybeBool SetWindowResizable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool resizable + [NativeTypeName("bool")] MaybeBool resizable ) => T.SetWindowResizable(window, resizable); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowShape(WindowHandle window, Surface* shape) => + public byte SetWindowShape(WindowHandle window, Surface* shape) => T.SetWindowShape(window, shape); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowShape(WindowHandle window, Ref shape) => + public MaybeBool SetWindowShape(WindowHandle window, Ref shape) => T.SetWindowShape(window, shape); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowSize(WindowHandle window, int w, int h) => + public MaybeBool SetWindowSize(WindowHandle window, int w, int h) => T.SetWindowSize(window, w, h); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetWindowSizeRaw(WindowHandle window, int w, int h) => + T.SetWindowSizeRaw(window, w, h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSurfaceVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetWindowSurfaceVSync(WindowHandle window, int vsync) => + T.SetWindowSurfaceVSync(window, vsync); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSurfaceVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetWindowSurfaceVSyncRaw(WindowHandle window, int vsync) => + T.SetWindowSurfaceVSyncRaw(window, vsync); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowTitle( + public byte SetWindowTitle( WindowHandle window, [NativeTypeName("const char *")] sbyte* title ) => T.SetWindowTitle(window, title); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SetWindowTitle( + public MaybeBool SetWindowTitle( WindowHandle window, [NativeTypeName("const char *")] Ref title ) => T.SetWindowTitle(window, title); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldInit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte ShouldInit(InitState* state) => T.ShouldInit(state); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldInit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ShouldInit(Ref state) => T.ShouldInit(state); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldQuit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte ShouldQuit(InitState* state) => T.ShouldQuit(state); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldQuit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ShouldQuit(Ref state) => T.ShouldQuit(state); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ShowCursor() => T.ShowCursor(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ShowCursor() => T.ShowCursor(); + public byte ShowCursorRaw() => T.ShowCursorRaw(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ShowMessageBox( + public byte ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, int* buttonid ) => T.ShowMessageBox(messageboxdata, buttonid); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ShowMessageBox( + public MaybeBool ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, Ref buttonid ) => T.ShowMessageBox(messageboxdata, buttonid); @@ -21697,10 +26635,19 @@ public void ShowOpenFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ) => - T.ShowOpenFileDialog(callback, userdata, window, filters, default_location, allow_many); + T.ShowOpenFileDialog( + callback, + userdata, + window, + filters, + nfilters, + default_location, + allow_many + ); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFileDialog")] @@ -21712,10 +26659,19 @@ public void ShowOpenFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ) => - T.ShowOpenFileDialog(callback, userdata, window, filters, default_location, allow_many); + T.ShowOpenFileDialog( + callback, + userdata, + window, + filters, + nfilters, + default_location, + allow_many + ); [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFolderDialog")] [MethodImpl( @@ -21726,7 +26682,7 @@ public void ShowOpenFolderDialog( void* userdata, WindowHandle window, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ) => T.ShowOpenFolderDialog(callback, userdata, window, default_location, allow_many); [Transformed] @@ -21739,7 +26695,7 @@ public void ShowOpenFolderDialog( Ref userdata, WindowHandle window, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ) => T.ShowOpenFolderDialog(callback, userdata, window, default_location, allow_many); [NativeFunction("SDL3", EntryPoint = "SDL_ShowSaveFileDialog")] @@ -21751,8 +26707,9 @@ public void ShowSaveFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location - ) => T.ShowSaveFileDialog(callback, userdata, window, filters, default_location); + ) => T.ShowSaveFileDialog(callback, userdata, window, filters, nfilters, default_location); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowSaveFileDialog")] @@ -21764,165 +26721,270 @@ public void ShowSaveFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location - ) => T.ShowSaveFileDialog(callback, userdata, window, filters, default_location); + ) => T.ShowSaveFileDialog(callback, userdata, window, filters, nfilters, default_location); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + public byte ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] sbyte* title, [NativeTypeName("const char *")] sbyte* message, WindowHandle window ) => T.ShowSimpleMessageBox(flags, title, message, window); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + public MaybeBool ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] Ref title, [NativeTypeName("const char *")] Ref message, WindowHandle window ) => T.ShowSimpleMessageBox(flags, title, message, window); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ShowWindow(WindowHandle window) => T.ShowWindow(window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ShowWindow(WindowHandle window) => T.ShowWindow(window); + public byte ShowWindowRaw(WindowHandle window) => T.ShowWindowRaw(window); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int ShowWindowSystemMenu(WindowHandle window, int x, int y) => + public MaybeBool ShowWindowSystemMenu(WindowHandle window, int x, int y) => T.ShowWindowSystemMenu(window, x, y); - [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SignalCondition(ConditionHandle cond) => T.SignalCondition(cond); + public byte ShowWindowSystemMenuRaw(WindowHandle window, int x, int y) => + T.ShowWindowSystemMenuRaw(window, x, y); - [return: NativeTypeName("size_t")] - [NativeFunction("SDL3", EntryPoint = "SDL_SIMDGetAlignment")] + [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public nuint SimdGetAlignment() => T.SimdGetAlignment(); + public void SignalCondition(ConditionHandle cond) => T.SignalCondition(cond); - [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] + [NativeFunction("SDL3", EntryPoint = "SDL_SignalSemaphore")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SoftStretch( - Surface* src, - [NativeTypeName("const SDL_Rect *")] Rect* srcrect, - Surface* dst, - [NativeTypeName("const SDL_Rect *")] Rect* dstrect, - ScaleMode scaleMode - ) => T.SoftStretch(src, srcrect, dst, dstrect, scaleMode); + public void SignalSemaphore(SemaphoreHandle sem) => T.SignalSemaphore(sem); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SoftStretch( - Ref src, - [NativeTypeName("const SDL_Rect *")] Ref srcrect, - Ref dst, - [NativeTypeName("const SDL_Rect *")] Ref dstrect, - ScaleMode scaleMode - ) => T.SoftStretch(src, srcrect, dst, dstrect, scaleMode); + public MaybeBool StartTextInput(WindowHandle window) => T.StartTextInput(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void StartTextInput() => T.StartTextInput(); + public byte StartTextInputRaw(WindowHandle window) => T.StartTextInputRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInputWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool StartTextInputWithProperties( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.StartTextInputWithProperties(window, props); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInputWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte StartTextInputWithPropertiesRaw( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.StartTextInputWithPropertiesRaw(window, props); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int StopHapticEffect(HapticHandle haptic, int effect) => + public MaybeBool StopHapticEffect(HapticHandle haptic, int effect) => T.StopHapticEffect(haptic, effect); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte StopHapticEffectRaw(HapticHandle haptic, int effect) => + T.StopHapticEffectRaw(haptic, effect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool StopHapticEffects(HapticHandle haptic) => + T.StopHapticEffects(haptic); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int StopHapticEffects(HapticHandle haptic) => T.StopHapticEffects(haptic); + public byte StopHapticEffectsRaw(HapticHandle haptic) => T.StopHapticEffectsRaw(haptic); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int StopHapticRumble(HapticHandle haptic) => T.StopHapticRumble(haptic); + public MaybeBool StopHapticRumble(HapticHandle haptic) => T.StopHapticRumble(haptic); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte StopHapticRumbleRaw(HapticHandle haptic) => T.StopHapticRumbleRaw(haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopTextInput")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool StopTextInput(WindowHandle window) => T.StopTextInput(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopTextInput")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void StopTextInput() => T.StopTextInput(); + public byte StopTextInputRaw(WindowHandle window) => T.StopTextInputRaw(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool StorageReady(StorageHandle storage) => T.StorageReady(storage); + public MaybeBool StorageReady(StorageHandle storage) => T.StorageReady(storage); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int StorageReadyRaw(StorageHandle storage) => T.StorageReadyRaw(storage); + public byte StorageReadyRaw(StorageHandle storage) => T.StorageReadyRaw(storage); - [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Guid StringToGuid([NativeTypeName("const char *")] sbyte* pchGUID) => + T.StringToGuid(pchGUID); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Guid StringToGuid([NativeTypeName("const char *")] Ref pchGUID) => + T.StringToGuid(pchGUID); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasAlternateImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SurfaceHasAlternateImages(Surface* surface) => + T.SurfaceHasAlternateImages(surface); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasAlternateImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SurfaceHasAlternateImages(Ref surface) => + T.SurfaceHasAlternateImages(surface); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SurfaceHasColorKey(Surface* surface) => T.SurfaceHasColorKey(surface); + public byte SurfaceHasColorKey(Surface* surface) => T.SurfaceHasColorKey(surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool SurfaceHasColorKey(Ref surface) => + public MaybeBool SurfaceHasColorKey(Ref surface) => T.SurfaceHasColorKey(surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SurfaceHasRLE(Surface* surface) => T.SurfaceHasRLE(surface); + public byte SurfaceHasRLE(Surface* surface) => T.SurfaceHasRLE(surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool SurfaceHasRLE(Ref surface) => T.SurfaceHasRLE(surface); + public MaybeBool SurfaceHasRLE(Ref surface) => T.SurfaceHasRLE(surface); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SyncWindow(WindowHandle window) => T.SyncWindow(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int SyncWindow(WindowHandle window) => T.SyncWindow(window); + public byte SyncWindowRaw(WindowHandle window) => T.SyncWindowRaw(window); [return: NativeTypeName("Sint64")] [NativeFunction("SDL3", EntryPoint = "SDL_TellIO")] @@ -21931,20 +26993,20 @@ public MaybeBool SurfaceHasColorKey(Ref surface) => )] public long TellIO(IOStreamHandle context) => T.TellIO(context); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool TextInputActive() => T.TextInputActive(); + public MaybeBool TextInputActive(WindowHandle window) => T.TextInputActive(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int TextInputActiveRaw() => T.TextInputActiveRaw(); + public byte TextInputActiveRaw(WindowHandle window) => T.TextInputActiveRaw(window); [return: NativeTypeName("SDL_Time")] [NativeFunction("SDL3", EntryPoint = "SDL_TimeFromWindows")] @@ -21956,25 +27018,27 @@ public long TimeFromWindows( [NativeTypeName("Uint32")] uint dwHighDateTime ) => T.TimeFromWindows(dwLowDateTime, dwHighDateTime); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int TimeToDateTime( + public byte TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, DateTime* dt, - [NativeTypeName("SDL_bool")] int localTime + [NativeTypeName("bool")] byte localTime ) => T.TimeToDateTime(ticks, dt, localTime); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int TimeToDateTime( + public MaybeBool TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, Ref dt, - [NativeTypeName("SDL_bool")] MaybeBool localTime + [NativeTypeName("bool")] MaybeBool localTime ) => T.TimeToDateTime(ticks, dt, localTime); [NativeFunction("SDL3", EntryPoint = "SDL_TimeToWindows")] @@ -21998,48 +27062,86 @@ public void TimeToWindows( [NativeTypeName("Uint32 *")] Ref dwHighDateTime ) => T.TimeToWindows(ticks, dwLowDateTime, dwHighDateTime); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool TryLockMutex(MutexHandle mutex) => T.TryLockMutex(mutex); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int TryLockMutex(MutexHandle mutex) => T.TryLockMutex(mutex); + public byte TryLockMutexRaw(MutexHandle mutex) => T.TryLockMutexRaw(mutex); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int TryLockRWLockForReading(RWLockHandle rwlock) => + public MaybeBool TryLockRWLockForReading(RWLockHandle rwlock) => T.TryLockRWLockForReading(rwlock); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte TryLockRWLockForReadingRaw(RWLockHandle rwlock) => + T.TryLockRWLockForReadingRaw(rwlock); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int TryLockRWLockForWriting(RWLockHandle rwlock) => + public MaybeBool TryLockRWLockForWriting(RWLockHandle rwlock) => T.TryLockRWLockForWriting(rwlock); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte TryLockRWLockForWritingRaw(RWLockHandle rwlock) => + T.TryLockRWLockForWritingRaw(rwlock); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + public byte TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => T.TryLockSpinlock(@lock); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) => + public MaybeBool TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) => T.TryLockSpinlock(@lock); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool TryWaitSemaphore(SemaphoreHandle sem) => T.TryWaitSemaphore(sem); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int TryWaitSemaphore(SemaphoreHandle sem) => T.TryWaitSemaphore(sem); + public byte TryWaitSemaphoreRaw(SemaphoreHandle sem) => T.TryWaitSemaphoreRaw(sem); [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStream")] [MethodImpl( @@ -22066,20 +27168,24 @@ public void UnbindAudioStreams(Ref streams, int num_streams) [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void UnloadObject(void* handle) => T.UnloadObject(handle); + public void UnloadObject(SharedObjectHandle handle) => T.UnloadObject(handle); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void UnloadObject(Ref handle) => T.UnloadObject(handle); + public MaybeBool UnlockAudioStream(AudioStreamHandle stream) => + T.UnlockAudioStream(stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int UnlockAudioStream(AudioStreamHandle stream) => T.UnlockAudioStream(stream); + public byte UnlockAudioStreamRaw(AudioStreamHandle stream) => + T.UnlockAudioStreamRaw(stream); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockJoysticks")] [MethodImpl( @@ -22138,7 +27244,14 @@ public void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public void UnlockTexture(TextureHandle texture) => T.UnlockTexture(texture); + public void UnlockTexture(Texture* texture) => T.UnlockTexture(texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnlockTexture(Ref texture) => T.UnlockTexture(texture); [NativeFunction("SDL3", EntryPoint = "SDL_UpdateGamepads")] [MethodImpl( @@ -22146,22 +27259,24 @@ public void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) => )] public void UpdateGamepads() => T.UpdateGamepads(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int UpdateHapticEffect( + public byte UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data ) => T.UpdateHapticEffect(haptic, effect, data); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int UpdateHapticEffect( + public MaybeBool UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] Ref data @@ -22173,12 +27288,13 @@ public int UpdateHapticEffect( )] public void UpdateJoysticks() => T.UpdateJoysticks(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int UpdateNVTexture( - TextureHandle texture, + public byte UpdateNVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -22186,13 +27302,14 @@ public int UpdateNVTexture( int UVpitch ) => T.UpdateNVTexture(texture, rect, Yplane, Ypitch, UVplane, UVpitch); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int UpdateNVTexture( - TextureHandle texture, + public MaybeBool UpdateNVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -22206,62 +27323,77 @@ int UVpitch )] public void UpdateSensors() => T.UpdateSensors(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int UpdateTexture( - TextureHandle texture, + public byte UpdateTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const void *")] void* pixels, int pitch ) => T.UpdateTexture(texture, rect, pixels, pitch); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int UpdateTexture( - TextureHandle texture, + public MaybeBool UpdateTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const void *")] Ref pixels, int pitch ) => T.UpdateTexture(texture, rect, pixels, pitch); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int UpdateWindowSurface(WindowHandle window) => T.UpdateWindowSurface(window); + public MaybeBool UpdateWindowSurface(WindowHandle window) => + T.UpdateWindowSurface(window); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte UpdateWindowSurfaceRaw(WindowHandle window) => T.UpdateWindowSurfaceRaw(window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int UpdateWindowSurfaceRects( + public byte UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rects, int numrects ) => T.UpdateWindowSurfaceRects(window, rects, numrects); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int UpdateWindowSurfaceRects( + public MaybeBool UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rects, int numrects ) => T.UpdateWindowSurfaceRects(window, rects, numrects); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int UpdateYUVTexture( - TextureHandle texture, + public byte UpdateYUVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -22271,13 +27403,14 @@ public int UpdateYUVTexture( int Vpitch ) => T.UpdateYUVTexture(texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int UpdateYUVTexture( - TextureHandle texture, + public MaybeBool UpdateYUVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -22291,49 +27424,62 @@ int Vpitch [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WaitCondition(ConditionHandle cond, MutexHandle mutex) => + public void WaitCondition(ConditionHandle cond, MutexHandle mutex) => T.WaitCondition(cond, mutex); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WaitConditionTimeout( + public MaybeBool WaitConditionTimeout( ConditionHandle cond, MutexHandle mutex, [NativeTypeName("Sint32")] int timeoutMS ) => T.WaitConditionTimeout(cond, mutex, timeoutMS); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte WaitConditionTimeoutRaw( + ConditionHandle cond, + MutexHandle mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) => T.WaitConditionTimeoutRaw(cond, mutex, timeoutMS); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WaitEvent(Event* @event) => T.WaitEvent(@event); + public byte WaitEvent(Event* @event) => T.WaitEvent(@event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WaitEvent(Ref @event) => T.WaitEvent(@event); + public MaybeBool WaitEvent(Ref @event) => T.WaitEvent(@event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS) => + public byte WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS) => T.WaitEventTimeout(@event, timeoutMS); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WaitEventTimeout( + public MaybeBool WaitEventTimeout( Ref @event, [NativeTypeName("Sint32")] int timeoutMS ) => T.WaitEventTimeout(@event, timeoutMS); @@ -22342,17 +27488,29 @@ public MaybeBool WaitEventTimeout( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WaitSemaphore(SemaphoreHandle sem) => T.WaitSemaphore(sem); + public void WaitSemaphore(SemaphoreHandle sem) => T.WaitSemaphore(sem); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WaitSemaphoreTimeout( + public MaybeBool WaitSemaphoreTimeout( SemaphoreHandle sem, [NativeTypeName("Sint32")] int timeoutMS ) => T.WaitSemaphoreTimeout(sem, timeoutMS); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte WaitSemaphoreTimeoutRaw( + SemaphoreHandle sem, + [NativeTypeName("Sint32")] int timeoutMS + ) => T.WaitSemaphoreTimeoutRaw(sem, timeoutMS); + [NativeFunction("SDL3", EntryPoint = "SDL_WaitThread")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -22367,11 +27525,20 @@ public int WaitSemaphoreTimeout( public void WaitThread(ThreadHandle thread, Ref status) => T.WaitThread(thread, status); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseGlobal")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WarpMouseGlobal(float x, float y) => T.WarpMouseGlobal(x, y); + public MaybeBool WarpMouseGlobal(float x, float y) => T.WarpMouseGlobal(x, y); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseGlobal")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte WarpMouseGlobalRaw(float x, float y) => T.WarpMouseGlobalRaw(x, y); [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseInWindow")] [MethodImpl( @@ -22380,27 +27547,27 @@ public void WaitThread(ThreadHandle thread, Ref status) => public void WarpMouseInWindow(WindowHandle window, float x, float y) => T.WarpMouseInWindow(window, x, y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_InitFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_WasInit")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public uint WasInit([NativeTypeName("Uint32")] uint flags) => T.WasInit(flags); + public uint WasInit([NativeTypeName("SDL_InitFlags")] uint flags) => T.WasInit(flags); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WindowHasSurface(WindowHandle window) => T.WindowHasSurface(window); + public MaybeBool WindowHasSurface(WindowHandle window) => T.WindowHasSurface(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WindowHasSurfaceRaw(WindowHandle window) => T.WindowHasSurfaceRaw(window); + public byte WindowHasSurfaceRaw(WindowHandle window) => T.WindowHasSurfaceRaw(window); [return: NativeTypeName("size_t")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteIO")] @@ -22425,272 +27592,353 @@ public nuint WriteIO( [NativeTypeName("size_t")] nuint size ) => T.WriteIO(context, ptr, size); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteS16BE( + public MaybeBool WriteS16BE( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ) => T.WriteS16BE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteS16BERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => + public byte WriteS16BERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => T.WriteS16BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteS16LE( + public MaybeBool WriteS16LE( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ) => T.WriteS16LE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteS16LERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => + public byte WriteS16LERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => T.WriteS16LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteS32BE( + public MaybeBool WriteS32BE( IOStreamHandle dst, [NativeTypeName("Sint32")] int value ) => T.WriteS32BE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteS32BERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => + public byte WriteS32BERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => T.WriteS32BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteS32LE( + public MaybeBool WriteS32LE( IOStreamHandle dst, [NativeTypeName("Sint32")] int value ) => T.WriteS32LE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteS32LERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => + public byte WriteS32LERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => T.WriteS32LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteS64BE( + public MaybeBool WriteS64BE( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ) => T.WriteS64BE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteS64BERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => + public byte WriteS64BERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => T.WriteS64BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteS64LE( + public MaybeBool WriteS64LE( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ) => T.WriteS64LE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteS64LERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => + public byte WriteS64LERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => T.WriteS64LERaw(dst, value); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteS8(IOStreamHandle dst, [NativeTypeName("Sint8")] sbyte value) => + T.WriteS8(dst, value); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte WriteS8Raw(IOStreamHandle dst, [NativeTypeName("Sint8")] sbyte value) => + T.WriteS8Raw(dst, value); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteStorageFile( + public byte WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const void *")] void* source, [NativeTypeName("Uint64")] ulong length ) => T.WriteStorageFile(storage, path, source, length); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteStorageFile( + public MaybeBool WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const void *")] Ref source, [NativeTypeName("Uint64")] ulong length ) => T.WriteStorageFile(storage, path, source, length); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte WriteSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => T.WriteSurfacePixel(surface, x, y, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => T.WriteSurfacePixel(surface, x, y, r, g, b, a); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixelFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte WriteSurfacePixelFloat( + Surface* surface, + int x, + int y, + float r, + float g, + float b, + float a + ) => T.WriteSurfacePixelFloat(surface, x, y, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixelFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteSurfacePixelFloat( + Ref surface, + int x, + int y, + float r, + float g, + float b, + float a + ) => T.WriteSurfacePixelFloat(surface, x, y, r, g, b, a); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteU16BE( + public MaybeBool WriteU16BE( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ) => T.WriteU16BE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteU16BERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => + public byte WriteU16BERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => T.WriteU16BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteU16LE( + public MaybeBool WriteU16LE( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ) => T.WriteU16LE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteU16LERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => + public byte WriteU16LERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => T.WriteU16LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteU32BE( + public MaybeBool WriteU32BE( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ) => T.WriteU32BE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteU32BERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => + public byte WriteU32BERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => T.WriteU32BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteU32LE( + public MaybeBool WriteU32LE( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ) => T.WriteU32LE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteU32LERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => + public byte WriteU32LERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => T.WriteU32LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteU64BE( + public MaybeBool WriteU64BE( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ) => T.WriteU64BE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteU64BERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => + public byte WriteU64BERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => T.WriteU64BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteU64LE( + public MaybeBool WriteU64LE( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ) => T.WriteU64LE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteU64LERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => + public byte WriteU64LERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => T.WriteU64LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public MaybeBool WriteU8(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => + public MaybeBool WriteU8(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => T.WriteU8(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => + public byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => T.WriteU8Raw(dst, value); } @@ -22721,28 +27969,49 @@ public static Ptr AcquireCameraFrame( } } + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddAtomicInt(AtomicInt* a, int v) => Underlying.Value!.AddAtomicInt(a, v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddAtomicInt(Ref a, int v) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)AddAtomicInt(__dsl_a, v); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int AddEventWatch( + public static byte AddEventWatch( [NativeTypeName("SDL_EventFilter")] EventFilter filter, void* userdata ) => Underlying.Value!.AddEventWatch(filter, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int AddEventWatch( + public static MaybeBool AddEventWatch( [NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata ) { fixed (void* __dsl_userdata = userdata) { - return (int)AddEventWatch(filter, __dsl_userdata); + return (MaybeBool)(byte)AddEventWatch(filter, __dsl_userdata); } } @@ -22795,7 +28064,7 @@ public static int AddGamepadMappingsFromFile( )] public static int AddGamepadMappingsFromIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ) => Underlying.Value!.AddGamepadMappingsFromIO(src, closeio); [Transformed] @@ -22805,25 +28074,27 @@ public static int AddGamepadMappingsFromIO( )] public static int AddGamepadMappingsFromIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) => Underlying.Value!.AddGamepadMappingsFromIO(src, closeio); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int AddHintCallback( + public static byte AddHintCallback( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, void* userdata ) => Underlying.Value!.AddHintCallback(name, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int AddHintCallback( + public static MaybeBool AddHintCallback( [NativeTypeName("const char *")] Ref name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, Ref userdata @@ -22832,213 +28103,130 @@ Ref userdata fixed (void* __dsl_userdata = userdata) fixed (sbyte* __dsl_name = name) { - return (int)AddHintCallback(__dsl_name, callback, __dsl_userdata); + return (MaybeBool)(byte)AddHintCallback(__dsl_name, callback, __dsl_userdata); } } - [return: NativeTypeName("SDL_TimerID")] - [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddSurfaceAlternateImage")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint AddTimer( - [NativeTypeName("Uint32")] uint interval, - [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - void* param2 - ) => Underlying.Value!.AddTimer(interval, callback, param2); + public static byte AddSurfaceAlternateImage(Surface* surface, Surface* image) => + Underlying.Value!.AddSurfaceAlternateImage(surface, image); - [return: NativeTypeName("SDL_TimerID")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddSurfaceAlternateImage")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint AddTimer( - [NativeTypeName("Uint32")] uint interval, - [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - Ref param2 + public static MaybeBool AddSurfaceAlternateImage( + Ref surface, + Ref image ) { - fixed (void* __dsl_param2 = param2) - { - return (uint)AddTimer(interval, callback, __dsl_param2); - } - } - - [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int AddVulkanRenderSemaphores( - RendererHandle renderer, - [NativeTypeName("Uint32")] uint wait_stage_mask, - [NativeTypeName("Sint64")] long wait_semaphore, - [NativeTypeName("Sint64")] long signal_semaphore - ) => - Underlying.Value!.AddVulkanRenderSemaphores( - renderer, - wait_stage_mask, - wait_semaphore, - signal_semaphore - ); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AllocateEventMemory")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr AllocateEventMemory([NativeTypeName("size_t")] nuint size) => - Underlying.Value!.AllocateEventMemory(size); - - [NativeFunction("SDL3", EntryPoint = "SDL_AllocateEventMemory")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void* AllocateEventMemoryRaw([NativeTypeName("size_t")] nuint size) => - Underlying.Value!.AllocateEventMemoryRaw(size); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int AtomicAdd(AtomicInt* a, int v) => Underlying.Value!.AtomicAdd(a, v); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int AtomicAdd(Ref a, int v) - { - fixed (AtomicInt* __dsl_a = a) - { - return (int)AtomicAdd(__dsl_a, v); - } - } - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwap")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int AtomicCompareAndSwap(AtomicInt* a, int oldval, int newval) => - Underlying.Value!.AtomicCompareAndSwap(a, oldval, newval); - - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwap")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static MaybeBool AtomicCompareAndSwap(Ref a, int oldval, int newval) - { - fixed (AtomicInt* __dsl_a = a) - { - return (MaybeBool)(int)AtomicCompareAndSwap(__dsl_a, oldval, newval); - } - } - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwapPointer")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int AtomicCompareAndSwapPointer(void** a, void* oldval, void* newval) => - Underlying.Value!.AtomicCompareAndSwapPointer(a, oldval, newval); - - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwapPointer")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static MaybeBool AtomicCompareAndSwapPointer(Ref2D a, Ref oldval, Ref newval) - { - fixed (void* __dsl_newval = newval) - fixed (void* __dsl_oldval = oldval) - fixed (void** __dsl_a = a) + fixed (Surface* __dsl_image = image) + fixed (Surface* __dsl_surface = surface) { - return (MaybeBool) - (int)AtomicCompareAndSwapPointer(__dsl_a, __dsl_oldval, __dsl_newval); + return (MaybeBool)(byte)AddSurfaceAlternateImage(__dsl_surface, __dsl_image); } } - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] + [return: NativeTypeName("SDL_TimerID")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int AtomicGet(AtomicInt* a) => Underlying.Value!.AtomicGet(a); + public static uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, + void* userdata + ) => Underlying.Value!.AddTimer(interval, callback, userdata); + [return: NativeTypeName("SDL_TimerID")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int AtomicGet(Ref a) + public static uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, + Ref userdata + ) { - fixed (AtomicInt* __dsl_a = a) + fixed (void* __dsl_userdata = userdata) { - return (int)AtomicGet(__dsl_a); + return (uint)AddTimer(interval, callback, __dsl_userdata); } } - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] + [return: NativeTypeName("SDL_TimerID")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimerNS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void* AtomicGetPtr(void** a) => Underlying.Value!.AtomicGetPtr(a); + public static uint AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + void* userdata + ) => Underlying.Value!.AddTimerNS(interval, callback, userdata); + [return: NativeTypeName("SDL_TimerID")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimerNS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr AtomicGetPtr(Ref2D a) + public static uint AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + Ref userdata + ) { - fixed (void** __dsl_a = a) + fixed (void* __dsl_userdata = userdata) { - return (void*)AtomicGetPtr(__dsl_a); + return (uint)AddTimerNS(interval, callback, __dsl_userdata); } } - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int AtomicSet(AtomicInt* a, int v) => Underlying.Value!.AtomicSet(a, v); - + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int AtomicSet(Ref a, int v) - { - fixed (AtomicInt* __dsl_a = a) - { - return (int)AtomicSet(__dsl_a, v); - } - } - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void* AtomicSetPtr(void** a, void* v) => Underlying.Value!.AtomicSetPtr(a, v); + public static MaybeBool AddVulkanRenderSemaphores( + RendererHandle renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) => + Underlying.Value!.AddVulkanRenderSemaphores( + renderer, + wait_stage_mask, + wait_semaphore, + signal_semaphore + ); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr AtomicSetPtr(Ref2D a, Ref v) - { - fixed (void* __dsl_v = v) - fixed (void** __dsl_a = a) - { - return (void*)AtomicSetPtr(__dsl_a, __dsl_v); - } - } + public static byte AddVulkanRenderSemaphoresRaw( + RendererHandle renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) => + Underlying.Value!.AddVulkanRenderSemaphoresRaw( + renderer, + wait_stage_mask, + wait_semaphore, + signal_semaphore + ); [return: NativeTypeName("SDL_JoystickID")] [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystick")] @@ -23046,80 +28234,82 @@ public static Ptr AtomicSetPtr(Ref2D a, Ref v) MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static uint AttachVirtualJoystick( - JoystickType type, - int naxes, - int nbuttons, - int nhats - ) => Underlying.Value!.AttachVirtualJoystick(type, naxes, nbuttons, nhats); - - [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static uint AttachVirtualJoystickEx( [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc - ) => Underlying.Value!.AttachVirtualJoystickEx(desc); + ) => Underlying.Value!.AttachVirtualJoystick(desc); [return: NativeTypeName("SDL_JoystickID")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] + [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint AttachVirtualJoystickEx( + public static uint AttachVirtualJoystick( [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc ) { fixed (VirtualJoystickDesc* __dsl_desc = desc) { - return (uint)AttachVirtualJoystickEx(__dsl_desc); + return (uint)AttachVirtualJoystick(__dsl_desc); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool AudioDevicePaused( + public static MaybeBool AudioDevicePaused( [NativeTypeName("SDL_AudioDeviceID")] uint dev ) => Underlying.Value!.AudioDevicePaused(dev); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + public static byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => Underlying.Value!.AudioDevicePausedRaw(dev); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BindAudioStream( + public static MaybeBool BindAudioStream( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioStreamHandle stream ) => Underlying.Value!.BindAudioStream(devid, stream); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte BindAudioStreamRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioStreamHandle stream + ) => Underlying.Value!.BindAudioStreamRaw(devid, stream); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BindAudioStreams( + public static byte BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioStreamHandle* streams, int num_streams ) => Underlying.Value!.BindAudioStreams(devid, streams, num_streams); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BindAudioStreams( + public static MaybeBool BindAudioStreams( [NativeTypeName("SDL_AudioDeviceID")] uint devid, Ref streams, int num_streams @@ -23127,31 +28317,92 @@ int num_streams { fixed (AudioStreamHandle* __dsl_streams = streams) { - return (int)BindAudioStreams(devid, __dsl_streams, num_streams); + return (MaybeBool)(byte)BindAudioStreams(devid, __dsl_streams, num_streams); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BlitSurface( + public static byte BlitSurface( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, - Rect* dstrect + [NativeTypeName("const SDL_Rect *")] Rect* dstrect ) => Underlying.Value!.BlitSurface(src, srcrect, dst, dstrect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BlitSurface( + public static MaybeBool BlitSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) + { + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) + { + return (MaybeBool) + (byte)BlitSurface(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface9Grid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte BlitSurface9Grid( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => + Underlying.Value!.BlitSurface9Grid( + src, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + scaleMode, + dst, + dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface9Grid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool BlitSurface9Grid( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, Ref dst, - Ref dstrect + [NativeTypeName("const SDL_Rect *")] Ref dstrect ) { fixed (Rect* __dsl_dstrect = dstrect) @@ -23159,32 +28410,46 @@ Ref dstrect fixed (Rect* __dsl_srcrect = srcrect) fixed (Surface* __dsl_src = src) { - return (int)BlitSurface(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); + return (MaybeBool) + (byte)BlitSurface9Grid( + __dsl_src, + __dsl_srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + scaleMode, + __dsl_dst, + __dsl_dstrect + ); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BlitSurfaceScaled( + public static byte BlitSurfaceScaled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, - Rect* dstrect, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, ScaleMode scaleMode ) => Underlying.Value!.BlitSurfaceScaled(src, srcrect, dst, dstrect, scaleMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BlitSurfaceScaled( + public static MaybeBool BlitSurfaceScaled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, - Ref dstrect, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, ScaleMode scaleMode ) { @@ -23193,33 +28458,125 @@ ScaleMode scaleMode fixed (Rect* __dsl_srcrect = srcrect) fixed (Surface* __dsl_src = src) { - return (int)BlitSurfaceScaled( - __dsl_src, - __dsl_srcrect, - __dsl_dst, - __dsl_dstrect, - scaleMode - ); + return (MaybeBool) + (byte)BlitSurfaceScaled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte BlitSurfaceTiled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => Underlying.Value!.BlitSurfaceTiled(src, srcrect, dst, dstrect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool BlitSurfaceTiled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) + { + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) + { + return (MaybeBool) + (byte)BlitSurfaceTiled(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); } } + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiledWithScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte BlitSurfaceTiledWithScale( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + float scale, + ScaleMode scaleMode, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => + Underlying.Value!.BlitSurfaceTiledWithScale( + src, + srcrect, + scale, + scaleMode, + dst, + dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiledWithScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool BlitSurfaceTiledWithScale( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + float scale, + ScaleMode scaleMode, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) + { + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) + { + return (MaybeBool) + (byte)BlitSurfaceTiledWithScale( + __dsl_src, + __dsl_srcrect, + scale, + scaleMode, + __dsl_dst, + __dsl_dstrect + ); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BlitSurfaceUnchecked( + public static byte BlitSurfaceUnchecked( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* dstrect ) => Underlying.Value!.BlitSurfaceUnchecked(src, srcrect, dst, dstrect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BlitSurfaceUnchecked( + public static MaybeBool BlitSurfaceUnchecked( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, @@ -23231,20 +28588,17 @@ public static int BlitSurfaceUnchecked( fixed (Rect* __dsl_srcrect = srcrect) fixed (Surface* __dsl_src = src) { - return (int)BlitSurfaceUnchecked( - __dsl_src, - __dsl_srcrect, - __dsl_dst, - __dsl_dstrect - ); + return (MaybeBool) + (byte)BlitSurfaceUnchecked(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BlitSurfaceUncheckedScaled( + public static byte BlitSurfaceUncheckedScaled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, @@ -23252,12 +28606,13 @@ public static int BlitSurfaceUncheckedScaled( ScaleMode scaleMode ) => Underlying.Value!.BlitSurfaceUncheckedScaled(src, srcrect, dst, dstrect, scaleMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BlitSurfaceUncheckedScaled( + public static MaybeBool BlitSurfaceUncheckedScaled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, @@ -23270,13 +28625,14 @@ ScaleMode scaleMode fixed (Rect* __dsl_srcrect = srcrect) fixed (Surface* __dsl_src = src) { - return (int)BlitSurfaceUncheckedScaled( - __dsl_src, - __dsl_srcrect, - __dsl_dst, - __dsl_dstrect, - scaleMode - ); + return (MaybeBool) + (byte)BlitSurfaceUncheckedScaled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); } } @@ -23284,23 +28640,26 @@ ScaleMode scaleMode [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int BroadcastCondition(ConditionHandle cond) => + public static void BroadcastCondition(ConditionHandle cond) => Underlying.Value!.BroadcastCondition(cond); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CaptureMouse([NativeTypeName("SDL_bool")] int enabled) => + public static byte CaptureMouse([NativeTypeName("bool")] byte enabled) => Underlying.Value!.CaptureMouse(enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled) => - Underlying.Value!.CaptureMouse(enabled); + public static MaybeBool CaptureMouse( + [NativeTypeName("bool")] MaybeBool enabled + ) => Underlying.Value!.CaptureMouse(enabled); [NativeFunction("SDL3", EntryPoint = "SDL_CleanupTLS")] [MethodImpl( @@ -23308,53 +28667,123 @@ public static int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabl )] public static void CleanupTLS() => Underlying.Value!.CleanupTLS(); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ClearAudioStream(AudioStreamHandle stream) => + public static MaybeBool ClearAudioStream(AudioStreamHandle stream) => Underlying.Value!.ClearAudioStream(stream); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte ClearAudioStreamRaw(AudioStreamHandle stream) => + Underlying.Value!.ClearAudioStreamRaw(stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ClearClipboardData() => + Underlying.Value!.ClearClipboardData(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearClipboardData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ClearClipboardData() => Underlying.Value!.ClearClipboardData(); + public static byte ClearClipboardDataRaw() => Underlying.Value!.ClearClipboardDataRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearComposition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ClearComposition(WindowHandle window) => + Underlying.Value!.ClearComposition(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearComposition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void ClearComposition() => Underlying.Value!.ClearComposition(); + public static byte ClearCompositionRaw(WindowHandle window) => + Underlying.Value!.ClearCompositionRaw(window); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ClearError")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void ClearError() => Underlying.Value!.ClearError(); + public static MaybeBool ClearError() => Underlying.Value!.ClearError(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearError")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte ClearErrorRaw() => Underlying.Value!.ClearErrorRaw(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ClearProperty( + public static byte ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ) => Underlying.Value!.ClearProperty(props, name); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ClearProperty( + public static MaybeBool ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ) { fixed (sbyte* __dsl_name = name) { - return (int)ClearProperty(props, __dsl_name); + return (MaybeBool)(byte)ClearProperty(props, __dsl_name); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte ClearSurface(Surface* surface, float r, float g, float b, float a) => + Underlying.Value!.ClearSurface(surface, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ClearSurface( + Ref surface, + float r, + float g, + float b, + float a + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)ClearSurface(__dsl_surface, r, g, b, a); } } @@ -23386,11 +28815,22 @@ public static void CloseGamepad(GamepadHandle gamepad) => public static void CloseHaptic(HapticHandle haptic) => Underlying.Value!.CloseHaptic(haptic); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool CloseIO(IOStreamHandle context) => + Underlying.Value!.CloseIO(context); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CloseIO(IOStreamHandle context) => Underlying.Value!.CloseIO(context); + public static byte CloseIORaw(IOStreamHandle context) => + Underlying.Value!.CloseIORaw(context); [NativeFunction("SDL3", EntryPoint = "SDL_CloseJoystick")] [MethodImpl( @@ -23406,18 +28846,109 @@ public static void CloseJoystick(JoystickHandle joystick) => public static void CloseSensor(SensorHandle sensor) => Underlying.Value!.CloseSensor(sensor); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CloseStorage(StorageHandle storage) => + public static MaybeBool CloseStorage(StorageHandle storage) => Underlying.Value!.CloseStorage(storage); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte CloseStorageRaw(StorageHandle storage) => + Underlying.Value!.CloseStorageRaw(storage); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte CompareAndSwapAtomicInt(AtomicInt* a, int oldval, int newval) => + Underlying.Value!.CompareAndSwapAtomicInt(a, oldval, newval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool CompareAndSwapAtomicInt( + Ref a, + int oldval, + int newval + ) + { + fixed (AtomicInt* __dsl_a = a) + { + return (MaybeBool)(byte)CompareAndSwapAtomicInt(__dsl_a, oldval, newval); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte CompareAndSwapAtomicPointer(void** a, void* oldval, void* newval) => + Underlying.Value!.CompareAndSwapAtomicPointer(a, oldval, newval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool CompareAndSwapAtomicPointer(Ref2D a, Ref oldval, Ref newval) + { + fixed (void* __dsl_newval = newval) + fixed (void* __dsl_oldval = oldval) + fixed (void** __dsl_a = a) + { + return (MaybeBool) + (byte)CompareAndSwapAtomicPointer(__dsl_a, __dsl_oldval, __dsl_newval); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte CompareAndSwapAtomicU32( + AtomicU32* a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ) => Underlying.Value!.CompareAndSwapAtomicU32(a, oldval, newval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool CompareAndSwapAtomicU32( + Ref a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ) + { + fixed (AtomicU32* __dsl_a = a) + { + return (MaybeBool)(byte)CompareAndSwapAtomicU32(__dsl_a, oldval, newval); + } + } + + [return: NativeTypeName("SDL_BlendMode")] [NativeFunction("SDL3", EntryPoint = "SDL_ComposeCustomBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static BlendMode ComposeCustomBlendMode( + public static uint ComposeCustomBlendMode( BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendOperation colorOperation, @@ -23434,11 +28965,12 @@ BlendOperation alphaOperation alphaOperation ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ConvertAudioSamples( + public static byte ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const Uint8 *")] byte* src_data, int src_len, @@ -23455,12 +28987,13 @@ public static int ConvertAudioSamples( dst_len ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ConvertAudioSamples( + public static MaybeBool ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const Uint8 *")] Ref src_data, int src_len, @@ -23475,51 +29008,58 @@ Ref dst_len fixed (byte* __dsl_src_data = src_data) fixed (AudioSpec* __dsl_src_spec = src_spec) { - return (int)ConvertAudioSamples( - __dsl_src_spec, - __dsl_src_data, - src_len, - __dsl_dst_spec, - __dsl_dst_data, - __dsl_dst_len - ); + return (MaybeBool) + (byte)ConvertAudioSamples( + __dsl_src_spec, + __dsl_src_data, + src_len, + __dsl_dst_spec, + __dsl_dst_data, + __dsl_dst_len + ); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event) => - Underlying.Value!.ConvertEventToRenderCoordinates(renderer, @event); + public static byte ConvertEventToRenderCoordinates( + RendererHandle renderer, + Event* @event + ) => Underlying.Value!.ConvertEventToRenderCoordinates(renderer, @event); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ConvertEventToRenderCoordinates( + public static MaybeBool ConvertEventToRenderCoordinates( RendererHandle renderer, Ref @event ) { fixed (Event* __dsl_event = @event) { - return (int)ConvertEventToRenderCoordinates(renderer, __dsl_event); + return (MaybeBool) + (byte)ConvertEventToRenderCoordinates(renderer, __dsl_event); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ConvertPixels( + public static byte ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, int dst_pitch ) => @@ -23534,18 +29074,19 @@ int dst_pitch dst_pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ConvertPixels( + public static MaybeBool ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, int dst_pitch ) @@ -23553,32 +29094,34 @@ int dst_pitch fixed (void* __dsl_dst = dst) fixed (void* __dsl_src = src) { - return (int)ConvertPixels( - width, - height, - src_format, - __dsl_src, - src_pitch, - dst_format, - __dsl_dst, - dst_pitch - ); + return (MaybeBool) + (byte)ConvertPixels( + width, + height, + src_format, + __dsl_src, + src_pitch, + dst_format, + __dsl_dst, + dst_pitch + ); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ConvertPixelsAndColorspace( + public static byte ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, void* dst, @@ -23599,20 +29142,21 @@ int dst_pitch dst_pitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ConvertPixelsAndColorspace( + public static MaybeBool ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, Ref dst, @@ -23622,20 +29166,21 @@ int dst_pitch fixed (void* __dsl_dst = dst) fixed (void* __dsl_src = src) { - return (int)ConvertPixelsAndColorspace( - width, - height, - src_format, - src_colorspace, - src_properties, - __dsl_src, - src_pitch, - dst_format, - dst_colorspace, - dst_properties, - __dsl_dst, - dst_pitch - ); + return (MaybeBool) + (byte)ConvertPixelsAndColorspace( + width, + height, + src_format, + src_colorspace, + src_properties, + __dsl_src, + src_pitch, + dst_format, + dst_colorspace, + dst_properties, + __dsl_dst, + dst_pitch + ); } } @@ -23643,102 +29188,147 @@ int dst_pitch [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Surface* ConvertSurface( - Surface* surface, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format - ) => Underlying.Value!.ConvertSurface(surface, format); + public static Surface* ConvertSurface(Surface* surface, PixelFormat format) => + Underlying.Value!.ConvertSurface(surface, format); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr ConvertSurface( - Ref surface, - [NativeTypeName("const SDL_PixelFormat *")] Ref format - ) + public static Ptr ConvertSurface(Ref surface, PixelFormat format) { - fixed (PixelFormat* __dsl_format = format) fixed (Surface* __dsl_surface = surface) { - return (Surface*)ConvertSurface(__dsl_surface, __dsl_format); + return (Surface*)ConvertSurface(__dsl_surface, format); } } - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceAndColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Surface* ConvertSurfaceFormat( + public static Surface* ConvertSurfaceAndColorspace( Surface* surface, - PixelFormatEnum pixel_format - ) => Underlying.Value!.ConvertSurfaceFormat(surface, pixel_format); + PixelFormat format, + Palette* palette, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => + Underlying.Value!.ConvertSurfaceAndColorspace( + surface, + format, + palette, + colorspace, + props + ); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceAndColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr ConvertSurfaceFormat( + public static Ptr ConvertSurfaceAndColorspace( Ref surface, - PixelFormatEnum pixel_format + PixelFormat format, + Ref palette, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props ) { + fixed (Palette* __dsl_palette = palette) fixed (Surface* __dsl_surface = surface) { - return (Surface*)ConvertSurfaceFormat(__dsl_surface, pixel_format); + return (Surface*)ConvertSurfaceAndColorspace( + __dsl_surface, + format, + __dsl_palette, + colorspace, + props + ); } } - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Surface* ConvertSurfaceFormatAndColorspace( - Surface* surface, - PixelFormatEnum pixel_format, - Colorspace colorspace, - [NativeTypeName("SDL_PropertiesID")] uint props - ) => - Underlying.Value!.ConvertSurfaceFormatAndColorspace( - surface, - pixel_format, - colorspace, - props - ); + public static byte CopyFile( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => Underlying.Value!.CopyFile(oldpath, newpath); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr ConvertSurfaceFormatAndColorspace( - Ref surface, - PixelFormatEnum pixel_format, - Colorspace colorspace, - [NativeTypeName("SDL_PropertiesID")] uint props + public static MaybeBool CopyFile( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath ) { - fixed (Surface* __dsl_surface = surface) + fixed (sbyte* __dsl_newpath = newpath) + fixed (sbyte* __dsl_oldpath = oldpath) { - return (Surface*)ConvertSurfaceFormatAndColorspace( - __dsl_surface, - pixel_format, - colorspace, - props - ); + return (MaybeBool)(byte)CopyFile(__dsl_oldpath, __dsl_newpath); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CopyProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CopyProperties( + public static MaybeBool CopyProperties( [NativeTypeName("SDL_PropertiesID")] uint src, [NativeTypeName("SDL_PropertiesID")] uint dst ) => Underlying.Value!.CopyProperties(src, dst); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte CopyPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ) => Underlying.Value!.CopyPropertiesRaw(src, dst); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => Underlying.Value!.CopyStorageFile(storage, oldpath, newpath); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) + { + fixed (sbyte* __dsl_newpath = newpath) + fixed (sbyte* __dsl_oldpath = oldpath) + { + return (MaybeBool) + (byte)CopyStorageFile(storage, __dsl_oldpath, __dsl_newpath); + } + } + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -23825,23 +29415,27 @@ int hot_y } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CreateDirectory([NativeTypeName("const char *")] sbyte* path) => + public static byte CreateDirectory([NativeTypeName("const char *")] sbyte* path) => Underlying.Value!.CreateDirectory(path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CreateDirectory([NativeTypeName("const char *")] Ref path) + public static MaybeBool CreateDirectory( + [NativeTypeName("const char *")] Ref path + ) { fixed (sbyte* __dsl_path = path) { - return (int)CreateDirectory(__dsl_path); + return (MaybeBool)(byte)CreateDirectory(__dsl_path); } } @@ -23891,21 +29485,6 @@ public static Ptr CreatePalette(int ncolors) => public static Palette* CreatePaletteRaw(int ncolors) => Underlying.Value!.CreatePaletteRaw(ncolors); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePixelFormat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr CreatePixelFormat(PixelFormatEnum pixel_format) => - Underlying.Value!.CreatePixelFormat(pixel_format); - - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePixelFormat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static PixelFormat* CreatePixelFormatRaw(PixelFormatEnum pixel_format) => - Underlying.Value!.CreatePixelFormatRaw(pixel_format); - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePopupWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -23916,7 +29495,7 @@ public static WindowHandle CreatePopupWindow( int offset_y, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) => Underlying.Value!.CreatePopupWindow(parent, offset_x, offset_y, w, h, flags); [return: NativeTypeName("SDL_PropertiesID")] @@ -23932,9 +29511,8 @@ public static WindowHandle CreatePopupWindow( )] public static RendererHandle CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("Uint32")] uint flags - ) => Underlying.Value!.CreateRenderer(window, name, flags); + [NativeTypeName("const char *")] sbyte* name + ) => Underlying.Value!.CreateRenderer(window, name); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] @@ -23943,13 +29521,12 @@ public static RendererHandle CreateRenderer( )] public static RendererHandle CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("Uint32")] uint flags + [NativeTypeName("const char *")] Ref name ) { fixed (sbyte* __dsl_name = name) { - return (RendererHandle)CreateRenderer(window, __dsl_name, flags); + return (RendererHandle)CreateRenderer(window, __dsl_name); } } @@ -23995,28 +29572,30 @@ public static RendererHandle CreateSoftwareRenderer(Ref surface) } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CreateStorageDirectory( + public static byte CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path ) => Underlying.Value!.CreateStorageDirectory(storage, path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CreateStorageDirectory( + public static MaybeBool CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path ) { fixed (sbyte* __dsl_path = path) { - return (int)CreateStorageDirectory(storage, __dsl_path); + return (MaybeBool)(byte)CreateStorageDirectory(storage, __dsl_path); } } @@ -24025,7 +29604,7 @@ public static int CreateStorageDirectory( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr CreateSurface(int width, int height, PixelFormatEnum format) => + public static Ptr CreateSurface(int width, int height, PixelFormat format) => Underlying.Value!.CreateSurface(width, height, format); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] @@ -24033,12 +29612,12 @@ public static Ptr CreateSurface(int width, int height, PixelFormatEnum MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static Surface* CreateSurfaceFrom( - void* pixels, int width, int height, - int pitch, - PixelFormatEnum format - ) => Underlying.Value!.CreateSurfaceFrom(pixels, width, height, pitch, format); + PixelFormat format, + void* pixels, + int pitch + ) => Underlying.Value!.CreateSurfaceFrom(width, height, format, pixels, pitch); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] @@ -24046,16 +29625,36 @@ PixelFormatEnum format MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static Ptr CreateSurfaceFrom( - Ref pixels, int width, int height, - int pitch, - PixelFormatEnum format + PixelFormat format, + Ref pixels, + int pitch ) { fixed (void* __dsl_pixels = pixels) { - return (Surface*)CreateSurfaceFrom(__dsl_pixels, width, height, pitch, format); + return (Surface*)CreateSurfaceFrom(width, height, format, __dsl_pixels, pitch); + } + } + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Palette* CreateSurfacePalette(Surface* surface) => + Underlying.Value!.CreateSurfacePalette(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateSurfacePalette(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (Palette*)CreateSurfacePalette(__dsl_surface); } } @@ -24063,7 +29662,7 @@ PixelFormatEnum format [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Surface* CreateSurfaceRaw(int width, int height, PixelFormatEnum format) => + public static Surface* CreateSurfaceRaw(int width, int height, PixelFormat format) => Underlying.Value!.CreateSurfaceRaw(width, height, format); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] @@ -24073,14 +29672,15 @@ PixelFormatEnum format public static CursorHandle CreateSystemCursor(SystemCursor id) => Underlying.Value!.CreateSystemCursor(id); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static TextureHandle CreateTexture( + public static Ptr CreateTexture( RendererHandle renderer, - PixelFormatEnum format, - int access, + PixelFormat format, + TextureAccess access, int w, int h ) => Underlying.Value!.CreateTexture(renderer, format, access, w, h); @@ -24089,7 +29689,7 @@ int h [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static TextureHandle CreateTextureFromSurface( + public static Texture* CreateTextureFromSurface( RendererHandle renderer, Surface* surface ) => Underlying.Value!.CreateTextureFromSurface(renderer, surface); @@ -24099,95 +29699,100 @@ public static TextureHandle CreateTextureFromSurface( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static TextureHandle CreateTextureFromSurface( + public static Ptr CreateTextureFromSurface( RendererHandle renderer, Ref surface ) { fixed (Surface* __dsl_surface = surface) { - return (TextureHandle)CreateTextureFromSurface(renderer, __dsl_surface); + return (Texture*)CreateTextureFromSurface(renderer, __dsl_surface); } } - [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static TextureHandle CreateTextureWithProperties( + public static Texture* CreateTextureRaw( RendererHandle renderer, - [NativeTypeName("SDL_PropertiesID")] uint props - ) => Underlying.Value!.CreateTextureWithProperties(renderer, props); + PixelFormat format, + TextureAccess access, + int w, + int h + ) => Underlying.Value!.CreateTextureRaw(renderer, format, access, w, h); - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static ThreadHandle CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] sbyte* name, - void* data - ) => Underlying.Value!.CreateThread(fn, name, data); + public static Ptr CreateTextureWithProperties( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.CreateTextureWithProperties(renderer, props); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static ThreadHandle CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] Ref name, - Ref data - ) - { - fixed (void* __dsl_data = data) - fixed (sbyte* __dsl_name = name) - { - return (ThreadHandle)CreateThread(fn, __dsl_name, __dsl_data); - } - } + public static Texture* CreateTextureWithPropertiesRaw( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.CreateTextureWithPropertiesRaw(renderer, props); - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadRuntime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static ThreadHandle CreateThreadWithStackSize( + public static ThreadHandle CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("const size_t")] nuint stacksize, - void* data - ) => Underlying.Value!.CreateThreadWithStackSize(fn, name, stacksize, data); + void* data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread + ) => Underlying.Value!.CreateThreadRuntime(fn, name, data, pfnBeginThread, pfnEndThread); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadRuntime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static ThreadHandle CreateThreadWithStackSize( + public static ThreadHandle CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("const size_t")] nuint stacksize, - Ref data + Ref data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread ) { fixed (void* __dsl_data = data) fixed (sbyte* __dsl_name = name) { - return (ThreadHandle)CreateThreadWithStackSize( + return (ThreadHandle)CreateThreadRuntime( fn, __dsl_name, - stacksize, - __dsl_data + __dsl_data, + pfnBeginThread, + pfnEndThread ); } } - [return: NativeTypeName("SDL_TLSID")] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateTLS")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithPropertiesRuntime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint CreateTLS() => Underlying.Value!.CreateTLS(); + public static ThreadHandle CreateThreadWithPropertiesRuntime( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread + ) => + Underlying.Value!.CreateThreadWithPropertiesRuntime( + props, + pfnBeginThread, + pfnEndThread + ); [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindow")] [MethodImpl( @@ -24197,7 +29802,7 @@ public static WindowHandle CreateWindow( [NativeTypeName("const char *")] sbyte* title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) => Underlying.Value!.CreateWindow(title, w, h, flags); [Transformed] @@ -24209,7 +29814,7 @@ public static WindowHandle CreateWindow( [NativeTypeName("const char *")] Ref title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) { fixed (sbyte* __dsl_title = title) @@ -24218,15 +29823,16 @@ public static WindowHandle CreateWindow( } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CreateWindowAndRenderer( + public static byte CreateWindowAndRenderer( [NativeTypeName("const char *")] sbyte* title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, WindowHandle* window, RendererHandle* renderer ) => @@ -24239,16 +29845,17 @@ public static int CreateWindowAndRenderer( renderer ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CreateWindowAndRenderer( + public static MaybeBool CreateWindowAndRenderer( [NativeTypeName("const char *")] Ref title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, Ref window, Ref renderer ) @@ -24257,14 +29864,15 @@ Ref renderer fixed (WindowHandle* __dsl_window = window) fixed (sbyte* __dsl_title = title) { - return (int)CreateWindowAndRenderer( - __dsl_title, - width, - height, - window_flags, - __dsl_window, - __dsl_renderer - ); + return (MaybeBool) + (byte)CreateWindowAndRenderer( + __dsl_title, + width, + height, + window_flags, + __dsl_window, + __dsl_renderer + ); } } @@ -24276,36 +29884,38 @@ public static WindowHandle CreateWindowWithProperties( [NativeTypeName("SDL_PropertiesID")] uint props ) => Underlying.Value!.CreateWindowWithProperties(props); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool CursorVisible() => Underlying.Value!.CursorVisible(); + public static MaybeBool CursorVisible() => Underlying.Value!.CursorVisible(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int CursorVisibleRaw() => Underlying.Value!.CursorVisibleRaw(); + public static byte CursorVisibleRaw() => Underlying.Value!.CursorVisibleRaw(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int DateTimeToTime( + public static byte DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] DateTime* dt, [NativeTypeName("SDL_Time *")] long* ticks ) => Underlying.Value!.DateTimeToTime(dt, ticks); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int DateTimeToTime( + public static MaybeBool DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] Ref dt, [NativeTypeName("SDL_Time *")] Ref ticks ) @@ -24313,7 +29923,7 @@ public static int DateTimeToTime( fixed (long* __dsl_ticks = ticks) fixed (DateTime* __dsl_dt = dt) { - return (int)DateTimeToTime(__dsl_dt, __dsl_ticks); + return (MaybeBool)(byte)DateTimeToTime(__dsl_dt, __dsl_ticks); } } @@ -24330,58 +29940,12 @@ public static int DateTimeToTime( public static void DelayNS([NativeTypeName("Uint64")] ulong ns) => Underlying.Value!.DelayNS(ns); - [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void DelEventWatch( - [NativeTypeName("SDL_EventFilter")] EventFilter filter, - void* userdata - ) => Underlying.Value!.DelEventWatch(filter, userdata); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void DelEventWatch( - [NativeTypeName("SDL_EventFilter")] EventFilter filter, - Ref userdata - ) - { - fixed (void* __dsl_userdata = userdata) - { - DelEventWatch(filter, __dsl_userdata); - } - } - - [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] + [NativeFunction("SDL3", EntryPoint = "SDL_DelayPrecise")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void DelHintCallback( - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - void* userdata - ) => Underlying.Value!.DelHintCallback(name, callback, userdata); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void DelHintCallback( - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - Ref userdata - ) - { - fixed (void* __dsl_userdata = userdata) - fixed (sbyte* __dsl_name = name) - { - DelHintCallback(__dsl_name, callback, __dsl_userdata); - } - } + public static void DelayPrecise([NativeTypeName("Uint64")] ulong ns) => + Underlying.Value!.DelayPrecise(ns); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyAudioStream")] [MethodImpl( @@ -24437,26 +30001,6 @@ public static void DestroyPalette(Ref palette) } } - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void DestroyPixelFormat(PixelFormat* format) => - Underlying.Value!.DestroyPixelFormat(format); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void DestroyPixelFormat(Ref format) - { - fixed (PixelFormat* __dsl_format = format) - { - DestroyPixelFormat(__dsl_format); - } - } - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -24509,9 +30053,22 @@ public static void DestroySurface(Ref surface) [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void DestroyTexture(TextureHandle texture) => + public static void DestroyTexture(Texture* texture) => Underlying.Value!.DestroyTexture(texture); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyTexture(Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + DestroyTexture(__dsl_texture); + } + } + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -24519,13 +30076,23 @@ public static void DestroyTexture(TextureHandle texture) => public static void DestroyWindow(WindowHandle window) => Underlying.Value!.DestroyWindow(window); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int DestroyWindowSurface(WindowHandle window) => + public static MaybeBool DestroyWindowSurface(WindowHandle window) => Underlying.Value!.DestroyWindowSurface(window); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte DestroyWindowSurfaceRaw(WindowHandle window) => + Underlying.Value!.DestroyWindowSurfaceRaw(window); + [NativeFunction("SDL3", EntryPoint = "SDL_DetachThread")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -24533,19 +30100,40 @@ public static int DestroyWindowSurface(WindowHandle window) => public static void DetachThread(ThreadHandle thread) => Underlying.Value!.DetachThread(thread); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_DetachVirtualJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int DetachVirtualJoystick( + public static MaybeBool DetachVirtualJoystick( [NativeTypeName("SDL_JoystickID")] uint instance_id ) => Underlying.Value!.DetachVirtualJoystick(instance_id); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_DetachVirtualJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte DetachVirtualJoystickRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.DetachVirtualJoystickRaw(instance_id); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int DisableScreenSaver() => Underlying.Value!.DisableScreenSaver(); + public static MaybeBool DisableScreenSaver() => + Underlying.Value!.DisableScreenSaver(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte DisableScreenSaverRaw() => Underlying.Value!.DisableScreenSaverRaw(); [NativeFunction("SDL3", EntryPoint = "SDL_DuplicateSurface")] [MethodImpl( @@ -24569,35 +30157,34 @@ public static Ptr DuplicateSurface(Ref surface) [return: NativeTypeName("SDL_EGLConfig")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentConfig")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr EGLGetCurrentEGLConfig() => Underlying.Value!.EGLGetCurrentEGLConfig(); + public static Ptr EGLGetCurrentConfig() => Underlying.Value!.EGLGetCurrentConfig(); [return: NativeTypeName("SDL_EGLConfig")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentConfig")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void* EGLGetCurrentEGLConfigRaw() => - Underlying.Value!.EGLGetCurrentEGLConfigRaw(); + public static void* EGLGetCurrentConfigRaw() => Underlying.Value!.EGLGetCurrentConfigRaw(); [return: NativeTypeName("SDL_EGLDisplay")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentDisplay")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr EGLGetCurrentEGLDisplay() => Underlying.Value!.EGLGetCurrentEGLDisplay(); + public static Ptr EGLGetCurrentDisplay() => Underlying.Value!.EGLGetCurrentDisplay(); [return: NativeTypeName("SDL_EGLDisplay")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentDisplay")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void* EGLGetCurrentEGLDisplayRaw() => - Underlying.Value!.EGLGetCurrentEGLDisplayRaw(); + public static void* EGLGetCurrentDisplayRaw() => + Underlying.Value!.EGLGetCurrentDisplayRaw(); [return: NativeTypeName("SDL_FunctionPointer")] [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetProcAddress")] @@ -24626,59 +30213,96 @@ public static FunctionPointer EGLGetProcAddress( [return: NativeTypeName("SDL_EGLSurface")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr EGLGetWindowEGLSurface(WindowHandle window) => - Underlying.Value!.EGLGetWindowEGLSurface(window); + public static Ptr EGLGetWindowSurface(WindowHandle window) => + Underlying.Value!.EGLGetWindowSurface(window); [return: NativeTypeName("SDL_EGLSurface")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void* EGLGetWindowEGLSurfaceRaw(WindowHandle window) => - Underlying.Value!.EGLGetWindowEGLSurfaceRaw(window); + public static void* EGLGetWindowSurfaceRaw(WindowHandle window) => + Underlying.Value!.EGLGetWindowSurfaceRaw(window); - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetEGLAttributeCallbacks")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetAttributeCallbacks")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void EGLSetEGLAttributeCallbacks( + public static void EGLSetAttributeCallbacks( [NativeTypeName("SDL_EGLAttribArrayCallback")] EGLAttribArrayCallback platformAttribCallback, [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, - [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + void* userdata ) => - Underlying.Value!.EGLSetEGLAttributeCallbacks( + Underlying.Value!.EGLSetAttributeCallbacks( platformAttribCallback, surfaceAttribCallback, - contextAttribCallback + contextAttribCallback, + userdata ); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetAttributeCallbacks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void EGLSetAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + EGLAttribArrayCallback platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + EGLSetAttributeCallbacks( + platformAttribCallback, + surfaceAttribCallback, + contextAttribCallback, + __dsl_userdata + ); + } + } + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnableScreenSaver")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int EnableScreenSaver() => Underlying.Value!.EnableScreenSaver(); + public static MaybeBool EnableScreenSaver() => Underlying.Value!.EnableScreenSaver(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_EnableScreenSaver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte EnableScreenSaverRaw() => Underlying.Value!.EnableScreenSaverRaw(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int EnumerateDirectory( + public static byte EnumerateDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ) => Underlying.Value!.EnumerateDirectory(path, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int EnumerateDirectory( + public static MaybeBool EnumerateDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, Ref userdata @@ -24687,27 +30311,30 @@ Ref userdata fixed (void* __dsl_userdata = userdata) fixed (sbyte* __dsl_path = path) { - return (int)EnumerateDirectory(__dsl_path, callback, __dsl_userdata); + return (MaybeBool) + (byte)EnumerateDirectory(__dsl_path, callback, __dsl_userdata); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int EnumerateProperties( + public static byte EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, void* userdata ) => Underlying.Value!.EnumerateProperties(props, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int EnumerateProperties( + public static MaybeBool EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, @@ -24716,27 +30343,29 @@ Ref userdata { fixed (void* __dsl_userdata = userdata) { - return (int)EnumerateProperties(props, callback, __dsl_userdata); + return (MaybeBool)(byte)EnumerateProperties(props, callback, __dsl_userdata); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int EnumerateStorageDirectory( + public static byte EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ) => Underlying.Value!.EnumerateStorageDirectory(storage, path, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int EnumerateStorageDirectory( + public static MaybeBool EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, @@ -24746,54 +30375,46 @@ Ref userdata fixed (void* __dsl_userdata = userdata) fixed (sbyte* __dsl_path = path) { - return (int)EnumerateStorageDirectory( - storage, - __dsl_path, - callback, - __dsl_userdata - ); + return (MaybeBool) + (byte)EnumerateStorageDirectory(storage, __dsl_path, callback, __dsl_userdata); } } - [NativeFunction("SDL3", EntryPoint = "SDL_Error")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int Error(Errorcode code) => Underlying.Value!.Error(code); - - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) => + public static MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) => Underlying.Value!.EventEnabled(type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int EventEnabledRaw([NativeTypeName("Uint32")] uint type) => + public static byte EventEnabledRaw([NativeTypeName("Uint32")] uint type) => Underlying.Value!.EventEnabledRaw(type); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int FillSurfaceRect( + public static byte FillSurfaceRect( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("Uint32")] uint color ) => Underlying.Value!.FillSurfaceRect(dst, rect, color); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int FillSurfaceRect( + public static MaybeBool FillSurfaceRect( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("Uint32")] uint color @@ -24802,27 +30423,29 @@ public static int FillSurfaceRect( fixed (Rect* __dsl_rect = rect) fixed (Surface* __dsl_dst = dst) { - return (int)FillSurfaceRect(__dsl_dst, __dsl_rect, color); + return (MaybeBool)(byte)FillSurfaceRect(__dsl_dst, __dsl_rect, color); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int FillSurfaceRects( + public static byte FillSurfaceRects( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rects, int count, [NativeTypeName("Uint32")] uint color ) => Underlying.Value!.FillSurfaceRects(dst, rects, count, color); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int FillSurfaceRects( + public static MaybeBool FillSurfaceRects( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rects, int count, @@ -24832,7 +30455,8 @@ public static int FillSurfaceRects( fixed (Rect* __dsl_rects = rects) fixed (Surface* __dsl_dst = dst) { - return (int)FillSurfaceRects(__dsl_dst, __dsl_rects, count, color); + return (MaybeBool) + (byte)FillSurfaceRects(__dsl_dst, __dsl_rects, count, color); } } @@ -24861,40 +30485,62 @@ Ref userdata } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int FlashWindow(WindowHandle window, FlashOperation operation) => + public static MaybeBool FlashWindow(WindowHandle window, FlashOperation operation) => Underlying.Value!.FlashWindow(window, operation); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte FlashWindowRaw(WindowHandle window, FlashOperation operation) => + Underlying.Value!.FlashWindowRaw(window, operation); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int FlipSurface(Surface* surface, FlipMode flip) => + public static byte FlipSurface(Surface* surface, FlipMode flip) => Underlying.Value!.FlipSurface(surface, flip); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int FlipSurface(Ref surface, FlipMode flip) + public static MaybeBool FlipSurface(Ref surface, FlipMode flip) { fixed (Surface* __dsl_surface = surface) { - return (int)FlipSurface(__dsl_surface, flip); + return (MaybeBool)(byte)FlipSurface(__dsl_surface, flip); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int FlushAudioStream(AudioStreamHandle stream) => + public static MaybeBool FlushAudioStream(AudioStreamHandle stream) => Underlying.Value!.FlushAudioStream(stream); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte FlushAudioStreamRaw(AudioStreamHandle stream) => + Underlying.Value!.FlushAudioStreamRaw(stream); + [NativeFunction("SDL3", EntryPoint = "SDL_FlushEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -24911,116 +30557,169 @@ public static void FlushEvents( [NativeTypeName("Uint32")] uint maxType ) => Underlying.Value!.FlushEvents(minType, maxType); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool FlushIO(IOStreamHandle context) => + Underlying.Value!.FlushIO(context); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte FlushIORaw(IOStreamHandle context) => + Underlying.Value!.FlushIORaw(context); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int FlushRenderer(RendererHandle renderer) => + public static MaybeBool FlushRenderer(RendererHandle renderer) => Underlying.Value!.FlushRenderer(renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte FlushRendererRaw(RendererHandle renderer) => + Underlying.Value!.FlushRendererRaw(renderer); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GamepadConnected(GamepadHandle gamepad) => + public static MaybeBool GamepadConnected(GamepadHandle gamepad) => Underlying.Value!.GamepadConnected(gamepad); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GamepadConnectedRaw(GamepadHandle gamepad) => + public static byte GamepadConnectedRaw(GamepadHandle gamepad) => Underlying.Value!.GamepadConnectedRaw(gamepad); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GamepadEventsEnabled() => + public static MaybeBool GamepadEventsEnabled() => Underlying.Value!.GamepadEventsEnabled(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GamepadEventsEnabledRaw() => Underlying.Value!.GamepadEventsEnabledRaw(); + public static byte GamepadEventsEnabledRaw() => Underlying.Value!.GamepadEventsEnabledRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis) => + public static MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis) => Underlying.Value!.GamepadHasAxis(gamepad, axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => + public static byte GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => Underlying.Value!.GamepadHasAxisRaw(gamepad, axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GamepadHasButton( + public static MaybeBool GamepadHasButton( GamepadHandle gamepad, GamepadButton button ) => Underlying.Value!.GamepadHasButton(gamepad, button); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button) => + public static byte GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button) => Underlying.Value!.GamepadHasButtonRaw(gamepad, button); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType type) => + public static MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType type) => Underlying.Value!.GamepadHasSensor(gamepad, type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type) => + public static byte GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type) => Underlying.Value!.GamepadHasSensorRaw(gamepad, type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, SensorType type) => - Underlying.Value!.GamepadSensorEnabled(gamepad, type); + public static MaybeBool GamepadSensorEnabled( + GamepadHandle gamepad, + SensorType type + ) => Underlying.Value!.GamepadSensorEnabled(gamepad, type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => + public static byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => Underlying.Value!.GamepadSensorEnabledRaw(gamepad, type); + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAppMetadataProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetAppMetadataProperty([NativeTypeName("const char *")] sbyte* name) => + Underlying.Value!.GetAppMetadataProperty(name); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAppMetadataProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAppMetadataProperty( + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + { + return (sbyte*)GetAppMetadataProperty(__dsl_name); + } + } + [return: NativeTypeName("SDL_AssertionHandler")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionHandler")] [MethodImpl( @@ -25060,44 +30759,108 @@ public static Ptr GetAssertionReport() => public static AssertData* GetAssertionReportRaw() => Underlying.Value!.GetAssertionReportRaw(); - [return: NativeTypeName("SDL_AudioDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicInt")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint* GetAudioCaptureDevices(int* count) => - Underlying.Value!.GetAudioCaptureDevices(count); + public static int GetAtomicInt(AtomicInt* a) => Underlying.Value!.GetAtomicInt(a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAtomicInt(Ref a) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)GetAtomicInt(__dsl_a); + } + } + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* GetAtomicPointer(void** a) => Underlying.Value!.GetAtomicPointer(a); - [return: NativeTypeName("SDL_AudioDeviceID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicPointer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetAudioCaptureDevices(Ref count) + public static Ptr GetAtomicPointer(Ref2D a) + { + fixed (void** __dsl_a = a) + { + return (void*)GetAtomicPointer(__dsl_a); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetAtomicU32(AtomicU32* a) => Underlying.Value!.GetAtomicU32(a); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetAtomicU32(Ref a) + { + fixed (AtomicU32* __dsl_a = a) + { + return (uint)GetAtomicU32(__dsl_a); + } + } + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int* GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + int* count + ) => Underlying.Value!.GetAudioDeviceChannelMap(devid, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref count + ) { fixed (int* __dsl_count = count) { - return (uint*)GetAudioCaptureDevices(__dsl_count); + return (int*)GetAudioDeviceChannelMap(devid, __dsl_count); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetAudioDeviceFormat( + public static byte GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioSpec* spec, int* sample_frames ) => Underlying.Value!.GetAudioDeviceFormat(devid, spec, sample_frames); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetAudioDeviceFormat( + public static MaybeBool GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, Ref spec, Ref sample_frames @@ -25106,11 +30869,19 @@ Ref sample_frames fixed (int* __dsl_sample_frames = sample_frames) fixed (AudioSpec* __dsl_spec = spec) { - return (int)GetAudioDeviceFormat(devid, __dsl_spec, __dsl_sample_frames); + return (MaybeBool) + (byte)GetAudioDeviceFormat(devid, __dsl_spec, __dsl_sample_frames); } } - [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetAudioDeviceGain([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + Underlying.Value!.GetAudioDeviceGain(devid); + + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] [MethodImpl( @@ -25120,7 +30891,7 @@ public static Ptr GetAudioDeviceName( [NativeTypeName("SDL_AudioDeviceID")] uint devid ) => Underlying.Value!.GetAudioDeviceName(devid); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -25146,25 +30917,64 @@ public static Ptr GetAudioDriver(int index) => public static sbyte* GetAudioDriverRaw(int index) => Underlying.Value!.GetAudioDriverRaw(index); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioFormatName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioFormatName(AudioFormat format) => + Underlying.Value!.GetAudioFormatName(format); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioFormatName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetAudioFormatNameRaw(AudioFormat format) => + Underlying.Value!.GetAudioFormatNameRaw(format); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioPlaybackDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint* GetAudioPlaybackDevices(int* count) => + Underlying.Value!.GetAudioPlaybackDevices(count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioPlaybackDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioPlaybackDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetAudioPlaybackDevices(__dsl_count); + } + } + [return: NativeTypeName("SDL_AudioDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioRecordingDevices")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint* GetAudioOutputDevices(int* count) => - Underlying.Value!.GetAudioOutputDevices(count); + public static uint* GetAudioRecordingDevices(int* count) => + Underlying.Value!.GetAudioRecordingDevices(count); [return: NativeTypeName("SDL_AudioDeviceID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioRecordingDevices")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetAudioOutputDevices(Ref count) + public static Ptr GetAudioRecordingDevices(Ref count) { fixed (int* __dsl_count = count) { - return (uint*)GetAudioOutputDevices(__dsl_count); + return (uint*)GetAudioRecordingDevices(__dsl_count); } } @@ -25203,22 +31013,24 @@ public static int GetAudioStreamData(AudioStreamHandle stream, Ref buf, int len) public static uint GetAudioStreamDevice(AudioStreamHandle stream) => Underlying.Value!.GetAudioStreamDevice(stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetAudioStreamFormat( + public static byte GetAudioStreamFormat( AudioStreamHandle stream, AudioSpec* src_spec, AudioSpec* dst_spec ) => Underlying.Value!.GetAudioStreamFormat(stream, src_spec, dst_spec); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetAudioStreamFormat( + public static MaybeBool GetAudioStreamFormat( AudioStreamHandle stream, Ref src_spec, Ref dst_spec @@ -25227,7 +31039,8 @@ Ref dst_spec fixed (AudioSpec* __dsl_dst_spec = dst_spec) fixed (AudioSpec* __dsl_src_spec = src_spec) { - return (int)GetAudioStreamFormat(stream, __dsl_src_spec, __dsl_dst_spec); + return (MaybeBool) + (byte)GetAudioStreamFormat(stream, __dsl_src_spec, __dsl_dst_spec); } } @@ -25238,6 +31051,59 @@ Ref dst_spec public static float GetAudioStreamFrequencyRatio(AudioStreamHandle stream) => Underlying.Value!.GetAudioStreamFrequencyRatio(stream); + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetAudioStreamGain(AudioStreamHandle stream) => + Underlying.Value!.GetAudioStreamGain(stream); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamInputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int* GetAudioStreamInputChannelMap(AudioStreamHandle stream, int* count) => + Underlying.Value!.GetAudioStreamInputChannelMap(stream, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamInputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioStreamInputChannelMap( + AudioStreamHandle stream, + Ref count + ) + { + fixed (int* __dsl_count = count) + { + return (int*)GetAudioStreamInputChannelMap(stream, __dsl_count); + } + } + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamOutputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int* GetAudioStreamOutputChannelMap(AudioStreamHandle stream, int* count) => + Underlying.Value!.GetAudioStreamOutputChannelMap(stream, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamOutputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + Ref count + ) + { + fixed (int* __dsl_count = count) + { + return (int*)GetAudioStreamOutputChannelMap(stream, __dsl_count); + } + } + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamProperties")] [MethodImpl( @@ -25253,7 +31119,7 @@ public static uint GetAudioStreamProperties(AudioStreamHandle stream) => public static int GetAudioStreamQueued(AudioStreamHandle stream) => Underlying.Value!.GetAudioStreamQueued(stream); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] [MethodImpl( @@ -25261,176 +31127,175 @@ public static int GetAudioStreamQueued(AudioStreamHandle stream) => )] public static Ptr GetBasePath() => Underlying.Value!.GetBasePath(); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static sbyte* GetBasePathRaw() => Underlying.Value!.GetBasePathRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetBooleanProperty( + public static byte GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ) => Underlying.Value!.GetBooleanProperty(props, name, default_value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetBooleanProperty( + public static MaybeBool GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value + [NativeTypeName("bool")] MaybeBool default_value ) { fixed (sbyte* __dsl_name = name) { - return (MaybeBool) - (int)GetBooleanProperty(props, __dsl_name, (int)default_value); + return (MaybeBool) + (byte)GetBooleanProperty(props, __dsl_name, (byte)default_value); } } - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetCameraDeviceName( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ) => Underlying.Value!.GetCameraDeviceName(instance_id); - - [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static sbyte* GetCameraDeviceNameRaw( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ) => Underlying.Value!.GetCameraDeviceNameRaw(instance_id); + public static Ptr GetCameraDriver(int index) => + Underlying.Value!.GetCameraDriver(index); - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevicePosition")] + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static CameraPosition GetCameraDevicePosition( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ) => Underlying.Value!.GetCameraDevicePosition(instance_id); + public static sbyte* GetCameraDriverRaw(int index) => + Underlying.Value!.GetCameraDriverRaw(index); - [return: NativeTypeName("SDL_CameraDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint* GetCameraDevices(int* count) => - Underlying.Value!.GetCameraDevices(count); + public static byte GetCameraFormat(CameraHandle camera, CameraSpec* spec) => + Underlying.Value!.GetCameraFormat(camera, spec); - [return: NativeTypeName("SDL_CameraDeviceID *")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetCameraDevices(Ref count) + public static MaybeBool GetCameraFormat(CameraHandle camera, Ref spec) { - fixed (int* __dsl_count = count) + fixed (CameraSpec* __dsl_spec = spec) { - return (uint*)GetCameraDevices(__dsl_count); + return (MaybeBool)(byte)GetCameraFormat(camera, __dsl_spec); } } - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] + [return: NativeTypeName("SDL_CameraID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static CameraSpec* GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - int* count - ) => Underlying.Value!.GetCameraDeviceSupportedFormats(devid, count); + public static uint GetCameraID(CameraHandle camera) => + Underlying.Value!.GetCameraID(camera); + [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - Ref count - ) - { - fixed (int* __dsl_count = count) - { - return (CameraSpec*)GetCameraDeviceSupportedFormats(devid, __dsl_count); - } - } + public static Ptr GetCameraName([NativeTypeName("SDL_CameraID")] uint instance_id) => + Underlying.Value!.GetCameraName(instance_id); [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetCameraDriver(int index) => - Underlying.Value!.GetCameraDriver(index); + public static sbyte* GetCameraNameRaw([NativeTypeName("SDL_CameraID")] uint instance_id) => + Underlying.Value!.GetCameraNameRaw(instance_id); - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static sbyte* GetCameraDriverRaw(int index) => - Underlying.Value!.GetCameraDriverRaw(index); + public static int GetCameraPermissionState(CameraHandle camera) => + Underlying.Value!.GetCameraPermissionState(camera); - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPosition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetCameraFormat(CameraHandle camera, CameraSpec* spec) => - Underlying.Value!.GetCameraFormat(camera, spec); + public static CameraPosition GetCameraPosition( + [NativeTypeName("SDL_CameraID")] uint instance_id + ) => Underlying.Value!.GetCameraPosition(instance_id); + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetCameraProperties(CameraHandle camera) => + Underlying.Value!.GetCameraProperties(camera); + + [return: NativeTypeName("SDL_CameraID *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameras")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint* GetCameras(int* count) => Underlying.Value!.GetCameras(count); + + [return: NativeTypeName("SDL_CameraID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameras")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetCameraFormat(CameraHandle camera, Ref spec) + public static Ptr GetCameras(Ref count) { - fixed (CameraSpec* __dsl_spec = spec) + fixed (int* __dsl_count = count) { - return (int)GetCameraFormat(camera, __dsl_spec); + return (uint*)GetCameras(__dsl_count); } } - [return: NativeTypeName("SDL_CameraDeviceID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint GetCameraInstanceID(CameraHandle camera) => - Underlying.Value!.GetCameraInstanceID(camera); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetCameraPermissionState(CameraHandle camera) => - Underlying.Value!.GetCameraPermissionState(camera); + public static CameraSpec** GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + int* count + ) => Underlying.Value!.GetCameraSupportedFormats(devid, count); - [return: NativeTypeName("SDL_PropertiesID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraProperties")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint GetCameraProperties(CameraHandle camera) => - Underlying.Value!.GetCameraProperties(camera); + public static Ptr2D GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + Ref count + ) + { + fixed (int* __dsl_count = count) + { + return (CameraSpec**)GetCameraSupportedFormats(devid, __dsl_count); + } + } [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardData")] [MethodImpl( @@ -25458,6 +31323,31 @@ public static Ptr GetClipboardData( } } + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardMimeTypes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte** GetClipboardMimeTypes( + [NativeTypeName("size_t *")] nuint* num_mime_types + ) => Underlying.Value!.GetClipboardMimeTypes(num_mime_types); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardMimeTypes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GetClipboardMimeTypes( + [NativeTypeName("size_t *")] Ref num_mime_types + ) + { + fixed (nuint* __dsl_num_mime_types = num_mime_types) + { + return (sbyte**)GetClipboardMimeTypes(__dsl_num_mime_types); + } + } + [return: NativeTypeName("char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] @@ -25473,46 +31363,56 @@ public static Ptr GetClipboardData( )] public static sbyte* GetClipboardTextRaw() => Underlying.Value!.GetClipboardTextRaw(); - [return: NativeTypeName("const SDL_DisplayMode *")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static DisplayMode* GetClosestFullscreenDisplayMode( + public static byte GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] int include_high_density_modes + [NativeTypeName("bool")] byte include_high_density_modes, + DisplayMode* mode ) => Underlying.Value!.GetClosestFullscreenDisplayMode( displayID, w, h, refresh_rate, - include_high_density_modes + include_high_density_modes, + mode ); - [return: NativeTypeName("const SDL_DisplayMode *")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetClosestFullscreenDisplayMode( + public static MaybeBool GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] MaybeBool include_high_density_modes - ) => - Underlying.Value!.GetClosestFullscreenDisplayMode( - displayID, - w, - h, - refresh_rate, - include_high_density_modes - ); + [NativeTypeName("bool")] MaybeBool include_high_density_modes, + Ref mode + ) + { + fixed (DisplayMode* __dsl_mode = mode) + { + return (MaybeBool) + (byte)GetClosestFullscreenDisplayMode( + displayID, + w, + h, + refresh_rate, + (byte)include_high_density_modes, + __dsl_mode + ); + } + } [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCacheLineSize")] [MethodImpl( @@ -25520,12 +31420,6 @@ public static Ptr GetClosestFullscreenDisplayMode( )] public static int GetCPUCacheLineSize() => Underlying.Value!.GetCPUCacheLineSize(); - [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCount")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetCPUCount() => Underlying.Value!.GetCPUCount(); - [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] @@ -25587,19 +31481,21 @@ public static DisplayOrientation GetCurrentDisplayOrientation( [NativeTypeName("SDL_DisplayID")] uint displayID ) => Underlying.Value!.GetCurrentDisplayOrientation(displayID); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h) => + public static byte GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h) => Underlying.Value!.GetCurrentRenderOutputSize(renderer, w, h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetCurrentRenderOutputSize( + public static MaybeBool GetCurrentRenderOutputSize( RendererHandle renderer, Ref w, Ref h @@ -25608,7 +31504,8 @@ Ref h fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetCurrentRenderOutputSize(renderer, __dsl_w, __dsl_h); + return (MaybeBool) + (byte)GetCurrentRenderOutputSize(renderer, __dsl_w, __dsl_h); } } @@ -25619,23 +31516,25 @@ Ref h )] public static ulong GetCurrentThreadID() => Underlying.Value!.GetCurrentThreadID(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => + public static byte GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => Underlying.Value!.GetCurrentTime(ticks); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) + public static MaybeBool GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) { fixed (long* __dsl_ticks = ticks) { - return (int)GetCurrentTime(__dsl_ticks); + return (MaybeBool)(byte)GetCurrentTime(__dsl_ticks); } } @@ -25662,6 +31561,35 @@ public static Ptr GetCurrentVideoDriver() => )] public static CursorHandle GetCursor() => Underlying.Value!.GetCursor(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDateTimeLocalePreferences")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetDateTimeLocalePreferences( + DateFormat* dateFormat, + TimeFormat* timeFormat + ) => Underlying.Value!.GetDateTimeLocalePreferences(dateFormat, timeFormat); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDateTimeLocalePreferences")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetDateTimeLocalePreferences( + Ref dateFormat, + Ref timeFormat + ) + { + fixed (TimeFormat* __dsl_timeFormat = timeFormat) + fixed (DateFormat* __dsl_dateFormat = dateFormat) + { + return (MaybeBool) + (byte)GetDateTimeLocalePreferences(__dsl_dateFormat, __dsl_timeFormat); + } + } + [NativeFunction("SDL3", EntryPoint = "SDL_GetDayOfWeek")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -25697,6 +31625,14 @@ public static AssertionHandler GetDefaultAssertionHandler() => )] public static CursorHandle GetDefaultCursor() => Underlying.Value!.GetDefaultCursor(); + [return: NativeTypeName("SDL_LogOutputFunction")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultLogOutputFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static LogOutputFunction GetDefaultLogOutputFunction() => + Underlying.Value!.GetDefaultLogOutputFunction(); + [return: NativeTypeName("const SDL_DisplayMode *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] @@ -25716,28 +31652,30 @@ public static Ptr GetDesktopDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID ) => Underlying.Value!.GetDesktopDisplayModeRaw(displayID); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetDisplayBounds( + public static byte GetDisplayBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect ) => Underlying.Value!.GetDisplayBounds(displayID, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetDisplayBounds( + public static MaybeBool GetDisplayBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)GetDisplayBounds(displayID, __dsl_rect); + return (MaybeBool)(byte)GetDisplayBounds(displayID, __dsl_rect); } } @@ -25849,28 +31787,30 @@ public static Ptr GetDisplays(Ref count) } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetDisplayUsableBounds( + public static byte GetDisplayUsableBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect ) => Underlying.Value!.GetDisplayUsableBounds(displayID, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetDisplayUsableBounds( + public static MaybeBool GetDisplayUsableBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)GetDisplayUsableBounds(displayID, __dsl_rect); + return (MaybeBool)(byte)GetDisplayUsableBounds(displayID, __dsl_rect); } } @@ -25889,23 +31829,23 @@ Ref rect )] public static sbyte* GetErrorRaw() => Underlying.Value!.GetErrorRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetEventFilter( + public static byte GetEventFilter( [NativeTypeName("SDL_EventFilter *")] EventFilter* filter, void** userdata ) => Underlying.Value!.GetEventFilter(filter, userdata); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetEventFilter( + public static MaybeBool GetEventFilter( [NativeTypeName("SDL_EventFilter *")] Ref filter, Ref2D userdata ) @@ -25913,7 +31853,7 @@ Ref2D userdata fixed (void** __dsl_userdata = userdata) fixed (EventFilter* __dsl_filter = filter) { - return (MaybeBool)(int)GetEventFilter(__dsl_filter, __dsl_userdata); + return (MaybeBool)(byte)GetEventFilter(__dsl_filter, __dsl_userdata); } } @@ -25944,7 +31884,6 @@ float default_value } } - [return: NativeTypeName("const SDL_DisplayMode **")] [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -25954,7 +31893,6 @@ float default_value int* count ) => Underlying.Value!.GetFullscreenDisplayModes(displayID, count); - [return: NativeTypeName("const SDL_DisplayMode **")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] [MethodImpl( @@ -26067,13 +32005,16 @@ Ref count } } - [return: NativeTypeName("Uint8")] + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static byte GetGamepadButton(GamepadHandle gamepad, GamepadButton button) => - Underlying.Value!.GetGamepadButton(gamepad, button); + public static MaybeBool GetGamepadButton( + GamepadHandle gamepad, + GamepadButton button + ) => Underlying.Value!.GetGamepadButton(gamepad, button); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonFromString")] [MethodImpl( @@ -26116,6 +32057,14 @@ public static GamepadButtonLabel GetGamepadButtonLabelForType( GamepadButton button ) => Underlying.Value!.GetGamepadButtonLabelForType(type, button); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetGamepadButtonRaw(GamepadHandle gamepad, GamepadButton button) => + Underlying.Value!.GetGamepadButtonRaw(gamepad, button); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadConnectionState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -26131,13 +32080,13 @@ public static JoystickConnectionState GetGamepadConnectionState(GamepadHandle ga public static ushort GetGamepadFirmwareVersion(GamepadHandle gamepad) => Underlying.Value!.GetGamepadFirmwareVersion(gamepad); - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static GamepadHandle GetGamepadFromInstanceID( + public static GamepadHandle GetGamepadFromID( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadFromInstanceID(instance_id); + ) => Underlying.Value!.GetGamepadFromID(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] [MethodImpl( @@ -26146,122 +32095,21 @@ public static GamepadHandle GetGamepadFromInstanceID( public static GamepadHandle GetGamepadFromPlayerIndex(int player_index) => Underlying.Value!.GetGamepadFromPlayerIndex(player_index); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceGUID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadGUIDForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Guid GetGamepadInstanceGuid( + public static Guid GetGamepadGuidForID( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadInstanceGuid(instance_id); + ) => Underlying.Value!.GetGamepadGuidForID(instance_id); [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceID")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static uint GetGamepadInstanceID(GamepadHandle gamepad) => - Underlying.Value!.GetGamepadInstanceID(gamepad); - - [return: NativeTypeName("char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceMapping")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetGamepadInstanceMapping( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadInstanceMapping(instance_id); - - [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceMapping")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static sbyte* GetGamepadInstanceMappingRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadInstanceMappingRaw(instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetGamepadInstanceName( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadInstanceName(instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static sbyte* GetGamepadInstanceNameRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadInstanceNameRaw(instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePath")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetGamepadInstancePath( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadInstancePath(instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePath")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static sbyte* GetGamepadInstancePathRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadInstancePathRaw(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePlayerIndex")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetGamepadInstancePlayerIndex( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadInstancePlayerIndex(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceProduct")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static ushort GetGamepadInstanceProduct( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadInstanceProduct(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceProductVersion")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static ushort GetGamepadInstanceProductVersion( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadInstanceProductVersion(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceType")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static GamepadType GetGamepadInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadInstanceType(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceVendor")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static ushort GetGamepadInstanceVendor( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetGamepadInstanceVendor(instance_id); + public static uint GetGamepadID(GamepadHandle gamepad) => + Underlying.Value!.GetGamepadID(gamepad); [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadJoystick")] [MethodImpl( @@ -26285,18 +32133,35 @@ public static Ptr GetGamepadMapping(GamepadHandle gamepad) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetGamepadMappingForGuid( - [NativeTypeName("SDL_JoystickGUID")] Guid guid - ) => Underlying.Value!.GetGamepadMappingForGuid(guid); + public static Ptr GetGamepadMappingForGuid(Guid guid) => + Underlying.Value!.GetGamepadMappingForGuid(guid); [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static sbyte* GetGamepadMappingForGuidRaw( - [NativeTypeName("SDL_JoystickGUID")] Guid guid - ) => Underlying.Value!.GetGamepadMappingForGuidRaw(guid); + public static sbyte* GetGamepadMappingForGuidRaw(Guid guid) => + Underlying.Value!.GetGamepadMappingForGuidRaw(guid); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadMappingForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadMappingForID(instance_id); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetGamepadMappingForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadMappingForIDRaw(instance_id); [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMapping")] @@ -26337,6 +32202,25 @@ public static Ptr2D GetGamepadMappings(Ref count) public static Ptr GetGamepadName(GamepadHandle gamepad) => Underlying.Value!.GetGamepadName(gamepad); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadNameForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadNameForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadNameForID(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadNameForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetGamepadNameForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadNameForIDRaw(instance_id); + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadName")] [MethodImpl( @@ -26354,6 +32238,25 @@ public static Ptr GetGamepadName(GamepadHandle gamepad) => public static Ptr GetGamepadPath(GamepadHandle gamepad) => Underlying.Value!.GetGamepadPath(gamepad); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPathForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadPathForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadPathForID(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPathForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetGamepadPathForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadPathForIDRaw(instance_id); + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPath")] [MethodImpl( @@ -26369,6 +32272,14 @@ public static Ptr GetGamepadPath(GamepadHandle gamepad) => public static int GetGamepadPlayerIndex(GamepadHandle gamepad) => Underlying.Value!.GetGamepadPlayerIndex(gamepad); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndexForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetGamepadPlayerIndexForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadPlayerIndexForID(instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPowerInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -26397,6 +32308,15 @@ public static PowerState GetGamepadPowerInfo(GamepadHandle gamepad, Ref per public static ushort GetGamepadProduct(GamepadHandle gamepad) => Underlying.Value!.GetGamepadProduct(gamepad); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadProductForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadProductForID(instance_id); + [return: NativeTypeName("Uint16")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersion")] [MethodImpl( @@ -26405,6 +32325,15 @@ public static ushort GetGamepadProduct(GamepadHandle gamepad) => public static ushort GetGamepadProductVersion(GamepadHandle gamepad) => Underlying.Value!.GetGamepadProductVersion(gamepad); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersionForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadProductVersionForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadProductVersionForID(instance_id); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProperties")] [MethodImpl( @@ -26434,23 +32363,25 @@ public static Ptr GetGamepads(Ref count) } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetGamepadSensorData( + public static byte GetGamepadSensorData( GamepadHandle gamepad, SensorType type, float* data, int num_values ) => Underlying.Value!.GetGamepadSensorData(gamepad, type, data, num_values); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetGamepadSensorData( + public static MaybeBool GetGamepadSensorData( GamepadHandle gamepad, SensorType type, Ref data, @@ -26459,7 +32390,8 @@ int num_values { fixed (float* __dsl_data = data) { - return (int)GetGamepadSensorData(gamepad, type, __dsl_data, num_values); + return (MaybeBool) + (byte)GetGamepadSensorData(gamepad, type, __dsl_data, num_values); } } @@ -26546,15 +32478,16 @@ public static Ptr GetGamepadStringForType(GamepadType type) => public static sbyte* GetGamepadStringForTypeRaw(GamepadType type) => Underlying.Value!.GetGamepadStringForTypeRaw(type); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetGamepadTouchpadFinger( + public static byte GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] byte* state, + bool* down, float* x, float* y, float* pressure @@ -26563,22 +32496,23 @@ public static int GetGamepadTouchpadFinger( gamepad, touchpad, finger, - state, + down, x, y, pressure ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetGamepadTouchpadFinger( + public static MaybeBool GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] Ref state, + Ref down, Ref x, Ref y, Ref pressure @@ -26587,17 +32521,18 @@ Ref pressure fixed (float* __dsl_pressure = pressure) fixed (float* __dsl_y = y) fixed (float* __dsl_x = x) - fixed (byte* __dsl_state = state) - { - return (int)GetGamepadTouchpadFinger( - gamepad, - touchpad, - finger, - __dsl_state, - __dsl_x, - __dsl_y, - __dsl_pressure - ); + fixed (bool* __dsl_down = down) + { + return (MaybeBool) + (byte)GetGamepadTouchpadFinger( + gamepad, + touchpad, + finger, + __dsl_down, + __dsl_x, + __dsl_y, + __dsl_pressure + ); } } @@ -26608,6 +32543,14 @@ Ref pressure public static GamepadType GetGamepadType(GamepadHandle gamepad) => Underlying.Value!.GetGamepadType(gamepad); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadType GetGamepadTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadTypeForID(instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeFromString")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -26639,7 +32582,16 @@ public static GamepadType GetGamepadTypeFromString( public static ushort GetGamepadVendor(GamepadHandle gamepad) => Underlying.Value!.GetGamepadVendor(gamepad); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendorForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadVendorForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadVendorForID(instance_id); + + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -26647,7 +32599,7 @@ public static ushort GetGamepadVendor(GamepadHandle gamepad) => public static uint GetGlobalMouseState(float* x, float* y) => Underlying.Value!.GetGlobalMouseState(x, y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] [MethodImpl( @@ -26675,13 +32627,23 @@ public static uint GetGlobalMouseState(Ref x, Ref y) )] public static WindowHandle GetGrabbedWindow() => Underlying.Value!.GetGrabbedWindow(); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetHapticEffectStatus(HapticHandle haptic, int effect) => + public static MaybeBool GetHapticEffectStatus(HapticHandle haptic, int effect) => Underlying.Value!.GetHapticEffectStatus(haptic, effect); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetHapticEffectStatusRaw(HapticHandle haptic, int effect) => + Underlying.Value!.GetHapticEffectStatusRaw(haptic, effect); + [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFeatures")] [MethodImpl( @@ -26690,49 +32652,49 @@ public static int GetHapticEffectStatus(HapticHandle haptic, int effect) => public static uint GetHapticFeatures(HapticHandle haptic) => Underlying.Value!.GetHapticFeatures(haptic); - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static HapticHandle GetHapticFromInstanceID( + public static HapticHandle GetHapticFromID( [NativeTypeName("SDL_HapticID")] uint instance_id - ) => Underlying.Value!.GetHapticFromInstanceID(instance_id); + ) => Underlying.Value!.GetHapticFromID(instance_id); [return: NativeTypeName("SDL_HapticID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint GetHapticInstanceID(HapticHandle haptic) => - Underlying.Value!.GetHapticInstanceID(haptic); + public static uint GetHapticID(HapticHandle haptic) => + Underlying.Value!.GetHapticID(haptic); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetHapticInstanceName( - [NativeTypeName("SDL_HapticID")] uint instance_id - ) => Underlying.Value!.GetHapticInstanceName(instance_id); + public static Ptr GetHapticName(HapticHandle haptic) => + Underlying.Value!.GetHapticName(haptic); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static sbyte* GetHapticInstanceNameRaw( + public static Ptr GetHapticNameForID( [NativeTypeName("SDL_HapticID")] uint instance_id - ) => Underlying.Value!.GetHapticInstanceNameRaw(instance_id); + ) => Underlying.Value!.GetHapticNameForID(instance_id); [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetHapticName(HapticHandle haptic) => - Underlying.Value!.GetHapticName(haptic); + public static sbyte* GetHapticNameForIDRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => Underlying.Value!.GetHapticNameForIDRaw(instance_id); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] @@ -26785,30 +32747,30 @@ public static Ptr GetHint([NativeTypeName("const char *")] Ref nam } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetHintBoolean( + public static byte GetHintBoolean( [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ) => Underlying.Value!.GetHintBoolean(name, default_value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetHintBoolean( + public static MaybeBool GetHintBoolean( [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value + [NativeTypeName("bool")] MaybeBool default_value ) { fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)GetHintBoolean(__dsl_name, (int)default_value); + return (MaybeBool)(byte)GetHintBoolean(__dsl_name, (byte)default_value); } } @@ -26843,24 +32805,24 @@ public static IOStatus GetIOStatus(IOStreamHandle context) => public static short GetJoystickAxis(JoystickHandle joystick, int axis) => Underlying.Value!.GetJoystickAxis(joystick, axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetJoystickAxisInitialState( + public static byte GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] short* state ) => Underlying.Value!.GetJoystickAxisInitialState(joystick, axis, state); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetJoystickAxisInitialState( + public static MaybeBool GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] Ref state @@ -26868,24 +32830,26 @@ public static MaybeBool GetJoystickAxisInitialState( { fixed (short* __dsl_state = state) { - return (MaybeBool) - (int)GetJoystickAxisInitialState(joystick, axis, __dsl_state); + return (MaybeBool) + (byte)GetJoystickAxisInitialState(joystick, axis, __dsl_state); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy) => + public static byte GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy) => Underlying.Value!.GetJoystickBall(joystick, ball, dx, dy); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetJoystickBall( + public static MaybeBool GetJoystickBall( JoystickHandle joystick, int ball, Ref dx, @@ -26895,18 +32859,27 @@ Ref dy fixed (int* __dsl_dy = dy) fixed (int* __dsl_dx = dx) { - return (int)GetJoystickBall(joystick, ball, __dsl_dx, __dsl_dy); + return (MaybeBool)(byte)GetJoystickBall(joystick, ball, __dsl_dx, __dsl_dy); } } - [return: NativeTypeName("Uint8")] + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static byte GetJoystickButton(JoystickHandle joystick, int button) => + public static MaybeBool GetJoystickButton(JoystickHandle joystick, int button) => Underlying.Value!.GetJoystickButton(joystick, button); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetJoystickButtonRaw(JoystickHandle joystick, int button) => + Underlying.Value!.GetJoystickButtonRaw(joystick, button); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickConnectionState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -26922,13 +32895,13 @@ public static JoystickConnectionState GetJoystickConnectionState(JoystickHandle public static ushort GetJoystickFirmwareVersion(JoystickHandle joystick) => Underlying.Value!.GetJoystickFirmwareVersion(joystick); - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static JoystickHandle GetJoystickFromInstanceID( + public static JoystickHandle GetJoystickFromID( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetJoystickFromInstanceID(instance_id); + ) => Underlying.Value!.GetJoystickFromID(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] [MethodImpl( @@ -26937,7 +32910,6 @@ public static JoystickHandle GetJoystickFromInstanceID( public static JoystickHandle GetJoystickFromPlayerIndex(int player_index) => Underlying.Value!.GetJoystickFromPlayerIndex(player_index); - [return: NativeTypeName("SDL_JoystickGUID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -26945,37 +32917,20 @@ public static JoystickHandle GetJoystickFromPlayerIndex(int player_index) => public static Guid GetJoystickGuid(JoystickHandle joystick) => Underlying.Value!.GetJoystickGuid(joystick); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDFromString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Guid GetJoystickGuidFromString( - [NativeTypeName("const char *")] sbyte* pchGUID - ) => Underlying.Value!.GetJoystickGuidFromString(pchGUID); - - [return: NativeTypeName("SDL_JoystickGUID")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDFromString")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Guid GetJoystickGuidFromString( - [NativeTypeName("const char *")] Ref pchGUID - ) - { - fixed (sbyte* __dsl_pchGUID = pchGUID) - { - return (Guid)GetJoystickGuidFromString(__dsl_pchGUID); - } - } + public static Guid GetJoystickGuidForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickGuidForID(instance_id); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static void GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] ushort* vendor, [NativeTypeName("Uint16 *")] ushort* product, [NativeTypeName("Uint16 *")] ushort* version, @@ -26988,7 +32943,7 @@ public static void GetJoystickGuidInfo( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static void GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] Ref vendor, [NativeTypeName("Uint16 *")] Ref product, [NativeTypeName("Uint16 *")] Ref version, @@ -27004,33 +32959,6 @@ public static void GetJoystickGuidInfo( } } - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] sbyte* pszGUID, - int cbGUID - ) => Underlying.Value!.GetJoystickGuidString(guid, pszGUID, cbGUID); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] Ref pszGUID, - int cbGUID - ) - { - fixed (sbyte* __dsl_pszGUID = pszGUID) - { - return (int)GetJoystickGuidString(guid, __dsl_pszGUID, cbGUID); - } - } - [return: NativeTypeName("Uint8")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickHat")] [MethodImpl( @@ -27039,129 +32967,77 @@ int cbGUID public static byte GetJoystickHat(JoystickHandle joystick, int hat) => Underlying.Value!.GetJoystickHat(joystick, hat); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceGUID")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Guid GetJoystickInstanceGuid( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetJoystickInstanceGuid(instance_id); - [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint GetJoystickInstanceID(JoystickHandle joystick) => - Underlying.Value!.GetJoystickInstanceID(joystick); + public static uint GetJoystickID(JoystickHandle joystick) => + Underlying.Value!.GetJoystickID(joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetJoystickInstanceName( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetJoystickInstanceName(instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static sbyte* GetJoystickInstanceNameRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetJoystickInstanceNameRaw(instance_id); + public static Ptr GetJoystickName(JoystickHandle joystick) => + Underlying.Value!.GetJoystickName(joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetJoystickInstancePath( + public static Ptr GetJoystickNameForID( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetJoystickInstancePath(instance_id); + ) => Underlying.Value!.GetJoystickNameForID(instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static sbyte* GetJoystickInstancePathRaw( + public static sbyte* GetJoystickNameForIDRaw( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetJoystickInstancePathRaw(instance_id); + ) => Underlying.Value!.GetJoystickNameForIDRaw(instance_id); - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePlayerIndex")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetJoystickInstancePlayerIndex( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetJoystickInstancePlayerIndex(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceProduct")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static ushort GetJoystickInstanceProduct( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetJoystickInstanceProduct(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceProductVersion")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static ushort GetJoystickInstanceProductVersion( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetJoystickInstanceProductVersion(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceType")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static JoystickType GetJoystickInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetJoystickInstanceType(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceVendor")] + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static ushort GetJoystickInstanceVendor( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetJoystickInstanceVendor(instance_id); + public static sbyte* GetJoystickNameRaw(JoystickHandle joystick) => + Underlying.Value!.GetJoystickNameRaw(joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetJoystickName(JoystickHandle joystick) => - Underlying.Value!.GetJoystickName(joystick); + public static Ptr GetJoystickPath(JoystickHandle joystick) => + Underlying.Value!.GetJoystickPath(joystick); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPathForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static sbyte* GetJoystickNameRaw(JoystickHandle joystick) => - Underlying.Value!.GetJoystickNameRaw(joystick); + public static Ptr GetJoystickPathForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickPathForID(instance_id); [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPathForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetJoystickPath(JoystickHandle joystick) => - Underlying.Value!.GetJoystickPath(joystick); + public static sbyte* GetJoystickPathForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickPathForIDRaw(instance_id); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] @@ -27178,6 +33054,14 @@ public static Ptr GetJoystickPath(JoystickHandle joystick) => public static int GetJoystickPlayerIndex(JoystickHandle joystick) => Underlying.Value!.GetJoystickPlayerIndex(joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndexForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetJoystickPlayerIndexForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickPlayerIndexForID(instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPowerInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -27206,6 +33090,15 @@ public static PowerState GetJoystickPowerInfo(JoystickHandle joystick, Ref public static ushort GetJoystickProduct(JoystickHandle joystick) => Underlying.Value!.GetJoystickProduct(joystick); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickProductForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickProductForID(instance_id); + [return: NativeTypeName("Uint16")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersion")] [MethodImpl( @@ -27214,6 +33107,15 @@ public static ushort GetJoystickProduct(JoystickHandle joystick) => public static ushort GetJoystickProductVersion(JoystickHandle joystick) => Underlying.Value!.GetJoystickProductVersion(joystick); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersionForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickProductVersionForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickProductVersionForID(instance_id); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProperties")] [MethodImpl( @@ -27267,6 +33169,14 @@ public static Ptr GetJoystickSerial(JoystickHandle joystick) => public static JoystickType GetJoystickType(JoystickHandle joystick) => Underlying.Value!.GetJoystickType(joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickTypeForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static JoystickType GetJoystickTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickTypeForID(instance_id); + [return: NativeTypeName("Uint16")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendor")] [MethodImpl( @@ -27275,6 +33185,15 @@ public static JoystickType GetJoystickType(JoystickHandle joystick) => public static ushort GetJoystickVendor(JoystickHandle joystick) => Underlying.Value!.GetJoystickVendor(joystick); + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendorForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickVendorForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickVendorForID(instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -27283,22 +33202,22 @@ public static ushort GetJoystickVendor(JoystickHandle joystick) => [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetKeyboardInstanceName( + public static Ptr GetKeyboardNameForID( [NativeTypeName("SDL_KeyboardID")] uint instance_id - ) => Underlying.Value!.GetKeyboardInstanceName(instance_id); + ) => Underlying.Value!.GetKeyboardNameForID(instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static sbyte* GetKeyboardInstanceNameRaw( + public static sbyte* GetKeyboardNameForIDRaw( [NativeTypeName("SDL_KeyboardID")] uint instance_id - ) => Underlying.Value!.GetKeyboardInstanceNameRaw(instance_id); + ) => Underlying.Value!.GetKeyboardNameForIDRaw(instance_id); [return: NativeTypeName("SDL_KeyboardID *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboards")] @@ -27321,25 +33240,25 @@ public static Ptr GetKeyboards(Ref count) } } - [return: NativeTypeName("const Uint8 *")] + [return: NativeTypeName("const bool *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static byte* GetKeyboardState(int* numkeys) => + public static bool* GetKeyboardState(int* numkeys) => Underlying.Value!.GetKeyboardState(numkeys); - [return: NativeTypeName("const Uint8 *")] + [return: NativeTypeName("const bool *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetKeyboardState(Ref numkeys) + public static Ptr GetKeyboardState(Ref numkeys) { fixed (int* __dsl_numkeys = numkeys) { - return (byte*)GetKeyboardState(__dsl_numkeys); + return (bool*)GetKeyboardState(__dsl_numkeys); } } @@ -27348,7 +33267,7 @@ public static Ptr GetKeyboardState(Ref numkeys) [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => + public static uint GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => Underlying.Value!.GetKeyFromName(name); [return: NativeTypeName("SDL_Keycode")] @@ -27357,11 +33276,11 @@ public static int GetKeyFromName([NativeTypeName("const char *")] sbyte* name) = [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetKeyFromName([NativeTypeName("const char *")] Ref name) + public static uint GetKeyFromName([NativeTypeName("const char *")] Ref name) { fixed (sbyte* __dsl_name = name) { - return (int)GetKeyFromName(__dsl_name); + return (uint)GetKeyFromName(__dsl_name); } } @@ -27370,8 +33289,23 @@ public static int GetKeyFromName([NativeTypeName("const char *")] Ref nam [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetKeyFromScancode(Scancode scancode) => - Underlying.Value!.GetKeyFromScancode(scancode); + public static uint GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] byte key_event + ) => Underlying.Value!.GetKeyFromScancode(scancode, modstate, key_event); + + [return: NativeTypeName("SDL_Keycode")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromScancode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] MaybeBool key_event + ) => Underlying.Value!.GetKeyFromScancode(scancode, modstate, key_event); [return: NativeTypeName("const char *")] [Transformed] @@ -27379,7 +33313,7 @@ public static int GetKeyFromScancode(Scancode scancode) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int key) => + public static Ptr GetKeyName([NativeTypeName("SDL_Keycode")] uint key) => Underlying.Value!.GetKeyName(key); [return: NativeTypeName("const char *")] @@ -27387,7 +33321,7 @@ public static Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int key) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] int key) => + public static sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] uint key) => Underlying.Value!.GetKeyNameRaw(key); [NativeFunction("SDL3", EntryPoint = "SDL_GetLogOutputFunction")] @@ -27416,28 +33350,35 @@ Ref2D userdata } } - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetLogPriority")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetMasksForPixelFormatEnum( - PixelFormatEnum format, + public static LogPriority GetLogPriority(int category) => + Underlying.Value!.GetLogPriority(category); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetMasksForPixelFormat( + PixelFormat format, int* bpp, [NativeTypeName("Uint32 *")] uint* Rmask, [NativeTypeName("Uint32 *")] uint* Gmask, [NativeTypeName("Uint32 *")] uint* Bmask, [NativeTypeName("Uint32 *")] uint* Amask - ) => Underlying.Value!.GetMasksForPixelFormatEnum(format, bpp, Rmask, Gmask, Bmask, Amask); + ) => Underlying.Value!.GetMasksForPixelFormat(format, bpp, Rmask, Gmask, Bmask, Amask); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetMasksForPixelFormatEnum( - PixelFormatEnum format, + public static MaybeBool GetMasksForPixelFormat( + PixelFormat format, Ref bpp, [NativeTypeName("Uint32 *")] Ref Rmask, [NativeTypeName("Uint32 *")] Ref Gmask, @@ -27451,8 +33392,8 @@ public static MaybeBool GetMasksForPixelFormatEnum( fixed (uint* __dsl_Rmask = Rmask) fixed (int* __dsl_bpp = bpp) { - return (MaybeBool) - (int)GetMasksForPixelFormatEnum( + return (MaybeBool) + (byte)GetMasksForPixelFormat( format, __dsl_bpp, __dsl_Rmask, @@ -27498,11 +33439,12 @@ public static Ptr GetMice(Ref count) } } + [return: NativeTypeName("SDL_Keymod")] [NativeFunction("SDL3", EntryPoint = "SDL_GetModState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Keymod GetModState() => Underlying.Value!.GetModState(); + public static ushort GetModState() => Underlying.Value!.GetModState(); [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] [MethodImpl( @@ -27512,24 +33454,24 @@ public static Ptr GetMice(Ref count) [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetMouseInstanceName( + public static Ptr GetMouseNameForID( [NativeTypeName("SDL_MouseID")] uint instance_id - ) => Underlying.Value!.GetMouseInstanceName(instance_id); + ) => Underlying.Value!.GetMouseNameForID(instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static sbyte* GetMouseInstanceNameRaw( + public static sbyte* GetMouseNameForIDRaw( [NativeTypeName("SDL_MouseID")] uint instance_id - ) => Underlying.Value!.GetMouseInstanceNameRaw(instance_id); + ) => Underlying.Value!.GetMouseNameForIDRaw(instance_id); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -27537,7 +33479,7 @@ public static Ptr GetMouseInstanceName( public static uint GetMouseState(float* x, float* y) => Underlying.Value!.GetMouseState(x, y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] [MethodImpl( @@ -27650,6 +33592,12 @@ public static int GetNumJoystickButtons(JoystickHandle joystick) => public static int GetNumJoystickHats(JoystickHandle joystick) => Underlying.Value!.GetNumJoystickHats(joystick); + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumLogicalCPUCores")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumLogicalCPUCores() => Underlying.Value!.GetNumLogicalCPUCores(); + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumRenderDrivers")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -27662,21 +33610,23 @@ public static int GetNumJoystickHats(JoystickHandle joystick) => )] public static int GetNumVideoDrivers() => Underlying.Value!.GetNumVideoDrivers(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetPathInfo( + public static byte GetPathInfo( [NativeTypeName("const char *")] sbyte* path, PathInfo* info ) => Underlying.Value!.GetPathInfo(path, info); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetPathInfo( + public static MaybeBool GetPathInfo( [NativeTypeName("const char *")] Ref path, Ref info ) @@ -27684,157 +33634,53 @@ Ref info fixed (PathInfo* __dsl_info = info) fixed (sbyte* __dsl_path = path) { - return (int)GetPathInfo(__dsl_path, __dsl_info); + return (MaybeBool)(byte)GetPathInfo(__dsl_path, __dsl_info); } } - [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenCapabilities")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static uint GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - PenCapabilityInfo* capabilities - ) => Underlying.Value!.GetPenCapabilities(instance_id, capabilities); - - [return: NativeTypeName("Uint32")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenCapabilities")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static uint GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref capabilities - ) - { - fixed (PenCapabilityInfo* __dsl_capabilities = capabilities) - { - return (uint)GetPenCapabilities(instance_id, __dsl_capabilities); - } - } - - [return: NativeTypeName("SDL_PenID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenFromGUID")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static uint GetPenFromGuid(Guid guid) => Underlying.Value!.GetPenFromGuid(guid); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenGUID")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Guid GetPenGuid([NativeTypeName("SDL_PenID")] uint instance_id) => - Underlying.Value!.GetPenGuid(instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetPenName([NativeTypeName("SDL_PenID")] uint instance_id) => - Underlying.Value!.GetPenName(instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static sbyte* GetPenNameRaw([NativeTypeName("SDL_PenID")] uint instance_id) => - Underlying.Value!.GetPenNameRaw(instance_id); - - [return: NativeTypeName("SDL_PenID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static uint* GetPens(int* count) => Underlying.Value!.GetPens(count); - - [return: NativeTypeName("SDL_PenID *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceCounter")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetPens(Ref count) - { - fixed (int* __dsl_count = count) - { - return (uint*)GetPens(__dsl_count); - } - } + public static ulong GetPerformanceCounter() => Underlying.Value!.GetPerformanceCounter(); - [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenStatus")] + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceFrequency")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - float* x, - float* y, - float* axes, - [NativeTypeName("size_t")] nuint num_axes - ) => Underlying.Value!.GetPenStatus(instance_id, x, y, axes, num_axes); + public static ulong GetPerformanceFrequency() => + Underlying.Value!.GetPerformanceFrequency(); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("const SDL_PixelFormatDetails *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenStatus")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatDetails")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref x, - Ref y, - Ref axes, - [NativeTypeName("size_t")] nuint num_axes - ) - { - fixed (float* __dsl_axes = axes) - fixed (float* __dsl_y = y) - fixed (float* __dsl_x = x) - { - return (uint)GetPenStatus(instance_id, __dsl_x, __dsl_y, __dsl_axes, num_axes); - } - } - - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenType")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static PenSubtype GetPenType([NativeTypeName("SDL_PenID")] uint instance_id) => - Underlying.Value!.GetPenType(instance_id); + public static Ptr GetPixelFormatDetails(PixelFormat format) => + Underlying.Value!.GetPixelFormatDetails(format); - [return: NativeTypeName("Uint64")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceCounter")] + [return: NativeTypeName("const SDL_PixelFormatDetails *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatDetails")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static ulong GetPerformanceCounter() => Underlying.Value!.GetPerformanceCounter(); - - [return: NativeTypeName("Uint64")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceFrequency")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static ulong GetPerformanceFrequency() => - Underlying.Value!.GetPerformanceFrequency(); + public static PixelFormatDetails* GetPixelFormatDetailsRaw(PixelFormat format) => + Underlying.Value!.GetPixelFormatDetailsRaw(format); - [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatEnumForMasks")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatForMasks")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static PixelFormatEnum GetPixelFormatEnumForMasks( + public static PixelFormat GetPixelFormatForMasks( int bpp, [NativeTypeName("Uint32")] uint Rmask, [NativeTypeName("Uint32")] uint Gmask, [NativeTypeName("Uint32")] uint Bmask, [NativeTypeName("Uint32")] uint Amask - ) => Underlying.Value!.GetPixelFormatEnumForMasks(bpp, Rmask, Gmask, Bmask, Amask); + ) => Underlying.Value!.GetPixelFormatForMasks(bpp, Rmask, Gmask, Bmask, Amask); [return: NativeTypeName("const char *")] [Transformed] @@ -27842,7 +33688,7 @@ public static PixelFormatEnum GetPixelFormatEnumForMasks( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetPixelFormatName(PixelFormatEnum format) => + public static Ptr GetPixelFormatName(PixelFormat format) => Underlying.Value!.GetPixelFormatName(format); [return: NativeTypeName("const char *")] @@ -27850,7 +33696,7 @@ public static Ptr GetPixelFormatName(PixelFormatEnum format) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static sbyte* GetPixelFormatNameRaw(PixelFormatEnum format) => + public static sbyte* GetPixelFormatNameRaw(PixelFormat format) => Underlying.Value!.GetPixelFormatNameRaw(format); [return: NativeTypeName("const char *")] @@ -27868,6 +33714,34 @@ public static Ptr GetPixelFormatName(PixelFormatEnum format) => )] public static sbyte* GetPlatformRaw() => Underlying.Value!.GetPlatformRaw(); + [NativeFunction("SDL3", EntryPoint = "SDL_GetPointerProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* GetPointerProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* default_value + ) => Underlying.Value!.GetPointerProperty(props, name, default_value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPointerProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetPointerProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref default_value + ) + { + fixed (void* __dsl_default_value = default_value) + fixed (sbyte* __dsl_name = name) + { + return (void*)GetPointerProperty(props, __dsl_name, __dsl_default_value); + } + } + [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -27889,19 +33763,25 @@ public static PowerState GetPowerInfo(Ref seconds, Ref percent) } } - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetPreferredLocales() => Underlying.Value!.GetPreferredLocales(); + public static Locale** GetPreferredLocales(int* count) => + Underlying.Value!.GetPreferredLocales(count); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Locale* GetPreferredLocalesRaw() => - Underlying.Value!.GetPreferredLocalesRaw(); + public static Ptr2D GetPreferredLocales(Ref count) + { + fixed (int* __dsl_count = count) + { + return (Locale**)GetPreferredLocales(__dsl_count); + } + } [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPrefPath")] @@ -27955,34 +33835,6 @@ public static Ptr GetPrimarySelectionText() => public static sbyte* GetPrimarySelectionTextRaw() => Underlying.Value!.GetPrimarySelectionTextRaw(); - [NativeFunction("SDL3", EntryPoint = "SDL_GetProperty")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void* GetProperty( - [NativeTypeName("SDL_PropertiesID")] uint props, - [NativeTypeName("const char *")] sbyte* name, - void* default_value - ) => Underlying.Value!.GetProperty(props, name, default_value); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetProperty")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Ptr GetProperty( - [NativeTypeName("SDL_PropertiesID")] uint props, - [NativeTypeName("const char *")] Ref name, - Ref default_value - ) - { - fixed (void* __dsl_default_value = default_value) - fixed (sbyte* __dsl_name = name) - { - return (void*)GetProperty(props, __dsl_name, __dsl_default_value); - } - } - [NativeFunction("SDL3", EntryPoint = "SDL_GetPropertyType")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -28008,27 +33860,27 @@ public static PropertyType GetPropertyType( } } - [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadInstanceType")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static GamepadType GetRealGamepadInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => Underlying.Value!.GetRealGamepadInstanceType(instance_id); + public static GamepadType GetRealGamepadType(GamepadHandle gamepad) => + Underlying.Value!.GetRealGamepadType(gamepad); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadTypeForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static GamepadType GetRealGamepadType(GamepadHandle gamepad) => - Underlying.Value!.GetRealGamepadType(gamepad); + public static GamepadType GetRealGamepadTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetRealGamepadTypeForID(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRectAndLineIntersection( + public static byte GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Rect* rect, int* X1, int* Y1, @@ -28036,13 +33888,13 @@ public static int GetRectAndLineIntersection( int* Y2 ) => Underlying.Value!.GetRectAndLineIntersection(rect, X1, Y1, X2, Y2); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetRectAndLineIntersection( + public static MaybeBool GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Ref rect, Ref X1, Ref Y1, @@ -28056,8 +33908,8 @@ Ref Y2 fixed (int* __dsl_X1 = X1) fixed (Rect* __dsl_rect = rect) { - return (MaybeBool) - (int)GetRectAndLineIntersection( + return (MaybeBool) + (byte)GetRectAndLineIntersection( __dsl_rect, __dsl_X1, __dsl_Y1, @@ -28067,12 +33919,12 @@ Ref Y2 } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRectAndLineIntersectionFloat( + public static byte GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* rect, float* X1, float* Y1, @@ -28080,13 +33932,13 @@ public static int GetRectAndLineIntersectionFloat( float* Y2 ) => Underlying.Value!.GetRectAndLineIntersectionFloat(rect, X1, Y1, X2, Y2); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetRectAndLineIntersectionFloat( + public static MaybeBool GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref rect, Ref X1, Ref Y1, @@ -28100,8 +33952,8 @@ Ref Y2 fixed (float* __dsl_X1 = X1) fixed (FRect* __dsl_rect = rect) { - return (MaybeBool) - (int)GetRectAndLineIntersectionFloat( + return (MaybeBool) + (byte)GetRectAndLineIntersectionFloat( __dsl_rect, __dsl_X1, __dsl_Y1, @@ -28111,25 +33963,25 @@ Ref Y2 } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRectEnclosingPoints( + public static byte GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Point* points, int count, [NativeTypeName("const SDL_Rect *")] Rect* clip, Rect* result ) => Underlying.Value!.GetRectEnclosingPoints(points, count, clip, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetRectEnclosingPoints( + public static MaybeBool GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Ref points, int count, [NativeTypeName("const SDL_Rect *")] Ref clip, @@ -28140,30 +33992,30 @@ Ref result fixed (Rect* __dsl_clip = clip) fixed (Point* __dsl_points = points) { - return (MaybeBool) - (int)GetRectEnclosingPoints(__dsl_points, count, __dsl_clip, __dsl_result); + return (MaybeBool) + (byte)GetRectEnclosingPoints(__dsl_points, count, __dsl_clip, __dsl_result); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRectEnclosingPointsFloat( + public static byte GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count, [NativeTypeName("const SDL_FRect *")] FRect* clip, FRect* result ) => Underlying.Value!.GetRectEnclosingPointsFloat(points, count, clip, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetRectEnclosingPointsFloat( + public static MaybeBool GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] Ref points, int count, [NativeTypeName("const SDL_FRect *")] Ref clip, @@ -28174,29 +34026,34 @@ Ref result fixed (FRect* __dsl_clip = clip) fixed (FPoint* __dsl_points = points) { - return (MaybeBool) - (int)GetRectEnclosingPointsFloat(__dsl_points, count, __dsl_clip, __dsl_result); + return (MaybeBool) + (byte)GetRectEnclosingPointsFloat( + __dsl_points, + count, + __dsl_clip, + __dsl_result + ); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRectIntersection( + public static byte GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ) => Underlying.Value!.GetRectIntersection(A, B, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetRectIntersection( + public static MaybeBool GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result @@ -28206,28 +34063,28 @@ Ref result fixed (Rect* __dsl_B = B) fixed (Rect* __dsl_A = A) { - return (MaybeBool)(int)GetRectIntersection(__dsl_A, __dsl_B, __dsl_result); + return (MaybeBool)(byte)GetRectIntersection(__dsl_A, __dsl_B, __dsl_result); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRectIntersectionFloat( + public static byte GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ) => Underlying.Value!.GetRectIntersectionFloat(A, B, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetRectIntersectionFloat( + public static MaybeBool GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result @@ -28237,27 +34094,29 @@ Ref result fixed (FRect* __dsl_B = B) fixed (FRect* __dsl_A = A) { - return (MaybeBool) - (int)GetRectIntersectionFloat(__dsl_A, __dsl_B, __dsl_result); + return (MaybeBool) + (byte)GetRectIntersectionFloat(__dsl_A, __dsl_B, __dsl_result); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRectUnion( + public static byte GetRectUnion( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ) => Underlying.Value!.GetRectUnion(A, B, result); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRectUnion( + public static MaybeBool GetRectUnion( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result @@ -28267,26 +34126,28 @@ Ref result fixed (Rect* __dsl_B = B) fixed (Rect* __dsl_A = A) { - return (int)GetRectUnion(__dsl_A, __dsl_B, __dsl_result); + return (MaybeBool)(byte)GetRectUnion(__dsl_A, __dsl_B, __dsl_result); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRectUnionFloat( + public static byte GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ) => Underlying.Value!.GetRectUnionFloat(A, B, result); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRectUnionFloat( + public static MaybeBool GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result @@ -28296,27 +34157,11 @@ Ref result fixed (FRect* __dsl_B = B) fixed (FRect* __dsl_A = A) { - return (int)GetRectUnionFloat(__dsl_A, __dsl_B, __dsl_result); + return (MaybeBool)(byte)GetRectUnionFloat(__dsl_A, __dsl_B, __dsl_result); } } - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseMode")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static MaybeBool GetRelativeMouseMode() => - Underlying.Value!.GetRelativeMouseMode(); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseMode")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetRelativeMouseModeRaw() => Underlying.Value!.GetRelativeMouseModeRaw(); - - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -28324,7 +34169,7 @@ public static MaybeBool GetRelativeMouseMode() => public static uint GetRelativeMouseState(float* x, float* y) => Underlying.Value!.GetRelativeMouseState(x, y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] [MethodImpl( @@ -28339,71 +34184,83 @@ public static uint GetRelativeMouseState(Ref x, Ref y) } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderClipRect(RendererHandle renderer, Rect* rect) => + public static byte GetRenderClipRect(RendererHandle renderer, Rect* rect) => Underlying.Value!.GetRenderClipRect(renderer, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderClipRect(RendererHandle renderer, Ref rect) + public static MaybeBool GetRenderClipRect(RendererHandle renderer, Ref rect) { fixed (Rect* __dsl_rect = rect) { - return (int)GetRenderClipRect(renderer, __dsl_rect); + return (MaybeBool)(byte)GetRenderClipRect(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderColorScale(RendererHandle renderer, float* scale) => + public static byte GetRenderColorScale(RendererHandle renderer, float* scale) => Underlying.Value!.GetRenderColorScale(renderer, scale); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderColorScale(RendererHandle renderer, Ref scale) + public static MaybeBool GetRenderColorScale(RendererHandle renderer, Ref scale) { fixed (float* __dsl_scale = scale) { - return (int)GetRenderColorScale(renderer, __dsl_scale); + return (MaybeBool)(byte)GetRenderColorScale(renderer, __dsl_scale); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderDrawBlendMode(RendererHandle renderer, BlendMode* blendMode) => - Underlying.Value!.GetRenderDrawBlendMode(renderer, blendMode); + public static byte GetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ) => Underlying.Value!.GetRenderDrawBlendMode(renderer, blendMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderDrawBlendMode(RendererHandle renderer, Ref blendMode) + public static MaybeBool GetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) { fixed (BlendMode* __dsl_blendMode = blendMode) { - return (int)GetRenderDrawBlendMode(renderer, __dsl_blendMode); + return (MaybeBool)(byte)GetRenderDrawBlendMode(renderer, __dsl_blendMode); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderDrawColor( + public static byte GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, @@ -28411,12 +34268,13 @@ public static int GetRenderDrawColor( [NativeTypeName("Uint8 *")] byte* a ) => Underlying.Value!.GetRenderDrawColor(renderer, r, g, b, a); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderDrawColor( + public static MaybeBool GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -28429,15 +34287,17 @@ public static int GetRenderDrawColor( fixed (byte* __dsl_g = g) fixed (byte* __dsl_r = r) { - return (int)GetRenderDrawColor(renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + return (MaybeBool) + (byte)GetRenderDrawColor(renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderDrawColorFloat( + public static byte GetRenderDrawColorFloat( RendererHandle renderer, float* r, float* g, @@ -28445,12 +34305,13 @@ public static int GetRenderDrawColorFloat( float* a ) => Underlying.Value!.GetRenderDrawColorFloat(renderer, r, g, b, a); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderDrawColorFloat( + public static MaybeBool GetRenderDrawColorFloat( RendererHandle renderer, Ref r, Ref g, @@ -28463,7 +34324,8 @@ Ref a fixed (float* __dsl_g = g) fixed (float* __dsl_r = r) { - return (int)GetRenderDrawColorFloat(renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + return (MaybeBool) + (byte)GetRenderDrawColorFloat(renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); } } @@ -28495,29 +34357,39 @@ public static RendererHandle GetRenderer(WindowHandle window) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static RendererHandle GetRendererFromTexture(TextureHandle texture) => + public static RendererHandle GetRendererFromTexture(Texture* texture) => Underlying.Value!.GetRendererFromTexture(texture); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetRendererInfo(RendererHandle renderer, RendererInfo* info) => - Underlying.Value!.GetRendererInfo(renderer, info); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRendererInfo(RendererHandle renderer, Ref info) + public static RendererHandle GetRendererFromTexture(Ref texture) { - fixed (RendererInfo* __dsl_info = info) + fixed (Texture* __dsl_texture = texture) { - return (int)GetRendererInfo(renderer, __dsl_info); + return (RendererHandle)GetRendererFromTexture(__dsl_texture); } } + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRendererName(RendererHandle renderer) => + Underlying.Value!.GetRendererName(renderer); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetRendererNameRaw(RendererHandle renderer) => + Underlying.Value!.GetRendererNameRaw(renderer); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererProperties")] [MethodImpl( @@ -28526,43 +34398,63 @@ public static int GetRendererInfo(RendererHandle renderer, Ref inf public static uint GetRendererProperties(RendererHandle renderer) => Underlying.Value!.GetRendererProperties(renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderLogicalPresentation( + public static byte GetRenderLogicalPresentation( RendererHandle renderer, int* w, int* h, - RendererLogicalPresentation* mode, - ScaleMode* scale_mode - ) => Underlying.Value!.GetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + RendererLogicalPresentation* mode + ) => Underlying.Value!.GetRenderLogicalPresentation(renderer, w, h, mode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderLogicalPresentation( + public static MaybeBool GetRenderLogicalPresentation( RendererHandle renderer, Ref w, Ref h, - Ref mode, - Ref scale_mode + Ref mode ) { - fixed (ScaleMode* __dsl_scale_mode = scale_mode) fixed (RendererLogicalPresentation* __dsl_mode = mode) fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetRenderLogicalPresentation( - renderer, - __dsl_w, - __dsl_h, - __dsl_mode, - __dsl_scale_mode - ); + return (MaybeBool) + (byte)GetRenderLogicalPresentation(renderer, __dsl_w, __dsl_h, __dsl_mode); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentationRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetRenderLogicalPresentationRect(RendererHandle renderer, FRect* rect) => + Underlying.Value!.GetRenderLogicalPresentationRect(renderer, rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentationRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRenderLogicalPresentationRect( + RendererHandle renderer, + Ref rect + ) + { + fixed (FRect* __dsl_rect = rect) + { + return (MaybeBool) + (byte)GetRenderLogicalPresentationRect(renderer, __dsl_rect); } } @@ -28596,40 +34488,70 @@ public static Ptr GetRenderMetalLayer(RendererHandle renderer) => public static void* GetRenderMetalLayerRaw(RendererHandle renderer) => Underlying.Value!.GetRenderMetalLayerRaw(renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderOutputSize(RendererHandle renderer, int* w, int* h) => + public static byte GetRenderOutputSize(RendererHandle renderer, int* w, int* h) => Underlying.Value!.GetRenderOutputSize(renderer, w, h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderOutputSize(RendererHandle renderer, Ref w, Ref h) + public static MaybeBool GetRenderOutputSize( + RendererHandle renderer, + Ref w, + Ref h + ) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetRenderOutputSize(renderer, __dsl_w, __dsl_h); + return (MaybeBool)(byte)GetRenderOutputSize(renderer, __dsl_w, __dsl_h); } } + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderSafeArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetRenderSafeArea(RendererHandle renderer, Rect* rect) => + Underlying.Value!.GetRenderSafeArea(renderer, rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderSafeArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRenderSafeArea(RendererHandle renderer, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + { + return (MaybeBool)(byte)GetRenderSafeArea(renderer, __dsl_rect); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderScale(RendererHandle renderer, float* scaleX, float* scaleY) => + public static byte GetRenderScale(RendererHandle renderer, float* scaleX, float* scaleY) => Underlying.Value!.GetRenderScale(renderer, scaleX, scaleY); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderScale( + public static MaybeBool GetRenderScale( RendererHandle renderer, Ref scaleX, Ref scaleY @@ -28638,54 +34560,66 @@ Ref scaleY fixed (float* __dsl_scaleY = scaleY) fixed (float* __dsl_scaleX = scaleX) { - return (int)GetRenderScale(renderer, __dsl_scaleX, __dsl_scaleY); + return (MaybeBool)(byte)GetRenderScale(renderer, __dsl_scaleX, __dsl_scaleY); } } + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static TextureHandle GetRenderTarget(RendererHandle renderer) => + public static Ptr GetRenderTarget(RendererHandle renderer) => Underlying.Value!.GetRenderTarget(renderer); + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Texture* GetRenderTargetRaw(RendererHandle renderer) => + Underlying.Value!.GetRenderTargetRaw(renderer); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderViewport(RendererHandle renderer, Rect* rect) => + public static byte GetRenderViewport(RendererHandle renderer, Rect* rect) => Underlying.Value!.GetRenderViewport(renderer, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderViewport(RendererHandle renderer, Ref rect) + public static MaybeBool GetRenderViewport(RendererHandle renderer, Ref rect) { fixed (Rect* __dsl_rect = rect) { - return (int)GetRenderViewport(renderer, __dsl_rect); + return (MaybeBool)(byte)GetRenderViewport(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderVSync(RendererHandle renderer, int* vsync) => + public static byte GetRenderVSync(RendererHandle renderer, int* vsync) => Underlying.Value!.GetRenderVSync(renderer, vsync); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetRenderVSync(RendererHandle renderer, Ref vsync) + public static MaybeBool GetRenderVSync(RendererHandle renderer, Ref vsync) { fixed (int* __dsl_vsync = vsync) { - return (int)GetRenderVSync(renderer, __dsl_vsync); + return (MaybeBool)(byte)GetRenderVSync(renderer, __dsl_vsync); } } @@ -28717,11 +34651,12 @@ public static WindowHandle GetRenderWindow(RendererHandle renderer) => )] public static void GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b - ) => Underlying.Value!.GetRGB(pixel, format, r, g, b); + ) => Underlying.Value!.GetRGB(pixel, format, palette, r, g, b); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] @@ -28730,7 +34665,8 @@ public static void GetRGB( )] public static void GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b @@ -28739,9 +34675,10 @@ public static void GetRGB( fixed (byte* __dsl_b = b) fixed (byte* __dsl_g = g) fixed (byte* __dsl_r = r) - fixed (PixelFormat* __dsl_format = format) + fixed (Palette* __dsl_palette = palette) + fixed (PixelFormatDetails* __dsl_format = format) { - GetRGB(pixel, __dsl_format, __dsl_r, __dsl_g, __dsl_b); + GetRGB(pixel, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b); } } @@ -28751,12 +34688,13 @@ public static void GetRGB( )] public static void GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b, [NativeTypeName("Uint8 *")] byte* a - ) => Underlying.Value!.GetRgba(pixel, format, r, g, b, a); + ) => Underlying.Value!.GetRgba(pixel, format, palette, r, g, b, a); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] @@ -28765,7 +34703,8 @@ public static void GetRgba( )] public static void GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b, @@ -28776,18 +34715,43 @@ public static void GetRgba( fixed (byte* __dsl_b = b) fixed (byte* __dsl_g = g) fixed (byte* __dsl_r = r) - fixed (PixelFormat* __dsl_format = format) + fixed (Palette* __dsl_palette = palette) + fixed (PixelFormatDetails* __dsl_format = format) { - GetRgba(pixel, __dsl_format, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + GetRgba(pixel, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b, __dsl_a); } } + [NativeFunction("SDL3", EntryPoint = "SDL_GetSandbox")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Sandbox GetSandbox() => Underlying.Value!.GetSandbox(); + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key) => - Underlying.Value!.GetScancodeFromKey(key); + public static Scancode GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] ushort* modstate + ) => Underlying.Value!.GetScancodeFromKey(key, modstate); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Scancode GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] Ref modstate + ) + { + fixed (ushort* __dsl_modstate = modstate) + { + return (Scancode)GetScancodeFromKey(key, __dsl_modstate); + } + } [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromName")] [MethodImpl( @@ -28834,85 +34798,75 @@ public static Ptr GetScancodeName(Scancode scancode) => public static uint GetSemaphoreValue(SemaphoreHandle sem) => Underlying.Value!.GetSemaphoreValue(sem); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSensorData(SensorHandle sensor, float* data, int num_values) => + public static byte GetSensorData(SensorHandle sensor, float* data, int num_values) => Underlying.Value!.GetSensorData(sensor, data, num_values); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSensorData(SensorHandle sensor, Ref data, int num_values) + public static MaybeBool GetSensorData( + SensorHandle sensor, + Ref data, + int num_values + ) { fixed (float* __dsl_data = data) { - return (int)GetSensorData(sensor, __dsl_data, num_values); + return (MaybeBool)(byte)GetSensorData(sensor, __dsl_data, num_values); } } - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static SensorHandle GetSensorFromInstanceID( + public static SensorHandle GetSensorFromID( [NativeTypeName("SDL_SensorID")] uint instance_id - ) => Underlying.Value!.GetSensorFromInstanceID(instance_id); + ) => Underlying.Value!.GetSensorFromID(instance_id); [return: NativeTypeName("SDL_SensorID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint GetSensorInstanceID(SensorHandle sensor) => - Underlying.Value!.GetSensorInstanceID(sensor); + public static uint GetSensorID(SensorHandle sensor) => + Underlying.Value!.GetSensorID(sensor); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetSensorInstanceName( - [NativeTypeName("SDL_SensorID")] uint instance_id - ) => Underlying.Value!.GetSensorInstanceName(instance_id); + public static Ptr GetSensorName(SensorHandle sensor) => + Underlying.Value!.GetSensorName(sensor); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static sbyte* GetSensorInstanceNameRaw( - [NativeTypeName("SDL_SensorID")] uint instance_id - ) => Underlying.Value!.GetSensorInstanceNameRaw(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceNonPortableType")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetSensorInstanceNonPortableType( - [NativeTypeName("SDL_SensorID")] uint instance_id - ) => Underlying.Value!.GetSensorInstanceNonPortableType(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceType")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static SensorType GetSensorInstanceType( + public static Ptr GetSensorNameForID( [NativeTypeName("SDL_SensorID")] uint instance_id - ) => Underlying.Value!.GetSensorInstanceType(instance_id); + ) => Underlying.Value!.GetSensorNameForID(instance_id); [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNameForID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetSensorName(SensorHandle sensor) => - Underlying.Value!.GetSensorName(sensor); + public static sbyte* GetSensorNameForIDRaw( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => Underlying.Value!.GetSensorNameForIDRaw(instance_id); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] @@ -28929,6 +34883,14 @@ public static Ptr GetSensorName(SensorHandle sensor) => public static int GetSensorNonPortableType(SensorHandle sensor) => Underlying.Value!.GetSensorNonPortableType(sensor); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableTypeForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSensorNonPortableTypeForID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => Underlying.Value!.GetSensorNonPortableTypeForID(instance_id); + [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorProperties")] [MethodImpl( @@ -28965,30 +34927,46 @@ public static Ptr GetSensors(Ref count) public static SensorType GetSensorType(SensorHandle sensor) => Underlying.Value!.GetSensorType(sensor); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorTypeForID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SensorType GetSensorTypeForID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => Underlying.Value!.GetSensorTypeForID(instance_id); + [NativeFunction("SDL3", EntryPoint = "SDL_GetSilenceValueForFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSilenceValueForFormat( - [NativeTypeName("SDL_AudioFormat")] ushort format - ) => Underlying.Value!.GetSilenceValueForFormat(format); + public static int GetSilenceValueForFormat(AudioFormat format) => + Underlying.Value!.GetSilenceValueForFormat(format); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSIMDAlignment")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static nuint GetSimdAlignment() => Underlying.Value!.GetSimdAlignment(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetStorageFileSize( + public static byte GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("Uint64 *")] ulong* length ) => Underlying.Value!.GetStorageFileSize(storage, path, length); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetStorageFileSize( + public static MaybeBool GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("Uint64 *")] Ref length @@ -28997,26 +34975,28 @@ public static int GetStorageFileSize( fixed (ulong* __dsl_length = length) fixed (sbyte* __dsl_path = path) { - return (int)GetStorageFileSize(storage, __dsl_path, __dsl_length); + return (MaybeBool)(byte)GetStorageFileSize(storage, __dsl_path, __dsl_length); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetStoragePathInfo( + public static byte GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, PathInfo* info ) => Underlying.Value!.GetStoragePathInfo(storage, path, info); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetStoragePathInfo( + public static MaybeBool GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref info @@ -29025,7 +35005,7 @@ Ref info fixed (PathInfo* __dsl_info = info) fixed (sbyte* __dsl_path = path) { - return (int)GetStoragePathInfo(storage, __dsl_path, __dsl_info); + return (MaybeBool)(byte)GetStoragePathInfo(storage, __dsl_path, __dsl_info); } } @@ -29067,21 +35047,23 @@ public static Ptr GetStringProperty( } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceAlphaMod( + public static byte GetSurfaceAlphaMod( Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha ) => Underlying.Value!.GetSurfaceAlphaMod(surface, alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceAlphaMod( + public static MaybeBool GetSurfaceAlphaMod( Ref surface, [NativeTypeName("Uint8 *")] Ref alpha ) @@ -29089,67 +35071,78 @@ public static int GetSurfaceAlphaMod( fixed (byte* __dsl_alpha = alpha) fixed (Surface* __dsl_surface = surface) { - return (int)GetSurfaceAlphaMod(__dsl_surface, __dsl_alpha); + return (MaybeBool)(byte)GetSurfaceAlphaMod(__dsl_surface, __dsl_alpha); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode) => - Underlying.Value!.GetSurfaceBlendMode(surface, blendMode); + public static byte GetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ) => Underlying.Value!.GetSurfaceBlendMode(surface, blendMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceBlendMode(Ref surface, Ref blendMode) + public static MaybeBool GetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) { fixed (BlendMode* __dsl_blendMode = blendMode) fixed (Surface* __dsl_surface = surface) { - return (int)GetSurfaceBlendMode(__dsl_surface, __dsl_blendMode); + return (MaybeBool)(byte)GetSurfaceBlendMode(__dsl_surface, __dsl_blendMode); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceClipRect(Surface* surface, Rect* rect) => + public static byte GetSurfaceClipRect(Surface* surface, Rect* rect) => Underlying.Value!.GetSurfaceClipRect(surface, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceClipRect(Ref surface, Ref rect) + public static MaybeBool GetSurfaceClipRect(Ref surface, Ref rect) { fixed (Rect* __dsl_rect = rect) fixed (Surface* __dsl_surface = surface) { - return (int)GetSurfaceClipRect(__dsl_surface, __dsl_rect); + return (MaybeBool)(byte)GetSurfaceClipRect(__dsl_surface, __dsl_rect); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceColorKey( + public static byte GetSurfaceColorKey( Surface* surface, [NativeTypeName("Uint32 *")] uint* key ) => Underlying.Value!.GetSurfaceColorKey(surface, key); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceColorKey( + public static MaybeBool GetSurfaceColorKey( Ref surface, [NativeTypeName("Uint32 *")] Ref key ) @@ -29157,27 +35150,29 @@ public static int GetSurfaceColorKey( fixed (uint* __dsl_key = key) fixed (Surface* __dsl_surface = surface) { - return (int)GetSurfaceColorKey(__dsl_surface, __dsl_key); + return (MaybeBool)(byte)GetSurfaceColorKey(__dsl_surface, __dsl_key); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceColorMod( + public static byte GetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ) => Underlying.Value!.GetSurfaceColorMod(surface, r, g, b); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceColorMod( + public static MaybeBool GetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -29189,7 +35184,8 @@ public static int GetSurfaceColorMod( fixed (byte* __dsl_r = r) fixed (Surface* __dsl_surface = surface) { - return (int)GetSurfaceColorMod(__dsl_surface, __dsl_r, __dsl_g, __dsl_b); + return (MaybeBool) + (byte)GetSurfaceColorMod(__dsl_surface, __dsl_r, __dsl_g, __dsl_b); } } @@ -29197,20 +35193,60 @@ public static int GetSurfaceColorMod( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceColorspace(Surface* surface, Colorspace* colorspace) => - Underlying.Value!.GetSurfaceColorspace(surface, colorspace); + public static Colorspace GetSurfaceColorspace(Surface* surface) => + Underlying.Value!.GetSurfaceColorspace(surface); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetSurfaceColorspace(Ref surface, Ref colorspace) + public static Colorspace GetSurfaceColorspace(Ref surface) { - fixed (Colorspace* __dsl_colorspace = colorspace) fixed (Surface* __dsl_surface = surface) { - return (int)GetSurfaceColorspace(__dsl_surface, __dsl_colorspace); + return (Colorspace)GetSurfaceColorspace(__dsl_surface); + } + } + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface** GetSurfaceImages(Surface* surface, int* count) => + Underlying.Value!.GetSurfaceImages(surface, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GetSurfaceImages(Ref surface, Ref count) + { + fixed (int* __dsl_count = count) + fixed (Surface* __dsl_surface = surface) + { + return (Surface**)GetSurfaceImages(__dsl_surface, __dsl_count); + } + } + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Palette* GetSurfacePalette(Surface* surface) => + Underlying.Value!.GetSurfacePalette(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetSurfacePalette(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (Palette*)GetSurfacePalette(__dsl_surface); } } @@ -29248,89 +35284,135 @@ public static uint GetSurfaceProperties(Ref surface) )] public static SystemTheme GetSystemTheme() => Underlying.Value!.GetSystemTheme(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextInputArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetTextInputArea(WindowHandle window, Rect* rect, int* cursor) => + Underlying.Value!.GetTextInputArea(window, rect, cursor); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextInputArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetTextInputArea( + WindowHandle window, + Ref rect, + Ref cursor + ) + { + fixed (int* __dsl_cursor = cursor) + fixed (Rect* __dsl_rect = rect) + { + return (MaybeBool)(byte)GetTextInputArea(window, __dsl_rect, __dsl_cursor); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureAlphaMod( - TextureHandle texture, + public static byte GetTextureAlphaMod( + Texture* texture, [NativeTypeName("Uint8 *")] byte* alpha ) => Underlying.Value!.GetTextureAlphaMod(texture, alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureAlphaMod( - TextureHandle texture, + public static MaybeBool GetTextureAlphaMod( + Ref texture, [NativeTypeName("Uint8 *")] Ref alpha ) { fixed (byte* __dsl_alpha = alpha) + fixed (Texture* __dsl_texture = texture) { - return (int)GetTextureAlphaMod(texture, __dsl_alpha); + return (MaybeBool)(byte)GetTextureAlphaMod(__dsl_texture, __dsl_alpha); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureAlphaModFloat(TextureHandle texture, float* alpha) => + public static byte GetTextureAlphaModFloat(Texture* texture, float* alpha) => Underlying.Value!.GetTextureAlphaModFloat(texture, alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureAlphaModFloat(TextureHandle texture, Ref alpha) + public static MaybeBool GetTextureAlphaModFloat( + Ref texture, + Ref alpha + ) { fixed (float* __dsl_alpha = alpha) + fixed (Texture* __dsl_texture = texture) { - return (int)GetTextureAlphaModFloat(texture, __dsl_alpha); + return (MaybeBool)(byte)GetTextureAlphaModFloat(__dsl_texture, __dsl_alpha); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureBlendMode(TextureHandle texture, BlendMode* blendMode) => - Underlying.Value!.GetTextureBlendMode(texture, blendMode); + public static byte GetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ) => Underlying.Value!.GetTextureBlendMode(texture, blendMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureBlendMode(TextureHandle texture, Ref blendMode) + public static MaybeBool GetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) { fixed (BlendMode* __dsl_blendMode = blendMode) + fixed (Texture* __dsl_texture = texture) { - return (int)GetTextureBlendMode(texture, __dsl_blendMode); + return (MaybeBool)(byte)GetTextureBlendMode(__dsl_texture, __dsl_blendMode); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureColorMod( - TextureHandle texture, + public static byte GetTextureColorMod( + Texture* texture, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ) => Underlying.Value!.GetTextureColorMod(texture, r, g, b); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureColorMod( - TextureHandle texture, + public static MaybeBool GetTextureColorMod( + Ref texture, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b @@ -29339,29 +35421,33 @@ public static int GetTextureColorMod( fixed (byte* __dsl_b = b) fixed (byte* __dsl_g = g) fixed (byte* __dsl_r = r) + fixed (Texture* __dsl_texture = texture) { - return (int)GetTextureColorMod(texture, __dsl_r, __dsl_g, __dsl_b); + return (MaybeBool) + (byte)GetTextureColorMod(__dsl_texture, __dsl_r, __dsl_g, __dsl_b); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureColorModFloat( - TextureHandle texture, + public static byte GetTextureColorModFloat( + Texture* texture, float* r, float* g, float* b ) => Underlying.Value!.GetTextureColorModFloat(texture, r, g, b); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureColorModFloat( - TextureHandle texture, + public static MaybeBool GetTextureColorModFloat( + Ref texture, Ref r, Ref g, Ref b @@ -29370,8 +35456,10 @@ Ref b fixed (float* __dsl_b = b) fixed (float* __dsl_g = g) fixed (float* __dsl_r = r) + fixed (Texture* __dsl_texture = texture) { - return (int)GetTextureColorModFloat(texture, __dsl_r, __dsl_g, __dsl_b); + return (MaybeBool) + (byte)GetTextureColorModFloat(__dsl_texture, __dsl_r, __dsl_g, __dsl_b); } } @@ -29380,26 +35468,74 @@ Ref b [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint GetTextureProperties(TextureHandle texture) => + public static uint GetTextureProperties(Texture* texture) => Underlying.Value!.GetTextureProperties(texture); + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetTextureProperties(Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + return (uint)GetTextureProperties(__dsl_texture); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureScaleMode(TextureHandle texture, ScaleMode* scaleMode) => + public static byte GetTextureScaleMode(Texture* texture, ScaleMode* scaleMode) => Underlying.Value!.GetTextureScaleMode(texture, scaleMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetTextureScaleMode(TextureHandle texture, Ref scaleMode) + public static MaybeBool GetTextureScaleMode( + Ref texture, + Ref scaleMode + ) { fixed (ScaleMode* __dsl_scaleMode = scaleMode) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)GetTextureScaleMode(__dsl_texture, __dsl_scaleMode); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetTextureSize(Texture* texture, float* w, float* h) => + Underlying.Value!.GetTextureSize(texture, w, h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetTextureSize( + Ref texture, + Ref w, + Ref h + ) + { + fixed (float* __dsl_h = h) + fixed (float* __dsl_w = w) + fixed (Texture* __dsl_texture = texture) { - return (int)GetTextureScaleMode(texture, __dsl_scaleMode); + return (MaybeBool)(byte)GetTextureSize(__dsl_texture, __dsl_w, __dsl_h); } } @@ -29442,20 +35578,25 @@ public static Ptr GetThreadName(ThreadHandle thread) => )] public static ulong GetTicksNS() => Underlying.Value!.GetTicksNS(); - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GetTLS([NativeTypeName("SDL_TLSID")] uint id) => + public static void* GetTLS([NativeTypeName("SDL_TLSID *")] AtomicInt* id) => Underlying.Value!.GetTLS(id); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void* GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id) => - Underlying.Value!.GetTLSRaw(id); + public static Ptr GetTLS([NativeTypeName("SDL_TLSID *")] Ref id) + { + fixed (AtomicInt* __dsl_id = id) + { + return (void*)GetTLS(__dsl_id); + } + } [return: NativeTypeName("const char *")] [Transformed] @@ -29530,7 +35671,7 @@ Ref count } } - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] [MethodImpl( @@ -29539,7 +35680,7 @@ Ref count public static Ptr GetUserFolder(Folder folder) => Underlying.Value!.GetUserFolder(folder); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -29551,20 +35692,7 @@ public static Ptr GetUserFolder(Folder folder) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetVersion(Version* ver) => Underlying.Value!.GetVersion(ver); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetVersion")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetVersion(Ref ver) - { - fixed (Version* __dsl_ver = ver) - { - return (int)GetVersion(__dsl_ver); - } - } + public static int GetVersion() => Underlying.Value!.GetVersion(); [return: NativeTypeName("const char *")] [Transformed] @@ -29583,11 +35711,43 @@ public static Ptr GetVideoDriver(int index) => public static sbyte* GetVideoDriverRaw(int index) => Underlying.Value!.GetVideoDriverRaw(index); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowAspectRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetWindowAspectRatio( + WindowHandle window, + float* min_aspect, + float* max_aspect + ) => Underlying.Value!.GetWindowAspectRatio(window, min_aspect, max_aspect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowAspectRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetWindowAspectRatio( + WindowHandle window, + Ref min_aspect, + Ref max_aspect + ) + { + fixed (float* __dsl_max_aspect = max_aspect) + fixed (float* __dsl_min_aspect = min_aspect) + { + return (MaybeBool) + (byte)GetWindowAspectRatio(window, __dsl_min_aspect, __dsl_max_aspect); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowBordersSize( + public static byte GetWindowBordersSize( WindowHandle window, int* top, int* left, @@ -29595,12 +35755,13 @@ public static int GetWindowBordersSize( int* right ) => Underlying.Value!.GetWindowBordersSize(window, top, left, bottom, right); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowBordersSize( + public static MaybeBool GetWindowBordersSize( WindowHandle window, Ref top, Ref left, @@ -29613,13 +35774,14 @@ Ref right fixed (int* __dsl_left = left) fixed (int* __dsl_top = top) { - return (int)GetWindowBordersSize( - window, - __dsl_top, - __dsl_left, - __dsl_bottom, - __dsl_right - ); + return (MaybeBool) + (byte)GetWindowBordersSize( + window, + __dsl_top, + __dsl_left, + __dsl_bottom, + __dsl_right + ); } } @@ -29635,9 +35797,32 @@ public static float GetWindowDisplayScale(WindowHandle window) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint GetWindowFlags(WindowHandle window) => + public static ulong GetWindowFlags(WindowHandle window) => Underlying.Value!.GetWindowFlags(window); + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static WindowHandle GetWindowFromEvent( + [NativeTypeName("const SDL_Event *")] Event* @event + ) => Underlying.Value!.GetWindowFromEvent(@event); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static WindowHandle GetWindowFromEvent( + [NativeTypeName("const SDL_Event *")] Ref @event + ) + { + fixed (Event* __dsl_event = @event) + { + return (WindowHandle)GetWindowFromEvent(__dsl_event); + } + } + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -29695,80 +35880,92 @@ public static Ptr GetWindowICCProfile( public static uint GetWindowID(WindowHandle window) => Underlying.Value!.GetWindowID(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetWindowKeyboardGrab(WindowHandle window) => + public static MaybeBool GetWindowKeyboardGrab(WindowHandle window) => Underlying.Value!.GetWindowKeyboardGrab(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowKeyboardGrabRaw(WindowHandle window) => + public static byte GetWindowKeyboardGrabRaw(WindowHandle window) => Underlying.Value!.GetWindowKeyboardGrabRaw(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowMaximumSize(WindowHandle window, int* w, int* h) => + public static byte GetWindowMaximumSize(WindowHandle window, int* w, int* h) => Underlying.Value!.GetWindowMaximumSize(window, w, h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowMaximumSize(WindowHandle window, Ref w, Ref h) + public static MaybeBool GetWindowMaximumSize( + WindowHandle window, + Ref w, + Ref h + ) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetWindowMaximumSize(window, __dsl_w, __dsl_h); + return (MaybeBool)(byte)GetWindowMaximumSize(window, __dsl_w, __dsl_h); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowMinimumSize(WindowHandle window, int* w, int* h) => + public static byte GetWindowMinimumSize(WindowHandle window, int* w, int* h) => Underlying.Value!.GetWindowMinimumSize(window, w, h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowMinimumSize(WindowHandle window, Ref w, Ref h) + public static MaybeBool GetWindowMinimumSize( + WindowHandle window, + Ref w, + Ref h + ) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetWindowMinimumSize(window, __dsl_w, __dsl_h); + return (MaybeBool)(byte)GetWindowMinimumSize(window, __dsl_w, __dsl_h); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GetWindowMouseGrab(WindowHandle window) => + public static MaybeBool GetWindowMouseGrab(WindowHandle window) => Underlying.Value!.GetWindowMouseGrab(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowMouseGrabRaw(WindowHandle window) => + public static byte GetWindowMouseGrabRaw(WindowHandle window) => Underlying.Value!.GetWindowMouseGrabRaw(window); [return: NativeTypeName("const SDL_Rect *")] @@ -29792,21 +35989,8 @@ public static Ptr GetWindowMouseRect(WindowHandle window) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowOpacity(WindowHandle window, float* out_opacity) => - Underlying.Value!.GetWindowOpacity(window, out_opacity); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int GetWindowOpacity(WindowHandle window, Ref out_opacity) - { - fixed (float* __dsl_out_opacity = out_opacity) - { - return (int)GetWindowOpacity(window, __dsl_out_opacity); - } - } + public static float GetWindowOpacity(WindowHandle window) => + Underlying.Value!.GetWindowOpacity(window); [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowParent")] [MethodImpl( @@ -29822,32 +36006,33 @@ public static WindowHandle GetWindowParent(WindowHandle window) => public static float GetWindowPixelDensity(WindowHandle window) => Underlying.Value!.GetWindowPixelDensity(window); - [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint GetWindowPixelFormat(WindowHandle window) => + public static PixelFormat GetWindowPixelFormat(WindowHandle window) => Underlying.Value!.GetWindowPixelFormat(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowPosition(WindowHandle window, int* x, int* y) => + public static byte GetWindowPosition(WindowHandle window, int* x, int* y) => Underlying.Value!.GetWindowPosition(window, x, y); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowPosition(WindowHandle window, Ref x, Ref y) + public static MaybeBool GetWindowPosition(WindowHandle window, Ref x, Ref y) { fixed (int* __dsl_y = y) fixed (int* __dsl_x = x) { - return (int)GetWindowPosition(window, __dsl_x, __dsl_y); + return (MaybeBool)(byte)GetWindowPosition(window, __dsl_x, __dsl_y); } } @@ -29859,45 +36044,111 @@ public static int GetWindowPosition(WindowHandle window, Ref x, Ref y) public static uint GetWindowProperties(WindowHandle window) => Underlying.Value!.GetWindowProperties(window); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowRelativeMouseMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetWindowRelativeMouseMode(WindowHandle window) => + Underlying.Value!.GetWindowRelativeMouseMode(window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowRelativeMouseMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetWindowRelativeMouseModeRaw(WindowHandle window) => + Underlying.Value!.GetWindowRelativeMouseModeRaw(window); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindows")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static WindowHandle* GetWindows(int* count) => Underlying.Value!.GetWindows(count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindows")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindows(Ref count) + { + fixed (int* __dsl_count = count) + { + return (WindowHandle*)GetWindows(__dsl_count); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSafeArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetWindowSafeArea(WindowHandle window, Rect* rect) => + Underlying.Value!.GetWindowSafeArea(window, rect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSafeArea")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetWindowSafeArea(WindowHandle window, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + { + return (MaybeBool)(byte)GetWindowSafeArea(window, __dsl_rect); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowSize(WindowHandle window, int* w, int* h) => + public static byte GetWindowSize(WindowHandle window, int* w, int* h) => Underlying.Value!.GetWindowSize(window, w, h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowSize(WindowHandle window, Ref w, Ref h) + public static MaybeBool GetWindowSize(WindowHandle window, Ref w, Ref h) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetWindowSize(window, __dsl_w, __dsl_h); + return (MaybeBool)(byte)GetWindowSize(window, __dsl_w, __dsl_h); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowSizeInPixels(WindowHandle window, int* w, int* h) => + public static byte GetWindowSizeInPixels(WindowHandle window, int* w, int* h) => Underlying.Value!.GetWindowSizeInPixels(window, w, h); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetWindowSizeInPixels(WindowHandle window, Ref w, Ref h) + public static MaybeBool GetWindowSizeInPixels( + WindowHandle window, + Ref w, + Ref h + ) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)GetWindowSizeInPixels(window, __dsl_w, __dsl_h); + return (MaybeBool)(byte)GetWindowSizeInPixels(window, __dsl_w, __dsl_h); } } @@ -29916,6 +36167,28 @@ public static Ptr GetWindowSurface(WindowHandle window) => public static Surface* GetWindowSurfaceRaw(WindowHandle window) => Underlying.Value!.GetWindowSurfaceRaw(window); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurfaceVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetWindowSurfaceVSync(WindowHandle window, int* vsync) => + Underlying.Value!.GetWindowSurfaceVSync(window, vsync); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurfaceVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetWindowSurfaceVSync(WindowHandle window, Ref vsync) + { + fixed (int* __dsl_vsync = vsync) + { + return (MaybeBool)(byte)GetWindowSurfaceVSync(window, __dsl_vsync); + } + } + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] @@ -29934,100 +36207,86 @@ public static Ptr GetWindowTitle(WindowHandle window) => Underlying.Value!.GetWindowTitleRaw(window); [return: NativeTypeName("SDL_GLContext")] - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GLCreateContext(WindowHandle window) => + public static GLContextStateHandle GLCreateContext(WindowHandle window) => Underlying.Value!.GLCreateContext(window); - [return: NativeTypeName("SDL_GLContext")] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void* GLCreateContextRaw(WindowHandle window) => - Underlying.Value!.GLCreateContextRaw(window); - - [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DestroyContext")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context) => - Underlying.Value!.GLDeleteContext(context); + public static MaybeBool GLDestroyContext( + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => Underlying.Value!.GLDestroyContext(context); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DestroyContext")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLDeleteContext([NativeTypeName("SDL_GLContext")] Ref context) - { - fixed (void* __dsl_context = context) - { - return (int)GLDeleteContext(__dsl_context); - } - } + public static byte GLDestroyContextRaw( + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => Underlying.Value!.GLDestroyContextRaw(context); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => - Underlying.Value!.GLExtensionSupported(extension); + public static byte GLExtensionSupported( + [NativeTypeName("const char *")] sbyte* extension + ) => Underlying.Value!.GLExtensionSupported(extension); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool GLExtensionSupported( + public static MaybeBool GLExtensionSupported( [NativeTypeName("const char *")] Ref extension ) { fixed (sbyte* __dsl_extension = extension) { - return (MaybeBool)(int)GLExtensionSupported(__dsl_extension); + return (MaybeBool)(byte)GLExtensionSupported(__dsl_extension); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLGetAttribute(GLattr attr, int* value) => + public static byte GLGetAttribute(GLAttr attr, int* value) => Underlying.Value!.GLGetAttribute(attr, value); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLGetAttribute(GLattr attr, Ref value) + public static MaybeBool GLGetAttribute(GLAttr attr, Ref value) { fixed (int* __dsl_value = value) { - return (int)GLGetAttribute(attr, __dsl_value); + return (MaybeBool)(byte)GLGetAttribute(attr, __dsl_value); } } [return: NativeTypeName("SDL_GLContext")] - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr GLGetCurrentContext() => Underlying.Value!.GLGetCurrentContext(); - - [return: NativeTypeName("SDL_GLContext")] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void* GLGetCurrentContextRaw() => Underlying.Value!.GLGetCurrentContextRaw(); + public static GLContextStateHandle GLGetCurrentContext() => + Underlying.Value!.GLGetCurrentContext(); [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] [MethodImpl( @@ -30060,70 +36319,72 @@ public static FunctionPointer GLGetProcAddress( } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLGetSwapInterval(int* interval) => + public static byte GLGetSwapInterval(int* interval) => Underlying.Value!.GLGetSwapInterval(interval); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLGetSwapInterval(Ref interval) + public static MaybeBool GLGetSwapInterval(Ref interval) { fixed (int* __dsl_interval = interval) { - return (int)GLGetSwapInterval(__dsl_interval); + return (MaybeBool)(byte)GLGetSwapInterval(__dsl_interval); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => + public static byte GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => Underlying.Value!.GLLoadLibrary(path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLLoadLibrary([NativeTypeName("const char *")] Ref path) + public static MaybeBool GLLoadLibrary( + [NativeTypeName("const char *")] Ref path + ) { fixed (sbyte* __dsl_path = path) { - return (int)GLLoadLibrary(__dsl_path); + return (MaybeBool)(byte)GLLoadLibrary(__dsl_path); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLMakeCurrent( + public static MaybeBool GLMakeCurrent( WindowHandle window, - [NativeTypeName("SDL_GLContext")] void* context + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context ) => Underlying.Value!.GLMakeCurrent(window, context); - [Transformed] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLMakeCurrent( + public static byte GLMakeCurrentRaw( WindowHandle window, - [NativeTypeName("SDL_GLContext")] Ref context - ) - { - fixed (void* __dsl_context = context) - { - return (int)GLMakeCurrent(window, __dsl_context); - } - } + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => Underlying.Value!.GLMakeCurrentRaw(window, context); [NativeFunction("SDL3", EntryPoint = "SDL_GL_ResetAttributes")] [MethodImpl( @@ -30131,27 +36392,57 @@ public static int GLMakeCurrent( )] public static void GLResetAttributes() => Underlying.Value!.GLResetAttributes(); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetAttribute")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLSetAttribute(GLattr attr, int value) => + public static MaybeBool GLSetAttribute(GLAttr attr, int value) => Underlying.Value!.GLSetAttribute(attr, value); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetAttribute")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GLSetAttributeRaw(GLAttr attr, int value) => + Underlying.Value!.GLSetAttributeRaw(attr, value); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetSwapInterval")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLSetSwapInterval(int interval) => + public static MaybeBool GLSetSwapInterval(int interval) => Underlying.Value!.GLSetSwapInterval(interval); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetSwapInterval")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GLSetSwapIntervalRaw(int interval) => + Underlying.Value!.GLSetSwapIntervalRaw(interval); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GLSwapWindow(WindowHandle window) => + public static MaybeBool GLSwapWindow(WindowHandle window) => Underlying.Value!.GLSwapWindow(window); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GLSwapWindowRaw(WindowHandle window) => + Underlying.Value!.GLSwapWindowRaw(window); + [NativeFunction("SDL3", EntryPoint = "SDL_GL_UnloadLibrary")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -30166,7 +36457,7 @@ public static int GLSwapWindow(WindowHandle window) => public static sbyte** GlobDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ) => Underlying.Value!.GlobDirectory(path, pattern, flags, count); @@ -30179,7 +36470,7 @@ public static int GLSwapWindow(WindowHandle window) => public static Ptr2D GlobDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ) { @@ -30200,7 +36491,7 @@ Ref count StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ) => Underlying.Value!.GlobStorageDirectory(storage, path, pattern, flags, count); @@ -30214,7 +36505,7 @@ public static Ptr2D GlobStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ) { @@ -30232,31 +36523,11 @@ Ref count } } - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Guid GuidFromString([NativeTypeName("const char *")] sbyte* pchGUID) => - Underlying.Value!.GuidFromString(pchGUID); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static Guid GuidFromString([NativeTypeName("const char *")] Ref pchGUID) - { - fixed (sbyte* __dsl_pchGUID = pchGUID) - { - return (Guid)GuidFromString(__dsl_pchGUID); - } - } - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GuidToString( + public static void GuidToString( Guid guid, [NativeTypeName("char *")] sbyte* pszGUID, int cbGUID @@ -30267,7 +36538,7 @@ int cbGUID [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GuidToString( + public static void GuidToString( Guid guid, [NativeTypeName("char *")] Ref pszGUID, int cbGUID @@ -30275,387 +36546,387 @@ int cbGUID { fixed (sbyte* __dsl_pszGUID = pszGUID) { - return (int)GuidToString(guid, __dsl_pszGUID, cbGUID); + GuidToString(guid, __dsl_pszGUID, cbGUID); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HapticEffectSupported( + public static byte HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect ) => Underlying.Value!.HapticEffectSupported(haptic, effect); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HapticEffectSupported( + public static MaybeBool HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] Ref effect ) { fixed (HapticEffect* __dsl_effect = effect) { - return (MaybeBool)(int)HapticEffectSupported(haptic, __dsl_effect); + return (MaybeBool)(byte)HapticEffectSupported(haptic, __dsl_effect); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HapticRumbleSupported(HapticHandle haptic) => + public static MaybeBool HapticRumbleSupported(HapticHandle haptic) => Underlying.Value!.HapticRumbleSupported(haptic); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HapticRumbleSupportedRaw(HapticHandle haptic) => + public static byte HapticRumbleSupportedRaw(HapticHandle haptic) => Underlying.Value!.HapticRumbleSupportedRaw(haptic); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasAltiVec() => Underlying.Value!.HasAltiVec(); + public static MaybeBool HasAltiVec() => Underlying.Value!.HasAltiVec(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasAltiVecRaw() => Underlying.Value!.HasAltiVecRaw(); + public static byte HasAltiVecRaw() => Underlying.Value!.HasAltiVecRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasArmsimd() => Underlying.Value!.HasArmsimd(); + public static MaybeBool HasArmsimd() => Underlying.Value!.HasArmsimd(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasArmsimdRaw() => Underlying.Value!.HasArmsimdRaw(); + public static byte HasArmsimdRaw() => Underlying.Value!.HasArmsimdRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasAVX() => Underlying.Value!.HasAVX(); + public static MaybeBool HasAVX() => Underlying.Value!.HasAVX(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasAVX2() => Underlying.Value!.HasAVX2(); + public static MaybeBool HasAVX2() => Underlying.Value!.HasAVX2(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasAVX2Raw() => Underlying.Value!.HasAVX2Raw(); + public static byte HasAVX2Raw() => Underlying.Value!.HasAVX2Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasAVX512F() => Underlying.Value!.HasAVX512F(); + public static MaybeBool HasAVX512F() => Underlying.Value!.HasAVX512F(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasAVX512FRaw() => Underlying.Value!.HasAVX512FRaw(); + public static byte HasAVX512FRaw() => Underlying.Value!.HasAVX512FRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasAVXRaw() => Underlying.Value!.HasAVXRaw(); + public static byte HasAVXRaw() => Underlying.Value!.HasAVXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => + public static byte HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => Underlying.Value!.HasClipboardData(mime_type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasClipboardData( + public static MaybeBool HasClipboardData( [NativeTypeName("const char *")] Ref mime_type ) { fixed (sbyte* __dsl_mime_type = mime_type) { - return (MaybeBool)(int)HasClipboardData(__dsl_mime_type); + return (MaybeBool)(byte)HasClipboardData(__dsl_mime_type); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasClipboardText() => Underlying.Value!.HasClipboardText(); + public static MaybeBool HasClipboardText() => Underlying.Value!.HasClipboardText(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasClipboardTextRaw() => Underlying.Value!.HasClipboardTextRaw(); + public static byte HasClipboardTextRaw() => Underlying.Value!.HasClipboardTextRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => + public static MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => Underlying.Value!.HasEvent(type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasEventRaw([NativeTypeName("Uint32")] uint type) => + public static byte HasEventRaw([NativeTypeName("Uint32")] uint type) => Underlying.Value!.HasEventRaw(type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasEvents( + public static MaybeBool HasEvents( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ) => Underlying.Value!.HasEvents(minType, maxType); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasEventsRaw( + public static byte HasEventsRaw( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ) => Underlying.Value!.HasEventsRaw(minType, maxType); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasGamepad() => Underlying.Value!.HasGamepad(); + public static MaybeBool HasGamepad() => Underlying.Value!.HasGamepad(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasGamepadRaw() => Underlying.Value!.HasGamepadRaw(); + public static byte HasGamepadRaw() => Underlying.Value!.HasGamepadRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasJoystick() => Underlying.Value!.HasJoystick(); + public static MaybeBool HasJoystick() => Underlying.Value!.HasJoystick(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasJoystickRaw() => Underlying.Value!.HasJoystickRaw(); + public static byte HasJoystickRaw() => Underlying.Value!.HasJoystickRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasKeyboard() => Underlying.Value!.HasKeyboard(); + public static MaybeBool HasKeyboard() => Underlying.Value!.HasKeyboard(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasKeyboardRaw() => Underlying.Value!.HasKeyboardRaw(); + public static byte HasKeyboardRaw() => Underlying.Value!.HasKeyboardRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasLasx() => Underlying.Value!.HasLasx(); + public static MaybeBool HasLasx() => Underlying.Value!.HasLasx(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasLasxRaw() => Underlying.Value!.HasLasxRaw(); + public static byte HasLasxRaw() => Underlying.Value!.HasLasxRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasLSX() => Underlying.Value!.HasLSX(); + public static MaybeBool HasLSX() => Underlying.Value!.HasLSX(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasLSXRaw() => Underlying.Value!.HasLSXRaw(); + public static byte HasLSXRaw() => Underlying.Value!.HasLSXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasMMX() => Underlying.Value!.HasMMX(); + public static MaybeBool HasMMX() => Underlying.Value!.HasMMX(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasMMXRaw() => Underlying.Value!.HasMMXRaw(); + public static byte HasMMXRaw() => Underlying.Value!.HasMMXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasMouse() => Underlying.Value!.HasMouse(); + public static MaybeBool HasMouse() => Underlying.Value!.HasMouse(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasMouseRaw() => Underlying.Value!.HasMouseRaw(); + public static byte HasMouseRaw() => Underlying.Value!.HasMouseRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasNeon() => Underlying.Value!.HasNeon(); + public static MaybeBool HasNeon() => Underlying.Value!.HasNeon(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasNeonRaw() => Underlying.Value!.HasNeonRaw(); + public static byte HasNeonRaw() => Underlying.Value!.HasNeonRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasPrimarySelectionText() => + public static MaybeBool HasPrimarySelectionText() => Underlying.Value!.HasPrimarySelectionText(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasPrimarySelectionTextRaw() => + public static byte HasPrimarySelectionTextRaw() => Underlying.Value!.HasPrimarySelectionTextRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasProperty( + public static byte HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ) => Underlying.Value!.HasProperty(props, name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasProperty( + public static MaybeBool HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ) { fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)HasProperty(props, __dsl_name); + return (MaybeBool)(byte)HasProperty(props, __dsl_name); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasRectIntersection( + public static byte HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B ) => Underlying.Value!.HasRectIntersection(A, B); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasRectIntersection( + public static MaybeBool HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B ) @@ -30663,27 +36934,27 @@ public static MaybeBool HasRectIntersection( fixed (Rect* __dsl_B = B) fixed (Rect* __dsl_A = A) { - return (MaybeBool)(int)HasRectIntersection(__dsl_A, __dsl_B); + return (MaybeBool)(byte)HasRectIntersection(__dsl_A, __dsl_B); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasRectIntersectionFloat( + public static byte HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B ) => Underlying.Value!.HasRectIntersectionFloat(A, B); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasRectIntersectionFloat( + public static MaybeBool HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B ) @@ -30691,107 +36962,107 @@ public static MaybeBool HasRectIntersectionFloat( fixed (FRect* __dsl_B = B) fixed (FRect* __dsl_A = A) { - return (MaybeBool)(int)HasRectIntersectionFloat(__dsl_A, __dsl_B); + return (MaybeBool)(byte)HasRectIntersectionFloat(__dsl_A, __dsl_B); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasScreenKeyboardSupport() => + public static MaybeBool HasScreenKeyboardSupport() => Underlying.Value!.HasScreenKeyboardSupport(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasScreenKeyboardSupportRaw() => + public static byte HasScreenKeyboardSupportRaw() => Underlying.Value!.HasScreenKeyboardSupportRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasSSE() => Underlying.Value!.HasSSE(); + public static MaybeBool HasSSE() => Underlying.Value!.HasSSE(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasSSE2() => Underlying.Value!.HasSSE2(); + public static MaybeBool HasSSE2() => Underlying.Value!.HasSSE2(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasSSE2Raw() => Underlying.Value!.HasSSE2Raw(); + public static byte HasSSE2Raw() => Underlying.Value!.HasSSE2Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasSSE3() => Underlying.Value!.HasSSE3(); + public static MaybeBool HasSSE3() => Underlying.Value!.HasSSE3(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasSSE3Raw() => Underlying.Value!.HasSSE3Raw(); + public static byte HasSSE3Raw() => Underlying.Value!.HasSSE3Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasSSE41() => Underlying.Value!.HasSSE41(); + public static MaybeBool HasSSE41() => Underlying.Value!.HasSSE41(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasSSE41Raw() => Underlying.Value!.HasSSE41Raw(); + public static byte HasSSE41Raw() => Underlying.Value!.HasSSE41Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool HasSSE42() => Underlying.Value!.HasSSE42(); + public static MaybeBool HasSSE42() => Underlying.Value!.HasSSE42(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasSSE42Raw() => Underlying.Value!.HasSSE42Raw(); + public static byte HasSSE42Raw() => Underlying.Value!.HasSSE42Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HasSSERaw() => Underlying.Value!.HasSSERaw(); + public static byte HasSSERaw() => Underlying.Value!.HasSSERaw(); [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void HidBleScan([NativeTypeName("SDL_bool")] int active) => + public static void HidBleScan([NativeTypeName("bool")] byte active) => Underlying.Value!.HidBleScan(active); [Transformed] @@ -30799,7 +37070,7 @@ public static void HidBleScan([NativeTypeName("SDL_bool")] int active) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active) => + public static void HidBleScan([NativeTypeName("bool")] MaybeBool active) => Underlying.Value!.HidBleScan(active); [NativeFunction("SDL3", EntryPoint = "SDL_hid_close")] @@ -31236,39 +37507,89 @@ public static int HidWrite( } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HideCursor() => Underlying.Value!.HideCursor(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HideCursor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HideCursor() => Underlying.Value!.HideCursor(); + public static byte HideCursorRaw() => Underlying.Value!.HideCursorRaw(); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int HideWindow(WindowHandle window) => Underlying.Value!.HideWindow(window); + public static MaybeBool HideWindow(WindowHandle window) => + Underlying.Value!.HideWindow(window); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte HideWindowRaw(WindowHandle window) => + Underlying.Value!.HideWindowRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_Init")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int Init([NativeTypeName("Uint32")] uint flags) => + public static MaybeBool Init([NativeTypeName("SDL_InitFlags")] uint flags) => Underlying.Value!.Init(flags); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int InitHapticRumble(HapticHandle haptic) => + public static MaybeBool InitHapticRumble(HapticHandle haptic) => Underlying.Value!.InitHapticRumble(haptic); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte InitHapticRumbleRaw(HapticHandle haptic) => + Underlying.Value!.InitHapticRumbleRaw(haptic); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_Init")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte InitRaw([NativeTypeName("SDL_InitFlags")] uint flags) => + Underlying.Value!.InitRaw(flags); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_InitSubSystem")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int InitSubSystem([NativeTypeName("Uint32")] uint flags) => + public static MaybeBool InitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags) => Underlying.Value!.InitSubSystem(flags); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_InitSubSystem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte InitSubSystemRaw([NativeTypeName("SDL_InitFlags")] uint flags) => + Underlying.Value!.InitSubSystemRaw(flags); + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromConstMem")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -31376,122 +37697,137 @@ public static nuint IOvprintf( } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool IsGamepad( + public static MaybeBool IsGamepad( [NativeTypeName("SDL_JoystickID")] uint instance_id ) => Underlying.Value!.IsGamepad(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + public static byte IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => Underlying.Value!.IsGamepadRaw(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool IsJoystickHaptic(JoystickHandle joystick) => + public static MaybeBool IsJoystickHaptic(JoystickHandle joystick) => Underlying.Value!.IsJoystickHaptic(joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int IsJoystickHapticRaw(JoystickHandle joystick) => + public static byte IsJoystickHapticRaw(JoystickHandle joystick) => Underlying.Value!.IsJoystickHapticRaw(joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool IsJoystickVirtual( + public static MaybeBool IsJoystickVirtual( [NativeTypeName("SDL_JoystickID")] uint instance_id ) => Underlying.Value!.IsJoystickVirtual(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int IsJoystickVirtualRaw( + public static byte IsJoystickVirtualRaw( [NativeTypeName("SDL_JoystickID")] uint instance_id ) => Underlying.Value!.IsJoystickVirtualRaw(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool IsMouseHaptic() => Underlying.Value!.IsMouseHaptic(); + public static MaybeBool IsMouseHaptic() => Underlying.Value!.IsMouseHaptic(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int IsMouseHapticRaw() => Underlying.Value!.IsMouseHapticRaw(); + public static byte IsMouseHapticRaw() => Underlying.Value!.IsMouseHapticRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool IsTablet() => Underlying.Value!.IsTablet(); + public static MaybeBool IsTablet() => Underlying.Value!.IsTablet(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int IsTabletRaw() => Underlying.Value!.IsTabletRaw(); + public static byte IsTabletRaw() => Underlying.Value!.IsTabletRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool IsTV() => Underlying.Value!.IsTV(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte IsTVRaw() => Underlying.Value!.IsTVRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool JoystickConnected(JoystickHandle joystick) => + public static MaybeBool JoystickConnected(JoystickHandle joystick) => Underlying.Value!.JoystickConnected(joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int JoystickConnectedRaw(JoystickHandle joystick) => + public static byte JoystickConnectedRaw(JoystickHandle joystick) => Underlying.Value!.JoystickConnectedRaw(joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool JoystickEventsEnabled() => + public static MaybeBool JoystickEventsEnabled() => Underlying.Value!.JoystickEventsEnabled(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int JoystickEventsEnabledRaw() => + public static byte JoystickEventsEnabledRaw() => Underlying.Value!.JoystickEventsEnabledRaw(); [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP")] @@ -31520,7 +37856,7 @@ public static Ptr LoadBMP([NativeTypeName("const char *")] Ref f )] public static Surface* LoadBMPIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ) => Underlying.Value!.LoadBMPIO(src, closeio); [Transformed] @@ -31530,7 +37866,7 @@ public static Ptr LoadBMP([NativeTypeName("const char *")] Ref f )] public static Ptr LoadBMPIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) => Underlying.Value!.LoadBMPIO(src, closeio); [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile")] @@ -31566,7 +37902,7 @@ public static Ptr LoadFile( public static void* LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] nuint* datasize, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ) => Underlying.Value!.LoadFileIO(src, datasize, closeio); [Transformed] @@ -31577,12 +37913,12 @@ public static Ptr LoadFile( public static Ptr LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] Ref datasize, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) { fixed (nuint* __dsl_datasize = datasize) { - return (void*)LoadFileIO(src, __dsl_datasize, (int)closeio); + return (void*)LoadFileIO(src, __dsl_datasize, (byte)closeio); } } @@ -31592,7 +37928,7 @@ public static Ptr LoadFileIO( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static FunctionPointer LoadFunction( - void* handle, + SharedObjectHandle handle, [NativeTypeName("const char *")] sbyte* name ) => Underlying.Value!.LoadFunction(handle, name); @@ -31603,14 +37939,13 @@ public static FunctionPointer LoadFunction( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static FunctionPointer LoadFunction( - Ref handle, + SharedObjectHandle handle, [NativeTypeName("const char *")] Ref name ) { fixed (sbyte* __dsl_name = name) - fixed (void* __dsl_handle = handle) { - return (FunctionPointer)LoadFunction(__dsl_handle, __dsl_name); + return (FunctionPointer)LoadFunction(handle, __dsl_name); } } @@ -31618,39 +37953,44 @@ public static FunctionPointer LoadFunction( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void* LoadObject([NativeTypeName("const char *")] sbyte* sofile) => - Underlying.Value!.LoadObject(sofile); + public static SharedObjectHandle LoadObject( + [NativeTypeName("const char *")] sbyte* sofile + ) => Underlying.Value!.LoadObject(sofile); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static Ptr LoadObject([NativeTypeName("const char *")] Ref sofile) + public static SharedObjectHandle LoadObject( + [NativeTypeName("const char *")] Ref sofile + ) { fixed (sbyte* __dsl_sofile = sofile) { - return (void*)LoadObject(__dsl_sofile); + return (SharedObjectHandle)LoadObject(__dsl_sofile); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LoadWAV( + public static byte LoadWAV( [NativeTypeName("const char *")] sbyte* path, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ) => Underlying.Value!.LoadWAV(path, spec, audio_buf, audio_len); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LoadWAV( + public static MaybeBool LoadWAV( [NativeTypeName("const char *")] Ref path, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, @@ -31662,30 +38002,33 @@ public static int LoadWAV( fixed (AudioSpec* __dsl_spec = spec) fixed (sbyte* __dsl_path = path) { - return (int)LoadWAV(__dsl_path, __dsl_spec, __dsl_audio_buf, __dsl_audio_len); + return (MaybeBool) + (byte)LoadWAV(__dsl_path, __dsl_spec, __dsl_audio_buf, __dsl_audio_len); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LoadWAVIO( + public static byte LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio, + [NativeTypeName("bool")] byte closeio, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ) => Underlying.Value!.LoadWAVIO(src, closeio, spec, audio_buf, audio_len); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LoadWAVIO( + public static MaybeBool LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio, + [NativeTypeName("bool")] MaybeBool closeio, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, [NativeTypeName("Uint32 *")] Ref audio_len @@ -31695,23 +38038,34 @@ public static int LoadWAVIO( fixed (byte** __dsl_audio_buf = audio_buf) fixed (AudioSpec* __dsl_spec = spec) { - return (int)LoadWAVIO( - src, - (int)closeio, - __dsl_spec, - __dsl_audio_buf, - __dsl_audio_len - ); + return (MaybeBool) + (byte)LoadWAVIO( + src, + (byte)closeio, + __dsl_spec, + __dsl_audio_buf, + __dsl_audio_len + ); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LockAudioStream(AudioStreamHandle stream) => + public static MaybeBool LockAudioStream(AudioStreamHandle stream) => Underlying.Value!.LockAudioStream(stream); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte LockAudioStreamRaw(AudioStreamHandle stream) => + Underlying.Value!.LockAudioStreamRaw(stream); + [NativeFunction("SDL3", EntryPoint = "SDL_LockJoysticks")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -31724,12 +38078,23 @@ public static int LockAudioStream(AudioStreamHandle stream) => )] public static void LockMutex(MutexHandle mutex) => Underlying.Value!.LockMutex(mutex); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool LockProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.LockProperties(props); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => - Underlying.Value!.LockProperties(props); + public static byte LockPropertiesRaw([NativeTypeName("SDL_PropertiesID")] uint props) => + Underlying.Value!.LockPropertiesRaw(props); [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForReading")] [MethodImpl( @@ -31765,43 +38130,47 @@ public static void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @loc } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LockSurface(Surface* surface) => Underlying.Value!.LockSurface(surface); + public static byte LockSurface(Surface* surface) => Underlying.Value!.LockSurface(surface); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LockSurface(Ref surface) + public static MaybeBool LockSurface(Ref surface) { fixed (Surface* __dsl_surface = surface) { - return (int)LockSurface(__dsl_surface); + return (MaybeBool)(byte)LockSurface(__dsl_surface); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LockTexture( - TextureHandle texture, + public static byte LockTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, void** pixels, int* pitch ) => Underlying.Value!.LockTexture(texture, rect, pixels, pitch); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LockTexture( - TextureHandle texture, + public static MaybeBool LockTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D pixels, Ref pitch @@ -31810,46 +38179,45 @@ Ref pitch fixed (int* __dsl_pitch = pitch) fixed (void** __dsl_pixels = pixels) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)LockTexture(texture, __dsl_rect, __dsl_pixels, __dsl_pitch); + return (MaybeBool) + (byte)LockTexture(__dsl_texture, __dsl_rect, __dsl_pixels, __dsl_pitch); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LockTextureToSurface( - TextureHandle texture, + public static byte LockTextureToSurface( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, Surface** surface ) => Underlying.Value!.LockTextureToSurface(texture, rect, surface); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int LockTextureToSurface( - TextureHandle texture, + public static MaybeBool LockTextureToSurface( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D surface ) { fixed (Surface** __dsl_surface = surface) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)LockTextureToSurface(texture, __dsl_rect, __dsl_surface); + return (MaybeBool) + (byte)LockTextureToSurface(__dsl_texture, __dsl_rect, __dsl_surface); } } - [NativeFunction("SDL3", EntryPoint = "SDL_LogGetPriority")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static LogPriority LogGetPriority(int category) => - Underlying.Value!.LogGetPriority(category); - [NativeFunction("SDL3", EntryPoint = "SDL_LogMessageV")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -31880,37 +38248,18 @@ public static void LogMessageV( } } - [NativeFunction("SDL3", EntryPoint = "SDL_LogResetPriorities")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void LogResetPriorities() => Underlying.Value!.LogResetPriorities(); - - [NativeFunction("SDL3", EntryPoint = "SDL_LogSetAllPriority")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void LogSetAllPriority(LogPriority priority) => - Underlying.Value!.LogSetAllPriority(priority); - - [NativeFunction("SDL3", EntryPoint = "SDL_LogSetPriority")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static void LogSetPriority(int category, LogPriority priority) => - Underlying.Value!.LogSetPriority(category, priority); - [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static uint MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b - ) => Underlying.Value!.MapRGB(format, r, g, b); + ) => Underlying.Value!.MapRGB(format, palette, r, g, b); [return: NativeTypeName("Uint32")] [Transformed] @@ -31919,15 +38268,17 @@ public static uint MapRGB( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static uint MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ) { - fixed (PixelFormat* __dsl_format = format) + fixed (Palette* __dsl_palette = palette) + fixed (PixelFormatDetails* __dsl_format = format) { - return (uint)MapRGB(__dsl_format, r, g, b); + return (uint)MapRGB(__dsl_format, __dsl_palette, r, g, b); } } @@ -31937,12 +38288,13 @@ public static uint MapRGB( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static uint MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a - ) => Underlying.Value!.MapRgba(format, r, g, b, a); + ) => Underlying.Value!.MapRgba(format, palette, r, g, b, a); [return: NativeTypeName("Uint32")] [Transformed] @@ -31951,26 +38303,102 @@ public static uint MapRgba( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static uint MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) + { + fixed (Palette* __dsl_palette = palette) + fixed (PixelFormatDetails* __dsl_format = format) + { + return (uint)MapRgba(__dsl_format, __dsl_palette, r, g, b, a); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint MapSurfaceRGB( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => Underlying.Value!.MapSurfaceRGB(surface, r, g, b); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint MapSurfaceRGB( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (uint)MapSurfaceRGB(__dsl_surface, r, g, b); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGBA")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint MapSurfaceRgba( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => Underlying.Value!.MapSurfaceRgba(surface, r, g, b, a); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGBA")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint MapSurfaceRgba( + Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a ) { - fixed (PixelFormat* __dsl_format = format) + fixed (Surface* __dsl_surface = surface) { - return (uint)MapRgba(__dsl_format, r, g, b, a); + return (uint)MapSurfaceRgba(__dsl_surface, r, g, b, a); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int MaximizeWindow(WindowHandle window) => + public static MaybeBool MaximizeWindow(WindowHandle window) => Underlying.Value!.MaximizeWindow(window); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte MaximizeWindowRaw(WindowHandle window) => + Underlying.Value!.MaximizeWindowRaw(window); + [NativeFunction("SDL3", EntryPoint = "SDL_MemoryBarrierAcquireFunction")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -32042,58 +38470,70 @@ public static Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view) } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int MinimizeWindow(WindowHandle window) => + public static MaybeBool MinimizeWindow(WindowHandle window) => Underlying.Value!.MinimizeWindow(window); - [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int MixAudioFormat( + public static byte MinimizeWindowRaw(WindowHandle window) => + Underlying.Value!.MinimizeWindowRaw(window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte MixAudio( [NativeTypeName("Uint8 *")] byte* dst, [NativeTypeName("const Uint8 *")] byte* src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume - ) => Underlying.Value!.MixAudioFormat(dst, src, format, len, volume); + float volume + ) => Underlying.Value!.MixAudio(dst, src, format, len, volume); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudio")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int MixAudioFormat( + public static MaybeBool MixAudio( [NativeTypeName("Uint8 *")] Ref dst, [NativeTypeName("const Uint8 *")] Ref src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume + float volume ) { fixed (byte* __dsl_src = src) fixed (byte* __dsl_dst = dst) { - return (int)MixAudioFormat(__dsl_dst, __dsl_src, format, len, volume); + return (MaybeBool)(byte)MixAudio(__dsl_dst, __dsl_src, format, len, volume); } } - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidBecomeActive")] + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterBackground")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void OnApplicationDidBecomeActive() => - Underlying.Value!.OnApplicationDidBecomeActive(); + public static void OnApplicationDidEnterBackground() => + Underlying.Value!.OnApplicationDidEnterBackground(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterBackground")] + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterForeground")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void OnApplicationDidEnterBackground() => - Underlying.Value!.OnApplicationDidEnterBackground(); + public static void OnApplicationDidEnterForeground() => + Underlying.Value!.OnApplicationDidEnterForeground(); [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidReceiveMemoryWarning")] [MethodImpl( @@ -32102,19 +38542,19 @@ public static void OnApplicationDidEnterBackground() => public static void OnApplicationDidReceiveMemoryWarning() => Underlying.Value!.OnApplicationDidReceiveMemoryWarning(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterForeground")] + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterBackground")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void OnApplicationWillEnterForeground() => - Underlying.Value!.OnApplicationWillEnterForeground(); + public static void OnApplicationWillEnterBackground() => + Underlying.Value!.OnApplicationWillEnterBackground(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillResignActive")] + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterForeground")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void OnApplicationWillResignActive() => - Underlying.Value!.OnApplicationWillResignActive(); + public static void OnApplicationWillEnterForeground() => + Underlying.Value!.OnApplicationWillEnterForeground(); [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillTerminate")] [MethodImpl( @@ -32185,28 +38625,28 @@ Ref userdata } } - [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCamera")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static CameraHandle OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + public static CameraHandle OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec - ) => Underlying.Value!.OpenCameraDevice(instance_id, spec); + ) => Underlying.Value!.OpenCamera(instance_id, spec); [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCamera")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static CameraHandle OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + public static CameraHandle OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] Ref spec ) { fixed (CameraSpec* __dsl_spec = spec) { - return (CameraHandle)OpenCameraDevice(instance_id, __dsl_spec); + return (CameraHandle)OpenCamera(instance_id, __dsl_spec); } } @@ -32352,23 +38792,25 @@ public static StorageHandle OpenTitleStorage( } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int OpenURL([NativeTypeName("const char *")] sbyte* url) => + public static byte OpenURL([NativeTypeName("const char *")] sbyte* url) => Underlying.Value!.OpenURL(url); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int OpenURL([NativeTypeName("const char *")] Ref url) + public static MaybeBool OpenURL([NativeTypeName("const char *")] Ref url) { fixed (sbyte* __dsl_url = url) { - return (int)OpenURL(__dsl_url); + return (MaybeBool)(byte)OpenURL(__dsl_url); } } @@ -32400,18 +38842,72 @@ public static StorageHandle OpenUserStorage( } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OutOfMemory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool OutOfMemory() => Underlying.Value!.OutOfMemory(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_OutOfMemory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte OutOfMemoryRaw() => Underlying.Value!.OutOfMemoryRaw(); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - Underlying.Value!.PauseAudioDevice(dev); + public static MaybeBool PauseAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ) => Underlying.Value!.PauseAudioDevice(dev); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + Underlying.Value!.PauseAudioDeviceRaw(dev); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool PauseAudioStreamDevice(AudioStreamHandle stream) => + Underlying.Value!.PauseAudioStreamDevice(stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte PauseAudioStreamDeviceRaw(AudioStreamHandle stream) => + Underlying.Value!.PauseAudioStreamDeviceRaw(stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool PauseHaptic(HapticHandle haptic) => + Underlying.Value!.PauseHaptic(haptic); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PauseHaptic(HapticHandle haptic) => Underlying.Value!.PauseHaptic(haptic); + public static byte PauseHapticRaw(HapticHandle haptic) => + Underlying.Value!.PauseHapticRaw(haptic); [NativeFunction("SDL3", EntryPoint = "SDL_PeepEvents")] [MethodImpl( @@ -32444,74 +38940,65 @@ public static int PeepEvents( } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static MaybeBool PenConnected([NativeTypeName("SDL_PenID")] uint instance_id) => - Underlying.Value!.PenConnected(instance_id); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] + [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PenConnectedRaw([NativeTypeName("SDL_PenID")] uint instance_id) => - Underlying.Value!.PenConnectedRaw(instance_id); + public static MaybeBool PlayHapticRumble( + HapticHandle haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) => Underlying.Value!.PlayHapticRumble(haptic, strength, length); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PlayHapticRumble( + public static byte PlayHapticRumbleRaw( HapticHandle haptic, float strength, [NativeTypeName("Uint32")] uint length - ) => Underlying.Value!.PlayHapticRumble(haptic, strength, length); + ) => Underlying.Value!.PlayHapticRumbleRaw(haptic, strength, length); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PollEvent(Event* @event) => Underlying.Value!.PollEvent(@event); + public static byte PollEvent(Event* @event) => Underlying.Value!.PollEvent(@event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool PollEvent(Ref @event) + public static MaybeBool PollEvent(Ref @event) { fixed (Event* __dsl_event = @event) { - return (MaybeBool)(int)PollEvent(__dsl_event); + return (MaybeBool)(byte)PollEvent(__dsl_event); } } - [NativeFunction("SDL3", EntryPoint = "SDL_PostSemaphore")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int PostSemaphore(SemaphoreHandle sem) => - Underlying.Value!.PostSemaphore(sem); - + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PremultiplyAlpha( + public static byte PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] byte linear ) => Underlying.Value!.PremultiplyAlpha( width, @@ -32521,38 +39008,70 @@ int dst_pitch src_pitch, dst_format, dst, - dst_pitch + dst_pitch, + linear ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PremultiplyAlpha( + public static MaybeBool PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] MaybeBool linear ) { fixed (void* __dsl_dst = dst) fixed (void* __dsl_src = src) { - return (int)PremultiplyAlpha( - width, - height, - src_format, - __dsl_src, - src_pitch, - dst_format, - __dsl_dst, - dst_pitch - ); + return (MaybeBool) + (byte)PremultiplyAlpha( + width, + height, + src_format, + __dsl_src, + src_pitch, + dst_format, + __dsl_dst, + dst_pitch, + (byte)linear + ); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplySurfaceAlpha")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte PremultiplySurfaceAlpha( + Surface* surface, + [NativeTypeName("bool")] byte linear + ) => Underlying.Value!.PremultiplySurfaceAlpha(surface, linear); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplySurfaceAlpha")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool PremultiplySurfaceAlpha( + Ref surface, + [NativeTypeName("bool")] MaybeBool linear + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)PremultiplySurfaceAlpha(__dsl_surface, (byte)linear); } } @@ -32562,41 +39081,45 @@ int dst_pitch )] public static void PumpEvents() => Underlying.Value!.PumpEvents(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PushEvent(Event* @event) => Underlying.Value!.PushEvent(@event); + public static byte PushEvent(Event* @event) => Underlying.Value!.PushEvent(@event); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PushEvent(Ref @event) + public static MaybeBool PushEvent(Ref @event) { fixed (Event* __dsl_event = @event) { - return (int)PushEvent(__dsl_event); + return (MaybeBool)(byte)PushEvent(__dsl_event); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PutAudioStreamData( + public static byte PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] void* buf, int len ) => Underlying.Value!.PutAudioStreamData(stream, buf, len); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int PutAudioStreamData( + public static MaybeBool PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] Ref buf, int len @@ -32604,41 +39127,7 @@ int len { fixed (void* __dsl_buf = buf) { - return (int)PutAudioStreamData(stream, __dsl_buf, len); - } - } - - [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int QueryTexture( - TextureHandle texture, - PixelFormatEnum* format, - int* access, - int* w, - int* h - ) => Underlying.Value!.QueryTexture(texture, format, access, w, h); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int QueryTexture( - TextureHandle texture, - Ref format, - Ref access, - Ref w, - Ref h - ) - { - fixed (int* __dsl_h = h) - fixed (int* __dsl_w = w) - fixed (int* __dsl_access = access) - fixed (PixelFormatEnum* __dsl_format = format) - { - return (int)QueryTexture(texture, __dsl_format, __dsl_access, __dsl_w, __dsl_h); + return (MaybeBool)(byte)PutAudioStreamData(stream, __dsl_buf, len); } } @@ -32652,14 +39141,25 @@ Ref h [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void QuitSubSystem([NativeTypeName("Uint32")] uint flags) => + public static void QuitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags) => Underlying.Value!.QuitSubSystem(flags); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RaiseWindow(WindowHandle window) => Underlying.Value!.RaiseWindow(window); + public static MaybeBool RaiseWindow(WindowHandle window) => + Underlying.Value!.RaiseWindow(window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RaiseWindowRaw(WindowHandle window) => + Underlying.Value!.RaiseWindowRaw(window); [return: NativeTypeName("size_t")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadIO")] @@ -32690,177 +39190,208 @@ public static nuint ReadIO( } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadS16BE( + public static byte ReadS16BE( IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value ) => Underlying.Value!.ReadS16BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadS16BE( + public static MaybeBool ReadS16BE( IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value ) { fixed (short* __dsl_value = value) { - return (MaybeBool)(int)ReadS16BE(src, __dsl_value); + return (MaybeBool)(byte)ReadS16BE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadS16LE( + public static byte ReadS16LE( IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value ) => Underlying.Value!.ReadS16LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadS16LE( + public static MaybeBool ReadS16LE( IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value ) { fixed (short* __dsl_value = value) { - return (MaybeBool)(int)ReadS16LE(src, __dsl_value); + return (MaybeBool)(byte)ReadS16LE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => + public static byte ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => Underlying.Value!.ReadS32BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadS32BE( + public static MaybeBool ReadS32BE( IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value ) { fixed (int* __dsl_value = value) { - return (MaybeBool)(int)ReadS32BE(src, __dsl_value); + return (MaybeBool)(byte)ReadS32BE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => + public static byte ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => Underlying.Value!.ReadS32LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadS32LE( + public static MaybeBool ReadS32LE( IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value ) { fixed (int* __dsl_value = value) { - return (MaybeBool)(int)ReadS32LE(src, __dsl_value); + return (MaybeBool)(byte)ReadS32LE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => - Underlying.Value!.ReadS64BE(src, value); + public static byte ReadS64BE( + IOStreamHandle src, + [NativeTypeName("Sint64 *")] long* value + ) => Underlying.Value!.ReadS64BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadS64BE( + public static MaybeBool ReadS64BE( IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value ) { fixed (long* __dsl_value = value) { - return (MaybeBool)(int)ReadS64BE(src, __dsl_value); + return (MaybeBool)(byte)ReadS64BE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => - Underlying.Value!.ReadS64LE(src, value); + public static byte ReadS64LE( + IOStreamHandle src, + [NativeTypeName("Sint64 *")] long* value + ) => Underlying.Value!.ReadS64LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadS64LE( + public static MaybeBool ReadS64LE( IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value ) { fixed (long* __dsl_value = value) { - return (MaybeBool)(int)ReadS64LE(src, __dsl_value); + return (MaybeBool)(byte)ReadS64LE(src, __dsl_value); } } + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte ReadS8(IOStreamHandle src, [NativeTypeName("Sint8 *")] sbyte* value) => + Underlying.Value!.ReadS8(src, value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS8( + IOStreamHandle src, + [NativeTypeName("Sint8 *")] Ref value + ) + { + fixed (sbyte* __dsl_value = value) + { + return (MaybeBool)(byte)ReadS8(src, __dsl_value); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadStorageFile( + public static byte ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, void* destination, [NativeTypeName("Uint64")] ulong length ) => Underlying.Value!.ReadStorageFile(storage, path, destination, length); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadStorageFile( + public static MaybeBool ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref destination, @@ -32870,15 +39401,17 @@ public static int ReadStorageFile( fixed (void* __dsl_destination = destination) fixed (sbyte* __dsl_path = path) { - return (int)ReadStorageFile(storage, __dsl_path, __dsl_destination, length); + return (MaybeBool) + (byte)ReadStorageFile(storage, __dsl_path, __dsl_destination, length); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadSurfacePixel( + public static byte ReadSurfacePixel( Surface* surface, int x, int y, @@ -32888,12 +39421,13 @@ public static int ReadSurfacePixel( [NativeTypeName("Uint8 *")] byte* a ) => Underlying.Value!.ReadSurfacePixel(surface, x, y, r, g, b, a); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadSurfacePixel( + public static MaybeBool ReadSurfacePixel( Ref surface, int x, int y, @@ -32909,198 +39443,245 @@ public static int ReadSurfacePixel( fixed (byte* __dsl_r = r) fixed (Surface* __dsl_surface = surface) { - return (int)ReadSurfacePixel( - __dsl_surface, - x, - y, - __dsl_r, - __dsl_g, - __dsl_b, - __dsl_a - ); + return (MaybeBool) + (byte)ReadSurfacePixel(__dsl_surface, x, y, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixelFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte ReadSurfacePixelFloat( + Surface* surface, + int x, + int y, + float* r, + float* g, + float* b, + float* a + ) => Underlying.Value!.ReadSurfacePixelFloat(surface, x, y, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixelFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadSurfacePixelFloat( + Ref surface, + int x, + int y, + Ref r, + Ref g, + Ref b, + Ref a + ) + { + fixed (float* __dsl_a = a) + fixed (float* __dsl_b = b) + fixed (float* __dsl_g = g) + fixed (float* __dsl_r = r) + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool) + (byte)ReadSurfacePixelFloat( + __dsl_surface, + x, + y, + __dsl_r, + __dsl_g, + __dsl_b, + __dsl_a + ); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadU16BE( + public static byte ReadU16BE( IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value ) => Underlying.Value!.ReadU16BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU16BE( + public static MaybeBool ReadU16BE( IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value ) { fixed (ushort* __dsl_value = value) { - return (MaybeBool)(int)ReadU16BE(src, __dsl_value); + return (MaybeBool)(byte)ReadU16BE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadU16LE( + public static byte ReadU16LE( IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value ) => Underlying.Value!.ReadU16LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU16LE( + public static MaybeBool ReadU16LE( IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value ) { fixed (ushort* __dsl_value = value) { - return (MaybeBool)(int)ReadU16LE(src, __dsl_value); + return (MaybeBool)(byte)ReadU16LE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => - Underlying.Value!.ReadU32BE(src, value); + public static byte ReadU32BE( + IOStreamHandle src, + [NativeTypeName("Uint32 *")] uint* value + ) => Underlying.Value!.ReadU32BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU32BE( + public static MaybeBool ReadU32BE( IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value ) { fixed (uint* __dsl_value = value) { - return (MaybeBool)(int)ReadU32BE(src, __dsl_value); + return (MaybeBool)(byte)ReadU32BE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => - Underlying.Value!.ReadU32LE(src, value); + public static byte ReadU32LE( + IOStreamHandle src, + [NativeTypeName("Uint32 *")] uint* value + ) => Underlying.Value!.ReadU32LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU32LE( + public static MaybeBool ReadU32LE( IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value ) { fixed (uint* __dsl_value = value) { - return (MaybeBool)(int)ReadU32LE(src, __dsl_value); + return (MaybeBool)(byte)ReadU32LE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadU64BE( + public static byte ReadU64BE( IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value ) => Underlying.Value!.ReadU64BE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU64BE( + public static MaybeBool ReadU64BE( IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value ) { fixed (ulong* __dsl_value = value) { - return (MaybeBool)(int)ReadU64BE(src, __dsl_value); + return (MaybeBool)(byte)ReadU64BE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadU64LE( + public static byte ReadU64LE( IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value ) => Underlying.Value!.ReadU64LE(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU64LE( + public static MaybeBool ReadU64LE( IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value ) { fixed (ulong* __dsl_value = value) { - return (MaybeBool)(int)ReadU64LE(src, __dsl_value); + return (MaybeBool)(byte)ReadU64LE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value) => + public static byte ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value) => Underlying.Value!.ReadU8(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ReadU8( + public static MaybeBool ReadU8( IOStreamHandle src, [NativeTypeName("Uint8 *")] Ref value ) { fixed (byte* __dsl_value = value) { - return (MaybeBool)(int)ReadU8(src, __dsl_value); + return (MaybeBool)(byte)ReadU8(src, __dsl_value); } } @@ -33116,7 +39697,7 @@ public static uint RegisterEvents(int numevents) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReleaseCameraFrame(CameraHandle camera, Surface* frame) => + public static void ReleaseCameraFrame(CameraHandle camera, Surface* frame) => Underlying.Value!.ReleaseCameraFrame(camera, frame); [Transformed] @@ -33124,97 +39705,187 @@ public static int ReleaseCameraFrame(CameraHandle camera, Surface* frame) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReleaseCameraFrame(CameraHandle camera, Ref frame) + public static void ReleaseCameraFrame(CameraHandle camera, Ref frame) { fixed (Surface* __dsl_frame = frame) { - return (int)ReleaseCameraFrame(camera, __dsl_frame); + ReleaseCameraFrame(camera, __dsl_frame); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReloadGamepadMappings")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ReloadGamepadMappings() => Underlying.Value!.ReloadGamepadMappings(); + public static MaybeBool ReloadGamepadMappings() => + Underlying.Value!.ReloadGamepadMappings(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReloadGamepadMappings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte ReloadGamepadMappingsRaw() => + Underlying.Value!.ReloadGamepadMappingsRaw(); + + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void RemoveEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + void* userdata + ) => Underlying.Value!.RemoveEventWatch(filter, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void RemoveEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + RemoveEventWatch(filter, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void RemoveHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + void* userdata + ) => Underlying.Value!.RemoveHintCallback(name, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void RemoveHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_name = name) + { + RemoveHintCallback(__dsl_name, callback, __dsl_userdata); + } + } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RemovePath([NativeTypeName("const char *")] sbyte* path) => + public static byte RemovePath([NativeTypeName("const char *")] sbyte* path) => Underlying.Value!.RemovePath(path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RemovePath([NativeTypeName("const char *")] Ref path) + public static MaybeBool RemovePath([NativeTypeName("const char *")] Ref path) { fixed (sbyte* __dsl_path = path) { - return (int)RemovePath(__dsl_path); + return (MaybeBool)(byte)RemovePath(__dsl_path); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RemoveStoragePath( + public static byte RemoveStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path ) => Underlying.Value!.RemoveStoragePath(storage, path); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RemoveStoragePath( + public static MaybeBool RemoveStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref path ) { fixed (sbyte* __dsl_path = path) { - return (int)RemoveStoragePath(storage, __dsl_path); + return (MaybeBool)(byte)RemoveStoragePath(storage, __dsl_path); } } - [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveSurfaceAlternateImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void RemoveSurfaceAlternateImages(Surface* surface) => + Underlying.Value!.RemoveSurfaceAlternateImages(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveSurfaceAlternateImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void RemoveSurfaceAlternateImages(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + RemoveSurfaceAlternateImages(__dsl_surface); + } + } + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => + public static MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => Underlying.Value!.RemoveTimer(id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => + public static byte RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => Underlying.Value!.RemoveTimerRaw(id); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenamePath( + public static byte RenamePath( [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ) => Underlying.Value!.RenamePath(oldpath, newpath); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenamePath( + public static MaybeBool RenamePath( [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath ) @@ -33222,26 +39893,28 @@ public static int RenamePath( fixed (sbyte* __dsl_newpath = newpath) fixed (sbyte* __dsl_oldpath = oldpath) { - return (int)RenamePath(__dsl_oldpath, __dsl_newpath); + return (MaybeBool)(byte)RenamePath(__dsl_oldpath, __dsl_newpath); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenameStoragePath( + public static byte RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ) => Underlying.Value!.RenameStoragePath(storage, oldpath, newpath); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenameStoragePath( + public static MaybeBool RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath @@ -33250,39 +39923,51 @@ public static int RenameStoragePath( fixed (sbyte* __dsl_newpath = newpath) fixed (sbyte* __dsl_oldpath = oldpath) { - return (int)RenameStoragePath(storage, __dsl_oldpath, __dsl_newpath); + return (MaybeBool) + (byte)RenameStoragePath(storage, __dsl_oldpath, __dsl_newpath); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderClear(RendererHandle renderer) => + public static MaybeBool RenderClear(RendererHandle renderer) => Underlying.Value!.RenderClear(renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RenderClearRaw(RendererHandle renderer) => + Underlying.Value!.RenderClearRaw(renderer); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool RenderClipEnabled(RendererHandle renderer) => + public static MaybeBool RenderClipEnabled(RendererHandle renderer) => Underlying.Value!.RenderClipEnabled(renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderClipEnabledRaw(RendererHandle renderer) => + public static byte RenderClipEnabledRaw(RendererHandle renderer) => Underlying.Value!.RenderClipEnabledRaw(renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderCoordinatesFromWindow( + public static byte RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -33290,12 +39975,13 @@ public static int RenderCoordinatesFromWindow( float* y ) => Underlying.Value!.RenderCoordinatesFromWindow(renderer, window_x, window_y, x, y); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderCoordinatesFromWindow( + public static MaybeBool RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -33306,21 +39992,23 @@ Ref y fixed (float* __dsl_y = y) fixed (float* __dsl_x = x) { - return (int)RenderCoordinatesFromWindow( - renderer, - window_x, - window_y, - __dsl_x, - __dsl_y - ); + return (MaybeBool) + (byte)RenderCoordinatesFromWindow( + renderer, + window_x, + window_y, + __dsl_x, + __dsl_y + ); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderCoordinatesToWindow( + public static byte RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -33328,12 +40016,13 @@ public static int RenderCoordinatesToWindow( float* window_y ) => Underlying.Value!.RenderCoordinatesToWindow(renderer, x, y, window_x, window_y); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderCoordinatesToWindow( + public static MaybeBool RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -33344,57 +40033,87 @@ Ref window_y fixed (float* __dsl_window_y = window_y) fixed (float* __dsl_window_x = window_x) { - return (int)RenderCoordinatesToWindow( - renderer, - x, - y, - __dsl_window_x, - __dsl_window_y - ); + return (MaybeBool) + (byte)RenderCoordinatesToWindow(renderer, x, y, __dsl_window_x, __dsl_window_y); } } + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderDebugText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] sbyte* str + ) => Underlying.Value!.RenderDebugText(renderer, x, y, str); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderDebugText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] Ref str + ) + { + fixed (sbyte* __dsl_str = str) + { + return (MaybeBool)(byte)RenderDebugText(renderer, x, y, __dsl_str); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderFillRect( + public static byte RenderFillRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect ) => Underlying.Value!.RenderFillRect(renderer, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderFillRect( + public static MaybeBool RenderFillRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ) { fixed (FRect* __dsl_rect = rect) { - return (int)RenderFillRect(renderer, __dsl_rect); + return (MaybeBool)(byte)RenderFillRect(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderFillRects( + public static byte RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ) => Underlying.Value!.RenderFillRects(renderer, rects, count); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderFillRects( + public static MaybeBool RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count @@ -33402,17 +40121,18 @@ int count { fixed (FRect* __dsl_rects = rects) { - return (int)RenderFillRects(renderer, __dsl_rects, count); + return (MaybeBool)(byte)RenderFillRects(renderer, __dsl_rects, count); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderGeometry( + public static byte RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, int num_vertices, [NativeTypeName("const int *")] int* indices, @@ -33427,14 +40147,15 @@ int num_indices num_indices ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderGeometry( + public static MaybeBool RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_Vertex *")] Ref vertices, int num_vertices, [NativeTypeName("const int *")] Ref indices, @@ -33443,28 +40164,31 @@ int num_indices { fixed (int* __dsl_indices = indices) fixed (Vertex* __dsl_vertices = vertices) - { - return (int)RenderGeometry( - renderer, - texture, - __dsl_vertices, - num_vertices, - __dsl_indices, - num_indices - ); + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderGeometry( + renderer, + __dsl_texture, + __dsl_vertices, + num_vertices, + __dsl_indices, + num_indices + ); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderGeometryRaw( + public static byte RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const float *")] float* xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Color* color, + [NativeTypeName("const SDL_FColor *")] FColor* color, int color_stride, [NativeTypeName("const float *")] float* uv, int uv_stride, @@ -33488,17 +40212,18 @@ int size_indices size_indices ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderGeometryRaw( + public static MaybeBool RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const float *")] Ref xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Ref color, + [NativeTypeName("const SDL_FColor *")] Ref color, int color_stride, [NativeTypeName("const float *")] Ref uv, int uv_stride, @@ -33510,129 +40235,73 @@ int size_indices { fixed (void* __dsl_indices = indices) fixed (float* __dsl_uv = uv) - fixed (Color* __dsl_color = color) + fixed (FColor* __dsl_color = color) fixed (float* __dsl_xy = xy) - { - return (int)RenderGeometryRaw( - renderer, - texture, - __dsl_xy, - xy_stride, - __dsl_color, - color_stride, - __dsl_uv, - uv_stride, - num_vertices, - __dsl_indices, - num_indices, - size_indices - ); + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderGeometryRaw( + renderer, + __dsl_texture, + __dsl_xy, + xy_stride, + __dsl_color, + color_stride, + __dsl_uv, + uv_stride, + num_vertices, + __dsl_indices, + num_indices, + size_indices + ); } } - [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int RenderGeometryRawFloat( - RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] float* xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] FColor* color, - int color_stride, - [NativeTypeName("const float *")] float* uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] void* indices, - int num_indices, - int size_indices - ) => - Underlying.Value!.RenderGeometryRawFloat( - renderer, - texture, - xy, - xy_stride, - color, - color_stride, - uv, - uv_stride, - num_vertices, - indices, - num_indices, - size_indices - ); - + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderGeometryRawFloat( + public static MaybeBool RenderLine( RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] Ref xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] Ref color, - int color_stride, - [NativeTypeName("const float *")] Ref uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] Ref indices, - int num_indices, - int size_indices - ) - { - fixed (void* __dsl_indices = indices) - fixed (float* __dsl_uv = uv) - fixed (FColor* __dsl_color = color) - fixed (float* __dsl_xy = xy) - { - return (int)RenderGeometryRawFloat( - renderer, - texture, - __dsl_xy, - xy_stride, - __dsl_color, - color_stride, - __dsl_uv, - uv_stride, - num_vertices, - __dsl_indices, - num_indices, - size_indices - ); - } - } + float x1, + float y1, + float x2, + float y2 + ) => Underlying.Value!.RenderLine(renderer, x1, y1, x2, y2); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderLine( + public static byte RenderLineRaw( RendererHandle renderer, float x1, float y1, float x2, float y2 - ) => Underlying.Value!.RenderLine(renderer, x1, y1, x2, y2); + ) => Underlying.Value!.RenderLineRaw(renderer, x1, y1, x2, y2); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderLines( + public static byte RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ) => Underlying.Value!.RenderLines(renderer, points, count); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderLines( + public static MaybeBool RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count @@ -33640,33 +40309,45 @@ int count { fixed (FPoint* __dsl_points = points) { - return (int)RenderLines(renderer, __dsl_points, count); + return (MaybeBool)(byte)RenderLines(renderer, __dsl_points, count); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderPoint(RendererHandle renderer, float x, float y) => + public static MaybeBool RenderPoint(RendererHandle renderer, float x, float y) => Underlying.Value!.RenderPoint(renderer, x, y); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RenderPointRaw(RendererHandle renderer, float x, float y) => + Underlying.Value!.RenderPointRaw(renderer, x, y); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderPoints( + public static byte RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ) => Underlying.Value!.RenderPoints(renderer, points, count); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderPoints( + public static MaybeBool RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count @@ -33674,17 +40355,27 @@ int count { fixed (FPoint* __dsl_points = points) { - return (int)RenderPoints(renderer, __dsl_points, count); + return (MaybeBool)(byte)RenderPoints(renderer, __dsl_points, count); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderPresent(RendererHandle renderer) => + public static MaybeBool RenderPresent(RendererHandle renderer) => Underlying.Value!.RenderPresent(renderer); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RenderPresentRaw(RendererHandle renderer) => + Underlying.Value!.RenderPresentRaw(renderer); + [NativeFunction("SDL3", EntryPoint = "SDL_RenderReadPixels")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -33710,47 +40401,51 @@ public static Ptr RenderReadPixels( } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderRect( + public static byte RenderRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect ) => Underlying.Value!.RenderRect(renderer, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderRect( + public static MaybeBool RenderRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ) { fixed (FRect* __dsl_rect = rect) { - return (int)RenderRect(renderer, __dsl_rect); + return (MaybeBool)(byte)RenderRect(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderRects( + public static byte RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ) => Underlying.Value!.RenderRects(renderer, rects, count); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderRects( + public static MaybeBool RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count @@ -33758,52 +40453,122 @@ int count { fixed (FRect* __dsl_rects = rects) { - return (int)RenderRects(renderer, __dsl_rects, count); + return (MaybeBool)(byte)RenderRects(renderer, __dsl_rects, count); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderTexture( + public static byte RenderTexture( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, [NativeTypeName("const SDL_FRect *")] FRect* dstrect ) => Underlying.Value!.RenderTexture(renderer, texture, srcrect, dstrect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderTexture( + public static MaybeBool RenderTexture( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, [NativeTypeName("const SDL_FRect *")] Ref dstrect ) { fixed (FRect* __dsl_dstrect = dstrect) fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) { - return (int)RenderTexture(renderer, texture, __dsl_srcrect, __dsl_dstrect); + return (MaybeBool) + (byte)RenderTexture(renderer, __dsl_texture, __dsl_srcrect, __dsl_dstrect); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9Grid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RenderTexture9Grid( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ) => + Underlying.Value!.RenderTexture9Grid( + renderer, + texture, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + dstrect + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9Grid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderTexture9Grid( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ) + { + fixed (FRect* __dsl_dstrect = dstrect) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderTexture9Grid( + renderer, + __dsl_texture, + __dsl_srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + __dsl_dstrect + ); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderTextureRotated( + public static byte RenderTextureRotated( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, [NativeTypeName("const SDL_FRect *")] FRect* dstrect, - [NativeTypeName("const double")] double angle, + double angle, [NativeTypeName("const SDL_FPoint *")] FPoint* center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip + FlipMode flip ) => Underlying.Value!.RenderTextureRotated( renderer, @@ -33815,52 +40580,97 @@ public static int RenderTextureRotated( flip ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderTextureRotated( + public static MaybeBool RenderTextureRotated( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, [NativeTypeName("const SDL_FRect *")] Ref dstrect, - [NativeTypeName("const double")] double angle, + double angle, [NativeTypeName("const SDL_FPoint *")] Ref center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip + FlipMode flip ) { fixed (FPoint* __dsl_center = center) fixed (FRect* __dsl_dstrect = dstrect) fixed (FRect* __dsl_srcrect = srcrect) - { - return (int)RenderTextureRotated( - renderer, - texture, - __dsl_srcrect, - __dsl_dstrect, - angle, - __dsl_center, - flip - ); + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderTextureRotated( + renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_dstrect, + angle, + __dsl_center, + flip + ); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RenderTextureTiled( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ) => Underlying.Value!.RenderTextureTiled(renderer, texture, srcrect, scale, dstrect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderTextureTiled( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + float scale, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ) + { + fixed (FRect* __dsl_dstrect = dstrect) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderTextureTiled( + renderer, + __dsl_texture, + __dsl_srcrect, + scale, + __dsl_dstrect + ); + } + } + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool RenderViewportSet(RendererHandle renderer) => + public static MaybeBool RenderViewportSet(RendererHandle renderer) => Underlying.Value!.RenderViewportSet(renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RenderViewportSetRaw(RendererHandle renderer) => + public static byte RenderViewportSetRaw(RendererHandle renderer) => Underlying.Value!.RenderViewportSetRaw(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_ReportAssertion")] @@ -33900,25 +40710,25 @@ int line )] public static void ResetAssertionReport() => Underlying.Value!.ResetAssertionReport(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ResetHint([NativeTypeName("const char *")] sbyte* name) => + public static byte ResetHint([NativeTypeName("const char *")] sbyte* name) => Underlying.Value!.ResetHint(name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref name) + public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref name) { fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)ResetHint(__dsl_name); + return (MaybeBool)(byte)ResetHint(__dsl_name); } } @@ -33934,32 +40744,88 @@ public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref Underlying.Value!.ResetKeyboard(); + [NativeFunction("SDL3", EntryPoint = "SDL_ResetLogPriorities")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ResetLogPriorities() => Underlying.Value!.ResetLogPriorities(); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RestoreWindow(WindowHandle window) => + public static MaybeBool RestoreWindow(WindowHandle window) => Underlying.Value!.RestoreWindow(window); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RestoreWindowRaw(WindowHandle window) => + Underlying.Value!.RestoreWindowRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ResumeAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ) => Underlying.Value!.ResumeAudioDevice(dev); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - Underlying.Value!.ResumeAudioDevice(dev); + public static byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + Underlying.Value!.ResumeAudioDeviceRaw(dev); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ResumeAudioStreamDevice(AudioStreamHandle stream) => + Underlying.Value!.ResumeAudioStreamDevice(stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte ResumeAudioStreamDeviceRaw(AudioStreamHandle stream) => + Underlying.Value!.ResumeAudioStreamDeviceRaw(stream); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ResumeHaptic(HapticHandle haptic) => + public static MaybeBool ResumeHaptic(HapticHandle haptic) => Underlying.Value!.ResumeHaptic(haptic); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte ResumeHapticRaw(HapticHandle haptic) => + Underlying.Value!.ResumeHapticRaw(haptic); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RumbleGamepad( + public static MaybeBool RumbleGamepad( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, @@ -33972,11 +40838,31 @@ public static int RumbleGamepad( duration_ms ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RumbleGamepadRaw( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + Underlying.Value!.RumbleGamepadRaw( + gamepad, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RumbleGamepadTriggers( + public static MaybeBool RumbleGamepadTriggers( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, @@ -33989,11 +40875,31 @@ public static int RumbleGamepadTriggers( duration_ms ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RumbleGamepadTriggersRaw( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + Underlying.Value!.RumbleGamepadTriggersRaw( + gamepad, + left_rumble, + right_rumble, + duration_ms + ); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RumbleJoystick( + public static MaybeBool RumbleJoystick( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, @@ -34006,11 +40912,31 @@ public static int RumbleJoystick( duration_ms ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RumbleJoystickRaw( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + Underlying.Value!.RumbleJoystickRaw( + joystick, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RumbleJoystickTriggers( + public static MaybeBool RumbleJoystickTriggers( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, @@ -34023,29 +40949,64 @@ public static int RumbleJoystickTriggers( duration_ms ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RumbleJoystickTriggersRaw( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + Underlying.Value!.RumbleJoystickTriggersRaw( + joystick, + left_rumble, + right_rumble, + duration_ms + ); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int RunHapticEffect( + public static MaybeBool RunHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("Uint32")] uint iterations ) => Underlying.Value!.RunHapticEffect(haptic, effect, iterations); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RunHapticEffectRaw( + HapticHandle haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) => Underlying.Value!.RunHapticEffectRaw(haptic, effect, iterations); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file) => - Underlying.Value!.SaveBMP(surface, file); + public static byte SaveBMP( + Surface* surface, + [NativeTypeName("const char *")] sbyte* file + ) => Underlying.Value!.SaveBMP(surface, file); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SaveBMP( + public static MaybeBool SaveBMP( Ref surface, [NativeTypeName("const char *")] Ref file ) @@ -34053,68 +41014,100 @@ public static int SaveBMP( fixed (sbyte* __dsl_file = file) fixed (Surface* __dsl_surface = surface) { - return (int)SaveBMP(__dsl_surface, __dsl_file); + return (MaybeBool)(byte)SaveBMP(__dsl_surface, __dsl_file); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SaveBMPIO( + public static byte SaveBMPIO( Surface* surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ) => Underlying.Value!.SaveBMPIO(surface, dst, closeio); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SaveBMPIO( + public static MaybeBool SaveBMPIO( Ref surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) { fixed (Surface* __dsl_surface = surface) { - return (int)SaveBMPIO(__dsl_surface, dst, (int)closeio); + return (MaybeBool)(byte)SaveBMPIO(__dsl_surface, dst, (byte)closeio); } } - [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ScaleSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* ScaleSurface( + Surface* surface, + int width, + int height, + ScaleMode scaleMode + ) => Underlying.Value!.ScaleSurface(surface, width, height, scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScaleSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr ScaleSurface( + Ref surface, + int width, + int height, + ScaleMode scaleMode + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)ScaleSurface(__dsl_surface, width, height, scaleMode); + } + } + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ScreenKeyboardShown(WindowHandle window) => + public static MaybeBool ScreenKeyboardShown(WindowHandle window) => Underlying.Value!.ScreenKeyboardShown(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ScreenKeyboardShownRaw(WindowHandle window) => + public static byte ScreenKeyboardShownRaw(WindowHandle window) => Underlying.Value!.ScreenKeyboardShownRaw(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool ScreenSaverEnabled() => Underlying.Value!.ScreenSaverEnabled(); + public static MaybeBool ScreenSaverEnabled() => + Underlying.Value!.ScreenSaverEnabled(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ScreenSaverEnabledRaw() => Underlying.Value!.ScreenSaverEnabledRaw(); + public static byte ScreenSaverEnabledRaw() => Underlying.Value!.ScreenSaverEnabledRaw(); [return: NativeTypeName("Sint64")] [NativeFunction("SDL3", EntryPoint = "SDL_SeekIO")] @@ -34124,25 +41117,27 @@ public static int ScreenKeyboardShownRaw(WindowHandle window) => public static long SeekIO( IOStreamHandle context, [NativeTypeName("Sint64")] long offset, - int whence + IOWhence whence ) => Underlying.Value!.SeekIO(context, offset, whence); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SendGamepadEffect( + public static byte SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] void* data, int size ) => Underlying.Value!.SendGamepadEffect(gamepad, data, size); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SendGamepadEffect( + public static MaybeBool SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] Ref data, int size @@ -34150,26 +41145,28 @@ int size { fixed (void* __dsl_data = data) { - return (int)SendGamepadEffect(gamepad, __dsl_data, size); + return (MaybeBool)(byte)SendGamepadEffect(gamepad, __dsl_data, size); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SendJoystickEffect( + public static byte SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] void* data, int size ) => Underlying.Value!.SendJoystickEffect(joystick, data, size); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SendJoystickEffect( + public static MaybeBool SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] Ref data, int size @@ -34177,7 +41174,114 @@ int size { fixed (void* __dsl_data = data) { - return (int)SendJoystickEffect(joystick, __dsl_data, size); + return (MaybeBool)(byte)SendJoystickEffect(joystick, __dsl_data, size); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickVirtualSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] float* data, + int num_values + ) => + Underlying.Value!.SendJoystickVirtualSensorData( + joystick, + type, + sensor_timestamp, + data, + num_values + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickVirtualSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] Ref data, + int num_values + ) + { + fixed (float* __dsl_data = data) + { + return (MaybeBool) + (byte)SendJoystickVirtualSensorData( + joystick, + type, + sensor_timestamp, + __dsl_data, + num_values + ); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadata")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetAppMetadata( + [NativeTypeName("const char *")] sbyte* appname, + [NativeTypeName("const char *")] sbyte* appversion, + [NativeTypeName("const char *")] sbyte* appidentifier + ) => Underlying.Value!.SetAppMetadata(appname, appversion, appidentifier); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadata")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetAppMetadata( + [NativeTypeName("const char *")] Ref appname, + [NativeTypeName("const char *")] Ref appversion, + [NativeTypeName("const char *")] Ref appidentifier + ) + { + fixed (sbyte* __dsl_appidentifier = appidentifier) + fixed (sbyte* __dsl_appversion = appversion) + fixed (sbyte* __dsl_appname = appname) + { + return (MaybeBool) + (byte)SetAppMetadata(__dsl_appname, __dsl_appversion, __dsl_appidentifier); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadataProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetAppMetadataProperty( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ) => Underlying.Value!.SetAppMetadataProperty(name, value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadataProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetAppMetadataProperty( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ) + { + fixed (sbyte* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(byte)SetAppMetadataProperty(__dsl_name, __dsl_value); } } @@ -34206,22 +41310,107 @@ Ref userdata } } + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAtomicInt(AtomicInt* a, int v) => Underlying.Value!.SetAtomicInt(a, v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicInt")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAtomicInt(Ref a, int v) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)SetAtomicInt(__dsl_a, v); + } + } + + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* SetAtomicPointer(void** a, void* v) => + Underlying.Value!.SetAtomicPointer(a, v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicPointer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr SetAtomicPointer(Ref2D a, Ref v) + { + fixed (void* __dsl_v = v) + fixed (void** __dsl_a = a) + { + return (void*)SetAtomicPointer(__dsl_a, __dsl_v); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint SetAtomicU32(AtomicU32* a, [NativeTypeName("Uint32")] uint v) => + Underlying.Value!.SetAtomicU32(a, v); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint SetAtomicU32(Ref a, [NativeTypeName("Uint32")] uint v) + { + fixed (AtomicU32* __dsl_a = a) + { + return (uint)SetAtomicU32(__dsl_a, v); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioDeviceGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetAudioDeviceGain( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + float gain + ) => Underlying.Value!.SetAudioDeviceGain(devid, gain); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioDeviceGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetAudioDeviceGainRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + float gain + ) => Underlying.Value!.SetAudioDeviceGainRaw(devid, gain); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioPostmixCallback( + public static byte SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, void* userdata ) => Underlying.Value!.SetAudioPostmixCallback(devid, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioPostmixCallback( + public static MaybeBool SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, Ref userdata @@ -34229,26 +41418,29 @@ Ref userdata { fixed (void* __dsl_userdata = userdata) { - return (int)SetAudioPostmixCallback(devid, callback, __dsl_userdata); + return (MaybeBool) + (byte)SetAudioPostmixCallback(devid, callback, __dsl_userdata); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioStreamFormat( + public static byte SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec ) => Underlying.Value!.SetAudioStreamFormat(stream, src_spec, dst_spec); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioStreamFormat( + public static MaybeBool SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec @@ -34257,33 +41449,65 @@ public static int SetAudioStreamFormat( fixed (AudioSpec* __dsl_dst_spec = dst_spec) fixed (AudioSpec* __dsl_src_spec = src_spec) { - return (int)SetAudioStreamFormat(stream, __dsl_src_spec, __dsl_dst_spec); + return (MaybeBool) + (byte)SetAudioStreamFormat(stream, __dsl_src_spec, __dsl_dst_spec); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetAudioStreamFrequencyRatio( + AudioStreamHandle stream, + float ratio + ) => Underlying.Value!.SetAudioStreamFrequencyRatio(stream, ratio); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioStreamFrequencyRatio(AudioStreamHandle stream, float ratio) => - Underlying.Value!.SetAudioStreamFrequencyRatio(stream, ratio); + public static byte SetAudioStreamFrequencyRatioRaw(AudioStreamHandle stream, float ratio) => + Underlying.Value!.SetAudioStreamFrequencyRatioRaw(stream, ratio); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetAudioStreamGain(AudioStreamHandle stream, float gain) => + Underlying.Value!.SetAudioStreamGain(stream, gain); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetAudioStreamGainRaw(AudioStreamHandle stream, float gain) => + Underlying.Value!.SetAudioStreamGainRaw(stream, gain); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioStreamGetCallback( + public static byte SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ) => Underlying.Value!.SetAudioStreamGetCallback(stream, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioStreamGetCallback( + public static MaybeBool SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata @@ -34291,26 +41515,89 @@ Ref userdata { fixed (void* __dsl_userdata = userdata) { - return (int)SetAudioStreamGetCallback(stream, callback, __dsl_userdata); + return (MaybeBool) + (byte)SetAudioStreamGetCallback(stream, callback, __dsl_userdata); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamInputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ) => Underlying.Value!.SetAudioStreamInputChannelMap(stream, chmap, count); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamInputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ) + { + fixed (int* __dsl_chmap = chmap) + { + return (MaybeBool) + (byte)SetAudioStreamInputChannelMap(stream, __dsl_chmap, count); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamOutputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ) => Underlying.Value!.SetAudioStreamOutputChannelMap(stream, chmap, count); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamOutputChannelMap")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ) + { + fixed (int* __dsl_chmap = chmap) + { + return (MaybeBool) + (byte)SetAudioStreamOutputChannelMap(stream, __dsl_chmap, count); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioStreamPutCallback( + public static byte SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ) => Underlying.Value!.SetAudioStreamPutCallback(stream, callback, userdata); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetAudioStreamPutCallback( + public static MaybeBool SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata @@ -34318,42 +41605,46 @@ Ref userdata { fixed (void* __dsl_userdata = userdata) { - return (int)SetAudioStreamPutCallback(stream, callback, __dsl_userdata); + return (MaybeBool) + (byte)SetAudioStreamPutCallback(stream, callback, __dsl_userdata); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetBooleanProperty( + public static byte SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int value + [NativeTypeName("bool")] byte value ) => Underlying.Value!.SetBooleanProperty(props, name, value); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetBooleanProperty( + public static MaybeBool SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool value + [NativeTypeName("bool")] MaybeBool value ) { fixed (sbyte* __dsl_name = name) { - return (int)SetBooleanProperty(props, __dsl_name, (int)value); + return (MaybeBool)(byte)SetBooleanProperty(props, __dsl_name, (byte)value); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetClipboardData( + public static byte SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, void* userdata, @@ -34368,12 +41659,13 @@ public static int SetClipboardData( num_mime_types ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetClipboardData( + public static MaybeBool SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, Ref userdata, @@ -34384,41 +41676,102 @@ public static int SetClipboardData( fixed (sbyte** __dsl_mime_types = mime_types) fixed (void* __dsl_userdata = userdata) { - return (int)SetClipboardData( - callback, - cleanup, - __dsl_userdata, - __dsl_mime_types, - num_mime_types - ); + return (MaybeBool) + (byte)SetClipboardData( + callback, + cleanup, + __dsl_userdata, + __dsl_mime_types, + num_mime_types + ); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetClipboardText([NativeTypeName("const char *")] sbyte* text) => + public static byte SetClipboardText([NativeTypeName("const char *")] sbyte* text) => Underlying.Value!.SetClipboardText(text); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetClipboardText([NativeTypeName("const char *")] Ref text) + public static MaybeBool SetClipboardText( + [NativeTypeName("const char *")] Ref text + ) { fixed (sbyte* __dsl_text = text) { - return (int)SetClipboardText(__dsl_text); + return (MaybeBool)(byte)SetClipboardText(__dsl_text); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCurrentThreadPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetCurrentThreadPriority(ThreadPriority priority) => + Underlying.Value!.SetCurrentThreadPriority(priority); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCurrentThreadPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetCurrentThreadPriorityRaw(ThreadPriority priority) => + Underlying.Value!.SetCurrentThreadPriorityRaw(priority); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetCursor(CursorHandle cursor) => + Underlying.Value!.SetCursor(cursor); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetCursor(CursorHandle cursor) => Underlying.Value!.SetCursor(cursor); + public static byte SetCursorRaw(CursorHandle cursor) => + Underlying.Value!.SetCursorRaw(cursor); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetErrorV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetErrorV( + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ) => Underlying.Value!.SetErrorV(fmt, ap); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetErrorV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetErrorV( + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) + { + fixed (sbyte* __dsl_ap = ap) + fixed (sbyte* __dsl_fmt = fmt) + { + return (MaybeBool)(byte)SetErrorV(__dsl_fmt, __dsl_ap); + } + } [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] [MethodImpl( @@ -34426,7 +41779,7 @@ public static int SetClipboardText([NativeTypeName("const char *")] Ref t )] public static void SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ) => Underlying.Value!.SetEventEnabled(type, enabled); [Transformed] @@ -34436,7 +41789,7 @@ public static void SetEventEnabled( )] public static void SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ) => Underlying.Value!.SetEventEnabled(type, enabled); [NativeFunction("SDL3", EntryPoint = "SDL_SetEventFilter")] @@ -34464,22 +41817,24 @@ Ref userdata } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetFloatProperty( + public static byte SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, float value ) => Underlying.Value!.SetFloatProperty(props, name, value); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetFloatProperty( + public static MaybeBool SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, float value @@ -34487,7 +41842,7 @@ float value { fixed (sbyte* __dsl_name = name) { - return (int)SetFloatProperty(props, __dsl_name, value); + return (MaybeBool)(byte)SetFloatProperty(props, __dsl_name, value); } } @@ -34495,7 +41850,7 @@ float value [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + public static void SetGamepadEventsEnabled([NativeTypeName("bool")] byte enabled) => Underlying.Value!.SetGamepadEventsEnabled(enabled); [Transformed] @@ -34504,104 +41859,154 @@ public static void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enab MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static void SetGamepadEventsEnabled( - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ) => Underlying.Value!.SetGamepadEventsEnabled(enabled); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetGamepadLED( + public static MaybeBool SetGamepadLED( GamepadHandle gamepad, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue ) => Underlying.Value!.SetGamepadLED(gamepad, red, green, blue); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetGamepadLEDRaw( + GamepadHandle gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => Underlying.Value!.SetGamepadLEDRaw(gamepad, red, green, blue); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetGamepadMapping( + public static byte SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] sbyte* mapping ) => Underlying.Value!.SetGamepadMapping(instance_id, mapping); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetGamepadMapping( + public static MaybeBool SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] Ref mapping ) { fixed (sbyte* __dsl_mapping = mapping) { - return (int)SetGamepadMapping(instance_id, __dsl_mapping); + return (MaybeBool)(byte)SetGamepadMapping(instance_id, __dsl_mapping); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetGamepadPlayerIndex( + GamepadHandle gamepad, + int player_index + ) => Underlying.Value!.SetGamepadPlayerIndex(gamepad, player_index); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetGamepadPlayerIndex(GamepadHandle gamepad, int player_index) => - Underlying.Value!.SetGamepadPlayerIndex(gamepad, player_index); + public static byte SetGamepadPlayerIndexRaw(GamepadHandle gamepad, int player_index) => + Underlying.Value!.SetGamepadPlayerIndexRaw(gamepad, player_index); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetGamepadSensorEnabled( + public static byte SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ) => Underlying.Value!.SetGamepadSensorEnabled(gamepad, type, enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetGamepadSensorEnabled( + public static MaybeBool SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ) => Underlying.Value!.SetGamepadSensorEnabled(gamepad, type, enabled); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetHapticAutocenter(HapticHandle haptic, int autocenter) => + public static MaybeBool SetHapticAutocenter(HapticHandle haptic, int autocenter) => Underlying.Value!.SetHapticAutocenter(haptic, autocenter); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetHapticAutocenterRaw(HapticHandle haptic, int autocenter) => + Underlying.Value!.SetHapticAutocenterRaw(haptic, autocenter); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetHapticGain(HapticHandle haptic, int gain) => + public static MaybeBool SetHapticGain(HapticHandle haptic, int gain) => Underlying.Value!.SetHapticGain(haptic, gain); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetHapticGainRaw(HapticHandle haptic, int gain) => + Underlying.Value!.SetHapticGainRaw(haptic, gain); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetHint( + public static byte SetHint( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ) => Underlying.Value!.SetHint(name, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool SetHint( + public static MaybeBool SetHint( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value ) @@ -34609,28 +42014,28 @@ public static MaybeBool SetHint( fixed (sbyte* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)SetHint(__dsl_name, __dsl_value); + return (MaybeBool)(byte)SetHint(__dsl_name, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetHintWithPriority( + public static byte SetHintWithPriority( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value, HintPriority priority ) => Underlying.Value!.SetHintWithPriority(name, value, priority); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool SetHintWithPriority( + public static MaybeBool SetHintWithPriority( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value, HintPriority priority @@ -34639,7 +42044,33 @@ HintPriority priority fixed (sbyte* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)SetHintWithPriority(__dsl_name, __dsl_value, priority); + return (MaybeBool) + (byte)SetHintWithPriority(__dsl_name, __dsl_value, priority); + } + } + + [NativeFunction("SDL3", EntryPoint = "SDL_SetInitialized")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetInitialized( + InitState* state, + [NativeTypeName("bool")] byte initialized + ) => Underlying.Value!.SetInitialized(state, initialized); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetInitialized")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetInitialized( + Ref state, + [NativeTypeName("bool")] MaybeBool initialized + ) + { + fixed (InitState* __dsl_state = state) + { + SetInitialized(__dsl_state, (byte)initialized); } } @@ -34647,7 +42078,7 @@ HintPriority priority [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + public static void SetJoystickEventsEnabled([NativeTypeName("bool")] byte enabled) => Underlying.Value!.SetJoystickEventsEnabled(enabled); [Transformed] @@ -34656,57 +42087,196 @@ public static void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int ena MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static void SetJoystickEventsEnabled( - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ) => Underlying.Value!.SetJoystickEventsEnabled(enabled); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetJoystickLED( + public static MaybeBool SetJoystickLED( JoystickHandle joystick, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue ) => Underlying.Value!.SetJoystickLED(joystick, red, green, blue); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetJoystickLEDRaw( + JoystickHandle joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => Underlying.Value!.SetJoystickLEDRaw(joystick, red, green, blue); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetJoystickPlayerIndex( + JoystickHandle joystick, + int player_index + ) => Underlying.Value!.SetJoystickPlayerIndex(joystick, player_index); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetJoystickPlayerIndex(JoystickHandle joystick, int player_index) => - Underlying.Value!.SetJoystickPlayerIndex(joystick, player_index); + public static byte SetJoystickPlayerIndexRaw(JoystickHandle joystick, int player_index) => + Underlying.Value!.SetJoystickPlayerIndexRaw(joystick, player_index); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetJoystickVirtualAxis( + public static MaybeBool SetJoystickVirtualAxis( JoystickHandle joystick, int axis, [NativeTypeName("Sint16")] short value ) => Underlying.Value!.SetJoystickVirtualAxis(joystick, axis, value); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetJoystickVirtualAxisRaw( + JoystickHandle joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) => Underlying.Value!.SetJoystickVirtualAxisRaw(joystick, axis, value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualBall")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetJoystickVirtualBall( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ) => Underlying.Value!.SetJoystickVirtualBall(joystick, ball, xrel, yrel); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualBall")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetJoystickVirtualBallRaw( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ) => Underlying.Value!.SetJoystickVirtualBallRaw(joystick, ball, xrel, yrel); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetJoystickVirtualButton( + public static byte SetJoystickVirtualButton( JoystickHandle joystick, int button, - [NativeTypeName("Uint8")] byte value - ) => Underlying.Value!.SetJoystickVirtualButton(joystick, button, value); + [NativeTypeName("bool")] byte down + ) => Underlying.Value!.SetJoystickVirtualButton(joystick, button, down); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetJoystickVirtualButton( + JoystickHandle joystick, + int button, + [NativeTypeName("bool")] MaybeBool down + ) => Underlying.Value!.SetJoystickVirtualButton(joystick, button, down); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetJoystickVirtualHat( + public static MaybeBool SetJoystickVirtualHat( JoystickHandle joystick, int hat, [NativeTypeName("Uint8")] byte value ) => Underlying.Value!.SetJoystickVirtualHat(joystick, hat, value); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetJoystickVirtualHatRaw( + JoystickHandle joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) => Underlying.Value!.SetJoystickVirtualHatRaw(joystick, hat, value); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualTouchpad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] byte down, + float x, + float y, + float pressure + ) => + Underlying.Value!.SetJoystickVirtualTouchpad( + joystick, + touchpad, + finger, + down, + x, + y, + pressure + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualTouchpad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] MaybeBool down, + float x, + float y, + float pressure + ) => + Underlying.Value!.SetJoystickVirtualTouchpad( + joystick, + touchpad, + finger, + down, + x, + y, + pressure + ); + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogOutputFunction")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -34732,28 +42302,72 @@ Ref userdata } } + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorities")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetLogPriorities(LogPriority priority) => + Underlying.Value!.SetLogPriorities(priority); + + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetLogPriority(int category, LogPriority priority) => + Underlying.Value!.SetLogPriority(category, priority); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorityPrefix")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] sbyte* prefix + ) => Underlying.Value!.SetLogPriorityPrefix(priority, prefix); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorityPrefix")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] Ref prefix + ) + { + fixed (sbyte* __dsl_prefix = prefix) + { + return (MaybeBool)(byte)SetLogPriorityPrefix(priority, __dsl_prefix); + } + } + [NativeFunction("SDL3", EntryPoint = "SDL_SetModState")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void SetModState(Keymod modstate) => Underlying.Value!.SetModState(modstate); + public static void SetModState([NativeTypeName("SDL_Keymod")] ushort modstate) => + Underlying.Value!.SetModState(modstate); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetNumberProperty( + public static byte SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("Sint64")] long value ) => Underlying.Value!.SetNumberProperty(props, name, value); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetNumberProperty( + public static MaybeBool SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("Sint64")] long value @@ -34761,27 +42375,29 @@ public static int SetNumberProperty( { fixed (sbyte* __dsl_name = name) { - return (int)SetNumberProperty(props, __dsl_name, value); + return (MaybeBool)(byte)SetNumberProperty(props, __dsl_name, value); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetPaletteColors( + public static byte SetPaletteColors( Palette* palette, [NativeTypeName("const SDL_Color *")] Color* colors, int firstcolor, int ncolors ) => Underlying.Value!.SetPaletteColors(palette, colors, firstcolor, ncolors); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetPaletteColors( + public static MaybeBool SetPaletteColors( Ref palette, [NativeTypeName("const SDL_Color *")] Ref colors, int firstcolor, @@ -34791,67 +42407,29 @@ int ncolors fixed (Color* __dsl_colors = colors) fixed (Palette* __dsl_palette = palette) { - return (int)SetPaletteColors(__dsl_palette, __dsl_colors, firstcolor, ncolors); - } - } - - [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int SetPixelFormatPalette(PixelFormat* format, Palette* palette) => - Underlying.Value!.SetPixelFormatPalette(format, palette); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int SetPixelFormatPalette(Ref format, Ref palette) - { - fixed (Palette* __dsl_palette = palette) - fixed (PixelFormat* __dsl_format = format) - { - return (int)SetPixelFormatPalette(__dsl_format, __dsl_palette); - } - } - - [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text) => - Underlying.Value!.SetPrimarySelectionText(text); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] - [MethodImpl( - MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization - )] - public static int SetPrimarySelectionText([NativeTypeName("const char *")] Ref text) - { - fixed (sbyte* __dsl_text = text) - { - return (int)SetPrimarySelectionText(__dsl_text); + return (MaybeBool) + (byte)SetPaletteColors(__dsl_palette, __dsl_colors, firstcolor, ncolors); } } - [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetProperty( + public static byte SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value - ) => Underlying.Value!.SetProperty(props, name, value); + ) => Underlying.Value!.SetPointerProperty(props, name, value); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerProperty")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetProperty( + public static MaybeBool SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value @@ -34860,32 +42438,34 @@ Ref value fixed (void* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (int)SetProperty(props, __dsl_name, __dsl_value); + return (MaybeBool)(byte)SetPointerProperty(props, __dsl_name, __dsl_value); } } - [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerPropertyWithCleanup")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetPropertyWithCleanup( + public static byte SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, void* userdata - ) => Underlying.Value!.SetPropertyWithCleanup(props, name, value, cleanup, userdata); + ) => Underlying.Value!.SetPointerPropertyWithCleanup(props, name, value, cleanup, userdata); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerPropertyWithCleanup")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetPropertyWithCleanup( + public static MaybeBool SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, Ref userdata ) { @@ -34893,76 +42473,113 @@ Ref userdata fixed (void* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (int)SetPropertyWithCleanup( - props, - __dsl_name, - __dsl_value, - cleanup, - __dsl_userdata - ); + return (MaybeBool) + (byte)SetPointerPropertyWithCleanup( + props, + __dsl_name, + __dsl_value, + cleanup, + __dsl_userdata + ); } } - [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled) => - Underlying.Value!.SetRelativeMouseMode(enabled); + public static byte SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text) => + Underlying.Value!.SetPrimarySelectionText(text); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRelativeMouseMode( - [NativeTypeName("SDL_bool")] MaybeBool enabled - ) => Underlying.Value!.SetRelativeMouseMode(enabled); + public static MaybeBool SetPrimarySelectionText( + [NativeTypeName("const char *")] Ref text + ) + { + fixed (sbyte* __dsl_text = text) + { + return (MaybeBool)(byte)SetPrimarySelectionText(__dsl_text); + } + } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderClipRect( + public static byte SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => Underlying.Value!.SetRenderClipRect(renderer, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderClipRect( + public static MaybeBool SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)SetRenderClipRect(renderer, __dsl_rect); + return (MaybeBool)(byte)SetRenderClipRect(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderColorScale(RendererHandle renderer, float scale) => + public static MaybeBool SetRenderColorScale(RendererHandle renderer, float scale) => Underlying.Value!.SetRenderColorScale(renderer, scale); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetRenderColorScaleRaw(RendererHandle renderer, float scale) => + Underlying.Value!.SetRenderColorScaleRaw(renderer, scale); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => Underlying.Value!.SetRenderDrawBlendMode(renderer, blendMode); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderDrawBlendMode(RendererHandle renderer, BlendMode blendMode) => - Underlying.Value!.SetRenderDrawBlendMode(renderer, blendMode); + public static byte SetRenderDrawBlendModeRaw( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => Underlying.Value!.SetRenderDrawBlendModeRaw(renderer, blendMode); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderDrawColor( + public static MaybeBool SetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, @@ -34970,11 +42587,13 @@ public static int SetRenderDrawColor( [NativeTypeName("Uint8")] byte a ) => Underlying.Value!.SetRenderDrawColor(renderer, r, g, b, a); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderDrawColorFloat( + public static MaybeBool SetRenderDrawColorFloat( RendererHandle renderer, float r, float g, @@ -34982,154 +42601,271 @@ public static int SetRenderDrawColorFloat( float a ) => Underlying.Value!.SetRenderDrawColorFloat(renderer, r, g, b, a); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetRenderDrawColorFloatRaw( + RendererHandle renderer, + float r, + float g, + float b, + float a + ) => Underlying.Value!.SetRenderDrawColorFloatRaw(renderer, r, g, b, a); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetRenderDrawColorRaw( + RendererHandle renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => Underlying.Value!.SetRenderDrawColorRaw(renderer, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetRenderLogicalPresentation( + RendererHandle renderer, + int w, + int h, + RendererLogicalPresentation mode + ) => Underlying.Value!.SetRenderLogicalPresentation(renderer, w, h, mode); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderLogicalPresentation( + public static byte SetRenderLogicalPresentationRaw( RendererHandle renderer, int w, int h, - RendererLogicalPresentation mode, - ScaleMode scale_mode - ) => Underlying.Value!.SetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + RendererLogicalPresentation mode + ) => Underlying.Value!.SetRenderLogicalPresentationRaw(renderer, w, h, mode); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetRenderScale( + RendererHandle renderer, + float scaleX, + float scaleY + ) => Underlying.Value!.SetRenderScale(renderer, scaleX, scaleY); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderScale(RendererHandle renderer, float scaleX, float scaleY) => - Underlying.Value!.SetRenderScale(renderer, scaleX, scaleY); + public static byte SetRenderScaleRaw(RendererHandle renderer, float scaleX, float scaleY) => + Underlying.Value!.SetRenderScaleRaw(renderer, scaleX, scaleY); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderTarget(RendererHandle renderer, TextureHandle texture) => + public static byte SetRenderTarget(RendererHandle renderer, Texture* texture) => Underlying.Value!.SetRenderTarget(renderer, texture); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetRenderTarget(RendererHandle renderer, Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetRenderTarget(renderer, __dsl_texture); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderViewport( + public static byte SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => Underlying.Value!.SetRenderViewport(renderer, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderViewport( + public static MaybeBool SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)SetRenderViewport(renderer, __dsl_rect); + return (MaybeBool)(byte)SetRenderViewport(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetRenderVSync(RendererHandle renderer, int vsync) => + public static MaybeBool SetRenderVSync(RendererHandle renderer, int vsync) => Underlying.Value!.SetRenderVSync(renderer, vsync); - [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetStringProperty( - [NativeTypeName("SDL_PropertiesID")] uint props, - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("const char *")] sbyte* value - ) => Underlying.Value!.SetStringProperty(props, name, value); + public static byte SetRenderVSyncRaw(RendererHandle renderer, int vsync) => + Underlying.Value!.SetRenderVSyncRaw(renderer, vsync); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetScancodeName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetScancodeName( + Scancode scancode, + [NativeTypeName("const char *")] sbyte* name + ) => Underlying.Value!.SetScancodeName(scancode, name); + + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetScancodeName")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetStringProperty( - [NativeTypeName("SDL_PropertiesID")] uint props, - [NativeTypeName("const char *")] Ref name, + public static MaybeBool SetScancodeName( + Scancode scancode, + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(byte)SetScancodeName(scancode, __dsl_name); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ) => Underlying.Value!.SetStringProperty(props, name, value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value ) { fixed (sbyte* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (int)SetStringProperty(props, __dsl_name, __dsl_value); + return (MaybeBool)(byte)SetStringProperty(props, __dsl_name, __dsl_value); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceAlphaMod( + public static byte SetSurfaceAlphaMod( Surface* surface, [NativeTypeName("Uint8")] byte alpha ) => Underlying.Value!.SetSurfaceAlphaMod(surface, alpha); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceAlphaMod( + public static MaybeBool SetSurfaceAlphaMod( Ref surface, [NativeTypeName("Uint8")] byte alpha ) { fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfaceAlphaMod(__dsl_surface, alpha); + return (MaybeBool)(byte)SetSurfaceAlphaMod(__dsl_surface, alpha); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceBlendMode(Surface* surface, BlendMode blendMode) => - Underlying.Value!.SetSurfaceBlendMode(surface, blendMode); + public static byte SetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => Underlying.Value!.SetSurfaceBlendMode(surface, blendMode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceBlendMode(Ref surface, BlendMode blendMode) + public static MaybeBool SetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) { fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfaceBlendMode(__dsl_surface, blendMode); + return (MaybeBool)(byte)SetSurfaceBlendMode(__dsl_surface, blendMode); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceClipRect( + public static byte SetSurfaceClipRect( Surface* surface, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => Underlying.Value!.SetSurfaceClipRect(surface, rect); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool SetSurfaceClipRect( + public static MaybeBool SetSurfaceClipRect( Ref surface, [NativeTypeName("const SDL_Rect *")] Ref rect ) @@ -35137,54 +42873,58 @@ public static MaybeBool SetSurfaceClipRect( fixed (Rect* __dsl_rect = rect) fixed (Surface* __dsl_surface = surface) { - return (MaybeBool)(int)SetSurfaceClipRect(__dsl_surface, __dsl_rect); + return (MaybeBool)(byte)SetSurfaceClipRect(__dsl_surface, __dsl_rect); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceColorKey( + public static byte SetSurfaceColorKey( Surface* surface, - int flag, + [NativeTypeName("bool")] byte enabled, [NativeTypeName("Uint32")] uint key - ) => Underlying.Value!.SetSurfaceColorKey(surface, flag, key); + ) => Underlying.Value!.SetSurfaceColorKey(surface, enabled, key); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceColorKey( + public static MaybeBool SetSurfaceColorKey( Ref surface, - int flag, + [NativeTypeName("bool")] MaybeBool enabled, [NativeTypeName("Uint32")] uint key ) { fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfaceColorKey(__dsl_surface, flag, key); + return (MaybeBool)(byte)SetSurfaceColorKey(__dsl_surface, (byte)enabled, key); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceColorMod( + public static byte SetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ) => Underlying.Value!.SetSurfaceColorMod(surface, r, g, b); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceColorMod( + public static MaybeBool SetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, @@ -35193,294 +42933,450 @@ public static int SetSurfaceColorMod( { fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfaceColorMod(__dsl_surface, r, g, b); + return (MaybeBool)(byte)SetSurfaceColorMod(__dsl_surface, r, g, b); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => + public static byte SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => Underlying.Value!.SetSurfaceColorspace(surface, colorspace); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceColorspace(Ref surface, Colorspace colorspace) + public static MaybeBool SetSurfaceColorspace( + Ref surface, + Colorspace colorspace + ) { fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfaceColorspace(__dsl_surface, colorspace); + return (MaybeBool)(byte)SetSurfaceColorspace(__dsl_surface, colorspace); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfacePalette(Surface* surface, Palette* palette) => + public static byte SetSurfacePalette(Surface* surface, Palette* palette) => Underlying.Value!.SetSurfacePalette(surface, palette); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfacePalette(Ref surface, Ref palette) + public static MaybeBool SetSurfacePalette(Ref surface, Ref palette) { fixed (Palette* __dsl_palette = palette) fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfacePalette(__dsl_surface, __dsl_palette); + return (MaybeBool)(byte)SetSurfacePalette(__dsl_surface, __dsl_palette); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceRLE(Surface* surface, int flag) => - Underlying.Value!.SetSurfaceRLE(surface, flag); + public static byte SetSurfaceRLE(Surface* surface, [NativeTypeName("bool")] byte enabled) => + Underlying.Value!.SetSurfaceRLE(surface, enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetSurfaceRLE(Ref surface, int flag) + public static MaybeBool SetSurfaceRLE( + Ref surface, + [NativeTypeName("bool")] MaybeBool enabled + ) { fixed (Surface* __dsl_surface = surface) { - return (int)SetSurfaceRLE(__dsl_surface, flag); + return (MaybeBool)(byte)SetSurfaceRLE(__dsl_surface, (byte)enabled); } } - [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputArea")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => - Underlying.Value!.SetTextInputRect(rect); + public static byte SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int cursor + ) => Underlying.Value!.SetTextInputArea(window, rect, cursor); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputArea")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect) + public static MaybeBool SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Ref rect, + int cursor + ) { fixed (Rect* __dsl_rect = rect) { - return (int)SetTextInputRect(__dsl_rect); + return (MaybeBool)(byte)SetTextInputArea(window, __dsl_rect, cursor); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetTextureAlphaMod( - TextureHandle texture, + public static byte SetTextureAlphaMod( + Texture* texture, [NativeTypeName("Uint8")] byte alpha ) => Underlying.Value!.SetTextureAlphaMod(texture, alpha); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8")] byte alpha + ) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTextureAlphaMod(__dsl_texture, alpha); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetTextureAlphaModFloat(TextureHandle texture, float alpha) => + public static byte SetTextureAlphaModFloat(Texture* texture, float alpha) => Underlying.Value!.SetTextureAlphaModFloat(texture, alpha); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetTextureAlphaModFloat(Ref texture, float alpha) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTextureAlphaModFloat(__dsl_texture, alpha); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetTextureBlendMode(TextureHandle texture, BlendMode blendMode) => - Underlying.Value!.SetTextureBlendMode(texture, blendMode); + public static byte SetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => Underlying.Value!.SetTextureBlendMode(texture, blendMode); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTextureBlendMode(__dsl_texture, blendMode); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetTextureColorMod( - TextureHandle texture, + public static byte SetTextureColorMod( + Texture* texture, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ) => Underlying.Value!.SetTextureColorMod(texture, r, g, b); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTextureColorMod(__dsl_texture, r, g, b); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetTextureColorModFloat(Texture* texture, float r, float g, float b) => + Underlying.Value!.SetTextureColorModFloat(texture, r, g, b); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetTextureColorModFloat( - TextureHandle texture, + public static MaybeBool SetTextureColorModFloat( + Ref texture, float r, float g, float b - ) => Underlying.Value!.SetTextureColorModFloat(texture, r, g, b); + ) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTextureColorModFloat(__dsl_texture, r, g, b); + } + } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetTextureScaleMode(TextureHandle texture, ScaleMode scaleMode) => + public static byte SetTextureScaleMode(Texture* texture, ScaleMode scaleMode) => Underlying.Value!.SetTextureScaleMode(texture, scaleMode); - [NativeFunction("SDL3", EntryPoint = "SDL_SetThreadPriority")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetThreadPriority(ThreadPriority priority) => - Underlying.Value!.SetThreadPriority(priority); + public static MaybeBool SetTextureScaleMode(Ref texture, ScaleMode scaleMode) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTextureScaleMode(__dsl_texture, scaleMode); + } + } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + public static byte SetTLS( + [NativeTypeName("SDL_TLSID *")] AtomicInt* id, [NativeTypeName("const void *")] void* value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ) => Underlying.Value!.SetTLS(id, value, destructor); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + public static MaybeBool SetTLS( + [NativeTypeName("SDL_TLSID *")] Ref id, [NativeTypeName("const void *")] Ref value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ) { fixed (void* __dsl_value = value) + fixed (AtomicInt* __dsl_id = id) { - return (int)SetTLS(id, __dsl_value, destructor); + return (MaybeBool)(byte)SetTLS(__dsl_id, __dsl_value, destructor); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowAlwaysOnTop( + public static byte SetWindowAlwaysOnTop( WindowHandle window, - [NativeTypeName("SDL_bool")] int on_top + [NativeTypeName("bool")] byte on_top ) => Underlying.Value!.SetWindowAlwaysOnTop(window, on_top); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowAlwaysOnTop( + public static MaybeBool SetWindowAlwaysOnTop( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool on_top + [NativeTypeName("bool")] MaybeBool on_top ) => Underlying.Value!.SetWindowAlwaysOnTop(window, on_top); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAspectRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetWindowAspectRatio( + WindowHandle window, + float min_aspect, + float max_aspect + ) => Underlying.Value!.SetWindowAspectRatio(window, min_aspect, max_aspect); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAspectRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetWindowAspectRatioRaw( + WindowHandle window, + float min_aspect, + float max_aspect + ) => Underlying.Value!.SetWindowAspectRatioRaw(window, min_aspect, max_aspect); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowBordered( + public static byte SetWindowBordered( WindowHandle window, - [NativeTypeName("SDL_bool")] int bordered + [NativeTypeName("bool")] byte bordered ) => Underlying.Value!.SetWindowBordered(window, bordered); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowBordered( + public static MaybeBool SetWindowBordered( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool bordered + [NativeTypeName("bool")] MaybeBool bordered ) => Underlying.Value!.SetWindowBordered(window, bordered); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowFocusable( + public static byte SetWindowFocusable( WindowHandle window, - [NativeTypeName("SDL_bool")] int focusable + [NativeTypeName("bool")] byte focusable ) => Underlying.Value!.SetWindowFocusable(window, focusable); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowFocusable( + public static MaybeBool SetWindowFocusable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool focusable + [NativeTypeName("bool")] MaybeBool focusable ) => Underlying.Value!.SetWindowFocusable(window, focusable); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowFullscreen( + public static byte SetWindowFullscreen( WindowHandle window, - [NativeTypeName("SDL_bool")] int fullscreen + [NativeTypeName("bool")] byte fullscreen ) => Underlying.Value!.SetWindowFullscreen(window, fullscreen); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowFullscreen( + public static MaybeBool SetWindowFullscreen( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool fullscreen + [NativeTypeName("bool")] MaybeBool fullscreen ) => Underlying.Value!.SetWindowFullscreen(window, fullscreen); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowFullscreenMode( + public static byte SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode ) => Underlying.Value!.SetWindowFullscreenMode(window, mode); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowFullscreenMode( + public static MaybeBool SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] Ref mode ) { fixed (DisplayMode* __dsl_mode = mode) { - return (int)SetWindowFullscreenMode(window, __dsl_mode); + return (MaybeBool)(byte)SetWindowFullscreenMode(window, __dsl_mode); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowHitTest( + public static byte SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, void* callback_data ) => Underlying.Value!.SetWindowHitTest(window, callback, callback_data); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowHitTest( + public static MaybeBool SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, Ref callback_data @@ -35488,229 +43384,413 @@ Ref callback_data { fixed (void* __dsl_callback_data = callback_data) { - return (int)SetWindowHitTest(window, callback, __dsl_callback_data); + return (MaybeBool) + (byte)SetWindowHitTest(window, callback, __dsl_callback_data); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowIcon(WindowHandle window, Surface* icon) => + public static byte SetWindowIcon(WindowHandle window, Surface* icon) => Underlying.Value!.SetWindowIcon(window, icon); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowIcon(WindowHandle window, Ref icon) + public static MaybeBool SetWindowIcon(WindowHandle window, Ref icon) { fixed (Surface* __dsl_icon = icon) { - return (int)SetWindowIcon(window, __dsl_icon); + return (MaybeBool)(byte)SetWindowIcon(window, __dsl_icon); } } - [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowInputFocus")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowInputFocus(WindowHandle window) => - Underlying.Value!.SetWindowInputFocus(window); + public static byte SetWindowKeyboardGrab( + WindowHandle window, + [NativeTypeName("bool")] byte grabbed + ) => Underlying.Value!.SetWindowKeyboardGrab(window, grabbed); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowKeyboardGrab( + public static MaybeBool SetWindowKeyboardGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] int grabbed + [NativeTypeName("bool")] MaybeBool grabbed ) => Underlying.Value!.SetWindowKeyboardGrab(window, grabbed); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowKeyboardGrab( + public static MaybeBool SetWindowMaximumSize( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed - ) => Underlying.Value!.SetWindowKeyboardGrab(window, grabbed); + int max_w, + int max_h + ) => Underlying.Value!.SetWindowMaximumSize(window, max_w, max_h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowMaximumSize(WindowHandle window, int max_w, int max_h) => - Underlying.Value!.SetWindowMaximumSize(window, max_w, max_h); + public static byte SetWindowMaximumSizeRaw(WindowHandle window, int max_w, int max_h) => + Underlying.Value!.SetWindowMaximumSizeRaw(window, max_w, max_h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetWindowMinimumSize( + WindowHandle window, + int min_w, + int min_h + ) => Underlying.Value!.SetWindowMinimumSize(window, min_w, min_h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowMinimumSize(WindowHandle window, int min_w, int min_h) => - Underlying.Value!.SetWindowMinimumSize(window, min_w, min_h); + public static byte SetWindowMinimumSizeRaw(WindowHandle window, int min_w, int min_h) => + Underlying.Value!.SetWindowMinimumSizeRaw(window, min_w, min_h); - [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModalFor")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModal")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowModalFor( - WindowHandle modal_window, - WindowHandle parent_window - ) => Underlying.Value!.SetWindowModalFor(modal_window, parent_window); + public static byte SetWindowModal( + WindowHandle window, + [NativeTypeName("bool")] byte modal + ) => Underlying.Value!.SetWindowModal(window, modal); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModal")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetWindowModal( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool modal + ) => Underlying.Value!.SetWindowModal(window, modal); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowMouseGrab( + public static byte SetWindowMouseGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] int grabbed + [NativeTypeName("bool")] byte grabbed ) => Underlying.Value!.SetWindowMouseGrab(window, grabbed); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowMouseGrab( + public static MaybeBool SetWindowMouseGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed + [NativeTypeName("bool")] MaybeBool grabbed ) => Underlying.Value!.SetWindowMouseGrab(window, grabbed); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowMouseRect( + public static byte SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => Underlying.Value!.SetWindowMouseRect(window, rect); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowMouseRect( + public static MaybeBool SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)SetWindowMouseRect(window, __dsl_rect); + return (MaybeBool)(byte)SetWindowMouseRect(window, __dsl_rect); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowOpacity(WindowHandle window, float opacity) => + public static MaybeBool SetWindowOpacity(WindowHandle window, float opacity) => Underlying.Value!.SetWindowOpacity(window, opacity); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetWindowOpacityRaw(WindowHandle window, float opacity) => + Underlying.Value!.SetWindowOpacityRaw(window, opacity); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowParent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetWindowParent(WindowHandle window, WindowHandle parent) => + Underlying.Value!.SetWindowParent(window, parent); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowParent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetWindowParentRaw(WindowHandle window, WindowHandle parent) => + Underlying.Value!.SetWindowParentRaw(window, parent); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowPosition(WindowHandle window, int x, int y) => + public static MaybeBool SetWindowPosition(WindowHandle window, int x, int y) => Underlying.Value!.SetWindowPosition(window, x, y); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetWindowPositionRaw(WindowHandle window, int x, int y) => + Underlying.Value!.SetWindowPositionRaw(window, x, y); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetWindowRelativeMouseMode( + WindowHandle window, + [NativeTypeName("bool")] byte enabled + ) => Underlying.Value!.SetWindowRelativeMouseMode(window, enabled); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetWindowRelativeMouseMode( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool enabled + ) => Underlying.Value!.SetWindowRelativeMouseMode(window, enabled); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowResizable( + public static byte SetWindowResizable( WindowHandle window, - [NativeTypeName("SDL_bool")] int resizable + [NativeTypeName("bool")] byte resizable ) => Underlying.Value!.SetWindowResizable(window, resizable); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowResizable( + public static MaybeBool SetWindowResizable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool resizable + [NativeTypeName("bool")] MaybeBool resizable ) => Underlying.Value!.SetWindowResizable(window, resizable); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowShape(WindowHandle window, Surface* shape) => + public static byte SetWindowShape(WindowHandle window, Surface* shape) => Underlying.Value!.SetWindowShape(window, shape); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowShape(WindowHandle window, Ref shape) + public static MaybeBool SetWindowShape(WindowHandle window, Ref shape) { fixed (Surface* __dsl_shape = shape) { - return (int)SetWindowShape(window, __dsl_shape); + return (MaybeBool)(byte)SetWindowShape(window, __dsl_shape); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowSize(WindowHandle window, int w, int h) => + public static MaybeBool SetWindowSize(WindowHandle window, int w, int h) => Underlying.Value!.SetWindowSize(window, w, h); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetWindowSizeRaw(WindowHandle window, int w, int h) => + Underlying.Value!.SetWindowSizeRaw(window, w, h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSurfaceVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetWindowSurfaceVSync(WindowHandle window, int vsync) => + Underlying.Value!.SetWindowSurfaceVSync(window, vsync); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSurfaceVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetWindowSurfaceVSyncRaw(WindowHandle window, int vsync) => + Underlying.Value!.SetWindowSurfaceVSyncRaw(window, vsync); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowTitle( + public static byte SetWindowTitle( WindowHandle window, [NativeTypeName("const char *")] sbyte* title ) => Underlying.Value!.SetWindowTitle(window, title); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SetWindowTitle( + public static MaybeBool SetWindowTitle( WindowHandle window, [NativeTypeName("const char *")] Ref title ) { fixed (sbyte* __dsl_title = title) { - return (int)SetWindowTitle(window, __dsl_title); + return (MaybeBool)(byte)SetWindowTitle(window, __dsl_title); } } + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldInit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte ShouldInit(InitState* state) => Underlying.Value!.ShouldInit(state); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldInit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ShouldInit(Ref state) + { + fixed (InitState* __dsl_state = state) + { + return (MaybeBool)(byte)ShouldInit(__dsl_state); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldQuit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte ShouldQuit(InitState* state) => Underlying.Value!.ShouldQuit(state); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldQuit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ShouldQuit(Ref state) + { + fixed (InitState* __dsl_state = state) + { + return (MaybeBool)(byte)ShouldQuit(__dsl_state); + } + } + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ShowCursor() => Underlying.Value!.ShowCursor(); + public static MaybeBool ShowCursor() => Underlying.Value!.ShowCursor(); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte ShowCursorRaw() => Underlying.Value!.ShowCursorRaw(); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ShowMessageBox( + public static byte ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, int* buttonid ) => Underlying.Value!.ShowMessageBox(messageboxdata, buttonid); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ShowMessageBox( + public static MaybeBool ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, Ref buttonid ) @@ -35718,7 +43798,7 @@ Ref buttonid fixed (int* __dsl_buttonid = buttonid) fixed (MessageBoxData* __dsl_messageboxdata = messageboxdata) { - return (int)ShowMessageBox(__dsl_messageboxdata, __dsl_buttonid); + return (MaybeBool)(byte)ShowMessageBox(__dsl_messageboxdata, __dsl_buttonid); } } @@ -35731,14 +43811,16 @@ public static void ShowOpenFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ) => Underlying.Value!.ShowOpenFileDialog( callback, userdata, window, filters, + nfilters, default_location, allow_many ); @@ -35753,8 +43835,9 @@ public static void ShowOpenFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ) { fixed (sbyte* __dsl_default_location = default_location) @@ -35766,8 +43849,9 @@ public static void ShowOpenFileDialog( __dsl_userdata, window, __dsl_filters, + nfilters, __dsl_default_location, - (int)allow_many + (byte)allow_many ); } } @@ -35781,7 +43865,7 @@ public static void ShowOpenFolderDialog( void* userdata, WindowHandle window, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ) => Underlying.Value!.ShowOpenFolderDialog( callback, @@ -35801,7 +43885,7 @@ public static void ShowOpenFolderDialog( Ref userdata, WindowHandle window, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ) { fixed (sbyte* __dsl_default_location = default_location) @@ -35812,7 +43896,7 @@ public static void ShowOpenFolderDialog( __dsl_userdata, window, __dsl_default_location, - (int)allow_many + (byte)allow_many ); } } @@ -35826,6 +43910,7 @@ public static void ShowSaveFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location ) => Underlying.Value!.ShowSaveFileDialog( @@ -35833,6 +43918,7 @@ public static void ShowSaveFileDialog( userdata, window, filters, + nfilters, default_location ); @@ -35846,6 +43932,7 @@ public static void ShowSaveFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location ) { @@ -35858,29 +43945,32 @@ public static void ShowSaveFileDialog( __dsl_userdata, window, __dsl_filters, + nfilters, __dsl_default_location ); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + public static byte ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] sbyte* title, [NativeTypeName("const char *")] sbyte* message, WindowHandle window ) => Underlying.Value!.ShowSimpleMessageBox(flags, title, message, window); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + public static MaybeBool ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] Ref title, [NativeTypeName("const char *")] Ref message, WindowHandle window @@ -35889,176 +43979,284 @@ WindowHandle window fixed (sbyte* __dsl_message = message) fixed (sbyte* __dsl_title = title) { - return (int)ShowSimpleMessageBox(flags, __dsl_title, __dsl_message, window); + return (MaybeBool) + (byte)ShowSimpleMessageBox(flags, __dsl_title, __dsl_message, window); } } + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ShowWindow(WindowHandle window) => + Underlying.Value!.ShowWindow(window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ShowWindow(WindowHandle window) => Underlying.Value!.ShowWindow(window); + public static byte ShowWindowRaw(WindowHandle window) => + Underlying.Value!.ShowWindowRaw(window); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int ShowWindowSystemMenu(WindowHandle window, int x, int y) => + public static MaybeBool ShowWindowSystemMenu(WindowHandle window, int x, int y) => Underlying.Value!.ShowWindowSystemMenu(window, x, y); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte ShowWindowSystemMenuRaw(WindowHandle window, int x, int y) => + Underlying.Value!.ShowWindowSystemMenuRaw(window, x, y); + [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SignalCondition(ConditionHandle cond) => + public static void SignalCondition(ConditionHandle cond) => Underlying.Value!.SignalCondition(cond); - [return: NativeTypeName("size_t")] - [NativeFunction("SDL3", EntryPoint = "SDL_SIMDGetAlignment")] + [NativeFunction("SDL3", EntryPoint = "SDL_SignalSemaphore")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static nuint SimdGetAlignment() => Underlying.Value!.SimdGetAlignment(); + public static void SignalSemaphore(SemaphoreHandle sem) => + Underlying.Value!.SignalSemaphore(sem); - [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SoftStretch( - Surface* src, - [NativeTypeName("const SDL_Rect *")] Rect* srcrect, - Surface* dst, - [NativeTypeName("const SDL_Rect *")] Rect* dstrect, - ScaleMode scaleMode - ) => Underlying.Value!.SoftStretch(src, srcrect, dst, dstrect, scaleMode); + public static MaybeBool StartTextInput(WindowHandle window) => + Underlying.Value!.StartTextInput(window); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte StartTextInputRaw(WindowHandle window) => + Underlying.Value!.StartTextInputRaw(window); + + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInputWithProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SoftStretch( - Ref src, - [NativeTypeName("const SDL_Rect *")] Ref srcrect, - Ref dst, - [NativeTypeName("const SDL_Rect *")] Ref dstrect, - ScaleMode scaleMode - ) - { - fixed (Rect* __dsl_dstrect = dstrect) - fixed (Surface* __dsl_dst = dst) - fixed (Rect* __dsl_srcrect = srcrect) - fixed (Surface* __dsl_src = src) - { - return (int)SoftStretch( - __dsl_src, - __dsl_srcrect, - __dsl_dst, - __dsl_dstrect, - scaleMode - ); - } - } + public static MaybeBool StartTextInputWithProperties( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.StartTextInputWithProperties(window, props); - [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInputWithProperties")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void StartTextInput() => Underlying.Value!.StartTextInput(); + public static byte StartTextInputWithPropertiesRaw( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.StartTextInputWithPropertiesRaw(window, props); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int StopHapticEffect(HapticHandle haptic, int effect) => + public static MaybeBool StopHapticEffect(HapticHandle haptic, int effect) => Underlying.Value!.StopHapticEffect(haptic, effect); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte StopHapticEffectRaw(HapticHandle haptic, int effect) => + Underlying.Value!.StopHapticEffectRaw(haptic, effect); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int StopHapticEffects(HapticHandle haptic) => + public static MaybeBool StopHapticEffects(HapticHandle haptic) => Underlying.Value!.StopHapticEffects(haptic); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte StopHapticEffectsRaw(HapticHandle haptic) => + Underlying.Value!.StopHapticEffectsRaw(haptic); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int StopHapticRumble(HapticHandle haptic) => + public static MaybeBool StopHapticRumble(HapticHandle haptic) => Underlying.Value!.StopHapticRumble(haptic); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte StopHapticRumbleRaw(HapticHandle haptic) => + Underlying.Value!.StopHapticRumbleRaw(haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopTextInput")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool StopTextInput(WindowHandle window) => + Underlying.Value!.StopTextInput(window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopTextInput")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void StopTextInput() => Underlying.Value!.StopTextInput(); + public static byte StopTextInputRaw(WindowHandle window) => + Underlying.Value!.StopTextInputRaw(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool StorageReady(StorageHandle storage) => + public static MaybeBool StorageReady(StorageHandle storage) => Underlying.Value!.StorageReady(storage); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int StorageReadyRaw(StorageHandle storage) => + public static byte StorageReadyRaw(StorageHandle storage) => Underlying.Value!.StorageReadyRaw(storage); - [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Guid StringToGuid([NativeTypeName("const char *")] sbyte* pchGUID) => + Underlying.Value!.StringToGuid(pchGUID); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Guid StringToGuid([NativeTypeName("const char *")] Ref pchGUID) + { + fixed (sbyte* __dsl_pchGUID = pchGUID) + { + return (Guid)StringToGuid(__dsl_pchGUID); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasAlternateImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SurfaceHasAlternateImages(Surface* surface) => + Underlying.Value!.SurfaceHasAlternateImages(surface); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasAlternateImages")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SurfaceHasAlternateImages(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)SurfaceHasAlternateImages(__dsl_surface); + } + } + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SurfaceHasColorKey(Surface* surface) => + public static byte SurfaceHasColorKey(Surface* surface) => Underlying.Value!.SurfaceHasColorKey(surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool SurfaceHasColorKey(Ref surface) + public static MaybeBool SurfaceHasColorKey(Ref surface) { fixed (Surface* __dsl_surface = surface) { - return (MaybeBool)(int)SurfaceHasColorKey(__dsl_surface); + return (MaybeBool)(byte)SurfaceHasColorKey(__dsl_surface); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SurfaceHasRLE(Surface* surface) => + public static byte SurfaceHasRLE(Surface* surface) => Underlying.Value!.SurfaceHasRLE(surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool SurfaceHasRLE(Ref surface) + public static MaybeBool SurfaceHasRLE(Ref surface) { fixed (Surface* __dsl_surface = surface) { - return (MaybeBool)(int)SurfaceHasRLE(__dsl_surface); + return (MaybeBool)(byte)SurfaceHasRLE(__dsl_surface); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int SyncWindow(WindowHandle window) => Underlying.Value!.SyncWindow(window); + public static MaybeBool SyncWindow(WindowHandle window) => + Underlying.Value!.SyncWindow(window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SyncWindowRaw(WindowHandle window) => + Underlying.Value!.SyncWindowRaw(window); [return: NativeTypeName("Sint64")] [NativeFunction("SDL3", EntryPoint = "SDL_TellIO")] @@ -36067,20 +44265,22 @@ public static MaybeBool SurfaceHasRLE(Ref surface) )] public static long TellIO(IOStreamHandle context) => Underlying.Value!.TellIO(context); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool TextInputActive() => Underlying.Value!.TextInputActive(); + public static MaybeBool TextInputActive(WindowHandle window) => + Underlying.Value!.TextInputActive(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int TextInputActiveRaw() => Underlying.Value!.TextInputActiveRaw(); + public static byte TextInputActiveRaw(WindowHandle window) => + Underlying.Value!.TextInputActiveRaw(window); [return: NativeTypeName("SDL_Time")] [NativeFunction("SDL3", EntryPoint = "SDL_TimeFromWindows")] @@ -36092,30 +44292,32 @@ public static long TimeFromWindows( [NativeTypeName("Uint32")] uint dwHighDateTime ) => Underlying.Value!.TimeFromWindows(dwLowDateTime, dwHighDateTime); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int TimeToDateTime( + public static byte TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, DateTime* dt, - [NativeTypeName("SDL_bool")] int localTime + [NativeTypeName("bool")] byte localTime ) => Underlying.Value!.TimeToDateTime(ticks, dt, localTime); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int TimeToDateTime( + public static MaybeBool TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, Ref dt, - [NativeTypeName("SDL_bool")] MaybeBool localTime + [NativeTypeName("bool")] MaybeBool localTime ) { fixed (DateTime* __dsl_dt = dt) { - return (int)TimeToDateTime(ticks, __dsl_dt, (int)localTime); + return (MaybeBool)(byte)TimeToDateTime(ticks, __dsl_dt, (byte)localTime); } } @@ -36147,57 +44349,98 @@ public static void TimeToWindows( } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int TryLockMutex(MutexHandle mutex) => Underlying.Value!.TryLockMutex(mutex); + public static MaybeBool TryLockMutex(MutexHandle mutex) => + Underlying.Value!.TryLockMutex(mutex); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte TryLockMutexRaw(MutexHandle mutex) => + Underlying.Value!.TryLockMutexRaw(mutex); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int TryLockRWLockForReading(RWLockHandle rwlock) => + public static MaybeBool TryLockRWLockForReading(RWLockHandle rwlock) => Underlying.Value!.TryLockRWLockForReading(rwlock); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte TryLockRWLockForReadingRaw(RWLockHandle rwlock) => + Underlying.Value!.TryLockRWLockForReadingRaw(rwlock); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int TryLockRWLockForWriting(RWLockHandle rwlock) => + public static MaybeBool TryLockRWLockForWriting(RWLockHandle rwlock) => Underlying.Value!.TryLockRWLockForWriting(rwlock); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte TryLockRWLockForWritingRaw(RWLockHandle rwlock) => + Underlying.Value!.TryLockRWLockForWritingRaw(rwlock); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + public static byte TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => Underlying.Value!.TryLockSpinlock(@lock); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool TryLockSpinlock( + public static MaybeBool TryLockSpinlock( [NativeTypeName("SDL_SpinLock *")] Ref @lock ) { fixed (int* __dsl_lock = @lock) { - return (MaybeBool)(int)TryLockSpinlock(__dsl_lock); + return (MaybeBool)(byte)TryLockSpinlock(__dsl_lock); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int TryWaitSemaphore(SemaphoreHandle sem) => + public static MaybeBool TryWaitSemaphore(SemaphoreHandle sem) => Underlying.Value!.TryWaitSemaphore(sem); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte TryWaitSemaphoreRaw(SemaphoreHandle sem) => + Underlying.Value!.TryWaitSemaphoreRaw(sem); + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -36229,27 +44472,25 @@ public static void UnbindAudioStreams(Ref streams, int num_st [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void UnloadObject(void* handle) => Underlying.Value!.UnloadObject(handle); + public static void UnloadObject(SharedObjectHandle handle) => + Underlying.Value!.UnloadObject(handle); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void UnloadObject(Ref handle) - { - fixed (void* __dsl_handle = handle) - { - UnloadObject(__dsl_handle); - } - } + public static MaybeBool UnlockAudioStream(AudioStreamHandle stream) => + Underlying.Value!.UnlockAudioStream(stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UnlockAudioStream(AudioStreamHandle stream) => - Underlying.Value!.UnlockAudioStream(stream); + public static byte UnlockAudioStreamRaw(AudioStreamHandle stream) => + Underlying.Value!.UnlockAudioStreamRaw(stream); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockJoysticks")] [MethodImpl( @@ -36321,31 +44562,46 @@ public static void UnlockSurface(Ref surface) [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static void UnlockTexture(TextureHandle texture) => + public static void UnlockTexture(Texture* texture) => Underlying.Value!.UnlockTexture(texture); + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockTexture(Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + UnlockTexture(__dsl_texture); + } + } + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateGamepads")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static void UpdateGamepads() => Underlying.Value!.UpdateGamepads(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateHapticEffect( + public static byte UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data ) => Underlying.Value!.UpdateHapticEffect(haptic, effect, data); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateHapticEffect( + public static MaybeBool UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] Ref data @@ -36353,7 +44609,7 @@ public static int UpdateHapticEffect( { fixed (HapticEffect* __dsl_data = data) { - return (int)UpdateHapticEffect(haptic, effect, __dsl_data); + return (MaybeBool)(byte)UpdateHapticEffect(haptic, effect, __dsl_data); } } @@ -36363,12 +44619,13 @@ public static int UpdateHapticEffect( )] public static void UpdateJoysticks() => Underlying.Value!.UpdateJoysticks(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateNVTexture( - TextureHandle texture, + public static byte UpdateNVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -36376,13 +44633,14 @@ public static int UpdateNVTexture( int UVpitch ) => Underlying.Value!.UpdateNVTexture(texture, rect, Yplane, Ypitch, UVplane, UVpitch); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateNVTexture( - TextureHandle texture, + public static MaybeBool UpdateNVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -36393,15 +44651,17 @@ int UVpitch fixed (byte* __dsl_UVplane = UVplane) fixed (byte* __dsl_Yplane = Yplane) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)UpdateNVTexture( - texture, - __dsl_rect, - __dsl_Yplane, - Ypitch, - __dsl_UVplane, - UVpitch - ); + return (MaybeBool) + (byte)UpdateNVTexture( + __dsl_texture, + __dsl_rect, + __dsl_Yplane, + Ypitch, + __dsl_UVplane, + UVpitch + ); } } @@ -36411,24 +44671,26 @@ int UVpitch )] public static void UpdateSensors() => Underlying.Value!.UpdateSensors(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateTexture( - TextureHandle texture, + public static byte UpdateTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const void *")] void* pixels, int pitch ) => Underlying.Value!.UpdateTexture(texture, rect, pixels, pitch); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateTexture( - TextureHandle texture, + public static MaybeBool UpdateTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const void *")] Ref pixels, int pitch @@ -36436,34 +44698,48 @@ int pitch { fixed (void* __dsl_pixels = pixels) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)UpdateTexture(texture, __dsl_rect, __dsl_pixels, pitch); + return (MaybeBool) + (byte)UpdateTexture(__dsl_texture, __dsl_rect, __dsl_pixels, pitch); } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateWindowSurface(WindowHandle window) => + public static MaybeBool UpdateWindowSurface(WindowHandle window) => Underlying.Value!.UpdateWindowSurface(window); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte UpdateWindowSurfaceRaw(WindowHandle window) => + Underlying.Value!.UpdateWindowSurfaceRaw(window); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateWindowSurfaceRects( + public static byte UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rects, int numrects ) => Underlying.Value!.UpdateWindowSurfaceRects(window, rects, numrects); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateWindowSurfaceRects( + public static MaybeBool UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rects, int numrects @@ -36471,16 +44747,18 @@ int numrects { fixed (Rect* __dsl_rects = rects) { - return (int)UpdateWindowSurfaceRects(window, __dsl_rects, numrects); + return (MaybeBool) + (byte)UpdateWindowSurfaceRects(window, __dsl_rects, numrects); } } + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateYUVTexture( - TextureHandle texture, + public static byte UpdateYUVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -36500,13 +44778,14 @@ int Vpitch Vpitch ); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int UpdateYUVTexture( - TextureHandle texture, + public static MaybeBool UpdateYUVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -36520,17 +44799,19 @@ int Vpitch fixed (byte* __dsl_Uplane = Uplane) fixed (byte* __dsl_Yplane = Yplane) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)UpdateYUVTexture( - texture, - __dsl_rect, - __dsl_Yplane, - Ypitch, - __dsl_Uplane, - Upitch, - __dsl_Vplane, - Vpitch - ); + return (MaybeBool) + (byte)UpdateYUVTexture( + __dsl_texture, + __dsl_rect, + __dsl_Yplane, + Ypitch, + __dsl_Uplane, + Upitch, + __dsl_Vplane, + Vpitch + ); } } @@ -36538,64 +44819,77 @@ int Vpitch [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WaitCondition(ConditionHandle cond, MutexHandle mutex) => + public static void WaitCondition(ConditionHandle cond, MutexHandle mutex) => Underlying.Value!.WaitCondition(cond, mutex); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WaitConditionTimeout( + public static MaybeBool WaitConditionTimeout( ConditionHandle cond, MutexHandle mutex, [NativeTypeName("Sint32")] int timeoutMS ) => Underlying.Value!.WaitConditionTimeout(cond, mutex, timeoutMS); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte WaitConditionTimeoutRaw( + ConditionHandle cond, + MutexHandle mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) => Underlying.Value!.WaitConditionTimeoutRaw(cond, mutex, timeoutMS); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WaitEvent(Event* @event) => Underlying.Value!.WaitEvent(@event); + public static byte WaitEvent(Event* @event) => Underlying.Value!.WaitEvent(@event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WaitEvent(Ref @event) + public static MaybeBool WaitEvent(Ref @event) { fixed (Event* __dsl_event = @event) { - return (MaybeBool)(int)WaitEvent(__dsl_event); + return (MaybeBool)(byte)WaitEvent(__dsl_event); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WaitEventTimeout( + public static byte WaitEventTimeout( Event* @event, [NativeTypeName("Sint32")] int timeoutMS ) => Underlying.Value!.WaitEventTimeout(@event, timeoutMS); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WaitEventTimeout( + public static MaybeBool WaitEventTimeout( Ref @event, [NativeTypeName("Sint32")] int timeoutMS ) { fixed (Event* __dsl_event = @event) { - return (MaybeBool)(int)WaitEventTimeout(__dsl_event, timeoutMS); + return (MaybeBool)(byte)WaitEventTimeout(__dsl_event, timeoutMS); } } @@ -36603,18 +44897,30 @@ public static MaybeBool WaitEventTimeout( [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WaitSemaphore(SemaphoreHandle sem) => + public static void WaitSemaphore(SemaphoreHandle sem) => Underlying.Value!.WaitSemaphore(sem); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WaitSemaphoreTimeout( + public static MaybeBool WaitSemaphoreTimeout( SemaphoreHandle sem, [NativeTypeName("Sint32")] int timeoutMS ) => Underlying.Value!.WaitSemaphoreTimeout(sem, timeoutMS); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte WaitSemaphoreTimeoutRaw( + SemaphoreHandle sem, + [NativeTypeName("Sint32")] int timeoutMS + ) => Underlying.Value!.WaitSemaphoreTimeoutRaw(sem, timeoutMS); + [NativeFunction("SDL3", EntryPoint = "SDL_WaitThread")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -36635,13 +44941,23 @@ public static void WaitThread(ThreadHandle thread, Ref status) } } + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseGlobal")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WarpMouseGlobal(float x, float y) => + public static MaybeBool WarpMouseGlobal(float x, float y) => Underlying.Value!.WarpMouseGlobal(x, y); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseGlobal")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte WarpMouseGlobalRaw(float x, float y) => + Underlying.Value!.WarpMouseGlobalRaw(x, y); + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseInWindow")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization @@ -36649,29 +44965,29 @@ public static int WarpMouseGlobal(float x, float y) => public static void WarpMouseInWindow(WindowHandle window, float x, float y) => Underlying.Value!.WarpMouseInWindow(window, x, y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_InitFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_WasInit")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static uint WasInit([NativeTypeName("Uint32")] uint flags) => + public static uint WasInit([NativeTypeName("SDL_InitFlags")] uint flags) => Underlying.Value!.WasInit(flags); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WindowHasSurface(WindowHandle window) => + public static MaybeBool WindowHasSurface(WindowHandle window) => Underlying.Value!.WindowHasSurface(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WindowHasSurfaceRaw(WindowHandle window) => + public static byte WindowHasSurfaceRaw(WindowHandle window) => Underlying.Value!.WindowHasSurfaceRaw(window); [return: NativeTypeName("size_t")] @@ -36703,145 +45019,170 @@ public static nuint WriteIO( } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteS16BE( + public static MaybeBool WriteS16BE( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ) => Underlying.Value!.WriteS16BE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteS16BERaw( + public static byte WriteS16BERaw( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ) => Underlying.Value!.WriteS16BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteS16LE( + public static MaybeBool WriteS16LE( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ) => Underlying.Value!.WriteS16LE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteS16LERaw( + public static byte WriteS16LERaw( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ) => Underlying.Value!.WriteS16LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteS32BE( + public static MaybeBool WriteS32BE( IOStreamHandle dst, [NativeTypeName("Sint32")] int value ) => Underlying.Value!.WriteS32BE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteS32BERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => - Underlying.Value!.WriteS32BERaw(dst, value); + public static byte WriteS32BERaw( + IOStreamHandle dst, + [NativeTypeName("Sint32")] int value + ) => Underlying.Value!.WriteS32BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteS32LE( + public static MaybeBool WriteS32LE( IOStreamHandle dst, [NativeTypeName("Sint32")] int value ) => Underlying.Value!.WriteS32LE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteS32LERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => - Underlying.Value!.WriteS32LERaw(dst, value); + public static byte WriteS32LERaw( + IOStreamHandle dst, + [NativeTypeName("Sint32")] int value + ) => Underlying.Value!.WriteS32LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteS64BE( + public static MaybeBool WriteS64BE( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ) => Underlying.Value!.WriteS64BE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteS64BERaw( + public static byte WriteS64BERaw( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ) => Underlying.Value!.WriteS64BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteS64LE( + public static MaybeBool WriteS64LE( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ) => Underlying.Value!.WriteS64LE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteS64LERaw( + public static byte WriteS64LERaw( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ) => Underlying.Value!.WriteS64LERaw(dst, value); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS8( + IOStreamHandle dst, + [NativeTypeName("Sint8")] sbyte value + ) => Underlying.Value!.WriteS8(dst, value); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte WriteS8Raw(IOStreamHandle dst, [NativeTypeName("Sint8")] sbyte value) => + Underlying.Value!.WriteS8Raw(dst, value); + + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteStorageFile( + public static byte WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const void *")] void* source, [NativeTypeName("Uint64")] ulong length ) => Underlying.Value!.WriteStorageFile(storage, path, source, length); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteStorageFile( + public static MaybeBool WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const void *")] Ref source, @@ -36851,153 +45192,229 @@ public static int WriteStorageFile( fixed (void* __dsl_source = source) fixed (sbyte* __dsl_path = path) { - return (int)WriteStorageFile(storage, __dsl_path, __dsl_source, length); + return (MaybeBool) + (byte)WriteStorageFile(storage, __dsl_path, __dsl_source, length); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte WriteSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => Underlying.Value!.WriteSurfacePixel(surface, x, y, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)WriteSurfacePixel(__dsl_surface, x, y, r, g, b, a); + } + } + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixelFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte WriteSurfacePixelFloat( + Surface* surface, + int x, + int y, + float r, + float g, + float b, + float a + ) => Underlying.Value!.WriteSurfacePixelFloat(surface, x, y, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixelFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteSurfacePixelFloat( + Ref surface, + int x, + int y, + float r, + float g, + float b, + float a + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool) + (byte)WriteSurfacePixelFloat(__dsl_surface, x, y, r, g, b, a); + } + } + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteU16BE( + public static MaybeBool WriteU16BE( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ) => Underlying.Value!.WriteU16BE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteU16BERaw( + public static byte WriteU16BERaw( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ) => Underlying.Value!.WriteU16BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteU16LE( + public static MaybeBool WriteU16LE( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ) => Underlying.Value!.WriteU16LE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteU16LERaw( + public static byte WriteU16LERaw( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ) => Underlying.Value!.WriteU16LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteU32BE( + public static MaybeBool WriteU32BE( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ) => Underlying.Value!.WriteU32BE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteU32BERaw( + public static byte WriteU32BERaw( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ) => Underlying.Value!.WriteU32BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteU32LE( + public static MaybeBool WriteU32LE( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ) => Underlying.Value!.WriteU32LE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteU32LERaw( + public static byte WriteU32LERaw( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ) => Underlying.Value!.WriteU32LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteU64BE( + public static MaybeBool WriteU64BE( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ) => Underlying.Value!.WriteU64BE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteU64BERaw( + public static byte WriteU64BERaw( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ) => Underlying.Value!.WriteU64BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteU64LE( + public static MaybeBool WriteU64LE( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ) => Underlying.Value!.WriteU64LE(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteU64LERaw( + public static byte WriteU64LERaw( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ) => Underlying.Value!.WriteU64LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static MaybeBool WriteU8( + public static MaybeBool WriteU8( IOStreamHandle dst, [NativeTypeName("Uint8")] byte value ) => Underlying.Value!.WriteU8(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => + public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => Underlying.Value!.WriteU8Raw(dst, value); } @@ -37014,11 +45431,24 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_NULL_WHILE_LOOP_CONDITION (0)")] public const int NullWhileLoopCondition = (0); - [NativeTypeName("#define SDL_MUTEX_TIMEDOUT 1")] - public const int MutexTimedout = 1; + [NativeTypeName( + "#define SDL_PROP_THREAD_CREATE_ENTRY_FUNCTION_POINTER \"SDL.thread.create.entry_function\"" + )] + public static Utf8String PropThreadCreateEntryFunctionPointer => + "SDL.thread.create.entry_function"u8; + + [NativeTypeName("#define SDL_PROP_THREAD_CREATE_NAME_STRING \"SDL.thread.create.name\"")] + public static Utf8String PropThreadCreateNameString => "SDL.thread.create.name"u8; + + [NativeTypeName( + "#define SDL_PROP_THREAD_CREATE_USERDATA_POINTER \"SDL.thread.create.userdata\"" + )] + public static Utf8String PropThreadCreateUserdataPointer => "SDL.thread.create.userdata"u8; - [NativeTypeName("#define SDL_RWLOCK_TIMEDOUT SDL_MUTEX_TIMEDOUT")] - public const int RwlockTimedout = 1; + [NativeTypeName( + "#define SDL_PROP_THREAD_CREATE_STACKSIZE_NUMBER \"SDL.thread.create.stacksize\"" + )] + public static Utf8String PropThreadCreateStacksizeNumber => "SDL.thread.create.stacksize"u8; [NativeTypeName( "#define SDL_PROP_IOSTREAM_WINDOWS_HANDLE_POINTER \"SDL.iostream.windows.handle\"" @@ -37028,11 +45458,22 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_PROP_IOSTREAM_STDIO_FILE_POINTER \"SDL.iostream.stdio.file\"")] public static Utf8String PropIostreamStdioFilePointer => "SDL.iostream.stdio.file"u8; + [NativeTypeName( + "#define SDL_PROP_IOSTREAM_FILE_DESCRIPTOR_NUMBER \"SDL.iostream.file_descriptor\"" + )] + public static Utf8String PropIostreamFileDescriptorNumber => "SDL.iostream.file_descriptor"u8; + [NativeTypeName( "#define SDL_PROP_IOSTREAM_ANDROID_AASSET_POINTER \"SDL.iostream.android.aasset\"" )] public static Utf8String PropIostreamAndroidAassetPointer => "SDL.iostream.android.aasset"u8; + [NativeTypeName("#define SDL_PROP_IOSTREAM_MEMORY_POINTER \"SDL.iostream.memory.base\"")] + public static Utf8String PropIostreamMemoryPointer => "SDL.iostream.memory.base"u8; + + [NativeTypeName("#define SDL_PROP_IOSTREAM_MEMORY_SIZE_NUMBER \"SDL.iostream.memory.size\"")] + public static Utf8String PropIostreamMemorySizeNumber => "SDL.iostream.memory.size"u8; + [NativeTypeName( "#define SDL_PROP_IOSTREAM_DYNAMIC_MEMORY_POINTER \"SDL.iostream.dynamic.memory\"" )] @@ -37044,95 +45485,47 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String PropIostreamDynamicChunksizeNumber => "SDL.iostream.dynamic.chunksize"u8; - [NativeTypeName("#define SDL_IO_SEEK_SET 0")] - public const int IoSeekSet = 0; - - [NativeTypeName("#define SDL_IO_SEEK_CUR 1")] - public const int IoSeekCur = 1; - - [NativeTypeName("#define SDL_IO_SEEK_END 2")] - public const int IoSeekEnd = 2; - - [NativeTypeName("#define SDL_AUDIO_U8 0x0008")] - public const int AudioU8 = 0x0008; - - [NativeTypeName("#define SDL_AUDIO_S8 0x8008")] - public const int AudioS8 = 0x8008; - - [NativeTypeName("#define SDL_AUDIO_S16LE 0x8010")] - public const int AudioS16Le = 0x8010; - - [NativeTypeName("#define SDL_AUDIO_S16BE 0x9010")] - public const int AudioS16Be = 0x9010; - - [NativeTypeName("#define SDL_AUDIO_S32LE 0x8020")] - public const int AudioS32Le = 0x8020; - - [NativeTypeName("#define SDL_AUDIO_S32BE 0x9020")] - public const int AudioS32Be = 0x9020; + [NativeTypeName("#define SDL_AUDIO_MASK_BITSIZE (0xFFu)")] + public const uint AudioMaskBitsize = (0xFFU); - [NativeTypeName("#define SDL_AUDIO_F32LE 0x8120")] - public const int AudioF32Le = 0x8120; + [NativeTypeName("#define SDL_AUDIO_MASK_FLOAT (1u<<8)")] + public const uint AudioMaskFloat = (1U << 8); - [NativeTypeName("#define SDL_AUDIO_F32BE 0x9120")] - public const int AudioF32Be = 0x9120; + [NativeTypeName("#define SDL_AUDIO_MASK_BIG_ENDIAN (1u<<12)")] + public const uint AudioMaskBigEndian = (1U << 12); - [NativeTypeName("#define SDL_AUDIO_S16 SDL_AUDIO_S16LE")] - public const int AudioS16 = 0x8010; + [NativeTypeName("#define SDL_AUDIO_MASK_SIGNED (1u<<15)")] + public const uint AudioMaskSigned = (1U << 15); - [NativeTypeName("#define SDL_AUDIO_S32 SDL_AUDIO_S32LE")] - public const int AudioS32 = 0x8020; + [NativeTypeName("#define SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK ((SDL_AudioDeviceID) 0xFFFFFFFFu)")] + public const uint AudioDeviceDefaultPlayback = ((uint)(0xFFFFFFFFU)); - [NativeTypeName("#define SDL_AUDIO_F32 SDL_AUDIO_F32LE")] - public const int AudioF32 = 0x8120; - - [NativeTypeName("#define SDL_AUDIO_MASK_BITSIZE (0xFF)")] - public const int AudioMaskBitsize = (0xFF); - - [NativeTypeName("#define SDL_AUDIO_MASK_FLOAT (1<<8)")] - public const int AudioMaskFloat = (1 << 8); - - [NativeTypeName("#define SDL_AUDIO_MASK_BIG_ENDIAN (1<<12)")] - public const int AudioMaskBigEndian = (1 << 12); - - [NativeTypeName("#define SDL_AUDIO_MASK_SIGNED (1<<15)")] - public const int AudioMaskSigned = (1 << 15); - - [NativeTypeName("#define SDL_AUDIO_DEVICE_DEFAULT_OUTPUT ((SDL_AudioDeviceID) 0xFFFFFFFF)")] - public const uint AudioDeviceDefaultOutput = ((uint)(0xFFFFFFFF)); - - [NativeTypeName("#define SDL_AUDIO_DEVICE_DEFAULT_CAPTURE ((SDL_AudioDeviceID) 0xFFFFFFFE)")] - public const uint AudioDeviceDefaultCapture = ((uint)(0xFFFFFFFE)); - - [NativeTypeName("#define SDL_MIX_MAXVOLUME 128")] - public const int MixMaxvolume = 128; + [NativeTypeName("#define SDL_AUDIO_DEVICE_DEFAULT_RECORDING ((SDL_AudioDeviceID) 0xFFFFFFFEu)")] + public const uint AudioDeviceDefaultRecording = ((uint)(0xFFFFFFFEU)); [NativeTypeName("#define SDL_ALPHA_OPAQUE 255")] public const int AlphaOpaque = 255; + [NativeTypeName("#define SDL_ALPHA_OPAQUE_FLOAT 1.0f")] + public const float AlphaOpaqueFloat = 1.0f; + [NativeTypeName("#define SDL_ALPHA_TRANSPARENT 0")] public const int AlphaTransparent = 0; - [NativeTypeName("#define SDL_SWSURFACE 0")] - public const int Swsurface = 0; + [NativeTypeName("#define SDL_ALPHA_TRANSPARENT_FLOAT 0.0f")] + public const float AlphaTransparentFloat = 0.0f; - [NativeTypeName("#define SDL_PREALLOC 0x00000001")] - public const int Prealloc = 0x00000001; + [NativeTypeName("#define SDL_SURFACE_PREALLOCATED 0x00000001u")] + public const uint SurfacePreallocated = 0x00000001U; - [NativeTypeName("#define SDL_RLEACCEL 0x00000002")] - public const int Rleaccel = 0x00000002; + [NativeTypeName("#define SDL_SURFACE_LOCK_NEEDED 0x00000002u")] + public const uint SurfaceLockNeeded = 0x00000002U; - [NativeTypeName("#define SDL_DONTFREE 0x00000004")] - public const int Dontfree = 0x00000004; + [NativeTypeName("#define SDL_SURFACE_LOCKED 0x00000004u")] + public const uint SurfaceLocked = 0x00000004U; - [NativeTypeName("#define SDL_SIMD_ALIGNED 0x00000008")] - public const int SimdAligned = 0x00000008; - - [NativeTypeName("#define SDL_SURFACE_USES_PROPERTIES 0x00000010")] - public const int SurfaceUsesProperties = 0x00000010; - - [NativeTypeName("#define SDL_PROP_SURFACE_COLORSPACE_NUMBER \"SDL.surface.colorspace\"")] - public static Utf8String PropSurfaceColorspaceNumber => "SDL.surface.colorspace"u8; + [NativeTypeName("#define SDL_SURFACE_SIMD_ALIGNED 0x00000008u")] + public const uint SurfaceSimdAligned = 0x00000008U; [NativeTypeName( "#define SDL_PROP_SURFACE_SDR_WHITE_POINT_FLOAT \"SDL.surface.SDR_white_point\"" @@ -37145,83 +45538,89 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_PROP_SURFACE_TONEMAP_OPERATOR_STRING \"SDL.surface.tonemap\"")] public static Utf8String PropSurfaceTonemapOperatorString => "SDL.surface.tonemap"u8; + [NativeTypeName("#define SDL_CACHELINE_SIZE 128")] + public const int CachelineSize = 128; + [NativeTypeName( "#define SDL_PROP_GLOBAL_VIDEO_WAYLAND_WL_DISPLAY_POINTER \"SDL.video.wayland.wl_display\"" )] public static Utf8String PropGlobalVideoWaylandWlDisplayPointer => "SDL.video.wayland.wl_display"u8; - [NativeTypeName("#define SDL_WINDOW_FULLSCREEN 0x00000001U")] - public const uint WindowFullscreen = 0x00000001U; + [NativeTypeName("#define SDL_WINDOW_FULLSCREEN SDL_UINT64_C(0x0000000000000001)")] + public const ulong WindowFullscreen = (0x0000000000000001UL); + + [NativeTypeName("#define SDL_WINDOW_OPENGL SDL_UINT64_C(0x0000000000000002)")] + public const ulong WindowOpengl = (0x0000000000000002UL); - [NativeTypeName("#define SDL_WINDOW_OPENGL 0x00000002U")] - public const uint WindowOpengl = 0x00000002U; + [NativeTypeName("#define SDL_WINDOW_OCCLUDED SDL_UINT64_C(0x0000000000000004)")] + public const ulong WindowOccluded = (0x0000000000000004UL); - [NativeTypeName("#define SDL_WINDOW_OCCLUDED 0x00000004U")] - public const uint WindowOccluded = 0x00000004U; + [NativeTypeName("#define SDL_WINDOW_HIDDEN SDL_UINT64_C(0x0000000000000008)")] + public const ulong WindowHidden = (0x0000000000000008UL); - [NativeTypeName("#define SDL_WINDOW_HIDDEN 0x00000008U")] - public const uint WindowHidden = 0x00000008U; + [NativeTypeName("#define SDL_WINDOW_BORDERLESS SDL_UINT64_C(0x0000000000000010)")] + public const ulong WindowBorderless = (0x0000000000000010UL); - [NativeTypeName("#define SDL_WINDOW_BORDERLESS 0x00000010U")] - public const uint WindowBorderless = 0x00000010U; + [NativeTypeName("#define SDL_WINDOW_RESIZABLE SDL_UINT64_C(0x0000000000000020)")] + public const ulong WindowResizable = (0x0000000000000020UL); - [NativeTypeName("#define SDL_WINDOW_RESIZABLE 0x00000020U")] - public const uint WindowResizable = 0x00000020U; + [NativeTypeName("#define SDL_WINDOW_MINIMIZED SDL_UINT64_C(0x0000000000000040)")] + public const ulong WindowMinimized = (0x0000000000000040UL); - [NativeTypeName("#define SDL_WINDOW_MINIMIZED 0x00000040U")] - public const uint WindowMinimized = 0x00000040U; + [NativeTypeName("#define SDL_WINDOW_MAXIMIZED SDL_UINT64_C(0x0000000000000080)")] + public const ulong WindowMaximized = (0x0000000000000080UL); - [NativeTypeName("#define SDL_WINDOW_MAXIMIZED 0x00000080U")] - public const uint WindowMaximized = 0x00000080U; + [NativeTypeName("#define SDL_WINDOW_MOUSE_GRABBED SDL_UINT64_C(0x0000000000000100)")] + public const ulong WindowMouseGrabbed = (0x0000000000000100UL); - [NativeTypeName("#define SDL_WINDOW_MOUSE_GRABBED 0x00000100U")] - public const uint WindowMouseGrabbed = 0x00000100U; + [NativeTypeName("#define SDL_WINDOW_INPUT_FOCUS SDL_UINT64_C(0x0000000000000200)")] + public const ulong WindowInputFocus = (0x0000000000000200UL); - [NativeTypeName("#define SDL_WINDOW_INPUT_FOCUS 0x00000200U")] - public const uint WindowInputFocus = 0x00000200U; + [NativeTypeName("#define SDL_WINDOW_MOUSE_FOCUS SDL_UINT64_C(0x0000000000000400)")] + public const ulong WindowMouseFocus = (0x0000000000000400UL); - [NativeTypeName("#define SDL_WINDOW_MOUSE_FOCUS 0x00000400U")] - public const uint WindowMouseFocus = 0x00000400U; + [NativeTypeName("#define SDL_WINDOW_EXTERNAL SDL_UINT64_C(0x0000000000000800)")] + public const ulong WindowExternal = (0x0000000000000800UL); - [NativeTypeName("#define SDL_WINDOW_EXTERNAL 0x00000800U")] - public const uint WindowExternal = 0x00000800U; + [NativeTypeName("#define SDL_WINDOW_MODAL SDL_UINT64_C(0x0000000000001000)")] + public const ulong WindowModal = (0x0000000000001000UL); - [NativeTypeName("#define SDL_WINDOW_MODAL 0x00001000U")] - public const uint WindowModal = 0x00001000U; + [NativeTypeName("#define SDL_WINDOW_HIGH_PIXEL_DENSITY SDL_UINT64_C(0x0000000000002000)")] + public const ulong WindowHighPixelDensity = (0x0000000000002000UL); - [NativeTypeName("#define SDL_WINDOW_HIGH_PIXEL_DENSITY 0x00002000U")] - public const uint WindowHighPixelDensity = 0x00002000U; + [NativeTypeName("#define SDL_WINDOW_MOUSE_CAPTURE SDL_UINT64_C(0x0000000000004000)")] + public const ulong WindowMouseCapture = (0x0000000000004000UL); - [NativeTypeName("#define SDL_WINDOW_MOUSE_CAPTURE 0x00004000U")] - public const uint WindowMouseCapture = 0x00004000U; + [NativeTypeName("#define SDL_WINDOW_MOUSE_RELATIVE_MODE SDL_UINT64_C(0x0000000000008000)")] + public const ulong WindowMouseRelativeMode = (0x0000000000008000UL); - [NativeTypeName("#define SDL_WINDOW_ALWAYS_ON_TOP 0x00008000U")] - public const uint WindowAlwaysOnTop = 0x00008000U; + [NativeTypeName("#define SDL_WINDOW_ALWAYS_ON_TOP SDL_UINT64_C(0x0000000000010000)")] + public const ulong WindowAlwaysOnTop = (0x0000000000010000UL); - [NativeTypeName("#define SDL_WINDOW_UTILITY 0x00020000U")] - public const uint WindowUtility = 0x00020000U; + [NativeTypeName("#define SDL_WINDOW_UTILITY SDL_UINT64_C(0x0000000000020000)")] + public const ulong WindowUtility = (0x0000000000020000UL); - [NativeTypeName("#define SDL_WINDOW_TOOLTIP 0x00040000U")] - public const uint WindowTooltip = 0x00040000U; + [NativeTypeName("#define SDL_WINDOW_TOOLTIP SDL_UINT64_C(0x0000000000040000)")] + public const ulong WindowTooltip = (0x0000000000040000UL); - [NativeTypeName("#define SDL_WINDOW_POPUP_MENU 0x00080000U")] - public const uint WindowPopupMenu = 0x00080000U; + [NativeTypeName("#define SDL_WINDOW_POPUP_MENU SDL_UINT64_C(0x0000000000080000)")] + public const ulong WindowPopupMenu = (0x0000000000080000UL); - [NativeTypeName("#define SDL_WINDOW_KEYBOARD_GRABBED 0x00100000U")] - public const uint WindowKeyboardGrabbed = 0x00100000U; + [NativeTypeName("#define SDL_WINDOW_KEYBOARD_GRABBED SDL_UINT64_C(0x0000000000100000)")] + public const ulong WindowKeyboardGrabbed = (0x0000000000100000UL); - [NativeTypeName("#define SDL_WINDOW_VULKAN 0x10000000U")] - public const uint WindowVulkan = 0x10000000U; + [NativeTypeName("#define SDL_WINDOW_VULKAN SDL_UINT64_C(0x0000000010000000)")] + public const ulong WindowVulkan = (0x0000000010000000UL); - [NativeTypeName("#define SDL_WINDOW_METAL 0x20000000U")] - public const uint WindowMetal = 0x20000000U; + [NativeTypeName("#define SDL_WINDOW_METAL SDL_UINT64_C(0x0000000020000000)")] + public const ulong WindowMetal = (0x0000000020000000UL); - [NativeTypeName("#define SDL_WINDOW_TRANSPARENT 0x40000000U")] - public const uint WindowTransparent = 0x40000000U; + [NativeTypeName("#define SDL_WINDOW_TRANSPARENT SDL_UINT64_C(0x0000000040000000)")] + public const ulong WindowTransparent = (0x0000000040000000UL); - [NativeTypeName("#define SDL_WINDOW_NOT_FOCUSABLE 0x80000000U")] - public const uint WindowNotFocusable = 0x80000000U; + [NativeTypeName("#define SDL_WINDOW_NOT_FOCUSABLE SDL_UINT64_C(0x0000000080000000)")] + public const ulong WindowNotFocusable = (0x0000000080000000UL); [NativeTypeName("#define SDL_WINDOWPOS_UNDEFINED_MASK 0x1FFF0000u")] public const uint WindowposUndefinedMask = 0x1FFF0000U; @@ -37235,141 +45634,210 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_WINDOWPOS_CENTERED SDL_WINDOWPOS_CENTERED_DISPLAY(0)")] public const uint WindowposCentered = (0x2FFF0000U | (0)); + [NativeTypeName("#define SDL_GL_CONTEXT_PROFILE_CORE 0x0001")] + public const int GlContextProfileCore = 0x0001; + + [NativeTypeName("#define SDL_GL_CONTEXT_PROFILE_COMPATIBILITY 0x0002")] + public const int GlContextProfileCompatibility = 0x0002; + + [NativeTypeName("#define SDL_GL_CONTEXT_PROFILE_ES 0x0004")] + public const int GlContextProfileEs = 0x0004; + + [NativeTypeName("#define SDL_GL_CONTEXT_DEBUG_FLAG 0x0001")] + public const int GlContextDebugFlag = 0x0001; + + [NativeTypeName("#define SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG 0x0002")] + public const int GlContextForwardCompatibleFlag = 0x0002; + + [NativeTypeName("#define SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG 0x0004")] + public const int GlContextRobustAccessFlag = 0x0004; + + [NativeTypeName("#define SDL_GL_CONTEXT_RESET_ISOLATION_FLAG 0x0008")] + public const int GlContextResetIsolationFlag = 0x0008; + + [NativeTypeName("#define SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE 0x0000")] + public const int GlContextReleaseBehaviorNone = 0x0000; + + [NativeTypeName("#define SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x0001")] + public const int GlContextReleaseBehaviorFlush = 0x0001; + + [NativeTypeName("#define SDL_GL_CONTEXT_RESET_NO_NOTIFICATION 0x0000")] + public const int GlContextResetNoNotification = 0x0000; + + [NativeTypeName("#define SDL_GL_CONTEXT_RESET_LOSE_CONTEXT 0x0001")] + public const int GlContextResetLoseContext = 0x0001; + [NativeTypeName("#define SDL_PROP_DISPLAY_HDR_ENABLED_BOOLEAN \"SDL.display.HDR_enabled\"")] public static Utf8String PropDisplayHdrEnabledBoolean => "SDL.display.HDR_enabled"u8; [NativeTypeName( - "#define SDL_PROP_DISPLAY_SDR_WHITE_POINT_FLOAT \"SDL.display.SDR_white_point\"" + "#define SDL_PROP_DISPLAY_KMSDRM_PANEL_ORIENTATION_NUMBER \"SDL.display.KMSDRM.panel_orientation\"" )] - public static Utf8String PropDisplaySdrWhitePointFloat => "SDL.display.SDR_white_point"u8; - - [NativeTypeName("#define SDL_PROP_DISPLAY_HDR_HEADROOM_FLOAT \"SDL.display.HDR_headroom\"")] - public static Utf8String PropDisplayHdrHeadroomFloat => "SDL.display.HDR_headroom"u8; + public static Utf8String PropDisplayKmsdrmPanelOrientationNumber => + "SDL.display.KMSDRM.panel_orientation"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_ALWAYS_ON_TOP_BOOLEAN \"always_on_top\"")] - public static Utf8String PropWindowCreateAlwaysOnTopBoolean => "always_on_top"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_ALWAYS_ON_TOP_BOOLEAN \"SDL.window.create.always_on_top\"" + )] + public static Utf8String PropWindowCreateAlwaysOnTopBoolean => + "SDL.window.create.always_on_top"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_BORDERLESS_BOOLEAN \"borderless\"")] - public static Utf8String PropWindowCreateBorderlessBoolean => "borderless"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_BORDERLESS_BOOLEAN \"SDL.window.create.borderless\"" + )] + public static Utf8String PropWindowCreateBorderlessBoolean => "SDL.window.create.borderless"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_FOCUSABLE_BOOLEAN \"focusable\"")] - public static Utf8String PropWindowCreateFocusableBoolean => "focusable"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_FOCUSABLE_BOOLEAN \"SDL.window.create.focusable\"" + )] + public static Utf8String PropWindowCreateFocusableBoolean => "SDL.window.create.focusable"u8; [NativeTypeName( - "#define SDL_PROP_WINDOW_CREATE_EXTERNAL_GRAPHICS_CONTEXT_BOOLEAN \"external_graphics_context\"" + "#define SDL_PROP_WINDOW_CREATE_EXTERNAL_GRAPHICS_CONTEXT_BOOLEAN \"SDL.window.create.external_graphics_context\"" )] public static Utf8String PropWindowCreateExternalGraphicsContextBoolean => - "external_graphics_context"u8; + "SDL.window.create.external_graphics_context"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_FULLSCREEN_BOOLEAN \"fullscreen\"")] - public static Utf8String PropWindowCreateFullscreenBoolean => "fullscreen"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_FLAGS_NUMBER \"SDL.window.create.flags\"")] + public static Utf8String PropWindowCreateFlagsNumber => "SDL.window.create.flags"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER \"height\"")] - public static Utf8String PropWindowCreateHeightNumber => "height"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_FULLSCREEN_BOOLEAN \"SDL.window.create.fullscreen\"" + )] + public static Utf8String PropWindowCreateFullscreenBoolean => "SDL.window.create.fullscreen"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_HIDDEN_BOOLEAN \"hidden\"")] - public static Utf8String PropWindowCreateHiddenBoolean => "hidden"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER \"SDL.window.create.height\"")] + public static Utf8String PropWindowCreateHeightNumber => "SDL.window.create.height"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_HIDDEN_BOOLEAN \"SDL.window.create.hidden\"")] + public static Utf8String PropWindowCreateHiddenBoolean => "SDL.window.create.hidden"u8; [NativeTypeName( - "#define SDL_PROP_WINDOW_CREATE_HIGH_PIXEL_DENSITY_BOOLEAN \"high_pixel_density\"" + "#define SDL_PROP_WINDOW_CREATE_HIGH_PIXEL_DENSITY_BOOLEAN \"SDL.window.create.high_pixel_density\"" )] - public static Utf8String PropWindowCreateHighPixelDensityBoolean => "high_pixel_density"u8; - - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MAXIMIZED_BOOLEAN \"maximized\"")] - public static Utf8String PropWindowCreateMaximizedBoolean => "maximized"u8; + public static Utf8String PropWindowCreateHighPixelDensityBoolean => + "SDL.window.create.high_pixel_density"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MENU_BOOLEAN \"menu\"")] - public static Utf8String PropWindowCreateMenuBoolean => "menu"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_MAXIMIZED_BOOLEAN \"SDL.window.create.maximized\"" + )] + public static Utf8String PropWindowCreateMaximizedBoolean => "SDL.window.create.maximized"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_METAL_BOOLEAN \"metal\"")] - public static Utf8String PropWindowCreateMetalBoolean => "metal"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MENU_BOOLEAN \"SDL.window.create.menu\"")] + public static Utf8String PropWindowCreateMenuBoolean => "SDL.window.create.menu"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MINIMIZED_BOOLEAN \"minimized\"")] - public static Utf8String PropWindowCreateMinimizedBoolean => "minimized"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_METAL_BOOLEAN \"SDL.window.create.metal\"")] + public static Utf8String PropWindowCreateMetalBoolean => "SDL.window.create.metal"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MODAL_BOOLEAN \"modal\"")] - public static Utf8String PropWindowCreateModalBoolean => "modal"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_MINIMIZED_BOOLEAN \"SDL.window.create.minimized\"" + )] + public static Utf8String PropWindowCreateMinimizedBoolean => "SDL.window.create.minimized"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MOUSE_GRABBED_BOOLEAN \"mouse_grabbed\"")] - public static Utf8String PropWindowCreateMouseGrabbedBoolean => "mouse_grabbed"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MODAL_BOOLEAN \"SDL.window.create.modal\"")] + public static Utf8String PropWindowCreateModalBoolean => "SDL.window.create.modal"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_OPENGL_BOOLEAN \"opengl\"")] - public static Utf8String PropWindowCreateOpenglBoolean => "opengl"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_MOUSE_GRABBED_BOOLEAN \"SDL.window.create.mouse_grabbed\"" + )] + public static Utf8String PropWindowCreateMouseGrabbedBoolean => + "SDL.window.create.mouse_grabbed"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_PARENT_POINTER \"parent\"")] - public static Utf8String PropWindowCreateParentPointer => "parent"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_OPENGL_BOOLEAN \"SDL.window.create.opengl\"")] + public static Utf8String PropWindowCreateOpenglBoolean => "SDL.window.create.opengl"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_RESIZABLE_BOOLEAN \"resizable\"")] - public static Utf8String PropWindowCreateResizableBoolean => "resizable"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_PARENT_POINTER \"SDL.window.create.parent\"")] + public static Utf8String PropWindowCreateParentPointer => "SDL.window.create.parent"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_TITLE_STRING \"title\"")] - public static Utf8String PropWindowCreateTitleString => "title"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_RESIZABLE_BOOLEAN \"SDL.window.create.resizable\"" + )] + public static Utf8String PropWindowCreateResizableBoolean => "SDL.window.create.resizable"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_TRANSPARENT_BOOLEAN \"transparent\"")] - public static Utf8String PropWindowCreateTransparentBoolean => "transparent"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_TITLE_STRING \"SDL.window.create.title\"")] + public static Utf8String PropWindowCreateTitleString => "SDL.window.create.title"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_TOOLTIP_BOOLEAN \"tooltip\"")] - public static Utf8String PropWindowCreateTooltipBoolean => "tooltip"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_TRANSPARENT_BOOLEAN \"SDL.window.create.transparent\"" + )] + public static Utf8String PropWindowCreateTransparentBoolean => + "SDL.window.create.transparent"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_UTILITY_BOOLEAN \"utility\"")] - public static Utf8String PropWindowCreateUtilityBoolean => "utility"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_TOOLTIP_BOOLEAN \"SDL.window.create.tooltip\"")] + public static Utf8String PropWindowCreateTooltipBoolean => "SDL.window.create.tooltip"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_VULKAN_BOOLEAN \"vulkan\"")] - public static Utf8String PropWindowCreateVulkanBoolean => "vulkan"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_UTILITY_BOOLEAN \"SDL.window.create.utility\"")] + public static Utf8String PropWindowCreateUtilityBoolean => "SDL.window.create.utility"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_WIDTH_NUMBER \"width\"")] - public static Utf8String PropWindowCreateWidthNumber => "width"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_VULKAN_BOOLEAN \"SDL.window.create.vulkan\"")] + public static Utf8String PropWindowCreateVulkanBoolean => "SDL.window.create.vulkan"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_X_NUMBER \"x\"")] - public static Utf8String PropWindowCreateXNumber => "x"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_WIDTH_NUMBER \"SDL.window.create.width\"")] + public static Utf8String PropWindowCreateWidthNumber => "SDL.window.create.width"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_Y_NUMBER \"y\"")] - public static Utf8String PropWindowCreateYNumber => "y"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_X_NUMBER \"SDL.window.create.x\"")] + public static Utf8String PropWindowCreateXNumber => "SDL.window.create.x"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_COCOA_WINDOW_POINTER \"cocoa.window\"")] - public static Utf8String PropWindowCreateCocoaWindowPointer => "cocoa.window"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_Y_NUMBER \"SDL.window.create.y\"")] + public static Utf8String PropWindowCreateYNumber => "SDL.window.create.y"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_COCOA_VIEW_POINTER \"cocoa.view\"")] - public static Utf8String PropWindowCreateCocoaViewPointer => "cocoa.view"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_COCOA_WINDOW_POINTER \"SDL.window.create.cocoa.window\"" + )] + public static Utf8String PropWindowCreateCocoaWindowPointer => + "SDL.window.create.cocoa.window"u8; [NativeTypeName( - "#define SDL_PROP_WINDOW_CREATE_WAYLAND_SCALE_TO_DISPLAY_BOOLEAN \"wayland.scale_to_display\"" + "#define SDL_PROP_WINDOW_CREATE_COCOA_VIEW_POINTER \"SDL.window.create.cocoa.view\"" )] - public static Utf8String PropWindowCreateWaylandScaleToDisplayBoolean => - "wayland.scale_to_display"u8; + public static Utf8String PropWindowCreateCocoaViewPointer => "SDL.window.create.cocoa.view"u8; [NativeTypeName( - "#define SDL_PROP_WINDOW_CREATE_WAYLAND_SURFACE_ROLE_CUSTOM_BOOLEAN \"wayland.surface_role_custom\"" + "#define SDL_PROP_WINDOW_CREATE_WAYLAND_SURFACE_ROLE_CUSTOM_BOOLEAN \"SDL.window.create.wayland.surface_role_custom\"" )] public static Utf8String PropWindowCreateWaylandSurfaceRoleCustomBoolean => - "wayland.surface_role_custom"u8; + "SDL.window.create.wayland.surface_role_custom"u8; [NativeTypeName( - "#define SDL_PROP_WINDOW_CREATE_WAYLAND_CREATE_EGL_WINDOW_BOOLEAN \"wayland.create_egl_window\"" + "#define SDL_PROP_WINDOW_CREATE_WAYLAND_CREATE_EGL_WINDOW_BOOLEAN \"SDL.window.create.wayland.create_egl_window\"" )] public static Utf8String PropWindowCreateWaylandCreateEglWindowBoolean => - "wayland.create_egl_window"u8; + "SDL.window.create.wayland.create_egl_window"u8; [NativeTypeName( - "#define SDL_PROP_WINDOW_CREATE_WAYLAND_WL_SURFACE_POINTER \"wayland.wl_surface\"" + "#define SDL_PROP_WINDOW_CREATE_WAYLAND_WL_SURFACE_POINTER \"SDL.window.create.wayland.wl_surface\"" )] - public static Utf8String PropWindowCreateWaylandWlSurfacePointer => "wayland.wl_surface"u8; + public static Utf8String PropWindowCreateWaylandWlSurfacePointer => + "SDL.window.create.wayland.wl_surface"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_WIN32_HWND_POINTER \"win32.hwnd\"")] - public static Utf8String PropWindowCreateWin32HwndPointer => "win32.hwnd"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_WIN32_HWND_POINTER \"SDL.window.create.win32.hwnd\"" + )] + public static Utf8String PropWindowCreateWin32HwndPointer => "SDL.window.create.win32.hwnd"u8; [NativeTypeName( - "#define SDL_PROP_WINDOW_CREATE_WIN32_PIXEL_FORMAT_HWND_POINTER \"win32.pixel_format_hwnd\"" + "#define SDL_PROP_WINDOW_CREATE_WIN32_PIXEL_FORMAT_HWND_POINTER \"SDL.window.create.win32.pixel_format_hwnd\"" )] public static Utf8String PropWindowCreateWin32PixelFormatHwndPointer => - "win32.pixel_format_hwnd"u8; + "SDL.window.create.win32.pixel_format_hwnd"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_X11_WINDOW_NUMBER \"x11.window\"")] - public static Utf8String PropWindowCreateX11WindowNumber => "x11.window"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_X11_WINDOW_NUMBER \"SDL.window.create.x11.window\"" + )] + public static Utf8String PropWindowCreateX11WindowNumber => "SDL.window.create.x11.window"u8; [NativeTypeName("#define SDL_PROP_WINDOW_SHAPE_POINTER \"SDL.window.shape\"")] public static Utf8String PropWindowShapePointer => "SDL.window.shape"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_HDR_ENABLED_BOOLEAN \"SDL.window.HDR_enabled\"")] + public static Utf8String PropWindowHdrEnabledBoolean => "SDL.window.HDR_enabled"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_SDR_WHITE_LEVEL_FLOAT \"SDL.window.SDR_white_level\"")] + public static Utf8String PropWindowSdrWhiteLevelFloat => "SDL.window.SDR_white_level"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_HDR_HEADROOM_FLOAT \"SDL.window.HDR_headroom\"")] + public static Utf8String PropWindowHdrHeadroomFloat => "SDL.window.HDR_headroom"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_ANDROID_WINDOW_POINTER \"SDL.window.android.window\"")] public static Utf8String PropWindowAndroidWindowPointer => "SDL.window.android.window"u8; @@ -37387,6 +45855,24 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String PropWindowUikitMetalViewTagNumber => "SDL.window.uikit.metal_view_tag"u8; + [NativeTypeName( + "#define SDL_PROP_WINDOW_UIKIT_OPENGL_FRAMEBUFFER_NUMBER \"SDL.window.uikit.opengl.framebuffer\"" + )] + public static Utf8String PropWindowUikitOpenglFramebufferNumber => + "SDL.window.uikit.opengl.framebuffer"u8; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_UIKIT_OPENGL_RENDERBUFFER_NUMBER \"SDL.window.uikit.opengl.renderbuffer\"" + )] + public static Utf8String PropWindowUikitOpenglRenderbufferNumber => + "SDL.window.uikit.opengl.renderbuffer"u8; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_UIKIT_OPENGL_RESOLVE_FRAMEBUFFER_NUMBER \"SDL.window.uikit.opengl.resolve_framebuffer\"" + )] + public static Utf8String PropWindowUikitOpenglResolveFramebufferNumber => + "SDL.window.uikit.opengl.resolve_framebuffer"u8; + [NativeTypeName( "#define SDL_PROP_WINDOW_KMSDRM_DEVICE_INDEX_NUMBER \"SDL.window.kmsdrm.dev_index\"" )] @@ -37409,6 +45895,9 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String PropWindowCocoaMetalViewTagNumber => "SDL.window.cocoa.metal_view_tag"u8; + [NativeTypeName("#define SDL_PROP_WINDOW_OPENVR_OVERLAY_ID \"SDL.window.openvr.overlay_id\"")] + public static Utf8String PropWindowOpenvrOverlayId => "SDL.window.openvr.overlay_id"u8; + [NativeTypeName( "#define SDL_PROP_WINDOW_VIVANTE_DISPLAY_POINTER \"SDL.window.vivante.display\"" )] @@ -37422,9 +45911,6 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte )] public static Utf8String PropWindowVivanteSurfacePointer => "SDL.window.vivante.surface"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_WINRT_WINDOW_POINTER \"SDL.window.winrt.window\"")] - public static Utf8String PropWindowWinrtWindowPointer => "SDL.window.winrt.window"u8; - [NativeTypeName("#define SDL_PROP_WINDOW_WIN32_HWND_POINTER \"SDL.window.win32.hwnd\"")] public static Utf8String PropWindowWin32HwndPointer => "SDL.window.win32.hwnd"u8; @@ -37487,8 +45973,14 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_PROP_WINDOW_X11_WINDOW_NUMBER \"SDL.window.x11.window\"")] public static Utf8String PropWindowX11WindowNumber => "SDL.window.x11.window"u8; - [NativeTypeName("#define SDL_CACHELINE_SIZE 128")] - public const int CachelineSize = 128; + [NativeTypeName("#define SDL_WINDOW_SURFACE_VSYNC_DISABLED 0")] + public const int WindowSurfaceVsyncDisabled = 0; + + [NativeTypeName("#define SDL_WINDOW_SURFACE_VSYNC_ADAPTIVE (-1)")] + public const int WindowSurfaceVsyncAdaptive = (-1); + + [NativeTypeName("#define SDL_STANDARD_GRAVITY 9.80665f")] + public const float StandardGravity = 9.80665f; [NativeTypeName("#define SDL_JOYSTICK_AXIS_MAX 32767")] public const int JoystickAxisMax = 32767; @@ -37496,9 +45988,6 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_JOYSTICK_AXIS_MIN -32768")] public const int JoystickAxisMin = -32768; - [NativeTypeName("#define SDL_IPHONE_MAX_GFORCE 5.0")] - public const double IphoneMaxGforce = 5.0; - [NativeTypeName("#define SDL_PROP_JOYSTICK_CAP_MONO_LED_BOOLEAN \"SDL.joystick.cap.mono_led\"")] public static Utf8String PropJoystickCapMonoLedBoolean => "SDL.joystick.cap.mono_led"u8; @@ -37519,35 +46008,32 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String PropJoystickCapTriggerRumbleBoolean => "SDL.joystick.cap.trigger_rumble"u8; - [NativeTypeName("#define SDL_HAT_CENTERED 0x00")] - public const int HatCentered = 0x00; + [NativeTypeName("#define SDL_HAT_CENTERED 0x00u")] + public const uint HatCentered = 0x00U; - [NativeTypeName("#define SDL_HAT_UP 0x01")] - public const int HatUp = 0x01; + [NativeTypeName("#define SDL_HAT_UP 0x01u")] + public const uint HatUp = 0x01U; - [NativeTypeName("#define SDL_HAT_RIGHT 0x02")] - public const int HatRight = 0x02; + [NativeTypeName("#define SDL_HAT_RIGHT 0x02u")] + public const uint HatRight = 0x02U; - [NativeTypeName("#define SDL_HAT_DOWN 0x04")] - public const int HatDown = 0x04; + [NativeTypeName("#define SDL_HAT_DOWN 0x04u")] + public const uint HatDown = 0x04U; - [NativeTypeName("#define SDL_HAT_LEFT 0x08")] - public const int HatLeft = 0x08; + [NativeTypeName("#define SDL_HAT_LEFT 0x08u")] + public const uint HatLeft = 0x08U; [NativeTypeName("#define SDL_HAT_RIGHTUP (SDL_HAT_RIGHT|SDL_HAT_UP)")] - public const int HatRightup = (0x02 | 0x01); + public const uint HatRightup = (0x02U | 0x01U); [NativeTypeName("#define SDL_HAT_RIGHTDOWN (SDL_HAT_RIGHT|SDL_HAT_DOWN)")] - public const int HatRightdown = (0x02 | 0x04); + public const uint HatRightdown = (0x02U | 0x04U); [NativeTypeName("#define SDL_HAT_LEFTUP (SDL_HAT_LEFT|SDL_HAT_UP)")] - public const int HatLeftup = (0x08 | 0x01); + public const uint HatLeftup = (0x08U | 0x01U); [NativeTypeName("#define SDL_HAT_LEFTDOWN (SDL_HAT_LEFT|SDL_HAT_DOWN)")] - public const int HatLeftdown = (0x08 | 0x04); - - [NativeTypeName("#define SDL_STANDARD_GRAVITY 9.80665f")] - public const float StandardGravity = 9.80665f; + public const uint HatLeftdown = (0x08U | 0x04U); [NativeTypeName( "#define SDL_PROP_GAMEPAD_CAP_MONO_LED_BOOLEAN SDL_PROP_JOYSTICK_CAP_MONO_LED_BOOLEAN" @@ -37575,896 +46061,886 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String PropGamepadCapTriggerRumbleBoolean => "SDL.joystick.cap.trigger_rumble"u8; - [NativeTypeName("#define SDLK_SCANCODE_MASK (1<<30)")] - public const int KScancodeMask = (1 << 30); + [NativeTypeName("#define SDLK_SCANCODE_MASK (1u<<30)")] + public const uint KScancodeMask = (1U << 30); + + [NativeTypeName("#define SDLK_UNKNOWN 0x00000000u")] + public const uint KUnknown = 0x00000000U; + + [NativeTypeName("#define SDLK_RETURN 0x0000000du")] + public const uint KReturn = 0x0000000dU; + + [NativeTypeName("#define SDLK_ESCAPE 0x0000001bu")] + public const uint KEscape = 0x0000001bU; + + [NativeTypeName("#define SDLK_BACKSPACE 0x00000008u")] + public const uint KBackspace = 0x00000008U; - [NativeTypeName("#define SDLK_UNKNOWN 0")] - public const int KUnknown = 0; + [NativeTypeName("#define SDLK_TAB 0x00000009u")] + public const uint KTab = 0x00000009U; - [NativeTypeName("#define SDLK_RETURN '\r'")] - public const sbyte KReturn = (sbyte)('\r'); + [NativeTypeName("#define SDLK_SPACE 0x00000020u")] + public const uint KSpace = 0x00000020U; - [NativeTypeName("#define SDLK_ESCAPE '\\x1B'")] - public const sbyte KEscape = (sbyte)(''); + [NativeTypeName("#define SDLK_EXCLAIM 0x00000021u")] + public const uint KExclaim = 0x00000021U; - [NativeTypeName("#define SDLK_BACKSPACE '\\b'")] - public const sbyte KBackspace = (sbyte)(''); + [NativeTypeName("#define SDLK_DBLAPOSTROPHE 0x00000022u")] + public const uint KDblapostrophe = 0x00000022U; - [NativeTypeName("#define SDLK_TAB '\t'")] - public const sbyte KTab = (sbyte)('\t'); + [NativeTypeName("#define SDLK_HASH 0x00000023u")] + public const uint KHash = 0x00000023U; - [NativeTypeName("#define SDLK_SPACE ' '")] - public const sbyte KSpace = (sbyte)(' '); + [NativeTypeName("#define SDLK_DOLLAR 0x00000024u")] + public const uint KDollar = 0x00000024U; - [NativeTypeName("#define SDLK_EXCLAIM '!'")] - public const sbyte KExclaim = (sbyte)('!'); + [NativeTypeName("#define SDLK_PERCENT 0x00000025u")] + public const uint KPercent = 0x00000025U; - [NativeTypeName("#define SDLK_QUOTEDBL '\"'")] - public const sbyte KQuotedbl = (sbyte)('"'); + [NativeTypeName("#define SDLK_AMPERSAND 0x00000026u")] + public const uint KAmpersand = 0x00000026U; - [NativeTypeName("#define SDLK_HASH '#'")] - public const sbyte KHash = (sbyte)('#'); + [NativeTypeName("#define SDLK_APOSTROPHE 0x00000027u")] + public const uint KApostrophe = 0x00000027U; - [NativeTypeName("#define SDLK_PERCENT '%'")] - public const sbyte KPercent = (sbyte)('%'); + [NativeTypeName("#define SDLK_LEFTPAREN 0x00000028u")] + public const uint KLeftparen = 0x00000028U; - [NativeTypeName("#define SDLK_DOLLAR '$'")] - public const sbyte KDollar = (sbyte)('$'); + [NativeTypeName("#define SDLK_RIGHTPAREN 0x00000029u")] + public const uint KRightparen = 0x00000029U; - [NativeTypeName("#define SDLK_AMPERSAND '&'")] - public const sbyte KAmpersand = (sbyte)('&'); + [NativeTypeName("#define SDLK_ASTERISK 0x0000002au")] + public const uint KAsterisk = 0x0000002aU; - [NativeTypeName("#define SDLK_QUOTE '\\''")] - public const sbyte KQuote = (sbyte)('\''); + [NativeTypeName("#define SDLK_PLUS 0x0000002bu")] + public const uint KPlus = 0x0000002bU; - [NativeTypeName("#define SDLK_LEFTPAREN '('")] - public const sbyte KLeftparen = (sbyte)('('); + [NativeTypeName("#define SDLK_COMMA 0x0000002cu")] + public const uint KComma = 0x0000002cU; - [NativeTypeName("#define SDLK_RIGHTPAREN ')'")] - public const sbyte KRightparen = (sbyte)(')'); + [NativeTypeName("#define SDLK_MINUS 0x0000002du")] + public const uint KMinus = 0x0000002dU; - [NativeTypeName("#define SDLK_ASTERISK '*'")] - public const sbyte KAsterisk = (sbyte)('*'); + [NativeTypeName("#define SDLK_PERIOD 0x0000002eu")] + public const uint KPeriod = 0x0000002eU; - [NativeTypeName("#define SDLK_PLUS '+'")] - public const sbyte KPlus = (sbyte)('+'); + [NativeTypeName("#define SDLK_SLASH 0x0000002fu")] + public const uint KSlash = 0x0000002fU; - [NativeTypeName("#define SDLK_COMMA ','")] - public const sbyte KComma = (sbyte)(','); + [NativeTypeName("#define SDLK_0 0x00000030u")] + public const uint K0 = 0x00000030U; - [NativeTypeName("#define SDLK_MINUS '-'")] - public const sbyte KMinus = (sbyte)('-'); + [NativeTypeName("#define SDLK_1 0x00000031u")] + public const uint K1 = 0x00000031U; - [NativeTypeName("#define SDLK_PERIOD '.'")] - public const sbyte KPeriod = (sbyte)('.'); + [NativeTypeName("#define SDLK_2 0x00000032u")] + public const uint K2 = 0x00000032U; - [NativeTypeName("#define SDLK_SLASH '/'")] - public const sbyte KSlash = (sbyte)('/'); + [NativeTypeName("#define SDLK_3 0x00000033u")] + public const uint K3 = 0x00000033U; - [NativeTypeName("#define SDLK_0 '0'")] - public const sbyte K0 = (sbyte)('0'); + [NativeTypeName("#define SDLK_4 0x00000034u")] + public const uint K4 = 0x00000034U; - [NativeTypeName("#define SDLK_1 '1'")] - public const sbyte K1 = (sbyte)('1'); + [NativeTypeName("#define SDLK_5 0x00000035u")] + public const uint K5 = 0x00000035U; - [NativeTypeName("#define SDLK_2 '2'")] - public const sbyte K2 = (sbyte)('2'); + [NativeTypeName("#define SDLK_6 0x00000036u")] + public const uint K6 = 0x00000036U; - [NativeTypeName("#define SDLK_3 '3'")] - public const sbyte K3 = (sbyte)('3'); + [NativeTypeName("#define SDLK_7 0x00000037u")] + public const uint K7 = 0x00000037U; - [NativeTypeName("#define SDLK_4 '4'")] - public const sbyte K4 = (sbyte)('4'); + [NativeTypeName("#define SDLK_8 0x00000038u")] + public const uint K8 = 0x00000038U; - [NativeTypeName("#define SDLK_5 '5'")] - public const sbyte K5 = (sbyte)('5'); + [NativeTypeName("#define SDLK_9 0x00000039u")] + public const uint K9 = 0x00000039U; - [NativeTypeName("#define SDLK_6 '6'")] - public const sbyte K6 = (sbyte)('6'); + [NativeTypeName("#define SDLK_COLON 0x0000003au")] + public const uint KColon = 0x0000003aU; - [NativeTypeName("#define SDLK_7 '7'")] - public const sbyte K7 = (sbyte)('7'); + [NativeTypeName("#define SDLK_SEMICOLON 0x0000003bu")] + public const uint KSemicolon = 0x0000003bU; - [NativeTypeName("#define SDLK_8 '8'")] - public const sbyte K8 = (sbyte)('8'); + [NativeTypeName("#define SDLK_LESS 0x0000003cu")] + public const uint KLess = 0x0000003cU; - [NativeTypeName("#define SDLK_9 '9'")] - public const sbyte K9 = (sbyte)('9'); + [NativeTypeName("#define SDLK_EQUALS 0x0000003du")] + public const uint KEquals = 0x0000003dU; - [NativeTypeName("#define SDLK_COLON ':'")] - public const sbyte KColon = (sbyte)(':'); + [NativeTypeName("#define SDLK_GREATER 0x0000003eu")] + public const uint KGreater = 0x0000003eU; - [NativeTypeName("#define SDLK_SEMICOLON ';'")] - public const sbyte KSemicolon = (sbyte)(';'); + [NativeTypeName("#define SDLK_QUESTION 0x0000003fu")] + public const uint KQuestion = 0x0000003fU; - [NativeTypeName("#define SDLK_LESS '<'")] - public const sbyte KLess = (sbyte)('<'); + [NativeTypeName("#define SDLK_AT 0x00000040u")] + public const uint KAt = 0x00000040U; - [NativeTypeName("#define SDLK_EQUALS '='")] - public const sbyte KEquals = (sbyte)('='); + [NativeTypeName("#define SDLK_LEFTBRACKET 0x0000005bu")] + public const uint KLeftbracket = 0x0000005bU; - [NativeTypeName("#define SDLK_GREATER '>'")] - public const sbyte KGreater = (sbyte)('>'); + [NativeTypeName("#define SDLK_BACKSLASH 0x0000005cu")] + public const uint KBackslash = 0x0000005cU; - [NativeTypeName("#define SDLK_QUESTION '?'")] - public const sbyte KQuestion = (sbyte)('?'); + [NativeTypeName("#define SDLK_RIGHTBRACKET 0x0000005du")] + public const uint KRightbracket = 0x0000005dU; - [NativeTypeName("#define SDLK_AT '@'")] - public const sbyte KAt = (sbyte)('@'); + [NativeTypeName("#define SDLK_CARET 0x0000005eu")] + public const uint KCaret = 0x0000005eU; - [NativeTypeName("#define SDLK_LEFTBRACKET '['")] - public const sbyte KLeftbracket = (sbyte)('['); + [NativeTypeName("#define SDLK_UNDERSCORE 0x0000005fu")] + public const uint KUnderscore = 0x0000005fU; - [NativeTypeName("#define SDLK_BACKSLASH '\\'")] - public const sbyte KBackslash = (sbyte)('\\'); + [NativeTypeName("#define SDLK_GRAVE 0x00000060u")] + public const uint KGrave = 0x00000060U; - [NativeTypeName("#define SDLK_RIGHTBRACKET ']'")] - public const sbyte KRightbracket = (sbyte)(']'); + [NativeTypeName("#define SDLK_A 0x00000061u")] + public const uint Ka = 0x00000061U; - [NativeTypeName("#define SDLK_CARET '^'")] - public const sbyte KCaret = (sbyte)('^'); + [NativeTypeName("#define SDLK_B 0x00000062u")] + public const uint Kb = 0x00000062U; - [NativeTypeName("#define SDLK_UNDERSCORE '_'")] - public const sbyte KUnderscore = (sbyte)('_'); + [NativeTypeName("#define SDLK_C 0x00000063u")] + public const uint Kc = 0x00000063U; - [NativeTypeName("#define SDLK_BACKQUOTE '`'")] - public const sbyte KBackquote = (sbyte)('`'); + [NativeTypeName("#define SDLK_D 0x00000064u")] + public const uint Kd = 0x00000064U; - [NativeTypeName("#define SDLK_a 'a'")] - public const sbyte Ka = (sbyte)('a'); + [NativeTypeName("#define SDLK_E 0x00000065u")] + public const uint Ke = 0x00000065U; - [NativeTypeName("#define SDLK_b 'b'")] - public const sbyte Kb = (sbyte)('b'); + [NativeTypeName("#define SDLK_F 0x00000066u")] + public const uint Kf = 0x00000066U; - [NativeTypeName("#define SDLK_c 'c'")] - public const sbyte Kc = (sbyte)('c'); + [NativeTypeName("#define SDLK_G 0x00000067u")] + public const uint Kg = 0x00000067U; - [NativeTypeName("#define SDLK_d 'd'")] - public const sbyte Kd = (sbyte)('d'); + [NativeTypeName("#define SDLK_H 0x00000068u")] + public const uint Kh = 0x00000068U; - [NativeTypeName("#define SDLK_e 'e'")] - public const sbyte Ke = (sbyte)('e'); + [NativeTypeName("#define SDLK_I 0x00000069u")] + public const uint Ki = 0x00000069U; - [NativeTypeName("#define SDLK_f 'f'")] - public const sbyte Kf = (sbyte)('f'); + [NativeTypeName("#define SDLK_J 0x0000006au")] + public const uint Kj = 0x0000006aU; - [NativeTypeName("#define SDLK_g 'g'")] - public const sbyte Kg = (sbyte)('g'); + [NativeTypeName("#define SDLK_K 0x0000006bu")] + public const uint Kk = 0x0000006bU; - [NativeTypeName("#define SDLK_h 'h'")] - public const sbyte Kh = (sbyte)('h'); + [NativeTypeName("#define SDLK_L 0x0000006cu")] + public const uint Kl = 0x0000006cU; - [NativeTypeName("#define SDLK_i 'i'")] - public const sbyte Ki = (sbyte)('i'); + [NativeTypeName("#define SDLK_M 0x0000006du")] + public const uint Km = 0x0000006dU; - [NativeTypeName("#define SDLK_j 'j'")] - public const sbyte Kj = (sbyte)('j'); + [NativeTypeName("#define SDLK_N 0x0000006eu")] + public const uint Kn = 0x0000006eU; - [NativeTypeName("#define SDLK_k 'k'")] - public const sbyte Kk = (sbyte)('k'); + [NativeTypeName("#define SDLK_O 0x0000006fu")] + public const uint Ko = 0x0000006fU; - [NativeTypeName("#define SDLK_l 'l'")] - public const sbyte Kl = (sbyte)('l'); + [NativeTypeName("#define SDLK_P 0x00000070u")] + public const uint Kp = 0x00000070U; - [NativeTypeName("#define SDLK_m 'm'")] - public const sbyte Km = (sbyte)('m'); + [NativeTypeName("#define SDLK_Q 0x00000071u")] + public const uint Kq = 0x00000071U; - [NativeTypeName("#define SDLK_n 'n'")] - public const sbyte Kn = (sbyte)('n'); + [NativeTypeName("#define SDLK_R 0x00000072u")] + public const uint Kr = 0x00000072U; - [NativeTypeName("#define SDLK_o 'o'")] - public const sbyte Ko = (sbyte)('o'); + [NativeTypeName("#define SDLK_S 0x00000073u")] + public const uint Ks = 0x00000073U; - [NativeTypeName("#define SDLK_p 'p'")] - public const sbyte Kp = (sbyte)('p'); + [NativeTypeName("#define SDLK_T 0x00000074u")] + public const uint Kt = 0x00000074U; - [NativeTypeName("#define SDLK_q 'q'")] - public const sbyte Kq = (sbyte)('q'); + [NativeTypeName("#define SDLK_U 0x00000075u")] + public const uint Ku = 0x00000075U; - [NativeTypeName("#define SDLK_r 'r'")] - public const sbyte Kr = (sbyte)('r'); + [NativeTypeName("#define SDLK_V 0x00000076u")] + public const uint Kv = 0x00000076U; - [NativeTypeName("#define SDLK_s 's'")] - public const sbyte Ks = (sbyte)('s'); + [NativeTypeName("#define SDLK_W 0x00000077u")] + public const uint Kw = 0x00000077U; - [NativeTypeName("#define SDLK_t 't'")] - public const sbyte Kt = (sbyte)('t'); + [NativeTypeName("#define SDLK_X 0x00000078u")] + public const uint Kx = 0x00000078U; - [NativeTypeName("#define SDLK_u 'u'")] - public const sbyte Ku = (sbyte)('u'); + [NativeTypeName("#define SDLK_Y 0x00000079u")] + public const uint Ky = 0x00000079U; - [NativeTypeName("#define SDLK_v 'v'")] - public const sbyte Kv = (sbyte)('v'); + [NativeTypeName("#define SDLK_Z 0x0000007au")] + public const uint Kz = 0x0000007aU; - [NativeTypeName("#define SDLK_w 'w'")] - public const sbyte Kw = (sbyte)('w'); + [NativeTypeName("#define SDLK_LEFTBRACE 0x0000007bu")] + public const uint KLeftbrace = 0x0000007bU; - [NativeTypeName("#define SDLK_x 'x'")] - public const sbyte Kx = (sbyte)('x'); + [NativeTypeName("#define SDLK_PIPE 0x0000007cu")] + public const uint KPipe = 0x0000007cU; - [NativeTypeName("#define SDLK_y 'y'")] - public const sbyte Ky = (sbyte)('y'); + [NativeTypeName("#define SDLK_RIGHTBRACE 0x0000007du")] + public const uint KRightbrace = 0x0000007dU; - [NativeTypeName("#define SDLK_z 'z'")] - public const sbyte Kz = (sbyte)('z'); + [NativeTypeName("#define SDLK_TILDE 0x0000007eu")] + public const uint KTilde = 0x0000007eU; - [NativeTypeName("#define SDLK_CAPSLOCK SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CAPSLOCK)")] - public const int KCapslock = ((int)(Scancode.ScancodeCapslock) | (1 << 30)); + [NativeTypeName("#define SDLK_DELETE 0x0000007fu")] + public const uint KDelete = 0x0000007fU; - [NativeTypeName("#define SDLK_F1 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F1)")] - public const int KF1 = ((int)(Scancode.ScancodeF1) | (1 << 30)); + [NativeTypeName("#define SDLK_PLUSMINUS 0x000000b1u")] + public const uint KPlusminus = 0x000000b1U; - [NativeTypeName("#define SDLK_F2 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F2)")] - public const int KF2 = ((int)(Scancode.ScancodeF2) | (1 << 30)); + [NativeTypeName("#define SDLK_CAPSLOCK 0x40000039u")] + public const uint KCapslock = 0x40000039U; - [NativeTypeName("#define SDLK_F3 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F3)")] - public const int KF3 = ((int)(Scancode.ScancodeF3) | (1 << 30)); + [NativeTypeName("#define SDLK_F1 0x4000003au")] + public const uint KF1 = 0x4000003aU; - [NativeTypeName("#define SDLK_F4 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F4)")] - public const int KF4 = ((int)(Scancode.ScancodeF4) | (1 << 30)); + [NativeTypeName("#define SDLK_F2 0x4000003bu")] + public const uint KF2 = 0x4000003bU; - [NativeTypeName("#define SDLK_F5 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F5)")] - public const int KF5 = ((int)(Scancode.ScancodeF5) | (1 << 30)); + [NativeTypeName("#define SDLK_F3 0x4000003cu")] + public const uint KF3 = 0x4000003cU; - [NativeTypeName("#define SDLK_F6 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F6)")] - public const int KF6 = ((int)(Scancode.ScancodeF6) | (1 << 30)); + [NativeTypeName("#define SDLK_F4 0x4000003du")] + public const uint KF4 = 0x4000003dU; - [NativeTypeName("#define SDLK_F7 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F7)")] - public const int KF7 = ((int)(Scancode.ScancodeF7) | (1 << 30)); + [NativeTypeName("#define SDLK_F5 0x4000003eu")] + public const uint KF5 = 0x4000003eU; - [NativeTypeName("#define SDLK_F8 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F8)")] - public const int KF8 = ((int)(Scancode.ScancodeF8) | (1 << 30)); + [NativeTypeName("#define SDLK_F6 0x4000003fu")] + public const uint KF6 = 0x4000003fU; - [NativeTypeName("#define SDLK_F9 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F9)")] - public const int KF9 = ((int)(Scancode.ScancodeF9) | (1 << 30)); + [NativeTypeName("#define SDLK_F7 0x40000040u")] + public const uint KF7 = 0x40000040U; - [NativeTypeName("#define SDLK_F10 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F10)")] - public const int KF10 = ((int)(Scancode.ScancodeF10) | (1 << 30)); + [NativeTypeName("#define SDLK_F8 0x40000041u")] + public const uint KF8 = 0x40000041U; - [NativeTypeName("#define SDLK_F11 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F11)")] - public const int KF11 = ((int)(Scancode.ScancodeF11) | (1 << 30)); + [NativeTypeName("#define SDLK_F9 0x40000042u")] + public const uint KF9 = 0x40000042U; - [NativeTypeName("#define SDLK_F12 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F12)")] - public const int KF12 = ((int)(Scancode.ScancodeF12) | (1 << 30)); + [NativeTypeName("#define SDLK_F10 0x40000043u")] + public const uint KF10 = 0x40000043U; - [NativeTypeName("#define SDLK_PRINTSCREEN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRINTSCREEN)")] - public const int KPrintscreen = ((int)(Scancode.ScancodePrintscreen) | (1 << 30)); + [NativeTypeName("#define SDLK_F11 0x40000044u")] + public const uint KF11 = 0x40000044U; - [NativeTypeName("#define SDLK_SCROLLLOCK SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SCROLLLOCK)")] - public const int KScrolllock = ((int)(Scancode.ScancodeScrolllock) | (1 << 30)); + [NativeTypeName("#define SDLK_F12 0x40000045u")] + public const uint KF12 = 0x40000045U; - [NativeTypeName("#define SDLK_PAUSE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAUSE)")] - public const int KPause = ((int)(Scancode.ScancodePause) | (1 << 30)); + [NativeTypeName("#define SDLK_PRINTSCREEN 0x40000046u")] + public const uint KPrintscreen = 0x40000046U; - [NativeTypeName("#define SDLK_INSERT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_INSERT)")] - public const int KInsert = ((int)(Scancode.ScancodeInsert) | (1 << 30)); + [NativeTypeName("#define SDLK_SCROLLLOCK 0x40000047u")] + public const uint KScrolllock = 0x40000047U; - [NativeTypeName("#define SDLK_HOME SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HOME)")] - public const int KHome = ((int)(Scancode.ScancodeHome) | (1 << 30)); + [NativeTypeName("#define SDLK_PAUSE 0x40000048u")] + public const uint KPause = 0x40000048U; - [NativeTypeName("#define SDLK_PAGEUP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEUP)")] - public const int KPageup = ((int)(Scancode.ScancodePageup) | (1 << 30)); + [NativeTypeName("#define SDLK_INSERT 0x40000049u")] + public const uint KInsert = 0x40000049U; - [NativeTypeName("#define SDLK_DELETE '\\x7F'")] - public const sbyte KDelete = (sbyte)(''); + [NativeTypeName("#define SDLK_HOME 0x4000004au")] + public const uint KHome = 0x4000004aU; - [NativeTypeName("#define SDLK_END SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_END)")] - public const int KEnd = ((int)(Scancode.ScancodeEnd) | (1 << 30)); + [NativeTypeName("#define SDLK_PAGEUP 0x4000004bu")] + public const uint KPageup = 0x4000004bU; - [NativeTypeName("#define SDLK_PAGEDOWN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEDOWN)")] - public const int KPagedown = ((int)(Scancode.ScancodePagedown) | (1 << 30)); + [NativeTypeName("#define SDLK_END 0x4000004du")] + public const uint KEnd = 0x4000004dU; - [NativeTypeName("#define SDLK_RIGHT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RIGHT)")] - public const int KRight = ((int)(Scancode.ScancodeRight) | (1 << 30)); + [NativeTypeName("#define SDLK_PAGEDOWN 0x4000004eu")] + public const uint KPagedown = 0x4000004eU; - [NativeTypeName("#define SDLK_LEFT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LEFT)")] - public const int KLeft = ((int)(Scancode.ScancodeLeft) | (1 << 30)); + [NativeTypeName("#define SDLK_RIGHT 0x4000004fu")] + public const uint KRight = 0x4000004fU; - [NativeTypeName("#define SDLK_DOWN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DOWN)")] - public const int KDown = ((int)(Scancode.ScancodeDown) | (1 << 30)); + [NativeTypeName("#define SDLK_LEFT 0x40000050u")] + public const uint KLeft = 0x40000050U; - [NativeTypeName("#define SDLK_UP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UP)")] - public const int KUp = ((int)(Scancode.ScancodeUp) | (1 << 30)); + [NativeTypeName("#define SDLK_DOWN 0x40000051u")] + public const uint KDown = 0x40000051U; - [NativeTypeName("#define SDLK_NUMLOCKCLEAR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_NUMLOCKCLEAR)")] - public const int KNumlockclear = ((int)(Scancode.ScancodeNumlockclear) | (1 << 30)); + [NativeTypeName("#define SDLK_UP 0x40000052u")] + public const uint KUp = 0x40000052U; - [NativeTypeName("#define SDLK_KP_DIVIDE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DIVIDE)")] - public const int KKpDivide = ((int)(Scancode.ScancodeKpDivide) | (1 << 30)); + [NativeTypeName("#define SDLK_NUMLOCKCLEAR 0x40000053u")] + public const uint KNumlockclear = 0x40000053U; - [NativeTypeName("#define SDLK_KP_MULTIPLY SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MULTIPLY)")] - public const int KKpMultiply = ((int)(Scancode.ScancodeKpMultiply) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_DIVIDE 0x40000054u")] + public const uint KKpDivide = 0x40000054U; - [NativeTypeName("#define SDLK_KP_MINUS SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MINUS)")] - public const int KKpMinus = ((int)(Scancode.ScancodeKpMinus) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_MULTIPLY 0x40000055u")] + public const uint KKpMultiply = 0x40000055U; - [NativeTypeName("#define SDLK_KP_PLUS SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUS)")] - public const int KKpPlus = ((int)(Scancode.ScancodeKpPlus) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_MINUS 0x40000056u")] + public const uint KKpMinus = 0x40000056U; - [NativeTypeName("#define SDLK_KP_ENTER SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_ENTER)")] - public const int KKpEnter = ((int)(Scancode.ScancodeKpEnter) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_PLUS 0x40000057u")] + public const uint KKpPlus = 0x40000057U; - [NativeTypeName("#define SDLK_KP_1 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_1)")] - public const int KKp1 = ((int)(Scancode.ScancodeKp1) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_ENTER 0x40000058u")] + public const uint KKpEnter = 0x40000058U; - [NativeTypeName("#define SDLK_KP_2 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_2)")] - public const int KKp2 = ((int)(Scancode.ScancodeKp2) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_1 0x40000059u")] + public const uint KKp1 = 0x40000059U; - [NativeTypeName("#define SDLK_KP_3 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_3)")] - public const int KKp3 = ((int)(Scancode.ScancodeKp3) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_2 0x4000005au")] + public const uint KKp2 = 0x4000005aU; - [NativeTypeName("#define SDLK_KP_4 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_4)")] - public const int KKp4 = ((int)(Scancode.ScancodeKp4) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_3 0x4000005bu")] + public const uint KKp3 = 0x4000005bU; - [NativeTypeName("#define SDLK_KP_5 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_5)")] - public const int KKp5 = ((int)(Scancode.ScancodeKp5) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_4 0x4000005cu")] + public const uint KKp4 = 0x4000005cU; - [NativeTypeName("#define SDLK_KP_6 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_6)")] - public const int KKp6 = ((int)(Scancode.ScancodeKp6) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_5 0x4000005du")] + public const uint KKp5 = 0x4000005dU; - [NativeTypeName("#define SDLK_KP_7 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_7)")] - public const int KKp7 = ((int)(Scancode.ScancodeKp7) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_6 0x4000005eu")] + public const uint KKp6 = 0x4000005eU; - [NativeTypeName("#define SDLK_KP_8 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_8)")] - public const int KKp8 = ((int)(Scancode.ScancodeKp8) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_7 0x4000005fu")] + public const uint KKp7 = 0x4000005fU; - [NativeTypeName("#define SDLK_KP_9 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_9)")] - public const int KKp9 = ((int)(Scancode.ScancodeKp9) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_8 0x40000060u")] + public const uint KKp8 = 0x40000060U; - [NativeTypeName("#define SDLK_KP_0 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_0)")] - public const int KKp0 = ((int)(Scancode.ScancodeKp0) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_9 0x40000061u")] + public const uint KKp9 = 0x40000061U; - [NativeTypeName("#define SDLK_KP_PERIOD SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERIOD)")] - public const int KKpPeriod = ((int)(Scancode.ScancodeKpPeriod) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_0 0x40000062u")] + public const uint KKp0 = 0x40000062U; - [NativeTypeName("#define SDLK_APPLICATION SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APPLICATION)")] - public const int KApplication = ((int)(Scancode.ScancodeApplication) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_PERIOD 0x40000063u")] + public const uint KKpPeriod = 0x40000063U; - [NativeTypeName("#define SDLK_POWER SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_POWER)")] - public const int KPower = ((int)(Scancode.ScancodePower) | (1 << 30)); + [NativeTypeName("#define SDLK_APPLICATION 0x40000065u")] + public const uint KApplication = 0x40000065U; - [NativeTypeName("#define SDLK_KP_EQUALS SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALS)")] - public const int KKpEquals = ((int)(Scancode.ScancodeKpEquals) | (1 << 30)); + [NativeTypeName("#define SDLK_POWER 0x40000066u")] + public const uint KPower = 0x40000066U; - [NativeTypeName("#define SDLK_F13 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F13)")] - public const int KF13 = ((int)(Scancode.ScancodeF13) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_EQUALS 0x40000067u")] + public const uint KKpEquals = 0x40000067U; - [NativeTypeName("#define SDLK_F14 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F14)")] - public const int KF14 = ((int)(Scancode.ScancodeF14) | (1 << 30)); + [NativeTypeName("#define SDLK_F13 0x40000068u")] + public const uint KF13 = 0x40000068U; - [NativeTypeName("#define SDLK_F15 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F15)")] - public const int KF15 = ((int)(Scancode.ScancodeF15) | (1 << 30)); + [NativeTypeName("#define SDLK_F14 0x40000069u")] + public const uint KF14 = 0x40000069U; - [NativeTypeName("#define SDLK_F16 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F16)")] - public const int KF16 = ((int)(Scancode.ScancodeF16) | (1 << 30)); + [NativeTypeName("#define SDLK_F15 0x4000006au")] + public const uint KF15 = 0x4000006aU; - [NativeTypeName("#define SDLK_F17 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F17)")] - public const int KF17 = ((int)(Scancode.ScancodeF17) | (1 << 30)); + [NativeTypeName("#define SDLK_F16 0x4000006bu")] + public const uint KF16 = 0x4000006bU; - [NativeTypeName("#define SDLK_F18 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F18)")] - public const int KF18 = ((int)(Scancode.ScancodeF18) | (1 << 30)); + [NativeTypeName("#define SDLK_F17 0x4000006cu")] + public const uint KF17 = 0x4000006cU; - [NativeTypeName("#define SDLK_F19 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F19)")] - public const int KF19 = ((int)(Scancode.ScancodeF19) | (1 << 30)); + [NativeTypeName("#define SDLK_F18 0x4000006du")] + public const uint KF18 = 0x4000006dU; - [NativeTypeName("#define SDLK_F20 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F20)")] - public const int KF20 = ((int)(Scancode.ScancodeF20) | (1 << 30)); + [NativeTypeName("#define SDLK_F19 0x4000006eu")] + public const uint KF19 = 0x4000006eU; - [NativeTypeName("#define SDLK_F21 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F21)")] - public const int KF21 = ((int)(Scancode.ScancodeF21) | (1 << 30)); + [NativeTypeName("#define SDLK_F20 0x4000006fu")] + public const uint KF20 = 0x4000006fU; - [NativeTypeName("#define SDLK_F22 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F22)")] - public const int KF22 = ((int)(Scancode.ScancodeF22) | (1 << 30)); + [NativeTypeName("#define SDLK_F21 0x40000070u")] + public const uint KF21 = 0x40000070U; - [NativeTypeName("#define SDLK_F23 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F23)")] - public const int KF23 = ((int)(Scancode.ScancodeF23) | (1 << 30)); + [NativeTypeName("#define SDLK_F22 0x40000071u")] + public const uint KF22 = 0x40000071U; - [NativeTypeName("#define SDLK_F24 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F24)")] - public const int KF24 = ((int)(Scancode.ScancodeF24) | (1 << 30)); + [NativeTypeName("#define SDLK_F23 0x40000072u")] + public const uint KF23 = 0x40000072U; - [NativeTypeName("#define SDLK_EXECUTE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXECUTE)")] - public const int KExecute = ((int)(Scancode.ScancodeExecute) | (1 << 30)); + [NativeTypeName("#define SDLK_F24 0x40000073u")] + public const uint KF24 = 0x40000073U; - [NativeTypeName("#define SDLK_HELP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HELP)")] - public const int KHelp = ((int)(Scancode.ScancodeHelp) | (1 << 30)); + [NativeTypeName("#define SDLK_EXECUTE 0x40000074u")] + public const uint KExecute = 0x40000074U; - [NativeTypeName("#define SDLK_MENU SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MENU)")] - public const int KMenu = ((int)(Scancode.ScancodeMenu) | (1 << 30)); + [NativeTypeName("#define SDLK_HELP 0x40000075u")] + public const uint KHelp = 0x40000075U; - [NativeTypeName("#define SDLK_SELECT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SELECT)")] - public const int KSelect = ((int)(Scancode.ScancodeSelect) | (1 << 30)); + [NativeTypeName("#define SDLK_MENU 0x40000076u")] + public const uint KMenu = 0x40000076U; - [NativeTypeName("#define SDLK_STOP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_STOP)")] - public const int KStop = ((int)(Scancode.ScancodeStop) | (1 << 30)); + [NativeTypeName("#define SDLK_SELECT 0x40000077u")] + public const uint KSelect = 0x40000077U; - [NativeTypeName("#define SDLK_AGAIN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AGAIN)")] - public const int KAgain = ((int)(Scancode.ScancodeAgain) | (1 << 30)); + [NativeTypeName("#define SDLK_STOP 0x40000078u")] + public const uint KStop = 0x40000078U; - [NativeTypeName("#define SDLK_UNDO SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UNDO)")] - public const int KUndo = ((int)(Scancode.ScancodeUndo) | (1 << 30)); + [NativeTypeName("#define SDLK_AGAIN 0x40000079u")] + public const uint KAgain = 0x40000079U; - [NativeTypeName("#define SDLK_CUT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CUT)")] - public const int KCut = ((int)(Scancode.ScancodeCut) | (1 << 30)); + [NativeTypeName("#define SDLK_UNDO 0x4000007au")] + public const uint KUndo = 0x4000007aU; - [NativeTypeName("#define SDLK_COPY SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COPY)")] - public const int KCopy = ((int)(Scancode.ScancodeCopy) | (1 << 30)); + [NativeTypeName("#define SDLK_CUT 0x4000007bu")] + public const uint KCut = 0x4000007bU; - [NativeTypeName("#define SDLK_PASTE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PASTE)")] - public const int KPaste = ((int)(Scancode.ScancodePaste) | (1 << 30)); + [NativeTypeName("#define SDLK_COPY 0x4000007cu")] + public const uint KCopy = 0x4000007cU; - [NativeTypeName("#define SDLK_FIND SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_FIND)")] - public const int KFind = ((int)(Scancode.ScancodeFind) | (1 << 30)); + [NativeTypeName("#define SDLK_PASTE 0x4000007du")] + public const uint KPaste = 0x4000007dU; - [NativeTypeName("#define SDLK_MUTE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MUTE)")] - public const int KMute = ((int)(Scancode.ScancodeMute) | (1 << 30)); + [NativeTypeName("#define SDLK_FIND 0x4000007eu")] + public const uint KFind = 0x4000007eU; - [NativeTypeName("#define SDLK_VOLUMEUP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEUP)")] - public const int KVolumeup = ((int)(Scancode.ScancodeVolumeup) | (1 << 30)); + [NativeTypeName("#define SDLK_MUTE 0x4000007fu")] + public const uint KMute = 0x4000007fU; - [NativeTypeName("#define SDLK_VOLUMEDOWN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEDOWN)")] - public const int KVolumedown = ((int)(Scancode.ScancodeVolumedown) | (1 << 30)); + [NativeTypeName("#define SDLK_VOLUMEUP 0x40000080u")] + public const uint KVolumeup = 0x40000080U; - [NativeTypeName("#define SDLK_KP_COMMA SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COMMA)")] - public const int KKpComma = ((int)(Scancode.ScancodeKpComma) | (1 << 30)); + [NativeTypeName("#define SDLK_VOLUMEDOWN 0x40000081u")] + public const uint KVolumedown = 0x40000081U; - [NativeTypeName( - "#define SDLK_KP_EQUALSAS400 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALSAS400)" - )] - public const int KKpEqualsas400 = ((int)(Scancode.ScancodeKpEqualsas400) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_COMMA 0x40000085u")] + public const uint KKpComma = 0x40000085U; - [NativeTypeName("#define SDLK_ALTERASE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_ALTERASE)")] - public const int KAlterase = ((int)(Scancode.ScancodeAlterase) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_EQUALSAS400 0x40000086u")] + public const uint KKpEqualsas400 = 0x40000086U; - [NativeTypeName("#define SDLK_SYSREQ SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SYSREQ)")] - public const int KSysreq = ((int)(Scancode.ScancodeSysreq) | (1 << 30)); + [NativeTypeName("#define SDLK_ALTERASE 0x40000099u")] + public const uint KAlterase = 0x40000099U; - [NativeTypeName("#define SDLK_CANCEL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CANCEL)")] - public const int KCancel = ((int)(Scancode.ScancodeCancel) | (1 << 30)); + [NativeTypeName("#define SDLK_SYSREQ 0x4000009au")] + public const uint KSysreq = 0x4000009aU; - [NativeTypeName("#define SDLK_CLEAR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEAR)")] - public const int KClear = ((int)(Scancode.ScancodeClear) | (1 << 30)); + [NativeTypeName("#define SDLK_CANCEL 0x4000009bu")] + public const uint KCancel = 0x4000009bU; - [NativeTypeName("#define SDLK_PRIOR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRIOR)")] - public const int KPrior = ((int)(Scancode.ScancodePrior) | (1 << 30)); + [NativeTypeName("#define SDLK_CLEAR 0x4000009cu")] + public const uint KClear = 0x4000009cU; - [NativeTypeName("#define SDLK_RETURN2 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RETURN2)")] - public const int KReturn2 = ((int)(Scancode.ScancodeReturn2) | (1 << 30)); + [NativeTypeName("#define SDLK_PRIOR 0x4000009du")] + public const uint KPrior = 0x4000009dU; - [NativeTypeName("#define SDLK_SEPARATOR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SEPARATOR)")] - public const int KSeparator = ((int)(Scancode.ScancodeSeparator) | (1 << 30)); + [NativeTypeName("#define SDLK_RETURN2 0x4000009eu")] + public const uint KReturn2 = 0x4000009eU; - [NativeTypeName("#define SDLK_OUT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OUT)")] - public const int KOut = ((int)(Scancode.ScancodeOut) | (1 << 30)); + [NativeTypeName("#define SDLK_SEPARATOR 0x4000009fu")] + public const uint KSeparator = 0x4000009fU; - [NativeTypeName("#define SDLK_OPER SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OPER)")] - public const int KOper = ((int)(Scancode.ScancodeOper) | (1 << 30)); + [NativeTypeName("#define SDLK_OUT 0x400000a0u")] + public const uint KOut = 0x400000a0U; - [NativeTypeName("#define SDLK_CLEARAGAIN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEARAGAIN)")] - public const int KClearagain = ((int)(Scancode.ScancodeClearagain) | (1 << 30)); + [NativeTypeName("#define SDLK_OPER 0x400000a1u")] + public const uint KOper = 0x400000a1U; - [NativeTypeName("#define SDLK_CRSEL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CRSEL)")] - public const int KCrsel = ((int)(Scancode.ScancodeCrsel) | (1 << 30)); + [NativeTypeName("#define SDLK_CLEARAGAIN 0x400000a2u")] + public const uint KClearagain = 0x400000a2U; - [NativeTypeName("#define SDLK_EXSEL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXSEL)")] - public const int KExsel = ((int)(Scancode.ScancodeExsel) | (1 << 30)); + [NativeTypeName("#define SDLK_CRSEL 0x400000a3u")] + public const uint KCrsel = 0x400000a3U; - [NativeTypeName("#define SDLK_KP_00 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_00)")] - public const int KKp00 = ((int)(Scancode.ScancodeKp00) | (1 << 30)); + [NativeTypeName("#define SDLK_EXSEL 0x400000a4u")] + public const uint KExsel = 0x400000a4U; - [NativeTypeName("#define SDLK_KP_000 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_000)")] - public const int KKp000 = ((int)(Scancode.ScancodeKp000) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_00 0x400000b0u")] + public const uint KKp00 = 0x400000b0U; - [NativeTypeName( - "#define SDLK_THOUSANDSSEPARATOR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_THOUSANDSSEPARATOR)" - )] - public const int KThousandsseparator = ((int)(Scancode.ScancodeThousandsseparator) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_000 0x400000b1u")] + public const uint KKp000 = 0x400000b1U; - [NativeTypeName( - "#define SDLK_DECIMALSEPARATOR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DECIMALSEPARATOR)" - )] - public const int KDecimalseparator = ((int)(Scancode.ScancodeDecimalseparator) | (1 << 30)); + [NativeTypeName("#define SDLK_THOUSANDSSEPARATOR 0x400000b2u")] + public const uint KThousandsseparator = 0x400000b2U; - [NativeTypeName("#define SDLK_CURRENCYUNIT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYUNIT)")] - public const int KCurrencyunit = ((int)(Scancode.ScancodeCurrencyunit) | (1 << 30)); + [NativeTypeName("#define SDLK_DECIMALSEPARATOR 0x400000b3u")] + public const uint KDecimalseparator = 0x400000b3U; - [NativeTypeName( - "#define SDLK_CURRENCYSUBUNIT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYSUBUNIT)" - )] - public const int KCurrencysubunit = ((int)(Scancode.ScancodeCurrencysubunit) | (1 << 30)); + [NativeTypeName("#define SDLK_CURRENCYUNIT 0x400000b4u")] + public const uint KCurrencyunit = 0x400000b4U; - [NativeTypeName("#define SDLK_KP_LEFTPAREN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTPAREN)")] - public const int KKpLeftparen = ((int)(Scancode.ScancodeKpLeftparen) | (1 << 30)); + [NativeTypeName("#define SDLK_CURRENCYSUBUNIT 0x400000b5u")] + public const uint KCurrencysubunit = 0x400000b5U; - [NativeTypeName( - "#define SDLK_KP_RIGHTPAREN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTPAREN)" - )] - public const int KKpRightparen = ((int)(Scancode.ScancodeKpRightparen) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_LEFTPAREN 0x400000b6u")] + public const uint KKpLeftparen = 0x400000b6U; - [NativeTypeName("#define SDLK_KP_LEFTBRACE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTBRACE)")] - public const int KKpLeftbrace = ((int)(Scancode.ScancodeKpLeftbrace) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_RIGHTPAREN 0x400000b7u")] + public const uint KKpRightparen = 0x400000b7U; - [NativeTypeName( - "#define SDLK_KP_RIGHTBRACE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTBRACE)" - )] - public const int KKpRightbrace = ((int)(Scancode.ScancodeKpRightbrace) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_LEFTBRACE 0x400000b8u")] + public const uint KKpLeftbrace = 0x400000b8U; - [NativeTypeName("#define SDLK_KP_TAB SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_TAB)")] - public const int KKpTab = ((int)(Scancode.ScancodeKpTab) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_RIGHTBRACE 0x400000b9u")] + public const uint KKpRightbrace = 0x400000b9U; - [NativeTypeName("#define SDLK_KP_BACKSPACE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BACKSPACE)")] - public const int KKpBackspace = ((int)(Scancode.ScancodeKpBackspace) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_TAB 0x400000bau")] + public const uint KKpTab = 0x400000baU; - [NativeTypeName("#define SDLK_KP_A SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_A)")] - public const int KKpA = ((int)(Scancode.ScancodeKpA) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_BACKSPACE 0x400000bbu")] + public const uint KKpBackspace = 0x400000bbU; - [NativeTypeName("#define SDLK_KP_B SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_B)")] - public const int KKpB = ((int)(Scancode.ScancodeKpB) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_A 0x400000bcu")] + public const uint KKpA = 0x400000bcU; - [NativeTypeName("#define SDLK_KP_C SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_C)")] - public const int KKpC = ((int)(Scancode.ScancodeKpC) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_B 0x400000bdu")] + public const uint KKpB = 0x400000bdU; - [NativeTypeName("#define SDLK_KP_D SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_D)")] - public const int KKpD = ((int)(Scancode.ScancodeKpD) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_C 0x400000beu")] + public const uint KKpC = 0x400000beU; - [NativeTypeName("#define SDLK_KP_E SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_E)")] - public const int KKpE = ((int)(Scancode.ScancodeKpE) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_D 0x400000bfu")] + public const uint KKpD = 0x400000bfU; - [NativeTypeName("#define SDLK_KP_F SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_F)")] - public const int KKpF = ((int)(Scancode.ScancodeKpF) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_E 0x400000c0u")] + public const uint KKpE = 0x400000c0U; - [NativeTypeName("#define SDLK_KP_XOR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_XOR)")] - public const int KKpXor = ((int)(Scancode.ScancodeKpXor) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_F 0x400000c1u")] + public const uint KKpF = 0x400000c1U; - [NativeTypeName("#define SDLK_KP_POWER SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_POWER)")] - public const int KKpPower = ((int)(Scancode.ScancodeKpPower) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_XOR 0x400000c2u")] + public const uint KKpXor = 0x400000c2U; - [NativeTypeName("#define SDLK_KP_PERCENT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERCENT)")] - public const int KKpPercent = ((int)(Scancode.ScancodeKpPercent) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_POWER 0x400000c3u")] + public const uint KKpPower = 0x400000c3U; - [NativeTypeName("#define SDLK_KP_LESS SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LESS)")] - public const int KKpLess = ((int)(Scancode.ScancodeKpLess) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_PERCENT 0x400000c4u")] + public const uint KKpPercent = 0x400000c4U; - [NativeTypeName("#define SDLK_KP_GREATER SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_GREATER)")] - public const int KKpGreater = ((int)(Scancode.ScancodeKpGreater) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_LESS 0x400000c5u")] + public const uint KKpLess = 0x400000c5U; - [NativeTypeName("#define SDLK_KP_AMPERSAND SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AMPERSAND)")] - public const int KKpAmpersand = ((int)(Scancode.ScancodeKpAmpersand) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_GREATER 0x400000c6u")] + public const uint KKpGreater = 0x400000c6U; - [NativeTypeName( - "#define SDLK_KP_DBLAMPERSAND SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLAMPERSAND)" - )] - public const int KKpDblampersand = ((int)(Scancode.ScancodeKpDblampersand) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_AMPERSAND 0x400000c7u")] + public const uint KKpAmpersand = 0x400000c7U; - [NativeTypeName( - "#define SDLK_KP_VERTICALBAR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_VERTICALBAR)" - )] - public const int KKpVerticalbar = ((int)(Scancode.ScancodeKpVerticalbar) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_DBLAMPERSAND 0x400000c8u")] + public const uint KKpDblampersand = 0x400000c8U; - [NativeTypeName( - "#define SDLK_KP_DBLVERTICALBAR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLVERTICALBAR)" - )] - public const int KKpDblverticalbar = ((int)(Scancode.ScancodeKpDblverticalbar) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_VERTICALBAR 0x400000c9u")] + public const uint KKpVerticalbar = 0x400000c9U; - [NativeTypeName("#define SDLK_KP_COLON SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COLON)")] - public const int KKpColon = ((int)(Scancode.ScancodeKpColon) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_DBLVERTICALBAR 0x400000cau")] + public const uint KKpDblverticalbar = 0x400000caU; - [NativeTypeName("#define SDLK_KP_HASH SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HASH)")] - public const int KKpHash = ((int)(Scancode.ScancodeKpHash) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_COLON 0x400000cbu")] + public const uint KKpColon = 0x400000cbU; - [NativeTypeName("#define SDLK_KP_SPACE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_SPACE)")] - public const int KKpSpace = ((int)(Scancode.ScancodeKpSpace) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_HASH 0x400000ccu")] + public const uint KKpHash = 0x400000ccU; - [NativeTypeName("#define SDLK_KP_AT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AT)")] - public const int KKpAt = ((int)(Scancode.ScancodeKpAt) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_SPACE 0x400000cdu")] + public const uint KKpSpace = 0x400000cdU; - [NativeTypeName("#define SDLK_KP_EXCLAM SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EXCLAM)")] - public const int KKpExclam = ((int)(Scancode.ScancodeKpExclam) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_AT 0x400000ceu")] + public const uint KKpAt = 0x400000ceU; - [NativeTypeName("#define SDLK_KP_MEMSTORE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSTORE)")] - public const int KKpMemstore = ((int)(Scancode.ScancodeKpMemstore) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_EXCLAM 0x400000cfu")] + public const uint KKpExclam = 0x400000cfU; - [NativeTypeName("#define SDLK_KP_MEMRECALL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMRECALL)")] - public const int KKpMemrecall = ((int)(Scancode.ScancodeKpMemrecall) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_MEMSTORE 0x400000d0u")] + public const uint KKpMemstore = 0x400000d0U; - [NativeTypeName("#define SDLK_KP_MEMCLEAR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMCLEAR)")] - public const int KKpMemclear = ((int)(Scancode.ScancodeKpMemclear) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_MEMRECALL 0x400000d1u")] + public const uint KKpMemrecall = 0x400000d1U; - [NativeTypeName("#define SDLK_KP_MEMADD SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMADD)")] - public const int KKpMemadd = ((int)(Scancode.ScancodeKpMemadd) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_MEMCLEAR 0x400000d2u")] + public const uint KKpMemclear = 0x400000d2U; - [NativeTypeName( - "#define SDLK_KP_MEMSUBTRACT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSUBTRACT)" - )] - public const int KKpMemsubtract = ((int)(Scancode.ScancodeKpMemsubtract) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_MEMADD 0x400000d3u")] + public const uint KKpMemadd = 0x400000d3U; - [NativeTypeName( - "#define SDLK_KP_MEMMULTIPLY SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMMULTIPLY)" - )] - public const int KKpMemmultiply = ((int)(Scancode.ScancodeKpMemmultiply) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_MEMSUBTRACT 0x400000d4u")] + public const uint KKpMemsubtract = 0x400000d4U; - [NativeTypeName("#define SDLK_KP_MEMDIVIDE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMDIVIDE)")] - public const int KKpMemdivide = ((int)(Scancode.ScancodeKpMemdivide) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_MEMMULTIPLY 0x400000d5u")] + public const uint KKpMemmultiply = 0x400000d5U; - [NativeTypeName("#define SDLK_KP_PLUSMINUS SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUSMINUS)")] - public const int KKpPlusminus = ((int)(Scancode.ScancodeKpPlusminus) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_MEMDIVIDE 0x400000d6u")] + public const uint KKpMemdivide = 0x400000d6U; - [NativeTypeName("#define SDLK_KP_CLEAR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEAR)")] - public const int KKpClear = ((int)(Scancode.ScancodeKpClear) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_PLUSMINUS 0x400000d7u")] + public const uint KKpPlusminus = 0x400000d7U; - [NativeTypeName( - "#define SDLK_KP_CLEARENTRY SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEARENTRY)" - )] - public const int KKpClearentry = ((int)(Scancode.ScancodeKpClearentry) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_CLEAR 0x400000d8u")] + public const uint KKpClear = 0x400000d8U; - [NativeTypeName("#define SDLK_KP_BINARY SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BINARY)")] - public const int KKpBinary = ((int)(Scancode.ScancodeKpBinary) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_CLEARENTRY 0x400000d9u")] + public const uint KKpClearentry = 0x400000d9U; - [NativeTypeName("#define SDLK_KP_OCTAL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_OCTAL)")] - public const int KKpOctal = ((int)(Scancode.ScancodeKpOctal) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_BINARY 0x400000dau")] + public const uint KKpBinary = 0x400000daU; - [NativeTypeName("#define SDLK_KP_DECIMAL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DECIMAL)")] - public const int KKpDecimal = ((int)(Scancode.ScancodeKpDecimal) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_OCTAL 0x400000dbu")] + public const uint KKpOctal = 0x400000dbU; - [NativeTypeName( - "#define SDLK_KP_HEXADECIMAL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HEXADECIMAL)" - )] - public const int KKpHexadecimal = ((int)(Scancode.ScancodeKpHexadecimal) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_DECIMAL 0x400000dcu")] + public const uint KKpDecimal = 0x400000dcU; - [NativeTypeName("#define SDLK_LCTRL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LCTRL)")] - public const int KLctrl = ((int)(Scancode.ScancodeLctrl) | (1 << 30)); + [NativeTypeName("#define SDLK_KP_HEXADECIMAL 0x400000ddu")] + public const uint KKpHexadecimal = 0x400000ddU; - [NativeTypeName("#define SDLK_LSHIFT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LSHIFT)")] - public const int KLshift = ((int)(Scancode.ScancodeLshift) | (1 << 30)); + [NativeTypeName("#define SDLK_LCTRL 0x400000e0u")] + public const uint KLctrl = 0x400000e0U; - [NativeTypeName("#define SDLK_LALT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LALT)")] - public const int KLalt = ((int)(Scancode.ScancodeLalt) | (1 << 30)); + [NativeTypeName("#define SDLK_LSHIFT 0x400000e1u")] + public const uint KLshift = 0x400000e1U; - [NativeTypeName("#define SDLK_LGUI SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LGUI)")] - public const int KLgui = ((int)(Scancode.ScancodeLgui) | (1 << 30)); + [NativeTypeName("#define SDLK_LALT 0x400000e2u")] + public const uint KLalt = 0x400000e2U; - [NativeTypeName("#define SDLK_RCTRL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RCTRL)")] - public const int KRctrl = ((int)(Scancode.ScancodeRctrl) | (1 << 30)); + [NativeTypeName("#define SDLK_LGUI 0x400000e3u")] + public const uint KLgui = 0x400000e3U; - [NativeTypeName("#define SDLK_RSHIFT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RSHIFT)")] - public const int KRshift = ((int)(Scancode.ScancodeRshift) | (1 << 30)); + [NativeTypeName("#define SDLK_RCTRL 0x400000e4u")] + public const uint KRctrl = 0x400000e4U; - [NativeTypeName("#define SDLK_RALT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RALT)")] - public const int KRalt = ((int)(Scancode.ScancodeRalt) | (1 << 30)); + [NativeTypeName("#define SDLK_RSHIFT 0x400000e5u")] + public const uint KRshift = 0x400000e5U; - [NativeTypeName("#define SDLK_RGUI SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RGUI)")] - public const int KRgui = ((int)(Scancode.ScancodeRgui) | (1 << 30)); + [NativeTypeName("#define SDLK_RALT 0x400000e6u")] + public const uint KRalt = 0x400000e6U; - [NativeTypeName("#define SDLK_MODE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MODE)")] - public const int KMode = ((int)(Scancode.ScancodeMode) | (1 << 30)); + [NativeTypeName("#define SDLK_RGUI 0x400000e7u")] + public const uint KRgui = 0x400000e7U; - [NativeTypeName("#define SDLK_AUDIONEXT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIONEXT)")] - public const int KAudionext = ((int)(Scancode.ScancodeAudionext) | (1 << 30)); + [NativeTypeName("#define SDLK_MODE 0x40000101u")] + public const uint KMode = 0x40000101U; - [NativeTypeName("#define SDLK_AUDIOPREV SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPREV)")] - public const int KAudioprev = ((int)(Scancode.ScancodeAudioprev) | (1 << 30)); + [NativeTypeName("#define SDLK_SLEEP 0x40000102u")] + public const uint KSleep = 0x40000102U; - [NativeTypeName("#define SDLK_AUDIOSTOP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOSTOP)")] - public const int KAudiostop = ((int)(Scancode.ScancodeAudiostop) | (1 << 30)); + [NativeTypeName("#define SDLK_WAKE 0x40000103u")] + public const uint KWake = 0x40000103U; - [NativeTypeName("#define SDLK_AUDIOPLAY SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPLAY)")] - public const int KAudioplay = ((int)(Scancode.ScancodeAudioplay) | (1 << 30)); + [NativeTypeName("#define SDLK_CHANNEL_INCREMENT 0x40000104u")] + public const uint KChannelIncrement = 0x40000104U; - [NativeTypeName("#define SDLK_AUDIOMUTE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOMUTE)")] - public const int KAudiomute = ((int)(Scancode.ScancodeAudiomute) | (1 << 30)); + [NativeTypeName("#define SDLK_CHANNEL_DECREMENT 0x40000105u")] + public const uint KChannelDecrement = 0x40000105U; - [NativeTypeName("#define SDLK_MEDIASELECT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MEDIASELECT)")] - public const int KMediaselect = ((int)(Scancode.ScancodeMediaselect) | (1 << 30)); + [NativeTypeName("#define SDLK_MEDIA_PLAY 0x40000106u")] + public const uint KMediaPlay = 0x40000106U; - [NativeTypeName("#define SDLK_WWW SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_WWW)")] - public const int KWww = ((int)(Scancode.ScancodeWww) | (1 << 30)); + [NativeTypeName("#define SDLK_MEDIA_PAUSE 0x40000107u")] + public const uint KMediaPause = 0x40000107U; - [NativeTypeName("#define SDLK_MAIL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MAIL)")] - public const int KMail = ((int)(Scancode.ScancodeMail) | (1 << 30)); + [NativeTypeName("#define SDLK_MEDIA_RECORD 0x40000108u")] + public const uint KMediaRecord = 0x40000108U; - [NativeTypeName("#define SDLK_CALCULATOR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CALCULATOR)")] - public const int KCalculator = ((int)(Scancode.ScancodeCalculator) | (1 << 30)); + [NativeTypeName("#define SDLK_MEDIA_FAST_FORWARD 0x40000109u")] + public const uint KMediaFastForward = 0x40000109U; - [NativeTypeName("#define SDLK_COMPUTER SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COMPUTER)")] - public const int KComputer = ((int)(Scancode.ScancodeComputer) | (1 << 30)); + [NativeTypeName("#define SDLK_MEDIA_REWIND 0x4000010au")] + public const uint KMediaRewind = 0x4000010aU; - [NativeTypeName("#define SDLK_AC_SEARCH SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_SEARCH)")] - public const int KAcSearch = ((int)(Scancode.ScancodeAcSearch) | (1 << 30)); + [NativeTypeName("#define SDLK_MEDIA_NEXT_TRACK 0x4000010bu")] + public const uint KMediaNextTrack = 0x4000010bU; - [NativeTypeName("#define SDLK_AC_HOME SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_HOME)")] - public const int KAcHome = ((int)(Scancode.ScancodeAcHome) | (1 << 30)); + [NativeTypeName("#define SDLK_MEDIA_PREVIOUS_TRACK 0x4000010cu")] + public const uint KMediaPreviousTrack = 0x4000010cU; - [NativeTypeName("#define SDLK_AC_BACK SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BACK)")] - public const int KAcBack = ((int)(Scancode.ScancodeAcBack) | (1 << 30)); + [NativeTypeName("#define SDLK_MEDIA_STOP 0x4000010du")] + public const uint KMediaStop = 0x4000010dU; - [NativeTypeName("#define SDLK_AC_FORWARD SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_FORWARD)")] - public const int KAcForward = ((int)(Scancode.ScancodeAcForward) | (1 << 30)); + [NativeTypeName("#define SDLK_MEDIA_EJECT 0x4000010eu")] + public const uint KMediaEject = 0x4000010eU; - [NativeTypeName("#define SDLK_AC_STOP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_STOP)")] - public const int KAcStop = ((int)(Scancode.ScancodeAcStop) | (1 << 30)); + [NativeTypeName("#define SDLK_MEDIA_PLAY_PAUSE 0x4000010fu")] + public const uint KMediaPlayPause = 0x4000010fU; - [NativeTypeName("#define SDLK_AC_REFRESH SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_REFRESH)")] - public const int KAcRefresh = ((int)(Scancode.ScancodeAcRefresh) | (1 << 30)); + [NativeTypeName("#define SDLK_MEDIA_SELECT 0x40000110u")] + public const uint KMediaSelect = 0x40000110U; - [NativeTypeName("#define SDLK_AC_BOOKMARKS SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BOOKMARKS)")] - public const int KAcBookmarks = ((int)(Scancode.ScancodeAcBookmarks) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_NEW 0x40000111u")] + public const uint KAcNew = 0x40000111U; - [NativeTypeName( - "#define SDLK_BRIGHTNESSDOWN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSDOWN)" - )] - public const int KBrightnessdown = ((int)(Scancode.ScancodeBrightnessdown) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_OPEN 0x40000112u")] + public const uint KAcOpen = 0x40000112U; - [NativeTypeName("#define SDLK_BRIGHTNESSUP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSUP)")] - public const int KBrightnessup = ((int)(Scancode.ScancodeBrightnessup) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_CLOSE 0x40000113u")] + public const uint KAcClose = 0x40000113U; - [NativeTypeName( - "#define SDLK_DISPLAYSWITCH SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DISPLAYSWITCH)" - )] - public const int KDisplayswitch = ((int)(Scancode.ScancodeDisplayswitch) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_EXIT 0x40000114u")] + public const uint KAcExit = 0x40000114U; - [NativeTypeName( - "#define SDLK_KBDILLUMTOGGLE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMTOGGLE)" - )] - public const int KKbdillumtoggle = ((int)(Scancode.ScancodeKbdillumtoggle) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_SAVE 0x40000115u")] + public const uint KAcSave = 0x40000115U; - [NativeTypeName("#define SDLK_KBDILLUMDOWN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMDOWN)")] - public const int KKbdillumdown = ((int)(Scancode.ScancodeKbdillumdown) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_PRINT 0x40000116u")] + public const uint KAcPrint = 0x40000116U; - [NativeTypeName("#define SDLK_KBDILLUMUP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMUP)")] - public const int KKbdillumup = ((int)(Scancode.ScancodeKbdillumup) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_PROPERTIES 0x40000117u")] + public const uint KAcProperties = 0x40000117U; - [NativeTypeName("#define SDLK_EJECT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EJECT)")] - public const int KEject = ((int)(Scancode.ScancodeEject) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_SEARCH 0x40000118u")] + public const uint KAcSearch = 0x40000118U; - [NativeTypeName("#define SDLK_SLEEP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SLEEP)")] - public const int KSleep = ((int)(Scancode.ScancodeSleep) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_HOME 0x40000119u")] + public const uint KAcHome = 0x40000119U; - [NativeTypeName("#define SDLK_APP1 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP1)")] - public const int KApp1 = ((int)(Scancode.ScancodeApp1) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_BACK 0x4000011au")] + public const uint KAcBack = 0x4000011aU; - [NativeTypeName("#define SDLK_APP2 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP2)")] - public const int KApp2 = ((int)(Scancode.ScancodeApp2) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_FORWARD 0x4000011bu")] + public const uint KAcForward = 0x4000011bU; - [NativeTypeName("#define SDLK_AUDIOREWIND SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOREWIND)")] - public const int KAudiorewind = ((int)(Scancode.ScancodeAudiorewind) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_STOP 0x4000011cu")] + public const uint KAcStop = 0x4000011cU; - [NativeTypeName( - "#define SDLK_AUDIOFASTFORWARD SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOFASTFORWARD)" - )] - public const int KAudiofastforward = ((int)(Scancode.ScancodeAudiofastforward) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_REFRESH 0x4000011du")] + public const uint KAcRefresh = 0x4000011dU; - [NativeTypeName("#define SDLK_SOFTLEFT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SOFTLEFT)")] - public const int KSoftleft = ((int)(Scancode.ScancodeSoftleft) | (1 << 30)); + [NativeTypeName("#define SDLK_AC_BOOKMARKS 0x4000011eu")] + public const uint KAcBookmarks = 0x4000011eU; - [NativeTypeName("#define SDLK_SOFTRIGHT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SOFTRIGHT)")] - public const int KSoftright = ((int)(Scancode.ScancodeSoftright) | (1 << 30)); + [NativeTypeName("#define SDLK_SOFTLEFT 0x4000011fu")] + public const uint KSoftleft = 0x4000011fU; - [NativeTypeName("#define SDLK_CALL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CALL)")] - public const int KCall = ((int)(Scancode.ScancodeCall) | (1 << 30)); + [NativeTypeName("#define SDLK_SOFTRIGHT 0x40000120u")] + public const uint KSoftright = 0x40000120U; - [NativeTypeName("#define SDLK_ENDCALL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_ENDCALL)")] - public const int KEndcall = ((int)(Scancode.ScancodeEndcall) | (1 << 30)); + [NativeTypeName("#define SDLK_CALL 0x40000121u")] + public const uint KCall = 0x40000121U; - [NativeTypeName("#define SDL_BUTTON_LEFT 1")] - public const int ButtonLeft = 1; + [NativeTypeName("#define SDLK_ENDCALL 0x40000122u")] + public const uint KEndcall = 0x40000122U; - [NativeTypeName("#define SDL_BUTTON_MIDDLE 2")] - public const int ButtonMiddle = 2; + [NativeTypeName("#define SDL_KMOD_NONE 0x0000u")] + public const uint KmodNone = 0x0000U; - [NativeTypeName("#define SDL_BUTTON_RIGHT 3")] - public const int ButtonRight = 3; + [NativeTypeName("#define SDL_KMOD_LSHIFT 0x0001u")] + public const uint KmodLshift = 0x0001U; - [NativeTypeName("#define SDL_BUTTON_X1 4")] - public const int ButtonX1 = 4; + [NativeTypeName("#define SDL_KMOD_RSHIFT 0x0002u")] + public const uint KmodRshift = 0x0002U; - [NativeTypeName("#define SDL_BUTTON_X2 5")] - public const int ButtonX2 = 5; + [NativeTypeName("#define SDL_KMOD_LCTRL 0x0040u")] + public const uint KmodLctrl = 0x0040U; - [NativeTypeName("#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)")] - public const int ButtonLmask = (1 << ((1) - 1)); + [NativeTypeName("#define SDL_KMOD_RCTRL 0x0080u")] + public const uint KmodRctrl = 0x0080U; - [NativeTypeName("#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)")] - public const int ButtonMmask = (1 << ((2) - 1)); + [NativeTypeName("#define SDL_KMOD_LALT 0x0100u")] + public const uint KmodLalt = 0x0100U; - [NativeTypeName("#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)")] - public const int ButtonRmask = (1 << ((3) - 1)); + [NativeTypeName("#define SDL_KMOD_RALT 0x0200u")] + public const uint KmodRalt = 0x0200U; - [NativeTypeName("#define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1)")] - public const int ButtonX1Mask = (1 << ((4) - 1)); + [NativeTypeName("#define SDL_KMOD_LGUI 0x0400u")] + public const uint KmodLgui = 0x0400U; - [NativeTypeName("#define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2)")] - public const int ButtonX2Mask = (1 << ((5) - 1)); + [NativeTypeName("#define SDL_KMOD_RGUI 0x0800u")] + public const uint KmodRgui = 0x0800U; - [NativeTypeName("#define SDL_PEN_INVALID ((SDL_PenID)0)")] - public const uint PenInvalid = ((uint)(0)); + [NativeTypeName("#define SDL_KMOD_NUM 0x1000u")] + public const uint KmodNum = 0x1000U; - [NativeTypeName("#define SDL_PEN_MOUSEID ((SDL_MouseID)-2)")] - public const uint PenMouseid = unchecked((uint)(-2)); + [NativeTypeName("#define SDL_KMOD_CAPS 0x2000u")] + public const uint KmodCaps = 0x2000U; - [NativeTypeName("#define SDL_PEN_INFO_UNKNOWN (-1)")] - public const int PenInfoUnknown = (-1); + [NativeTypeName("#define SDL_KMOD_MODE 0x4000u")] + public const uint KmodMode = 0x4000U; - [NativeTypeName("#define SDL_PEN_FLAG_DOWN_BIT_INDEX 13")] - public const int PenFlagDownBitIndex = 13; + [NativeTypeName("#define SDL_KMOD_SCROLL 0x8000u")] + public const uint KmodScroll = 0x8000U; - [NativeTypeName("#define SDL_PEN_FLAG_INK_BIT_INDEX 14")] - public const int PenFlagInkBitIndex = 14; + [NativeTypeName("#define SDL_KMOD_CTRL (SDL_KMOD_LCTRL | SDL_KMOD_RCTRL)")] + public const uint KmodCtrl = (0x0040U | 0x0080U); - [NativeTypeName("#define SDL_PEN_FLAG_ERASER_BIT_INDEX 15")] - public const int PenFlagEraserBitIndex = 15; + [NativeTypeName("#define SDL_KMOD_SHIFT (SDL_KMOD_LSHIFT | SDL_KMOD_RSHIFT)")] + public const uint KmodShift = (0x0001U | 0x0002U); - [NativeTypeName("#define SDL_PEN_FLAG_AXIS_BIT_OFFSET 16")] - public const int PenFlagAxisBitOffset = 16; + [NativeTypeName("#define SDL_KMOD_ALT (SDL_KMOD_LALT | SDL_KMOD_RALT)")] + public const uint KmodAlt = (0x0100U | 0x0200U); - [NativeTypeName("#define SDL_PEN_TIP_INK SDL_PEN_FLAG_INK_BIT_INDEX")] - public const int PenTipInk = 14; + [NativeTypeName("#define SDL_KMOD_GUI (SDL_KMOD_LGUI | SDL_KMOD_RGUI)")] + public const uint KmodGui = (0x0400U | 0x0800U); - [NativeTypeName("#define SDL_PEN_TIP_ERASER SDL_PEN_FLAG_ERASER_BIT_INDEX")] - public const int PenTipEraser = 15; - - [NativeTypeName("#define SDL_PEN_DOWN_MASK SDL_PEN_CAPABILITY(SDL_PEN_FLAG_DOWN_BIT_INDEX)")] - public const nuint PenDownMask = (1U << (13)); - - [NativeTypeName("#define SDL_PEN_INK_MASK SDL_PEN_CAPABILITY(SDL_PEN_FLAG_INK_BIT_INDEX)")] - public const nuint PenInkMask = (1U << (14)); + [NativeTypeName("#define SDL_PROP_TEXTINPUT_TYPE_NUMBER \"SDL.textinput.type\"")] + public static Utf8String PropTextinputTypeNumber => "SDL.textinput.type"u8; [NativeTypeName( - "#define SDL_PEN_ERASER_MASK SDL_PEN_CAPABILITY(SDL_PEN_FLAG_ERASER_BIT_INDEX)" + "#define SDL_PROP_TEXTINPUT_CAPITALIZATION_NUMBER \"SDL.textinput.capitalization\"" )] - public const nuint PenEraserMask = (1U << (15)); + public static Utf8String PropTextinputCapitalizationNumber => "SDL.textinput.capitalization"u8; + + [NativeTypeName("#define SDL_PROP_TEXTINPUT_AUTOCORRECT_BOOLEAN \"SDL.textinput.autocorrect\"")] + public static Utf8String PropTextinputAutocorrectBoolean => "SDL.textinput.autocorrect"u8; + + [NativeTypeName("#define SDL_PROP_TEXTINPUT_MULTILINE_BOOLEAN \"SDL.textinput.multiline\"")] + public static Utf8String PropTextinputMultilineBoolean => "SDL.textinput.multiline"u8; [NativeTypeName( - "#define SDL_PEN_AXIS_PRESSURE_MASK SDL_PEN_AXIS_CAPABILITY(SDL_PEN_AXIS_PRESSURE)" + "#define SDL_PROP_TEXTINPUT_ANDROID_INPUTTYPE_NUMBER \"SDL.textinput.android.inputtype\"" )] - public const nuint PenAxisPressureMask = (1U << ((int)(PenAxis.AxisPressure) + 16)); + public static Utf8String PropTextinputAndroidInputtypeNumber => + "SDL.textinput.android.inputtype"u8; - [NativeTypeName("#define SDL_PEN_AXIS_XTILT_MASK SDL_PEN_AXIS_CAPABILITY(SDL_PEN_AXIS_XTILT)")] - public const nuint PenAxisXtiltMask = (1U << ((int)(PenAxis.AxisXtilt) + 16)); + [NativeTypeName("#define SDL_BUTTON_LEFT 1")] + public const int ButtonLeft = 1; - [NativeTypeName("#define SDL_PEN_AXIS_YTILT_MASK SDL_PEN_AXIS_CAPABILITY(SDL_PEN_AXIS_YTILT)")] - public const nuint PenAxisYtiltMask = (1U << ((int)(PenAxis.AxisYtilt) + 16)); + [NativeTypeName("#define SDL_BUTTON_MIDDLE 2")] + public const int ButtonMiddle = 2; - [NativeTypeName( - "#define SDL_PEN_AXIS_DISTANCE_MASK SDL_PEN_AXIS_CAPABILITY(SDL_PEN_AXIS_DISTANCE)" - )] - public const nuint PenAxisDistanceMask = (1U << ((int)(PenAxis.AxisDistance) + 16)); + [NativeTypeName("#define SDL_BUTTON_RIGHT 3")] + public const int ButtonRight = 3; - [NativeTypeName( - "#define SDL_PEN_AXIS_ROTATION_MASK SDL_PEN_AXIS_CAPABILITY(SDL_PEN_AXIS_ROTATION)" - )] - public const nuint PenAxisRotationMask = (1U << ((int)(PenAxis.AxisRotation) + 16)); + [NativeTypeName("#define SDL_BUTTON_X1 4")] + public const int ButtonX1 = 4; - [NativeTypeName( - "#define SDL_PEN_AXIS_SLIDER_MASK SDL_PEN_AXIS_CAPABILITY(SDL_PEN_AXIS_SLIDER)" - )] - public const nuint PenAxisSliderMask = (1U << ((int)(PenAxis.AxisSlider) + 16)); + [NativeTypeName("#define SDL_BUTTON_X2 5")] + public const int ButtonX2 = 5; - [NativeTypeName( - "#define SDL_PEN_AXIS_BIDIRECTIONAL_MASKS (SDL_PEN_AXIS_XTILT_MASK | SDL_PEN_AXIS_YTILT_MASK)" - )] - public const nuint PenAxisBidirectionalMasks = ( - (1U << ((int)(PenAxis.AxisXtilt) + 16)) | (1U << ((int)(PenAxis.AxisYtilt) + 16)) - ); + [NativeTypeName("#define SDL_BUTTON_LMASK SDL_BUTTON_MASK(SDL_BUTTON_LEFT)")] + public const uint ButtonLmask = (1U << ((1) - 1)); - [NativeTypeName("#define SDL_TOUCH_MOUSEID ((SDL_MouseID)-1)")] - public const uint TouchMouseid = unchecked((uint)(-1)); + [NativeTypeName("#define SDL_BUTTON_MMASK SDL_BUTTON_MASK(SDL_BUTTON_MIDDLE)")] + public const uint ButtonMmask = (1U << ((2) - 1)); - [NativeTypeName("#define SDL_MOUSE_TOUCHID ((SDL_TouchID)-1)")] - public const ulong MouseTouchid = unchecked((ulong)(-1)); + [NativeTypeName("#define SDL_BUTTON_RMASK SDL_BUTTON_MASK(SDL_BUTTON_RIGHT)")] + public const uint ButtonRmask = (1U << ((3) - 1)); + + [NativeTypeName("#define SDL_BUTTON_X1MASK SDL_BUTTON_MASK(SDL_BUTTON_X1)")] + public const uint ButtonX1Mask = (1U << ((4) - 1)); + + [NativeTypeName("#define SDL_BUTTON_X2MASK SDL_BUTTON_MASK(SDL_BUTTON_X2)")] + public const uint ButtonX2Mask = (1U << ((5) - 1)); + + [NativeTypeName("#define SDL_PEN_INPUT_DOWN (1u << 0)")] + public const uint PenInputDown = (1U << 0); + + [NativeTypeName("#define SDL_PEN_INPUT_BUTTON_1 (1u << 1)")] + public const uint PenInputButton1 = (1U << 1); - [NativeTypeName("#define SDL_RELEASED 0")] - public const int Released = 0; + [NativeTypeName("#define SDL_PEN_INPUT_BUTTON_2 (1u << 2)")] + public const uint PenInputButton2 = (1U << 2); - [NativeTypeName("#define SDL_PRESSED 1")] - public const int Pressed = 1; + [NativeTypeName("#define SDL_PEN_INPUT_BUTTON_3 (1u << 3)")] + public const uint PenInputButton3 = (1U << 3); - [NativeTypeName("#define SDL_TEXTEDITINGEVENT_TEXT_SIZE 64")] - public const int TexteditingeventTextSize = 64; + [NativeTypeName("#define SDL_PEN_INPUT_BUTTON_4 (1u << 4)")] + public const uint PenInputButton4 = (1U << 4); + + [NativeTypeName("#define SDL_PEN_INPUT_BUTTON_5 (1u << 5)")] + public const uint PenInputButton5 = (1U << 5); + + [NativeTypeName("#define SDL_PEN_INPUT_ERASER_TIP (1u << 30)")] + public const uint PenInputEraserTip = (1U << 30); + + [NativeTypeName("#define SDL_TOUCH_MOUSEID ((SDL_MouseID)-1)")] + public const uint TouchMouseid = unchecked((uint)(-1)); - [NativeTypeName("#define SDL_DROPEVENT_DATA_SIZE 64")] - public const int DropeventDataSize = 64; + [NativeTypeName("#define SDL_MOUSE_TOUCHID ((SDL_TouchID)-1)")] + public const ulong MouseTouchid = unchecked((ulong)(-1)); - [NativeTypeName("#define SDL_GLOB_CASEINSENSITIVE (1 << 0)")] - public const int GlobCaseinsensitive = (1 << 0); + [NativeTypeName("#define SDL_GLOB_CASEINSENSITIVE (1u << 0)")] + public const uint GlobCaseinsensitive = (1U << 0); [NativeTypeName("#define SDL_HAPTIC_CONSTANT (1u<<0)")] public const uint HapticConstant = (1U << 0); @@ -38472,8 +46948,8 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HAPTIC_SINE (1u<<1)")] public const uint HapticSine = (1U << 1); - [NativeTypeName("#define SDL_HAPTIC_SQUARE (1<<2)")] - public const int HapticSquare = (1 << 2); + [NativeTypeName("#define SDL_HAPTIC_SQUARE (1u<<2)")] + public const uint HapticSquare = (1U << 2); [NativeTypeName("#define SDL_HAPTIC_TRIANGLE (1u<<3)")] public const uint HapticTriangle = (1U << 3); @@ -38555,12 +47031,6 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_ANDROID_BLOCK_ON_PAUSE \"SDL_ANDROID_BLOCK_ON_PAUSE\"")] public static Utf8String HintAndroidBlockOnPause => "SDL_ANDROID_BLOCK_ON_PAUSE"u8; - [NativeTypeName( - "#define SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO \"SDL_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO\"" - )] - public static Utf8String HintAndroidBlockOnPausePauseaudio => - "SDL_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO"u8; - [NativeTypeName("#define SDL_HINT_ANDROID_TRAP_BACK_BUTTON \"SDL_ANDROID_TRAP_BACK_BUTTON\"")] public static Utf8String HintAndroidTrapBackButton => "SDL_ANDROID_TRAP_BACK_BUTTON"u8; @@ -38581,11 +47051,19 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String HintAppleTvRemoteAllowRotation => "SDL_APPLE_TV_REMOTE_ALLOW_ROTATION"u8; + [NativeTypeName("#define SDL_HINT_AUDIO_ALSA_DEFAULT_DEVICE \"SDL_AUDIO_ALSA_DEFAULT_DEVICE\"")] + public static Utf8String HintAudioAlsaDefaultDevice => "SDL_AUDIO_ALSA_DEFAULT_DEVICE"u8; + [NativeTypeName("#define SDL_HINT_AUDIO_CATEGORY \"SDL_AUDIO_CATEGORY\"")] public static Utf8String HintAudioCategory => "SDL_AUDIO_CATEGORY"u8; - [NativeTypeName("#define SDL_HINT_AUDIO_DEVICE_APP_NAME \"SDL_AUDIO_DEVICE_APP_NAME\"")] - public static Utf8String HintAudioDeviceAppName => "SDL_AUDIO_DEVICE_APP_NAME"u8; + [NativeTypeName("#define SDL_HINT_AUDIO_CHANNELS \"SDL_AUDIO_CHANNELS\"")] + public static Utf8String HintAudioChannels => "SDL_AUDIO_CHANNELS"u8; + + [NativeTypeName( + "#define SDL_HINT_AUDIO_DEVICE_APP_ICON_NAME \"SDL_AUDIO_DEVICE_APP_ICON_NAME\"" + )] + public static Utf8String HintAudioDeviceAppIconName => "SDL_AUDIO_DEVICE_APP_ICON_NAME"u8; [NativeTypeName( "#define SDL_HINT_AUDIO_DEVICE_SAMPLE_FRAMES \"SDL_AUDIO_DEVICE_SAMPLE_FRAMES\"" @@ -38598,9 +47076,27 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_AUDIO_DEVICE_STREAM_ROLE \"SDL_AUDIO_DEVICE_STREAM_ROLE\"")] public static Utf8String HintAudioDeviceStreamRole => "SDL_AUDIO_DEVICE_STREAM_ROLE"u8; + [NativeTypeName("#define SDL_HINT_AUDIO_DISK_INPUT_FILE \"SDL_AUDIO_DISK_INPUT_FILE\"")] + public static Utf8String HintAudioDiskInputFile => "SDL_AUDIO_DISK_INPUT_FILE"u8; + + [NativeTypeName("#define SDL_HINT_AUDIO_DISK_OUTPUT_FILE \"SDL_AUDIO_DISK_OUTPUT_FILE\"")] + public static Utf8String HintAudioDiskOutputFile => "SDL_AUDIO_DISK_OUTPUT_FILE"u8; + + [NativeTypeName("#define SDL_HINT_AUDIO_DISK_TIMESCALE \"SDL_AUDIO_DISK_TIMESCALE\"")] + public static Utf8String HintAudioDiskTimescale => "SDL_AUDIO_DISK_TIMESCALE"u8; + [NativeTypeName("#define SDL_HINT_AUDIO_DRIVER \"SDL_AUDIO_DRIVER\"")] public static Utf8String HintAudioDriver => "SDL_AUDIO_DRIVER"u8; + [NativeTypeName("#define SDL_HINT_AUDIO_DUMMY_TIMESCALE \"SDL_AUDIO_DUMMY_TIMESCALE\"")] + public static Utf8String HintAudioDummyTimescale => "SDL_AUDIO_DUMMY_TIMESCALE"u8; + + [NativeTypeName("#define SDL_HINT_AUDIO_FORMAT \"SDL_AUDIO_FORMAT\"")] + public static Utf8String HintAudioFormat => "SDL_AUDIO_FORMAT"u8; + + [NativeTypeName("#define SDL_HINT_AUDIO_FREQUENCY \"SDL_AUDIO_FREQUENCY\"")] + public static Utf8String HintAudioFrequency => "SDL_AUDIO_FREQUENCY"u8; + [NativeTypeName("#define SDL_HINT_AUDIO_INCLUDE_MONITORS \"SDL_AUDIO_INCLUDE_MONITORS\"")] public static Utf8String HintAudioIncludeMonitors => "SDL_AUDIO_INCLUDE_MONITORS"u8; @@ -38644,6 +47140,9 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_ENABLE_SCREEN_KEYBOARD \"SDL_ENABLE_SCREEN_KEYBOARD\"")] public static Utf8String HintEnableScreenKeyboard => "SDL_ENABLE_SCREEN_KEYBOARD"u8; + [NativeTypeName("#define SDL_HINT_EVDEV_DEVICES \"SDL_EVDEV_DEVICES\"")] + public static Utf8String HintEvdevDevices => "SDL_EVDEV_DEVICES"u8; + [NativeTypeName("#define SDL_HINT_EVENT_LOGGING \"SDL_EVENT_LOGGING\"")] public static Utf8String HintEventLogging => "SDL_EVENT_LOGGING"u8; @@ -38696,6 +47195,18 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_GDK_TEXTINPUT_TITLE \"SDL_GDK_TEXTINPUT_TITLE\"")] public static Utf8String HintGdkTextinputTitle => "SDL_GDK_TEXTINPUT_TITLE"u8; + [NativeTypeName("#define SDL_HINT_HIDAPI_LIBUSB \"SDL_HIDAPI_LIBUSB\"")] + public static Utf8String HintHidapiLibusb => "SDL_HIDAPI_LIBUSB"u8; + + [NativeTypeName("#define SDL_HINT_HIDAPI_LIBUSB_WHITELIST \"SDL_HIDAPI_LIBUSB_WHITELIST\"")] + public static Utf8String HintHidapiLibusbWhitelist => "SDL_HIDAPI_LIBUSB_WHITELIST"u8; + + [NativeTypeName("#define SDL_HINT_HIDAPI_UDEV \"SDL_HIDAPI_UDEV\"")] + public static Utf8String HintHidapiUdev => "SDL_HIDAPI_UDEV"u8; + + [NativeTypeName("#define SDL_HINT_GPU_DRIVER \"SDL_GPU_DRIVER\"")] + public static Utf8String HintGpuDriver => "SDL_GPU_DRIVER"u8; + [NativeTypeName( "#define SDL_HINT_HIDAPI_ENUMERATE_ONLY_CONTROLLERS \"SDL_HIDAPI_ENUMERATE_ONLY_CONTROLLERS\"" )] @@ -38705,11 +47216,8 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_HIDAPI_IGNORE_DEVICES \"SDL_HIDAPI_IGNORE_DEVICES\"")] public static Utf8String HintHidapiIgnoreDevices => "SDL_HIDAPI_IGNORE_DEVICES"u8; - [NativeTypeName("#define SDL_HINT_IME_INTERNAL_EDITING \"SDL_IME_INTERNAL_EDITING\"")] - public static Utf8String HintImeInternalEditing => "SDL_IME_INTERNAL_EDITING"u8; - - [NativeTypeName("#define SDL_HINT_IME_SHOW_UI \"SDL_IME_SHOW_UI\"")] - public static Utf8String HintImeShowUi => "SDL_IME_SHOW_UI"u8; + [NativeTypeName("#define SDL_HINT_IME_IMPLEMENTED_UI \"SDL_IME_IMPLEMENTED_UI\"")] + public static Utf8String HintImeImplementedUi => "SDL_IME_IMPLEMENTED_UI"u8; [NativeTypeName("#define SDL_HINT_IOS_HIDE_HOME_INDICATOR \"SDL_IOS_HIDE_HOME_INDICATOR\"")] public static Utf8String HintIosHideHomeIndicator => "SDL_IOS_HIDE_HOME_INDICATOR"u8; @@ -38756,6 +47264,9 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String HintJoystickFlightstickDevicesExcluded => "SDL_JOYSTICK_FLIGHTSTICK_DEVICES_EXCLUDED"u8; + [NativeTypeName("#define SDL_HINT_JOYSTICK_GAMEINPUT \"SDL_JOYSTICK_GAMEINPUT\"")] + public static Utf8String HintJoystickGameinput => "SDL_JOYSTICK_GAMEINPUT"u8; + [NativeTypeName("#define SDL_HINT_JOYSTICK_GAMECUBE_DEVICES \"SDL_JOYSTICK_GAMECUBE_DEVICES\"")] public static Utf8String HintJoystickGamecubeDevices => "SDL_JOYSTICK_GAMECUBE_DEVICES"u8; @@ -38813,6 +47324,12 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_PS4 \"SDL_JOYSTICK_HIDAPI_PS4\"")] public static Utf8String HintJoystickHidapiPs4 => "SDL_JOYSTICK_HIDAPI_PS4"u8; + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_HIDAPI_PS4_REPORT_INTERVAL \"SDL_JOYSTICK_HIDAPI_PS4_REPORT_INTERVAL\"" + )] + public static Utf8String HintJoystickHidapiPs4ReportInterval => + "SDL_JOYSTICK_HIDAPI_PS4_REPORT_INTERVAL"u8; + [NativeTypeName( "#define SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE \"SDL_JOYSTICK_HIDAPI_PS4_RUMBLE\"" )] @@ -38844,6 +47361,11 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_STEAMDECK \"SDL_JOYSTICK_HIDAPI_STEAMDECK\"")] public static Utf8String HintJoystickHidapiSteamdeck => "SDL_JOYSTICK_HIDAPI_STEAMDECK"u8; + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_HIDAPI_STEAM_HORI \"SDL_JOYSTICK_HIDAPI_STEAM_HORI\"" + )] + public static Utf8String HintJoystickHidapiSteamHori => "SDL_JOYSTICK_HIDAPI_STEAM_HORI"u8; + [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH \"SDL_JOYSTICK_HIDAPI_SWITCH\"")] public static Utf8String HintJoystickHidapiSwitch => "SDL_JOYSTICK_HIDAPI_SWITCH"u8; @@ -38965,6 +47487,9 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String HintJoystickZeroCenteredDevices => "SDL_JOYSTICK_ZERO_CENTERED_DEVICES"u8; + [NativeTypeName("#define SDL_HINT_KEYCODE_OPTIONS \"SDL_KEYCODE_OPTIONS\"")] + public static Utf8String HintKeycodeOptions => "SDL_KEYCODE_OPTIONS"u8; + [NativeTypeName("#define SDL_HINT_KMSDRM_DEVICE_INDEX \"SDL_KMSDRM_DEVICE_INDEX\"")] public static Utf8String HintKmsdrmDeviceIndex => "SDL_KMSDRM_DEVICE_INDEX"u8; @@ -38986,6 +47511,9 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH \"SDL_MAC_OPENGL_ASYNC_DISPATCH\"")] public static Utf8String HintMacOpenglAsyncDispatch => "SDL_MAC_OPENGL_ASYNC_DISPATCH"u8; + [NativeTypeName("#define SDL_HINT_MAC_SCROLL_MOMENTUM \"SDL_MAC_SCROLL_MOMENTUM\"")] + public static Utf8String HintMacScrollMomentum => "SDL_MAC_SCROLL_MOMENTUM"u8; + [NativeTypeName("#define SDL_HINT_MAIN_CALLBACK_RATE \"SDL_MAIN_CALLBACK_RATE\"")] public static Utf8String HintMainCallbackRate => "SDL_MAIN_CALLBACK_RATE"u8; @@ -38998,6 +47526,12 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_MOUSE_DOUBLE_CLICK_TIME \"SDL_MOUSE_DOUBLE_CLICK_TIME\"")] public static Utf8String HintMouseDoubleClickTime => "SDL_MOUSE_DOUBLE_CLICK_TIME"u8; + [NativeTypeName( + "#define SDL_HINT_MOUSE_EMULATE_WARP_WITH_RELATIVE \"SDL_MOUSE_EMULATE_WARP_WITH_RELATIVE\"" + )] + public static Utf8String HintMouseEmulateWarpWithRelative => + "SDL_MOUSE_EMULATE_WARP_WITH_RELATIVE"u8; + [NativeTypeName("#define SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH \"SDL_MOUSE_FOCUS_CLICKTHROUGH\"")] public static Utf8String HintMouseFocusClickthrough => "SDL_MOUSE_FOCUS_CLICKTHROUGH"u8; @@ -39027,23 +47561,37 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte )] public static Utf8String HintMouseRelativeWarpMotion => "SDL_MOUSE_RELATIVE_WARP_MOTION"u8; + [NativeTypeName( + "#define SDL_HINT_MOUSE_RELATIVE_CURSOR_VISIBLE \"SDL_MOUSE_RELATIVE_CURSOR_VISIBLE\"" + )] + public static Utf8String HintMouseRelativeCursorVisible => + "SDL_MOUSE_RELATIVE_CURSOR_VISIBLE"u8; + + [NativeTypeName( + "#define SDL_HINT_MOUSE_RELATIVE_CLIP_INTERVAL \"SDL_MOUSE_RELATIVE_CLIP_INTERVAL\"" + )] + public static Utf8String HintMouseRelativeClipInterval => "SDL_MOUSE_RELATIVE_CLIP_INTERVAL"u8; + [NativeTypeName("#define SDL_HINT_MOUSE_TOUCH_EVENTS \"SDL_MOUSE_TOUCH_EVENTS\"")] public static Utf8String HintMouseTouchEvents => "SDL_MOUSE_TOUCH_EVENTS"u8; + [NativeTypeName("#define SDL_HINT_MUTE_CONSOLE_KEYBOARD \"SDL_MUTE_CONSOLE_KEYBOARD\"")] + public static Utf8String HintMuteConsoleKeyboard => "SDL_MUTE_CONSOLE_KEYBOARD"u8; + [NativeTypeName("#define SDL_HINT_NO_SIGNAL_HANDLERS \"SDL_NO_SIGNAL_HANDLERS\"")] public static Utf8String HintNoSignalHandlers => "SDL_NO_SIGNAL_HANDLERS"u8; + [NativeTypeName("#define SDL_HINT_OPENGL_LIBRARY \"SDL_OPENGL_LIBRARY\"")] + public static Utf8String HintOpenglLibrary => "SDL_OPENGL_LIBRARY"u8; + [NativeTypeName("#define SDL_HINT_OPENGL_ES_DRIVER \"SDL_OPENGL_ES_DRIVER\"")] public static Utf8String HintOpenglEsDriver => "SDL_OPENGL_ES_DRIVER"u8; - [NativeTypeName("#define SDL_HINT_ORIENTATIONS \"SDL_IOS_ORIENTATIONS\"")] - public static Utf8String HintOrientations => "SDL_IOS_ORIENTATIONS"u8; - - [NativeTypeName("#define SDL_HINT_PEN_DELAY_MOUSE_BUTTON \"SDL_PEN_DELAY_MOUSE_BUTTON\"")] - public static Utf8String HintPenDelayMouseButton => "SDL_PEN_DELAY_MOUSE_BUTTON"u8; + [NativeTypeName("#define SDL_HINT_OPENVR_LIBRARY \"SDL_OPENVR_LIBRARY\"")] + public static Utf8String HintOpenvrLibrary => "SDL_OPENVR_LIBRARY"u8; - [NativeTypeName("#define SDL_HINT_PEN_NOT_MOUSE \"SDL_PEN_NOT_MOUSE\"")] - public static Utf8String HintPenNotMouse => "SDL_PEN_NOT_MOUSE"u8; + [NativeTypeName("#define SDL_HINT_ORIENTATIONS \"SDL_ORIENTATIONS\"")] + public static Utf8String HintOrientations => "SDL_ORIENTATIONS"u8; [NativeTypeName("#define SDL_HINT_POLL_SENTINEL \"SDL_POLL_SENTINEL\"")] public static Utf8String HintPollSentinel => "SDL_POLL_SENTINEL"u8; @@ -39065,6 +47613,12 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_RENDER_VULKAN_DEBUG \"SDL_RENDER_VULKAN_DEBUG\"")] public static Utf8String HintRenderVulkanDebug => "SDL_RENDER_VULKAN_DEBUG"u8; + [NativeTypeName("#define SDL_HINT_RENDER_GPU_DEBUG \"SDL_RENDER_GPU_DEBUG\"")] + public static Utf8String HintRenderGpuDebug => "SDL_RENDER_GPU_DEBUG"u8; + + [NativeTypeName("#define SDL_HINT_RENDER_GPU_LOW_POWER \"SDL_RENDER_GPU_LOW_POWER\"")] + public static Utf8String HintRenderGpuLowPower => "SDL_RENDER_GPU_LOW_POWER"u8; + [NativeTypeName("#define SDL_HINT_RENDER_DRIVER \"SDL_RENDER_DRIVER\"")] public static Utf8String HintRenderDriver => "SDL_RENDER_DRIVER"u8; @@ -39077,9 +47631,6 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String HintRenderMetalPreferLowPowerDevice => "SDL_RENDER_METAL_PREFER_LOW_POWER_DEVICE"u8; - [NativeTypeName("#define SDL_HINT_RENDER_PS2_DYNAMIC_VSYNC \"SDL_RENDER_PS2_DYNAMIC_VSYNC\"")] - public static Utf8String HintRenderPs2DynamicVsync => "SDL_RENDER_PS2_DYNAMIC_VSYNC"u8; - [NativeTypeName("#define SDL_HINT_RENDER_VSYNC \"SDL_RENDER_VSYNC\"")] public static Utf8String HintRenderVsync => "SDL_RENDER_VSYNC"u8; @@ -39134,17 +47685,23 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_VIDEO_ALLOW_SCREENSAVER \"SDL_VIDEO_ALLOW_SCREENSAVER\"")] public static Utf8String HintVideoAllowScreensaver => "SDL_VIDEO_ALLOW_SCREENSAVER"u8; + [NativeTypeName("#define SDL_HINT_VIDEO_DISPLAY_PRIORITY \"SDL_VIDEO_DISPLAY_PRIORITY\"")] + public static Utf8String HintVideoDisplayPriority => "SDL_VIDEO_DISPLAY_PRIORITY"u8; + [NativeTypeName("#define SDL_HINT_VIDEO_DOUBLE_BUFFER \"SDL_VIDEO_DOUBLE_BUFFER\"")] public static Utf8String HintVideoDoubleBuffer => "SDL_VIDEO_DOUBLE_BUFFER"u8; [NativeTypeName("#define SDL_HINT_VIDEO_DRIVER \"SDL_VIDEO_DRIVER\"")] public static Utf8String HintVideoDriver => "SDL_VIDEO_DRIVER"u8; + [NativeTypeName("#define SDL_HINT_VIDEO_DUMMY_SAVE_FRAMES \"SDL_VIDEO_DUMMY_SAVE_FRAMES\"")] + public static Utf8String HintVideoDummySaveFrames => "SDL_VIDEO_DUMMY_SAVE_FRAMES"u8; + [NativeTypeName( - "#define SDL_HINT_VIDEO_EGL_ALLOW_GETDISPLAY_FALLBACK \"SDL_VIDEO_EGL_GETDISPLAY_FALLBACK\"" + "#define SDL_HINT_VIDEO_EGL_ALLOW_GETDISPLAY_FALLBACK \"SDL_VIDEO_EGL_ALLOW_GETDISPLAY_FALLBACK\"" )] public static Utf8String HintVideoEglAllowGetdisplayFallback => - "SDL_VIDEO_EGL_GETDISPLAY_FALLBACK"u8; + "SDL_VIDEO_EGL_ALLOW_GETDISPLAY_FALLBACK"u8; [NativeTypeName("#define SDL_HINT_VIDEO_FORCE_EGL \"SDL_VIDEO_FORCE_EGL\"")] public static Utf8String HintVideoForceEgl => "SDL_VIDEO_FORCE_EGL"u8; @@ -39159,6 +47716,11 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte )] public static Utf8String HintVideoMinimizeOnFocusLoss => "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS"u8; + [NativeTypeName( + "#define SDL_HINT_VIDEO_OFFSCREEN_SAVE_FRAMES \"SDL_VIDEO_OFFSCREEN_SAVE_FRAMES\"" + )] + public static Utf8String HintVideoOffscreenSaveFrames => "SDL_VIDEO_OFFSCREEN_SAVE_FRAMES"u8; + [NativeTypeName( "#define SDL_HINT_VIDEO_SYNC_WINDOW_OPERATIONS \"SDL_VIDEO_SYNC_WINDOW_OPERATIONS\"" )] @@ -39169,12 +47731,6 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte )] public static Utf8String HintVideoWaylandAllowLibdecor => "SDL_VIDEO_WAYLAND_ALLOW_LIBDECOR"u8; - [NativeTypeName( - "#define SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP \"SDL_VIDEO_WAYLAND_EMULATE_MOUSE_WARP\"" - )] - public static Utf8String HintVideoWaylandEmulateMouseWarp => - "SDL_VIDEO_WAYLAND_EMULATE_MOUSE_WARP"u8; - [NativeTypeName( "#define SDL_HINT_VIDEO_WAYLAND_MODE_EMULATION \"SDL_VIDEO_WAYLAND_MODE_EMULATION\"" )] @@ -39209,21 +47765,54 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_VIDEO_X11_NET_WM_PING \"SDL_VIDEO_X11_NET_WM_PING\"")] public static Utf8String HintVideoX11NetWmPing => "SDL_VIDEO_X11_NET_WM_PING"u8; + [NativeTypeName("#define SDL_HINT_VIDEO_X11_NODIRECTCOLOR \"SDL_VIDEO_X11_NODIRECTCOLOR\"")] + public static Utf8String HintVideoX11Nodirectcolor => "SDL_VIDEO_X11_NODIRECTCOLOR"u8; + [NativeTypeName("#define SDL_HINT_VIDEO_X11_SCALING_FACTOR \"SDL_VIDEO_X11_SCALING_FACTOR\"")] public static Utf8String HintVideoX11ScalingFactor => "SDL_VIDEO_X11_SCALING_FACTOR"u8; + [NativeTypeName("#define SDL_HINT_VIDEO_X11_VISUALID \"SDL_VIDEO_X11_VISUALID\"")] + public static Utf8String HintVideoX11Visualid => "SDL_VIDEO_X11_VISUALID"u8; + [NativeTypeName("#define SDL_HINT_VIDEO_X11_WINDOW_VISUALID \"SDL_VIDEO_X11_WINDOW_VISUALID\"")] public static Utf8String HintVideoX11WindowVisualid => "SDL_VIDEO_X11_WINDOW_VISUALID"u8; [NativeTypeName("#define SDL_HINT_VIDEO_X11_XRANDR \"SDL_VIDEO_X11_XRANDR\"")] public static Utf8String HintVideoX11Xrandr => "SDL_VIDEO_X11_XRANDR"u8; + [NativeTypeName("#define SDL_HINT_VITA_ENABLE_BACK_TOUCH \"SDL_VITA_ENABLE_BACK_TOUCH\"")] + public static Utf8String HintVitaEnableBackTouch => "SDL_VITA_ENABLE_BACK_TOUCH"u8; + + [NativeTypeName("#define SDL_HINT_VITA_ENABLE_FRONT_TOUCH \"SDL_VITA_ENABLE_FRONT_TOUCH\"")] + public static Utf8String HintVitaEnableFrontTouch => "SDL_VITA_ENABLE_FRONT_TOUCH"u8; + + [NativeTypeName("#define SDL_HINT_VITA_MODULE_PATH \"SDL_VITA_MODULE_PATH\"")] + public static Utf8String HintVitaModulePath => "SDL_VITA_MODULE_PATH"u8; + + [NativeTypeName("#define SDL_HINT_VITA_PVR_INIT \"SDL_VITA_PVR_INIT\"")] + public static Utf8String HintVitaPvrInit => "SDL_VITA_PVR_INIT"u8; + + [NativeTypeName("#define SDL_HINT_VITA_RESOLUTION \"SDL_VITA_RESOLUTION\"")] + public static Utf8String HintVitaResolution => "SDL_VITA_RESOLUTION"u8; + + [NativeTypeName("#define SDL_HINT_VITA_PVR_OPENGL \"SDL_VITA_PVR_OPENGL\"")] + public static Utf8String HintVitaPvrOpengl => "SDL_VITA_PVR_OPENGL"u8; + [NativeTypeName("#define SDL_HINT_VITA_TOUCH_MOUSE_DEVICE \"SDL_VITA_TOUCH_MOUSE_DEVICE\"")] public static Utf8String HintVitaTouchMouseDevice => "SDL_VITA_TOUCH_MOUSE_DEVICE"u8; + [NativeTypeName("#define SDL_HINT_VULKAN_DISPLAY \"SDL_VULKAN_DISPLAY\"")] + public static Utf8String HintVulkanDisplay => "SDL_VULKAN_DISPLAY"u8; + + [NativeTypeName("#define SDL_HINT_VULKAN_LIBRARY \"SDL_VULKAN_LIBRARY\"")] + public static Utf8String HintVulkanLibrary => "SDL_VULKAN_LIBRARY"u8; + [NativeTypeName("#define SDL_HINT_WAVE_FACT_CHUNK \"SDL_WAVE_FACT_CHUNK\"")] public static Utf8String HintWaveFactChunk => "SDL_WAVE_FACT_CHUNK"u8; + [NativeTypeName("#define SDL_HINT_WAVE_CHUNK_LIMIT \"SDL_WAVE_CHUNK_LIMIT\"")] + public static Utf8String HintWaveChunkLimit => "SDL_WAVE_CHUNK_LIMIT"u8; + [NativeTypeName("#define SDL_HINT_WAVE_RIFF_CHUNK_SIZE \"SDL_WAVE_RIFF_CHUNK_SIZE\"")] public static Utf8String HintWaveRiffChunkSize => "SDL_WAVE_RIFF_CHUNK_SIZE"u8; @@ -39263,15 +47852,12 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte )] public static Utf8String HintWindowsEnableMessageloop => "SDL_WINDOWS_ENABLE_MESSAGELOOP"u8; + [NativeTypeName("#define SDL_HINT_WINDOWS_GAMEINPUT \"SDL_WINDOWS_GAMEINPUT\"")] + public static Utf8String HintWindowsGameinput => "SDL_WINDOWS_GAMEINPUT"u8; + [NativeTypeName("#define SDL_HINT_WINDOWS_RAW_KEYBOARD \"SDL_WINDOWS_RAW_KEYBOARD\"")] public static Utf8String HintWindowsRawKeyboard => "SDL_WINDOWS_RAW_KEYBOARD"u8; - [NativeTypeName( - "#define SDL_HINT_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS \"SDL_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS\"" - )] - public static Utf8String HintWindowsForceMutexCriticalSections => - "SDL_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS"u8; - [NativeTypeName( "#define SDL_HINT_WINDOWS_FORCE_SEMAPHORE_KERNEL \"SDL_WINDOWS_FORCE_SEMAPHORE_KERNEL\"" )] @@ -39290,16 +47876,11 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_WINDOWS_USE_D3D9EX \"SDL_WINDOWS_USE_D3D9EX\"")] public static Utf8String HintWindowsUseD3D9Ex => "SDL_WINDOWS_USE_D3D9EX"u8; - [NativeTypeName("#define SDL_HINT_WINRT_HANDLE_BACK_BUTTON \"SDL_WINRT_HANDLE_BACK_BUTTON\"")] - public static Utf8String HintWinrtHandleBackButton => "SDL_WINRT_HANDLE_BACK_BUTTON"u8; - [NativeTypeName( - "#define SDL_HINT_WINRT_PRIVACY_POLICY_LABEL \"SDL_WINRT_PRIVACY_POLICY_LABEL\"" + "#define SDL_HINT_WINDOWS_ERASE_BACKGROUND_MODE \"SDL_WINDOWS_ERASE_BACKGROUND_MODE\"" )] - public static Utf8String HintWinrtPrivacyPolicyLabel => "SDL_WINRT_PRIVACY_POLICY_LABEL"u8; - - [NativeTypeName("#define SDL_HINT_WINRT_PRIVACY_POLICY_URL \"SDL_WINRT_PRIVACY_POLICY_URL\"")] - public static Utf8String HintWinrtPrivacyPolicyUrl => "SDL_WINRT_PRIVACY_POLICY_URL"u8; + public static Utf8String HintWindowsEraseBackgroundMode => + "SDL_WINDOWS_ERASE_BACKGROUND_MODE"u8; [NativeTypeName( "#define SDL_HINT_X11_FORCE_OVERRIDE_REDIRECT \"SDL_X11_FORCE_OVERRIDE_REDIRECT\"" @@ -39309,55 +47890,148 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_HINT_X11_WINDOW_TYPE \"SDL_X11_WINDOW_TYPE\"")] public static Utf8String HintX11WindowType => "SDL_X11_WINDOW_TYPE"u8; + [NativeTypeName("#define SDL_HINT_X11_XCB_LIBRARY \"SDL_X11_XCB_LIBRARY\"")] + public static Utf8String HintX11XcbLibrary => "SDL_X11_XCB_LIBRARY"u8; + [NativeTypeName("#define SDL_HINT_XINPUT_ENABLED \"SDL_XINPUT_ENABLED\"")] public static Utf8String HintXinputEnabled => "SDL_XINPUT_ENABLED"u8; + [NativeTypeName("#define SDL_HINT_ASSERT \"SDL_ASSERT\"")] + public static Utf8String HintAssert => "SDL_ASSERT"u8; + + [NativeTypeName("#define SDL_INIT_AUDIO 0x00000010u")] + public const uint InitAudio = 0x00000010U; + + [NativeTypeName("#define SDL_INIT_VIDEO 0x00000020u")] + public const uint InitVideo = 0x00000020U; + + [NativeTypeName("#define SDL_INIT_JOYSTICK 0x00000200u")] + public const uint InitJoystick = 0x00000200U; + + [NativeTypeName("#define SDL_INIT_HAPTIC 0x00001000u")] + public const uint InitHaptic = 0x00001000U; + + [NativeTypeName("#define SDL_INIT_GAMEPAD 0x00002000u")] + public const uint InitGamepad = 0x00002000U; + + [NativeTypeName("#define SDL_INIT_EVENTS 0x00004000u")] + public const uint InitEvents = 0x00004000U; + + [NativeTypeName("#define SDL_INIT_SENSOR 0x00008000u")] + public const uint InitSensor = 0x00008000U; + + [NativeTypeName("#define SDL_INIT_CAMERA 0x00010000u")] + public const uint InitCamera = 0x00010000U; + + [NativeTypeName("#define SDL_PROP_APP_METADATA_NAME_STRING \"SDL.app.metadata.name\"")] + public static Utf8String PropAppMetadataNameString => "SDL.app.metadata.name"u8; + + [NativeTypeName("#define SDL_PROP_APP_METADATA_VERSION_STRING \"SDL.app.metadata.version\"")] + public static Utf8String PropAppMetadataVersionString => "SDL.app.metadata.version"u8; + + [NativeTypeName( + "#define SDL_PROP_APP_METADATA_IDENTIFIER_STRING \"SDL.app.metadata.identifier\"" + )] + public static Utf8String PropAppMetadataIdentifierString => "SDL.app.metadata.identifier"u8; + + [NativeTypeName("#define SDL_PROP_APP_METADATA_CREATOR_STRING \"SDL.app.metadata.creator\"")] + public static Utf8String PropAppMetadataCreatorString => "SDL.app.metadata.creator"u8; + + [NativeTypeName( + "#define SDL_PROP_APP_METADATA_COPYRIGHT_STRING \"SDL.app.metadata.copyright\"" + )] + public static Utf8String PropAppMetadataCopyrightString => "SDL.app.metadata.copyright"u8; + + [NativeTypeName("#define SDL_PROP_APP_METADATA_URL_STRING \"SDL.app.metadata.url\"")] + public static Utf8String PropAppMetadataUrlString => "SDL.app.metadata.url"u8; + + [NativeTypeName("#define SDL_PROP_APP_METADATA_TYPE_STRING \"SDL.app.metadata.type\"")] + public static Utf8String PropAppMetadataTypeString => "SDL.app.metadata.type"u8; + + [NativeTypeName("#define SDL_MESSAGEBOX_ERROR 0x00000010u")] + public const uint MessageboxError = 0x00000010U; + + [NativeTypeName("#define SDL_MESSAGEBOX_WARNING 0x00000020u")] + public const uint MessageboxWarning = 0x00000020U; + + [NativeTypeName("#define SDL_MESSAGEBOX_INFORMATION 0x00000040u")] + public const uint MessageboxInformation = 0x00000040U; + + [NativeTypeName("#define SDL_MESSAGEBOX_BUTTONS_LEFT_TO_RIGHT 0x00000080u")] + public const uint MessageboxButtonsLeftToRight = 0x00000080U; + + [NativeTypeName("#define SDL_MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT 0x00000100u")] + public const uint MessageboxButtonsRightToLeft = 0x00000100U; + + [NativeTypeName("#define SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT 0x00000001u")] + public const uint MessageboxButtonReturnkeyDefault = 0x00000001U; + + [NativeTypeName("#define SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT 0x00000002u")] + public const uint MessageboxButtonEscapekeyDefault = 0x00000002U; + [NativeTypeName("#define SDL_SOFTWARE_RENDERER \"software\"")] public static Utf8String SoftwareRenderer => "software"u8; - [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_NAME_STRING \"name\"")] - public static Utf8String PropRendererCreateNameString => "name"u8; + [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_NAME_STRING \"SDL.renderer.create.name\"")] + public static Utf8String PropRendererCreateNameString => "SDL.renderer.create.name"u8; - [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_WINDOW_POINTER \"window\"")] - public static Utf8String PropRendererCreateWindowPointer => "window"u8; + [NativeTypeName( + "#define SDL_PROP_RENDERER_CREATE_WINDOW_POINTER \"SDL.renderer.create.window\"" + )] + public static Utf8String PropRendererCreateWindowPointer => "SDL.renderer.create.window"u8; - [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_SURFACE_POINTER \"surface\"")] - public static Utf8String PropRendererCreateSurfacePointer => "surface"u8; + [NativeTypeName( + "#define SDL_PROP_RENDERER_CREATE_SURFACE_POINTER \"SDL.renderer.create.surface\"" + )] + public static Utf8String PropRendererCreateSurfacePointer => "SDL.renderer.create.surface"u8; [NativeTypeName( - "#define SDL_PROP_RENDERER_CREATE_OUTPUT_COLORSPACE_NUMBER \"output_colorspace\"" + "#define SDL_PROP_RENDERER_CREATE_OUTPUT_COLORSPACE_NUMBER \"SDL.renderer.create.output_colorspace\"" )] - public static Utf8String PropRendererCreateOutputColorspaceNumber => "output_colorspace"u8; + public static Utf8String PropRendererCreateOutputColorspaceNumber => + "SDL.renderer.create.output_colorspace"u8; - [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_PRESENT_VSYNC_BOOLEAN \"present_vsync\"")] - public static Utf8String PropRendererCreatePresentVsyncBoolean => "present_vsync"u8; + [NativeTypeName( + "#define SDL_PROP_RENDERER_CREATE_PRESENT_VSYNC_NUMBER \"SDL.renderer.create.present_vsync\"" + )] + public static Utf8String PropRendererCreatePresentVsyncNumber => + "SDL.renderer.create.present_vsync"u8; - [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_VULKAN_INSTANCE_POINTER \"vulkan.instance\"")] - public static Utf8String PropRendererCreateVulkanInstancePointer => "vulkan.instance"u8; + [NativeTypeName( + "#define SDL_PROP_RENDERER_CREATE_VULKAN_INSTANCE_POINTER \"SDL.renderer.create.vulkan.instance\"" + )] + public static Utf8String PropRendererCreateVulkanInstancePointer => + "SDL.renderer.create.vulkan.instance"u8; - [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_VULKAN_SURFACE_NUMBER \"vulkan.surface\"")] - public static Utf8String PropRendererCreateVulkanSurfaceNumber => "vulkan.surface"u8; + [NativeTypeName( + "#define SDL_PROP_RENDERER_CREATE_VULKAN_SURFACE_NUMBER \"SDL.renderer.create.vulkan.surface\"" + )] + public static Utf8String PropRendererCreateVulkanSurfaceNumber => + "SDL.renderer.create.vulkan.surface"u8; [NativeTypeName( - "#define SDL_PROP_RENDERER_CREATE_VULKAN_PHYSICAL_DEVICE_POINTER \"vulkan.physical_device\"" + "#define SDL_PROP_RENDERER_CREATE_VULKAN_PHYSICAL_DEVICE_POINTER \"SDL.renderer.create.vulkan.physical_device\"" )] public static Utf8String PropRendererCreateVulkanPhysicalDevicePointer => - "vulkan.physical_device"u8; + "SDL.renderer.create.vulkan.physical_device"u8; - [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_VULKAN_DEVICE_POINTER \"vulkan.device\"")] - public static Utf8String PropRendererCreateVulkanDevicePointer => "vulkan.device"u8; + [NativeTypeName( + "#define SDL_PROP_RENDERER_CREATE_VULKAN_DEVICE_POINTER \"SDL.renderer.create.vulkan.device\"" + )] + public static Utf8String PropRendererCreateVulkanDevicePointer => + "SDL.renderer.create.vulkan.device"u8; [NativeTypeName( - "#define SDL_PROP_RENDERER_CREATE_VULKAN_GRAPHICS_QUEUE_FAMILY_INDEX_NUMBER \"vulkan.graphics_queue_family_index\"" + "#define SDL_PROP_RENDERER_CREATE_VULKAN_GRAPHICS_QUEUE_FAMILY_INDEX_NUMBER \"SDL.renderer.create.vulkan.graphics_queue_family_index\"" )] public static Utf8String PropRendererCreateVulkanGraphicsQueueFamilyIndexNumber => - "vulkan.graphics_queue_family_index"u8; + "SDL.renderer.create.vulkan.graphics_queue_family_index"u8; [NativeTypeName( - "#define SDL_PROP_RENDERER_CREATE_VULKAN_PRESENT_QUEUE_FAMILY_INDEX_NUMBER \"vulkan.present_queue_family_index\"" + "#define SDL_PROP_RENDERER_CREATE_VULKAN_PRESENT_QUEUE_FAMILY_INDEX_NUMBER \"SDL.renderer.create.vulkan.present_queue_family_index\"" )] public static Utf8String PropRendererCreateVulkanPresentQueueFamilyIndexNumber => - "vulkan.present_queue_family_index"u8; + "SDL.renderer.create.vulkan.present_queue_family_index"u8; [NativeTypeName("#define SDL_PROP_RENDERER_NAME_STRING \"SDL.renderer.name\"")] public static Utf8String PropRendererNameString => "SDL.renderer.name"u8; @@ -39368,6 +48042,19 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_PROP_RENDERER_SURFACE_POINTER \"SDL.renderer.surface\"")] public static Utf8String PropRendererSurfacePointer => "SDL.renderer.surface"u8; + [NativeTypeName("#define SDL_PROP_RENDERER_VSYNC_NUMBER \"SDL.renderer.vsync\"")] + public static Utf8String PropRendererVsyncNumber => "SDL.renderer.vsync"u8; + + [NativeTypeName( + "#define SDL_PROP_RENDERER_MAX_TEXTURE_SIZE_NUMBER \"SDL.renderer.max_texture_size\"" + )] + public static Utf8String PropRendererMaxTextureSizeNumber => "SDL.renderer.max_texture_size"u8; + + [NativeTypeName( + "#define SDL_PROP_RENDERER_TEXTURE_FORMATS_POINTER \"SDL.renderer.texture_formats\"" + )] + public static Utf8String PropRendererTextureFormatsPointer => "SDL.renderer.texture_formats"u8; + [NativeTypeName( "#define SDL_PROP_RENDERER_OUTPUT_COLORSPACE_NUMBER \"SDL.renderer.output_colorspace\"" )] @@ -39391,9 +48078,19 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_PROP_RENDERER_D3D11_DEVICE_POINTER \"SDL.renderer.d3d11.device\"")] public static Utf8String PropRendererD3D11DevicePointer => "SDL.renderer.d3d11.device"u8; + [NativeTypeName( + "#define SDL_PROP_RENDERER_D3D11_SWAPCHAIN_POINTER \"SDL.renderer.d3d11.swap_chain\"" + )] + public static Utf8String PropRendererD3D11SwapchainPointer => "SDL.renderer.d3d11.swap_chain"u8; + [NativeTypeName("#define SDL_PROP_RENDERER_D3D12_DEVICE_POINTER \"SDL.renderer.d3d12.device\"")] public static Utf8String PropRendererD3D12DevicePointer => "SDL.renderer.d3d12.device"u8; + [NativeTypeName( + "#define SDL_PROP_RENDERER_D3D12_SWAPCHAIN_POINTER \"SDL.renderer.d3d12.swap_chain\"" + )] + public static Utf8String PropRendererD3D12SwapchainPointer => "SDL.renderer.d3d12.swap_chain"u8; + [NativeTypeName( "#define SDL_PROP_RENDERER_D3D12_COMMAND_QUEUE_POINTER \"SDL.renderer.d3d12.command_queue\"" )] @@ -39439,90 +48136,146 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte public static Utf8String PropRendererVulkanSwapchainImageCountNumber => "SDL.renderer.vulkan.swapchain_image_count"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_COLORSPACE_NUMBER \"colorspace\"")] - public static Utf8String PropTextureCreateColorspaceNumber => "colorspace"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_COLORSPACE_NUMBER \"SDL.texture.create.colorspace\"" + )] + public static Utf8String PropTextureCreateColorspaceNumber => "SDL.texture.create.colorspace"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_FORMAT_NUMBER \"format\"")] - public static Utf8String PropTextureCreateFormatNumber => "format"u8; + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_FORMAT_NUMBER \"SDL.texture.create.format\"")] + public static Utf8String PropTextureCreateFormatNumber => "SDL.texture.create.format"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_ACCESS_NUMBER \"access\"")] - public static Utf8String PropTextureCreateAccessNumber => "access"u8; + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_ACCESS_NUMBER \"SDL.texture.create.access\"")] + public static Utf8String PropTextureCreateAccessNumber => "SDL.texture.create.access"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_WIDTH_NUMBER \"width\"")] - public static Utf8String PropTextureCreateWidthNumber => "width"u8; + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_WIDTH_NUMBER \"SDL.texture.create.width\"")] + public static Utf8String PropTextureCreateWidthNumber => "SDL.texture.create.width"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_HEIGHT_NUMBER \"height\"")] - public static Utf8String PropTextureCreateHeightNumber => "height"u8; + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_HEIGHT_NUMBER \"SDL.texture.create.height\"")] + public static Utf8String PropTextureCreateHeightNumber => "SDL.texture.create.height"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_SDR_WHITE_POINT_FLOAT \"SDR_white_point\"")] - public static Utf8String PropTextureCreateSdrWhitePointFloat => "SDR_white_point"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_SDR_WHITE_POINT_FLOAT \"SDL.texture.create.SDR_white_point\"" + )] + public static Utf8String PropTextureCreateSdrWhitePointFloat => + "SDL.texture.create.SDR_white_point"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_HDR_HEADROOM_FLOAT \"HDR_headroom\"")] - public static Utf8String PropTextureCreateHdrHeadroomFloat => "HDR_headroom"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_HDR_HEADROOM_FLOAT \"SDL.texture.create.HDR_headroom\"" + )] + public static Utf8String PropTextureCreateHdrHeadroomFloat => + "SDL.texture.create.HDR_headroom"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_POINTER \"d3d11.texture\"")] - public static Utf8String PropTextureCreateD3D11TexturePointer => "d3d11.texture"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_POINTER \"SDL.texture.create.d3d11.texture\"" + )] + public static Utf8String PropTextureCreateD3D11TexturePointer => + "SDL.texture.create.d3d11.texture"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_U_POINTER \"d3d11.texture_u\"")] - public static Utf8String PropTextureCreateD3D11TextureUPointer => "d3d11.texture_u"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_U_POINTER \"SDL.texture.create.d3d11.texture_u\"" + )] + public static Utf8String PropTextureCreateD3D11TextureUPointer => + "SDL.texture.create.d3d11.texture_u"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_V_POINTER \"d3d11.texture_v\"")] - public static Utf8String PropTextureCreateD3D11TextureVPointer => "d3d11.texture_v"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_V_POINTER \"SDL.texture.create.d3d11.texture_v\"" + )] + public static Utf8String PropTextureCreateD3D11TextureVPointer => + "SDL.texture.create.d3d11.texture_v"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D12_TEXTURE_POINTER \"d3d12.texture\"")] - public static Utf8String PropTextureCreateD3D12TexturePointer => "d3d12.texture"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_D3D12_TEXTURE_POINTER \"SDL.texture.create.d3d12.texture\"" + )] + public static Utf8String PropTextureCreateD3D12TexturePointer => + "SDL.texture.create.d3d12.texture"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D12_TEXTURE_U_POINTER \"d3d12.texture_u\"")] - public static Utf8String PropTextureCreateD3D12TextureUPointer => "d3d12.texture_u"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_D3D12_TEXTURE_U_POINTER \"SDL.texture.create.d3d12.texture_u\"" + )] + public static Utf8String PropTextureCreateD3D12TextureUPointer => + "SDL.texture.create.d3d12.texture_u"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D12_TEXTURE_V_POINTER \"d3d12.texture_v\"")] - public static Utf8String PropTextureCreateD3D12TextureVPointer => "d3d12.texture_v"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_D3D12_TEXTURE_V_POINTER \"SDL.texture.create.d3d12.texture_v\"" + )] + public static Utf8String PropTextureCreateD3D12TextureVPointer => + "SDL.texture.create.d3d12.texture_v"u8; [NativeTypeName( - "#define SDL_PROP_TEXTURE_CREATE_METAL_PIXELBUFFER_POINTER \"metal.pixelbuffer\"" + "#define SDL_PROP_TEXTURE_CREATE_METAL_PIXELBUFFER_POINTER \"SDL.texture.create.metal.pixelbuffer\"" )] - public static Utf8String PropTextureCreateMetalPixelbufferPointer => "metal.pixelbuffer"u8; + public static Utf8String PropTextureCreateMetalPixelbufferPointer => + "SDL.texture.create.metal.pixelbuffer"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_NUMBER \"opengl.texture\"")] - public static Utf8String PropTextureCreateOpenglTextureNumber => "opengl.texture"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_NUMBER \"SDL.texture.create.opengl.texture\"" + )] + public static Utf8String PropTextureCreateOpenglTextureNumber => + "SDL.texture.create.opengl.texture"u8; [NativeTypeName( - "#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_UV_NUMBER \"opengl.texture_uv\"" + "#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_UV_NUMBER \"SDL.texture.create.opengl.texture_uv\"" )] - public static Utf8String PropTextureCreateOpenglTextureUvNumber => "opengl.texture_uv"u8; + public static Utf8String PropTextureCreateOpenglTextureUvNumber => + "SDL.texture.create.opengl.texture_uv"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_U_NUMBER \"opengl.texture_u\"")] - public static Utf8String PropTextureCreateOpenglTextureUNumber => "opengl.texture_u"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_U_NUMBER \"SDL.texture.create.opengl.texture_u\"" + )] + public static Utf8String PropTextureCreateOpenglTextureUNumber => + "SDL.texture.create.opengl.texture_u"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_V_NUMBER \"opengl.texture_v\"")] - public static Utf8String PropTextureCreateOpenglTextureVNumber => "opengl.texture_v"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_V_NUMBER \"SDL.texture.create.opengl.texture_v\"" + )] + public static Utf8String PropTextureCreateOpenglTextureVNumber => + "SDL.texture.create.opengl.texture_v"u8; [NativeTypeName( - "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_NUMBER \"opengles2.texture\"" + "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_NUMBER \"SDL.texture.create.opengles2.texture\"" )] - public static Utf8String PropTextureCreateOpengles2TextureNumber => "opengles2.texture"u8; + public static Utf8String PropTextureCreateOpengles2TextureNumber => + "SDL.texture.create.opengles2.texture"u8; [NativeTypeName( - "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_UV_NUMBER \"opengles2.texture_uv\"" + "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_UV_NUMBER \"SDL.texture.create.opengles2.texture_uv\"" )] - public static Utf8String PropTextureCreateOpengles2TextureUvNumber => "opengles2.texture_uv"u8; + public static Utf8String PropTextureCreateOpengles2TextureUvNumber => + "SDL.texture.create.opengles2.texture_uv"u8; [NativeTypeName( - "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_U_NUMBER \"opengles2.texture_u\"" + "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_U_NUMBER \"SDL.texture.create.opengles2.texture_u\"" )] - public static Utf8String PropTextureCreateOpengles2TextureUNumber => "opengles2.texture_u"u8; + public static Utf8String PropTextureCreateOpengles2TextureUNumber => + "SDL.texture.create.opengles2.texture_u"u8; [NativeTypeName( - "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_V_NUMBER \"opengles2.texture_v\"" + "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_V_NUMBER \"SDL.texture.create.opengles2.texture_v\"" )] - public static Utf8String PropTextureCreateOpengles2TextureVNumber => "opengles2.texture_v"u8; + public static Utf8String PropTextureCreateOpengles2TextureVNumber => + "SDL.texture.create.opengles2.texture_v"u8; - [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_VULKAN_TEXTURE_NUMBER \"vulkan.texture\"")] - public static Utf8String PropTextureCreateVulkanTextureNumber => "vulkan.texture"u8; + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_VULKAN_TEXTURE_NUMBER \"SDL.texture.create.vulkan.texture\"" + )] + public static Utf8String PropTextureCreateVulkanTextureNumber => + "SDL.texture.create.vulkan.texture"u8; [NativeTypeName("#define SDL_PROP_TEXTURE_COLORSPACE_NUMBER \"SDL.texture.colorspace\"")] public static Utf8String PropTextureColorspaceNumber => "SDL.texture.colorspace"u8; + [NativeTypeName("#define SDL_PROP_TEXTURE_FORMAT_NUMBER \"SDL.texture.format\"")] + public static Utf8String PropTextureFormatNumber => "SDL.texture.format"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_ACCESS_NUMBER \"SDL.texture.access\"")] + public static Utf8String PropTextureAccessNumber => "SDL.texture.access"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_WIDTH_NUMBER \"SDL.texture.width\"")] + public static Utf8String PropTextureWidthNumber => "SDL.texture.width"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_HEIGHT_NUMBER \"SDL.texture.height\"")] + public static Utf8String PropTextureHeightNumber => "SDL.texture.height"u8; + [NativeTypeName( "#define SDL_PROP_TEXTURE_SDR_WHITE_POINT_FLOAT \"SDL.texture.SDR_white_point\"" )] @@ -39622,11 +48375,14 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte )] public static Utf8String PropTextureVulkanTextureNumber => "SDL.texture.vulkan.texture"u8; - [NativeTypeName("#define SDL_PROP_GLOBAL_SYSTEM_DATE_FORMAT_NUMBER \"SDL.time.date_format\"")] - public static Utf8String PropGlobalSystemDateFormatNumber => "SDL.time.date_format"u8; + [NativeTypeName("#define SDL_RENDERER_VSYNC_DISABLED 0")] + public const int RendererVsyncDisabled = 0; + + [NativeTypeName("#define SDL_RENDERER_VSYNC_ADAPTIVE (-1)")] + public const int RendererVsyncAdaptive = (-1); - [NativeTypeName("#define SDL_PROP_GLOBAL_SYSTEM_TIME_FORMAT_NUMBER \"SDL.time.time_format\"")] - public static Utf8String PropGlobalSystemTimeFormatNumber => "SDL.time.time_format"u8; + [NativeTypeName("#define SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE 8")] + public const int DebugTextFontCharacterSize = 8; [NativeTypeName("#define SDL_MS_PER_SECOND 1000")] public const int MsPerSecond = 1000; @@ -39649,16 +48405,15 @@ public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte [NativeTypeName("#define SDL_MINOR_VERSION 1")] public const int MinorVersion = 1; - [NativeTypeName("#define SDL_PATCHLEVEL 2")] - public const int Patchlevel = 2; + [NativeTypeName("#define SDL_MICRO_VERSION 6")] + public const int MicroVersion = 6; [NativeTypeName( - "#define SDL_COMPILEDVERSION SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)" + "#define SDL_VERSION SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_MICRO_VERSION)" )] - public const int Compiledversion = ((3) << 24 | (1) << 8 | (2) << 0); + public const int Version = ((3) * 1000000 + (1) * 1000 + (6)); - [return: NativeTypeName("SDL_bool")] - public static int PointInRect( + public static bool PointInRect( [NativeTypeName("const SDL_Point *")] Point* p, [NativeTypeName("const SDL_Rect *")] Rect* r ) @@ -39671,14 +48426,13 @@ public static int PointInRect( && (p->Y >= r->Y) && (p->Y < (r->Y + r->H)) ) - ? 1 - : 0; + ? true + : false; } - [return: NativeTypeName("SDL_bool")] [Transformed] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool PointInRect( + public static bool PointInRect( [NativeTypeName("const SDL_Point *")] Ref p, [NativeTypeName("const SDL_Rect *")] Ref r ) @@ -39686,12 +48440,11 @@ public static MaybeBool PointInRect( fixed (Rect* __dsl_r = r) fixed (Point* __dsl_p = p) { - return (MaybeBool)(int)PointInRect(__dsl_p, __dsl_r); + return (bool)PointInRect(__dsl_p, __dsl_r); } } - [return: NativeTypeName("SDL_bool")] - public static int PointInRectFloat( + public static bool PointInRectFloat( [NativeTypeName("const SDL_FPoint *")] FPoint* p, [NativeTypeName("const SDL_FRect *")] FRect* r ) @@ -39700,18 +48453,17 @@ public static int PointInRectFloat( (p) != null && (r) != null && (p->X >= r->X) - && (p->X < (r->X + r->W)) + && (p->X <= (r->X + r->W)) && (p->Y >= r->Y) - && (p->Y < (r->Y + r->H)) + && (p->Y <= (r->Y + r->H)) ) - ? 1 - : 0; + ? true + : false; } - [return: NativeTypeName("SDL_bool")] [Transformed] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool PointInRectFloat( + public static bool PointInRectFloat( [NativeTypeName("const SDL_FPoint *")] Ref p, [NativeTypeName("const SDL_FRect *")] Ref r ) @@ -39719,46 +48471,41 @@ public static MaybeBool PointInRectFloat( fixed (FRect* __dsl_r = r) fixed (FPoint* __dsl_p = p) { - return (MaybeBool)(int)PointInRectFloat(__dsl_p, __dsl_r); + return (bool)PointInRectFloat(__dsl_p, __dsl_r); } } - [return: NativeTypeName("SDL_bool")] - public static int RectEmpty([NativeTypeName("const SDL_Rect *")] Rect* r) + public static bool RectEmpty([NativeTypeName("const SDL_Rect *")] Rect* r) { - return ((r == null) || (r->W <= 0) || (r->H <= 0)) ? 1 : 0; + return ((r == null) || (r->W <= 0) || (r->H <= 0)) ? true : false; } - [return: NativeTypeName("SDL_bool")] [Transformed] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool RectEmpty([NativeTypeName("const SDL_Rect *")] Ref r) + public static bool RectEmpty([NativeTypeName("const SDL_Rect *")] Ref r) { fixed (Rect* __dsl_r = r) { - return (MaybeBool)(int)RectEmpty(__dsl_r); + return (bool)RectEmpty(__dsl_r); } } - [return: NativeTypeName("SDL_bool")] - public static int RectEmptyFloat([NativeTypeName("const SDL_FRect *")] FRect* r) + public static bool RectEmptyFloat([NativeTypeName("const SDL_FRect *")] FRect* r) { - return ((r == null) || (r->W <= 0.0f) || (r->H <= 0.0f)) ? 1 : 0; + return ((r == null) || (r->W < 0.0f) || (r->H < 0.0f)) ? true : false; } - [return: NativeTypeName("SDL_bool")] [Transformed] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool RectEmptyFloat([NativeTypeName("const SDL_FRect *")] Ref r) + public static bool RectEmptyFloat([NativeTypeName("const SDL_FRect *")] Ref r) { fixed (FRect* __dsl_r = r) { - return (MaybeBool)(int)RectEmptyFloat(__dsl_r); + return (bool)RectEmptyFloat(__dsl_r); } } - [return: NativeTypeName("SDL_bool")] - public static int RectsEqual( + public static bool RectsEqual( [NativeTypeName("const SDL_Rect *")] Rect* a, [NativeTypeName("const SDL_Rect *")] Rect* b ) @@ -39771,14 +48518,13 @@ public static int RectsEqual( && (a->W == b->W) && (a->H == b->H) ) - ? 1 - : 0; + ? true + : false; } - [return: NativeTypeName("SDL_bool")] [Transformed] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool RectsEqual( + public static bool RectsEqual( [NativeTypeName("const SDL_Rect *")] Ref a, [NativeTypeName("const SDL_Rect *")] Ref b ) @@ -39786,12 +48532,11 @@ public static MaybeBool RectsEqual( fixed (Rect* __dsl_b = b) fixed (Rect* __dsl_a = a) { - return (MaybeBool)(int)RectsEqual(__dsl_a, __dsl_b); + return (bool)RectsEqual(__dsl_a, __dsl_b); } } - [return: NativeTypeName("SDL_bool")] - public static int RectsEqualEpsilon( + public static bool RectsEqualEpsilon( [NativeTypeName("const SDL_FRect *")] FRect* a, [NativeTypeName("const SDL_FRect *")] FRect* b, [NativeTypeName("const float")] float epsilon @@ -39810,14 +48555,13 @@ public static int RectsEqualEpsilon( ) ) ) - ? 1 - : 0; + ? true + : false; } - [return: NativeTypeName("SDL_bool")] [Transformed] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool RectsEqualEpsilon( + public static bool RectsEqualEpsilon( [NativeTypeName("const SDL_FRect *")] Ref a, [NativeTypeName("const SDL_FRect *")] Ref b, [NativeTypeName("const float")] float epsilon @@ -39826,12 +48570,11 @@ public static MaybeBool RectsEqualEpsilon( fixed (FRect* __dsl_b = b) fixed (FRect* __dsl_a = a) { - return (MaybeBool)(int)RectsEqualEpsilon(__dsl_a, __dsl_b, epsilon); + return (bool)RectsEqualEpsilon(__dsl_a, __dsl_b, epsilon); } } - [return: NativeTypeName("SDL_bool")] - public static int RectsEqualFloat( + public static bool RectsEqualFloat( [NativeTypeName("const SDL_FRect *")] FRect* a, [NativeTypeName("const SDL_FRect *")] FRect* b ) @@ -39839,10 +48582,9 @@ public static int RectsEqualFloat( return RectsEqualEpsilon(a, b, 1.1920928955078125e-07F); } - [return: NativeTypeName("SDL_bool")] [Transformed] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool RectsEqualFloat( + public static bool RectsEqualFloat( [NativeTypeName("const SDL_FRect *")] Ref a, [NativeTypeName("const SDL_FRect *")] Ref b ) @@ -39850,7 +48592,29 @@ public static MaybeBool RectsEqualFloat( fixed (FRect* __dsl_b = b) fixed (FRect* __dsl_a = a) { - return (MaybeBool)(int)RectsEqualFloat(__dsl_a, __dsl_b); + return (bool)RectsEqualFloat(__dsl_a, __dsl_b); + } + } + + public static void RectToFRect([NativeTypeName("const SDL_Rect *")] Rect* rect, FRect* frect) + { + frect->X = (float)(rect->X); + frect->Y = (float)(rect->Y); + frect->W = (float)(rect->W); + frect->H = (float)(rect->H); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void RectToFRect( + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref frect + ) + { + fixed (FRect* __dsl_frect = frect) + fixed (Rect* __dsl_rect = rect) + { + RectToFRect(__dsl_rect, __dsl_frect); } } @@ -39895,38 +48659,71 @@ public static Ptr AcquireCameraFrame( ) => DllImport.AcquireCameraFrame(camera, timestampNS); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AddEventWatch( + int ISdl.AddAtomicInt(AtomicInt* a, int v) => + ( + (delegate* unmanaged)( + _slots[1] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1] = nativeContext.LoadFunction("SDL_AddAtomicInt", "SDL3") + ) + )(a, v); + + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddAtomicInt(AtomicInt* a, int v) => DllImport.AddAtomicInt(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddAtomicInt(Ref a, int v) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)((ISdl)this).AddAtomicInt(__dsl_a, v); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddAtomicInt(Ref a, int v) => DllImport.AddAtomicInt(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.AddEventWatch( [NativeTypeName("SDL_EventFilter")] EventFilter filter, void* userdata ) => ( - (delegate* unmanaged)( - _slots[1] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[2] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1] = nativeContext.LoadFunction("SDL_AddEventWatch", "SDL3") + : _slots[2] = nativeContext.LoadFunction("SDL_AddEventWatch", "SDL3") ) )(filter, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AddEventWatch( + public static byte AddEventWatch( [NativeTypeName("SDL_EventFilter")] EventFilter filter, void* userdata ) => DllImport.AddEventWatch(filter, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AddEventWatch([NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata) + MaybeBool ISdl.AddEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + Ref userdata + ) { fixed (void* __dsl_userdata = userdata) { - return (int)((ISdl)this).AddEventWatch(filter, __dsl_userdata); + return (MaybeBool)(byte)((ISdl)this).AddEventWatch(filter, __dsl_userdata); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AddEventWatch( + public static MaybeBool AddEventWatch( [NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata ) => DllImport.AddEventWatch(filter, userdata); @@ -39935,9 +48732,9 @@ Ref userdata int ISdl.AddGamepadMapping([NativeTypeName("const char *")] sbyte* mapping) => ( (delegate* unmanaged)( - _slots[2] is not null and var loadedFnPtr + _slots[3] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[2] = nativeContext.LoadFunction("SDL_AddGamepadMapping", "SDL3") + : _slots[3] = nativeContext.LoadFunction("SDL_AddGamepadMapping", "SDL3") ) )(mapping); @@ -39965,9 +48762,9 @@ public static int AddGamepadMapping([NativeTypeName("const char *")] Ref int ISdl.AddGamepadMappingsFromFile([NativeTypeName("const char *")] sbyte* file) => ( (delegate* unmanaged)( - _slots[3] is not null and var loadedFnPtr + _slots[4] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[3] = nativeContext.LoadFunction( + : _slots[4] = nativeContext.LoadFunction( "SDL_AddGamepadMappingsFromFile", "SDL3" ) @@ -39996,15 +48793,12 @@ public static int AddGamepadMappingsFromFile( ) => DllImport.AddGamepadMappingsFromFile(file); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AddGamepadMappingsFromIO( - IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio - ) => + int ISdl.AddGamepadMappingsFromIO(IOStreamHandle src, [NativeTypeName("bool")] byte closeio) => ( - (delegate* unmanaged)( - _slots[4] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[5] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[4] = nativeContext.LoadFunction("SDL_AddGamepadMappingsFromIO", "SDL3") + : _slots[5] = nativeContext.LoadFunction("SDL_AddGamepadMappingsFromIO", "SDL3") ) )(src, closeio); @@ -40012,47 +48806,48 @@ _slots[4] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static int AddGamepadMappingsFromIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ) => DllImport.AddGamepadMappingsFromIO(src, closeio); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.AddGamepadMappingsFromIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio - ) => (int)((ISdl)this).AddGamepadMappingsFromIO(src, (int)closeio); + [NativeTypeName("bool")] MaybeBool closeio + ) => (int)((ISdl)this).AddGamepadMappingsFromIO(src, (byte)closeio); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static int AddGamepadMappingsFromIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) => DllImport.AddGamepadMappingsFromIO(src, closeio); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AddHintCallback( + byte ISdl.AddHintCallback( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, void* userdata ) => ( - (delegate* unmanaged)( - _slots[5] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[6] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[5] = nativeContext.LoadFunction("SDL_AddHintCallback", "SDL3") + : _slots[6] = nativeContext.LoadFunction("SDL_AddHintCallback", "SDL3") ) )(name, callback, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AddHintCallback( + public static byte AddHintCallback( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, void* userdata ) => DllImport.AddHintCallback(name, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AddHintCallback( + MaybeBool ISdl.AddHintCallback( [NativeTypeName("const char *")] Ref name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, Ref userdata @@ -40061,32 +48856,70 @@ Ref userdata fixed (void* __dsl_userdata = userdata) fixed (sbyte* __dsl_name = name) { - return (int)((ISdl)this).AddHintCallback(__dsl_name, callback, __dsl_userdata); + return (MaybeBool) + (byte)((ISdl)this).AddHintCallback(__dsl_name, callback, __dsl_userdata); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AddHintCallback( + public static MaybeBool AddHintCallback( [NativeTypeName("const char *")] Ref name, [NativeTypeName("SDL_HintCallback")] HintCallback callback, Ref userdata ) => DllImport.AddHintCallback(name, callback, userdata); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.AddSurfaceAlternateImage(Surface* surface, Surface* image) => + ( + (delegate* unmanaged)( + _slots[7] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[7] = nativeContext.LoadFunction("SDL_AddSurfaceAlternateImage", "SDL3") + ) + )(surface, image); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddSurfaceAlternateImage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte AddSurfaceAlternateImage(Surface* surface, Surface* image) => + DllImport.AddSurfaceAlternateImage(surface, image); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.AddSurfaceAlternateImage(Ref surface, Ref image) + { + fixed (Surface* __dsl_image = image) + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool) + (byte)((ISdl)this).AddSurfaceAlternateImage(__dsl_surface, __dsl_image); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddSurfaceAlternateImage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool AddSurfaceAlternateImage( + Ref surface, + Ref image + ) => DllImport.AddSurfaceAlternateImage(surface, image); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.AddTimer( [NativeTypeName("Uint32")] uint interval, [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - void* param2 + void* userdata ) => ( (delegate* unmanaged)( - _slots[6] is not null and var loadedFnPtr + _slots[8] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[6] = nativeContext.LoadFunction("SDL_AddTimer", "SDL3") + : _slots[8] = nativeContext.LoadFunction("SDL_AddTimer", "SDL3") ) - )(interval, callback, param2); + )(interval, callback, userdata); [return: NativeTypeName("SDL_TimerID")] [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] @@ -40094,19 +48927,19 @@ _slots[6] is not null and var loadedFnPtr public static uint AddTimer( [NativeTypeName("Uint32")] uint interval, [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - void* param2 - ) => DllImport.AddTimer(interval, callback, param2); + void* userdata + ) => DllImport.AddTimer(interval, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.AddTimer( [NativeTypeName("Uint32")] uint interval, [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - Ref param2 + Ref userdata ) { - fixed (void* __dsl_param2 = param2) + fixed (void* __dsl_userdata = userdata) { - return (uint)((ISdl)this).AddTimer(interval, callback, __dsl_param2); + return (uint)((ISdl)this).AddTimer(interval, callback, __dsl_userdata); } } @@ -40117,30 +48950,76 @@ Ref param2 public static uint AddTimer( [NativeTypeName("Uint32")] uint interval, [NativeTypeName("SDL_TimerCallback")] TimerCallback callback, - Ref param2 - ) => DllImport.AddTimer(interval, callback, param2); + Ref userdata + ) => DllImport.AddTimer(interval, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + void* userdata + ) => + ( + (delegate* unmanaged)( + _slots[9] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[9] = nativeContext.LoadFunction("SDL_AddTimerNS", "SDL3") + ) + )(interval, callback, userdata); + + [return: NativeTypeName("SDL_TimerID")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimerNS")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + void* userdata + ) => DllImport.AddTimerNS(interval, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (uint)((ISdl)this).AddTimerNS(interval, callback, __dsl_userdata); + } + } + + [return: NativeTypeName("SDL_TimerID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimerNS")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint AddTimerNS( + [NativeTypeName("Uint64")] ulong interval, + [NativeTypeName("SDL_NSTimerCallback")] NSTimerCallback callback, + Ref userdata + ) => DllImport.AddTimerNS(interval, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AddVulkanRenderSemaphores( + MaybeBool ISdl.AddVulkanRenderSemaphores( RendererHandle renderer, [NativeTypeName("Uint32")] uint wait_stage_mask, [NativeTypeName("Sint64")] long wait_semaphore, [NativeTypeName("Sint64")] long signal_semaphore ) => - ( - (delegate* unmanaged)( - _slots[7] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[7] = nativeContext.LoadFunction( - "SDL_AddVulkanRenderSemaphores", - "SDL3" - ) - ) - )(renderer, wait_stage_mask, wait_semaphore, signal_semaphore); + (MaybeBool) + (byte) + ((ISdl)this).AddVulkanRenderSemaphoresRaw( + renderer, + wait_stage_mask, + wait_semaphore, + signal_semaphore + ); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AddVulkanRenderSemaphores( + public static MaybeBool AddVulkanRenderSemaphores( RendererHandle renderer, [NativeTypeName("Uint32")] uint wait_stage_mask, [NativeTypeName("Sint64")] long wait_semaphore, @@ -40154,421 +49033,474 @@ public static int AddVulkanRenderSemaphores( ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.AllocateEventMemory([NativeTypeName("size_t")] nuint size) => - (void*)((ISdl)this).AllocateEventMemoryRaw(size); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AllocateEventMemory")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr AllocateEventMemory([NativeTypeName("size_t")] nuint size) => - DllImport.AllocateEventMemory(size); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void* ISdl.AllocateEventMemoryRaw([NativeTypeName("size_t")] nuint size) => - ( - (delegate* unmanaged)( - _slots[8] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[8] = nativeContext.LoadFunction("SDL_AllocateEventMemory", "SDL3") - ) - )(size); - - [NativeFunction("SDL3", EntryPoint = "SDL_AllocateEventMemory")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void* AllocateEventMemoryRaw([NativeTypeName("size_t")] nuint size) => - DllImport.AllocateEventMemoryRaw(size); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AtomicAdd(AtomicInt* a, int v) => + byte ISdl.AddVulkanRenderSemaphoresRaw( + RendererHandle renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) => ( - (delegate* unmanaged)( - _slots[9] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[10] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[9] = nativeContext.LoadFunction("SDL_AtomicAdd", "SDL3") + : _slots[10] = nativeContext.LoadFunction( + "SDL_AddVulkanRenderSemaphores", + "SDL3" + ) ) - )(a, v); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AtomicAdd(AtomicInt* a, int v) => DllImport.AtomicAdd(a, v); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AtomicAdd(Ref a, int v) - { - fixed (AtomicInt* __dsl_a = a) - { - return (int)((ISdl)this).AtomicAdd(__dsl_a, v); - } - } + )(renderer, wait_stage_mask, wait_semaphore, signal_semaphore); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AtomicAdd(Ref a, int v) => DllImport.AtomicAdd(a, v); + public static byte AddVulkanRenderSemaphoresRaw( + RendererHandle renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) => + DllImport.AddVulkanRenderSemaphoresRaw( + renderer, + wait_stage_mask, + wait_semaphore, + signal_semaphore + ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AtomicCompareAndSwap(AtomicInt* a, int oldval, int newval) => + uint ISdl.AttachVirtualJoystick( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc + ) => ( - (delegate* unmanaged)( - _slots[10] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[11] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[10] = nativeContext.LoadFunction("SDL_AtomicCompareAndSwap", "SDL3") + : _slots[11] = nativeContext.LoadFunction("SDL_AttachVirtualJoystick", "SDL3") ) - )(a, oldval, newval); + )(desc); - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwap")] + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystick")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AtomicCompareAndSwap(AtomicInt* a, int oldval, int newval) => - DllImport.AtomicCompareAndSwap(a, oldval, newval); + public static uint AttachVirtualJoystick( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc + ) => DllImport.AttachVirtualJoystick(desc); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.AtomicCompareAndSwap(Ref a, int oldval, int newval) + uint ISdl.AttachVirtualJoystick( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc + ) { - fixed (AtomicInt* __dsl_a = a) + fixed (VirtualJoystickDesc* __dsl_desc = desc) { - return (MaybeBool)(int)((ISdl)this).AtomicCompareAndSwap(__dsl_a, oldval, newval); + return (uint)((ISdl)this).AttachVirtualJoystick(__dsl_desc); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("SDL_JoystickID")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwap")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool AtomicCompareAndSwap(Ref a, int oldval, int newval) => - DllImport.AtomicCompareAndSwap(a, oldval, newval); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AtomicCompareAndSwapPointer(void** a, void* oldval, void* newval) => - ( - (delegate* unmanaged)( - _slots[11] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[11] = nativeContext.LoadFunction( - "SDL_AtomicCompareAndSwapPointer", - "SDL3" - ) - ) - )(a, oldval, newval); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwapPointer")] + [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystick")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AtomicCompareAndSwapPointer(void** a, void* oldval, void* newval) => - DllImport.AtomicCompareAndSwapPointer(a, oldval, newval); + public static uint AttachVirtualJoystick( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc + ) => DllImport.AttachVirtualJoystick(desc); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.AtomicCompareAndSwapPointer(Ref2D a, Ref oldval, Ref newval) - { - fixed (void* __dsl_newval = newval) - fixed (void* __dsl_oldval = oldval) - fixed (void** __dsl_a = a) - { - return (MaybeBool) - (int)((ISdl)this).AtomicCompareAndSwapPointer(__dsl_a, __dsl_oldval, __dsl_newval); - } - } + MaybeBool ISdl.AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + (MaybeBool)(byte)((ISdl)this).AudioDevicePausedRaw(dev); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicCompareAndSwapPointer")] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool AtomicCompareAndSwapPointer(Ref2D a, Ref oldval, Ref newval) => - DllImport.AtomicCompareAndSwapPointer(a, oldval, newval); + public static MaybeBool AudioDevicePaused( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ) => DllImport.AudioDevicePaused(dev); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AtomicGet(AtomicInt* a) => + byte ISdl.AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => ( - (delegate* unmanaged)( + (delegate* unmanaged)( _slots[12] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[12] = nativeContext.LoadFunction("SDL_AtomicGet", "SDL3") + : _slots[12] = nativeContext.LoadFunction("SDL_AudioDevicePaused", "SDL3") ) - )(a); + )(dev); - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AtomicGet(AtomicInt* a) => DllImport.AtomicGet(a); + public static byte AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + DllImport.AudioDevicePausedRaw(dev); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AtomicGet(Ref a) - { - fixed (AtomicInt* __dsl_a = a) - { - return (int)((ISdl)this).AtomicGet(__dsl_a); - } - } + MaybeBool ISdl.BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioStreamHandle stream + ) => (MaybeBool)(byte)((ISdl)this).BindAudioStreamRaw(devid, stream); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AtomicGet(Ref a) => DllImport.AtomicGet(a); + public static MaybeBool BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioStreamHandle stream + ) => DllImport.BindAudioStream(devid, stream); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void* ISdl.AtomicGetPtr(void** a) => + byte ISdl.BindAudioStreamRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioStreamHandle stream + ) => ( - (delegate* unmanaged)( + (delegate* unmanaged)( _slots[13] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[13] = nativeContext.LoadFunction("SDL_AtomicGetPtr", "SDL3") + : _slots[13] = nativeContext.LoadFunction("SDL_BindAudioStream", "SDL3") ) - )(a); - - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void* AtomicGetPtr(void** a) => DllImport.AtomicGetPtr(a); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.AtomicGetPtr(Ref2D a) - { - fixed (void** __dsl_a = a) - { - return (void*)((ISdl)this).AtomicGetPtr(__dsl_a); - } - } + )(devid, stream); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr AtomicGetPtr(Ref2D a) => DllImport.AtomicGetPtr(a); + public static byte BindAudioStreamRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioStreamHandle stream + ) => DllImport.BindAudioStreamRaw(devid, stream); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AtomicSet(AtomicInt* a, int v) => + byte ISdl.BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioStreamHandle* streams, + int num_streams + ) => ( - (delegate* unmanaged)( + (delegate* unmanaged)( _slots[14] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[14] = nativeContext.LoadFunction("SDL_AtomicSet", "SDL3") + : _slots[14] = nativeContext.LoadFunction("SDL_BindAudioStreams", "SDL3") ) - )(a, v); + )(devid, streams, num_streams); - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AtomicSet(AtomicInt* a, int v) => DllImport.AtomicSet(a, v); + public static byte BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioStreamHandle* streams, + int num_streams + ) => DllImport.BindAudioStreams(devid, streams, num_streams); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AtomicSet(Ref a, int v) + MaybeBool ISdl.BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref streams, + int num_streams + ) { - fixed (AtomicInt* __dsl_a = a) + fixed (AudioStreamHandle* __dsl_streams = streams) { - return (int)((ISdl)this).AtomicSet(__dsl_a, v); + return (MaybeBool) + (byte)((ISdl)this).BindAudioStreams(devid, __dsl_streams, num_streams); } } + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AtomicSet(Ref a, int v) => DllImport.AtomicSet(a, v); + public static MaybeBool BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref streams, + int num_streams + ) => DllImport.BindAudioStreams(devid, streams, num_streams); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void* ISdl.AtomicSetPtr(void** a, void* v) => + byte ISdl.BlitSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => ( - (delegate* unmanaged)( + (delegate* unmanaged)( _slots[15] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[15] = nativeContext.LoadFunction("SDL_AtomicSetPtr", "SDL3") + : _slots[15] = nativeContext.LoadFunction("SDL_BlitSurface", "SDL3") ) - )(a, v); + )(src, srcrect, dst, dstrect); - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void* AtomicSetPtr(void** a, void* v) => DllImport.AtomicSetPtr(a, v); + public static byte BlitSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => DllImport.BlitSurface(src, srcrect, dst, dstrect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.AtomicSetPtr(Ref2D a, Ref v) + MaybeBool ISdl.BlitSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) { - fixed (void* __dsl_v = v) - fixed (void** __dsl_a = a) + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) { - return (void*)((ISdl)this).AtomicSetPtr(__dsl_a, __dsl_v); + return (MaybeBool) + (byte)((ISdl)this).BlitSurface(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); } } + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr AtomicSetPtr(Ref2D a, Ref v) => DllImport.AtomicSetPtr(a, v); + public static MaybeBool BlitSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) => DllImport.BlitSurface(src, srcrect, dst, dstrect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.AttachVirtualJoystick(JoystickType type, int naxes, int nbuttons, int nhats) => + byte ISdl.BlitSurface9Grid( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => ( - (delegate* unmanaged)( + (delegate* unmanaged< + Surface*, + Rect*, + int, + int, + int, + int, + float, + ScaleMode, + Surface*, + Rect*, + byte>)( _slots[16] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[16] = nativeContext.LoadFunction("SDL_AttachVirtualJoystick", "SDL3") + : _slots[16] = nativeContext.LoadFunction("SDL_BlitSurface9Grid", "SDL3") ) - )(type, naxes, nbuttons, nhats); - - [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystick")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint AttachVirtualJoystick( - JoystickType type, - int naxes, - int nbuttons, - int nhats - ) => DllImport.AttachVirtualJoystick(type, naxes, nbuttons, nhats); + )( + src, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + scaleMode, + dst, + dstrect + ); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface9Grid")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.AttachVirtualJoystickEx( - [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc + public static byte BlitSurface9Grid( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect ) => - ( - (delegate* unmanaged)( - _slots[17] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[17] = nativeContext.LoadFunction("SDL_AttachVirtualJoystickEx", "SDL3") - ) - )(desc); - - [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint AttachVirtualJoystickEx( - [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc - ) => DllImport.AttachVirtualJoystickEx(desc); + DllImport.BlitSurface9Grid( + src, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + scaleMode, + dst, + dstrect + ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.AttachVirtualJoystickEx( - [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc + MaybeBool ISdl.BlitSurface9Grid( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect ) { - fixed (VirtualJoystickDesc* __dsl_desc = desc) + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) { - return (uint)((ISdl)this).AttachVirtualJoystickEx(__dsl_desc); + return (MaybeBool) + (byte) + ((ISdl)this).BlitSurface9Grid( + __dsl_src, + __dsl_srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + scaleMode, + __dsl_dst, + __dsl_dstrect + ); } } - [return: NativeTypeName("SDL_JoystickID")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint AttachVirtualJoystickEx( - [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc - ) => DllImport.AttachVirtualJoystickEx(desc); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - (MaybeBool)(int)((ISdl)this).AudioDevicePausedRaw(dev); - - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool AudioDevicePaused( - [NativeTypeName("SDL_AudioDeviceID")] uint dev - ) => DllImport.AudioDevicePaused(dev); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - ( - (delegate* unmanaged)( - _slots[18] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[18] = nativeContext.LoadFunction("SDL_AudioDevicePaused", "SDL3") - ) - )(dev); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface9Grid")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - DllImport.AudioDevicePausedRaw(dev); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.BindAudioStream( - [NativeTypeName("SDL_AudioDeviceID")] uint devid, - AudioStreamHandle stream + public static MaybeBool BlitSurface9Grid( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + int left_width, + int right_width, + int top_height, + int bottom_height, + float scale, + ScaleMode scaleMode, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect ) => - ( - (delegate* unmanaged)( - _slots[19] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[19] = nativeContext.LoadFunction("SDL_BindAudioStream", "SDL3") - ) - )(devid, stream); - - [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int BindAudioStream( - [NativeTypeName("SDL_AudioDeviceID")] uint devid, - AudioStreamHandle stream - ) => DllImport.BindAudioStream(devid, stream); + DllImport.BlitSurface9Grid( + src, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + scaleMode, + dst, + dstrect + ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.BindAudioStreams( - [NativeTypeName("SDL_AudioDeviceID")] uint devid, - AudioStreamHandle* streams, - int num_streams + byte ISdl.BlitSurfaceScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode ) => ( - (delegate* unmanaged)( - _slots[20] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[17] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[20] = nativeContext.LoadFunction("SDL_BindAudioStreams", "SDL3") + : _slots[17] = nativeContext.LoadFunction("SDL_BlitSurfaceScaled", "SDL3") ) - )(devid, streams, num_streams); + )(src, srcrect, dst, dstrect, scaleMode); - [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int BindAudioStreams( - [NativeTypeName("SDL_AudioDeviceID")] uint devid, - AudioStreamHandle* streams, - int num_streams - ) => DllImport.BindAudioStreams(devid, streams, num_streams); + public static byte BlitSurfaceScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ) => DllImport.BlitSurfaceScaled(src, srcrect, dst, dstrect, scaleMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.BindAudioStreams( - [NativeTypeName("SDL_AudioDeviceID")] uint devid, - Ref streams, - int num_streams + MaybeBool ISdl.BlitSurfaceScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode ) { - fixed (AudioStreamHandle* __dsl_streams = streams) + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) { - return (int)((ISdl)this).BindAudioStreams(devid, __dsl_streams, num_streams); + return (MaybeBool) + (byte) + ((ISdl)this).BlitSurfaceScaled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); } } + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int BindAudioStreams( - [NativeTypeName("SDL_AudioDeviceID")] uint devid, - Ref streams, - int num_streams - ) => DllImport.BindAudioStreams(devid, streams, num_streams); + public static MaybeBool BlitSurfaceScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode + ) => DllImport.BlitSurfaceScaled(src, srcrect, dst, dstrect, scaleMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.BlitSurface( + byte ISdl.BlitSurfaceTiled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, - Rect* dstrect + [NativeTypeName("const SDL_Rect *")] Rect* dstrect ) => ( - (delegate* unmanaged)( - _slots[21] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[18] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[21] = nativeContext.LoadFunction("SDL_BlitSurface", "SDL3") + : _slots[18] = nativeContext.LoadFunction("SDL_BlitSurfaceTiled", "SDL3") ) )(src, srcrect, dst, dstrect); - [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int BlitSurface( + public static byte BlitSurfaceTiled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, - Rect* dstrect - ) => DllImport.BlitSurface(src, srcrect, dst, dstrect); + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => DllImport.BlitSurfaceTiled(src, srcrect, dst, dstrect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.BlitSurface( + MaybeBool ISdl.BlitSurfaceTiled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, - Ref dstrect + [NativeTypeName("const SDL_Rect *")] Ref dstrect ) { fixed (Rect* __dsl_dstrect = dstrect) @@ -40576,54 +49508,68 @@ Ref dstrect fixed (Rect* __dsl_srcrect = srcrect) fixed (Surface* __dsl_src = src) { - return (int) - ((ISdl)this).BlitSurface(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); + return (MaybeBool) + (byte) + ((ISdl)this).BlitSurfaceTiled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect + ); } } + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int BlitSurface( + public static MaybeBool BlitSurfaceTiled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, - Ref dstrect - ) => DllImport.BlitSurface(src, srcrect, dst, dstrect); + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) => DllImport.BlitSurfaceTiled(src, srcrect, dst, dstrect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.BlitSurfaceScaled( + byte ISdl.BlitSurfaceTiledWithScale( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + float scale, + ScaleMode scaleMode, Surface* dst, - Rect* dstrect, - ScaleMode scaleMode + [NativeTypeName("const SDL_Rect *")] Rect* dstrect ) => ( - (delegate* unmanaged)( - _slots[22] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[19] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[22] = nativeContext.LoadFunction("SDL_BlitSurfaceScaled", "SDL3") + : _slots[19] = nativeContext.LoadFunction( + "SDL_BlitSurfaceTiledWithScale", + "SDL3" + ) ) - )(src, srcrect, dst, dstrect, scaleMode); + )(src, srcrect, scale, scaleMode, dst, dstrect); - [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiledWithScale")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int BlitSurfaceScaled( + public static byte BlitSurfaceTiledWithScale( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + float scale, + ScaleMode scaleMode, Surface* dst, - Rect* dstrect, - ScaleMode scaleMode - ) => DllImport.BlitSurfaceScaled(src, srcrect, dst, dstrect, scaleMode); + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => DllImport.BlitSurfaceTiledWithScale(src, srcrect, scale, scaleMode, dst, dstrect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.BlitSurfaceScaled( + MaybeBool ISdl.BlitSurfaceTiledWithScale( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, + float scale, + ScaleMode scaleMode, Ref dst, - Ref dstrect, - ScaleMode scaleMode + [NativeTypeName("const SDL_Rect *")] Ref dstrect ) { fixed (Rect* __dsl_dstrect = dstrect) @@ -40631,46 +49577,51 @@ ScaleMode scaleMode fixed (Rect* __dsl_srcrect = srcrect) fixed (Surface* __dsl_src = src) { - return (int) - ((ISdl)this).BlitSurfaceScaled( - __dsl_src, - __dsl_srcrect, - __dsl_dst, - __dsl_dstrect, - scaleMode - ); + return (MaybeBool) + (byte) + ((ISdl)this).BlitSurfaceTiledWithScale( + __dsl_src, + __dsl_srcrect, + scale, + scaleMode, + __dsl_dst, + __dsl_dstrect + ); } } + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceTiledWithScale")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int BlitSurfaceScaled( + public static MaybeBool BlitSurfaceTiledWithScale( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, + float scale, + ScaleMode scaleMode, Ref dst, - Ref dstrect, - ScaleMode scaleMode - ) => DllImport.BlitSurfaceScaled(src, srcrect, dst, dstrect, scaleMode); + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) => DllImport.BlitSurfaceTiledWithScale(src, srcrect, scale, scaleMode, dst, dstrect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.BlitSurfaceUnchecked( + byte ISdl.BlitSurfaceUnchecked( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* dstrect ) => ( - (delegate* unmanaged)( - _slots[23] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[20] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[23] = nativeContext.LoadFunction("SDL_BlitSurfaceUnchecked", "SDL3") + : _slots[20] = nativeContext.LoadFunction("SDL_BlitSurfaceUnchecked", "SDL3") ) )(src, srcrect, dst, dstrect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int BlitSurfaceUnchecked( + public static byte BlitSurfaceUnchecked( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, @@ -40678,7 +49629,7 @@ public static int BlitSurfaceUnchecked( ) => DllImport.BlitSurfaceUnchecked(src, srcrect, dst, dstrect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.BlitSurfaceUnchecked( + MaybeBool ISdl.BlitSurfaceUnchecked( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, @@ -40690,20 +49641,22 @@ int ISdl.BlitSurfaceUnchecked( fixed (Rect* __dsl_srcrect = srcrect) fixed (Surface* __dsl_src = src) { - return (int) - ((ISdl)this).BlitSurfaceUnchecked( - __dsl_src, - __dsl_srcrect, - __dsl_dst, - __dsl_dstrect - ); + return (MaybeBool) + (byte) + ((ISdl)this).BlitSurfaceUnchecked( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int BlitSurfaceUnchecked( + public static MaybeBool BlitSurfaceUnchecked( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, @@ -40711,7 +49664,7 @@ public static int BlitSurfaceUnchecked( ) => DllImport.BlitSurfaceUnchecked(src, srcrect, dst, dstrect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.BlitSurfaceUncheckedScaled( + byte ISdl.BlitSurfaceUncheckedScaled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, @@ -40719,19 +49672,20 @@ int ISdl.BlitSurfaceUncheckedScaled( ScaleMode scaleMode ) => ( - (delegate* unmanaged)( - _slots[24] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[21] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[24] = nativeContext.LoadFunction( + : _slots[21] = nativeContext.LoadFunction( "SDL_BlitSurfaceUncheckedScaled", "SDL3" ) ) )(src, srcrect, dst, dstrect, scaleMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int BlitSurfaceUncheckedScaled( + public static byte BlitSurfaceUncheckedScaled( Surface* src, [NativeTypeName("const SDL_Rect *")] Rect* srcrect, Surface* dst, @@ -40740,7 +49694,7 @@ ScaleMode scaleMode ) => DllImport.BlitSurfaceUncheckedScaled(src, srcrect, dst, dstrect, scaleMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.BlitSurfaceUncheckedScaled( + MaybeBool ISdl.BlitSurfaceUncheckedScaled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, @@ -40753,21 +49707,23 @@ ScaleMode scaleMode fixed (Rect* __dsl_srcrect = srcrect) fixed (Surface* __dsl_src = src) { - return (int) - ((ISdl)this).BlitSurfaceUncheckedScaled( - __dsl_src, - __dsl_srcrect, - __dsl_dst, - __dsl_dstrect, - scaleMode - ); + return (MaybeBool) + (byte) + ((ISdl)this).BlitSurfaceUncheckedScaled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int BlitSurfaceUncheckedScaled( + public static MaybeBool BlitSurfaceUncheckedScaled( Ref src, [NativeTypeName("const SDL_Rect *")] Ref srcrect, Ref dst, @@ -40776,52 +49732,54 @@ ScaleMode scaleMode ) => DllImport.BlitSurfaceUncheckedScaled(src, srcrect, dst, dstrect, scaleMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.BroadcastCondition(ConditionHandle cond) => + void ISdl.BroadcastCondition(ConditionHandle cond) => ( - (delegate* unmanaged)( - _slots[25] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[22] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[25] = nativeContext.LoadFunction("SDL_BroadcastCondition", "SDL3") + : _slots[22] = nativeContext.LoadFunction("SDL_BroadcastCondition", "SDL3") ) )(cond); [NativeFunction("SDL3", EntryPoint = "SDL_BroadcastCondition")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int BroadcastCondition(ConditionHandle cond) => + public static void BroadcastCondition(ConditionHandle cond) => DllImport.BroadcastCondition(cond); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.CaptureMouse([NativeTypeName("SDL_bool")] int enabled) => + byte ISdl.CaptureMouse([NativeTypeName("bool")] byte enabled) => ( - (delegate* unmanaged)( - _slots[26] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[23] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[26] = nativeContext.LoadFunction("SDL_CaptureMouse", "SDL3") + : _slots[23] = nativeContext.LoadFunction("SDL_CaptureMouse", "SDL3") ) )(enabled); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int CaptureMouse([NativeTypeName("SDL_bool")] int enabled) => + public static byte CaptureMouse([NativeTypeName("bool")] byte enabled) => DllImport.CaptureMouse(enabled); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled) => - (int)((ISdl)this).CaptureMouse((int)enabled); + MaybeBool ISdl.CaptureMouse([NativeTypeName("bool")] MaybeBool enabled) => + (MaybeBool)(byte)((ISdl)this).CaptureMouse((byte)enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled) => + public static MaybeBool CaptureMouse([NativeTypeName("bool")] MaybeBool enabled) => DllImport.CaptureMouse(enabled); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.CleanupTLS() => ( (delegate* unmanaged)( - _slots[27] is not null and var loadedFnPtr + _slots[24] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[27] = nativeContext.LoadFunction("SDL_CleanupTLS", "SDL3") + : _slots[24] = nativeContext.LoadFunction("SDL_CleanupTLS", "SDL3") ) )(); @@ -40830,109 +49788,194 @@ _slots[27] is not null and var loadedFnPtr public static void CleanupTLS() => DllImport.CleanupTLS(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ClearAudioStream(AudioStreamHandle stream) => + MaybeBool ISdl.ClearAudioStream(AudioStreamHandle stream) => + (MaybeBool)(byte)((ISdl)this).ClearAudioStreamRaw(stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ClearAudioStream(AudioStreamHandle stream) => + DllImport.ClearAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.ClearAudioStreamRaw(AudioStreamHandle stream) => ( - (delegate* unmanaged)( - _slots[28] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[25] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[28] = nativeContext.LoadFunction("SDL_ClearAudioStream", "SDL3") + : _slots[25] = nativeContext.LoadFunction("SDL_ClearAudioStream", "SDL3") ) )(stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ClearAudioStream(AudioStreamHandle stream) => - DllImport.ClearAudioStream(stream); + public static byte ClearAudioStreamRaw(AudioStreamHandle stream) => + DllImport.ClearAudioStreamRaw(stream); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ClearClipboardData() => + MaybeBool ISdl.ClearClipboardData() => + (MaybeBool)(byte)((ISdl)this).ClearClipboardDataRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearClipboardData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ClearClipboardData() => DllImport.ClearClipboardData(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.ClearClipboardDataRaw() => ( - (delegate* unmanaged)( - _slots[29] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[26] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[29] = nativeContext.LoadFunction("SDL_ClearClipboardData", "SDL3") + : _slots[26] = nativeContext.LoadFunction("SDL_ClearClipboardData", "SDL3") ) )(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearClipboardData")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ClearClipboardData() => DllImport.ClearClipboardData(); + public static byte ClearClipboardDataRaw() => DllImport.ClearClipboardDataRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.ClearComposition() => + MaybeBool ISdl.ClearComposition(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).ClearCompositionRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearComposition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ClearComposition(WindowHandle window) => + DllImport.ClearComposition(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.ClearCompositionRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[30] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[27] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[30] = nativeContext.LoadFunction("SDL_ClearComposition", "SDL3") + : _slots[27] = nativeContext.LoadFunction("SDL_ClearComposition", "SDL3") ) - )(); + )(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearComposition")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void ClearComposition() => DllImport.ClearComposition(); + public static byte ClearCompositionRaw(WindowHandle window) => + DllImport.ClearCompositionRaw(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ClearError() => (MaybeBool)(byte)((ISdl)this).ClearErrorRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearError")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ClearError() => DllImport.ClearError(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.ClearError() => + byte ISdl.ClearErrorRaw() => ( - (delegate* unmanaged)( - _slots[31] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[28] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[31] = nativeContext.LoadFunction("SDL_ClearError", "SDL3") + : _slots[28] = nativeContext.LoadFunction("SDL_ClearError", "SDL3") ) )(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearError")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void ClearError() => DllImport.ClearError(); + public static byte ClearErrorRaw() => DllImport.ClearErrorRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ClearProperty( + byte ISdl.ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ) => ( - (delegate* unmanaged)( - _slots[32] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[29] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[32] = nativeContext.LoadFunction("SDL_ClearProperty", "SDL3") + : _slots[29] = nativeContext.LoadFunction("SDL_ClearProperty", "SDL3") ) )(props, name); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ClearProperty( + public static byte ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ) => DllImport.ClearProperty(props, name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ClearProperty( + MaybeBool ISdl.ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ) { fixed (sbyte* __dsl_name = name) { - return (int)((ISdl)this).ClearProperty(props, __dsl_name); + return (MaybeBool)(byte)((ISdl)this).ClearProperty(props, __dsl_name); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ClearProperty( + public static MaybeBool ClearProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ) => DllImport.ClearProperty(props, name); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.ClearSurface(Surface* surface, float r, float g, float b, float a) => + ( + (delegate* unmanaged)( + _slots[30] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[30] = nativeContext.LoadFunction("SDL_ClearSurface", "SDL3") + ) + )(surface, r, g, b, a); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte ClearSurface(Surface* surface, float r, float g, float b, float a) => + DllImport.ClearSurface(surface, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ClearSurface(Ref surface, float r, float g, float b, float a) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)((ISdl)this).ClearSurface(__dsl_surface, r, g, b, a); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ClearSurface( + Ref surface, + float r, + float g, + float b, + float a + ) => DllImport.ClearSurface(surface, r, g, b, a); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid) => ( (delegate* unmanaged)( - _slots[33] is not null and var loadedFnPtr + _slots[31] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[33] = nativeContext.LoadFunction("SDL_CloseAudioDevice", "SDL3") + : _slots[31] = nativeContext.LoadFunction("SDL_CloseAudioDevice", "SDL3") ) )(devid); @@ -40945,9 +49988,9 @@ public static void CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint d void ISdl.CloseCamera(CameraHandle camera) => ( (delegate* unmanaged)( - _slots[34] is not null and var loadedFnPtr + _slots[32] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[34] = nativeContext.LoadFunction("SDL_CloseCamera", "SDL3") + : _slots[32] = nativeContext.LoadFunction("SDL_CloseCamera", "SDL3") ) )(camera); @@ -40959,9 +50002,9 @@ _slots[34] is not null and var loadedFnPtr void ISdl.CloseGamepad(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[35] is not null and var loadedFnPtr + _slots[33] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[35] = nativeContext.LoadFunction("SDL_CloseGamepad", "SDL3") + : _slots[33] = nativeContext.LoadFunction("SDL_CloseGamepad", "SDL3") ) )(gamepad); @@ -40973,9 +50016,9 @@ _slots[35] is not null and var loadedFnPtr void ISdl.CloseHaptic(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[36] is not null and var loadedFnPtr + _slots[34] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[36] = nativeContext.LoadFunction("SDL_CloseHaptic", "SDL3") + : _slots[34] = nativeContext.LoadFunction("SDL_CloseHaptic", "SDL3") ) )(haptic); @@ -40984,26 +50027,37 @@ _slots[36] is not null and var loadedFnPtr public static void CloseHaptic(HapticHandle haptic) => DllImport.CloseHaptic(haptic); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.CloseIO(IOStreamHandle context) => + MaybeBool ISdl.CloseIO(IOStreamHandle context) => + (MaybeBool)(byte)((ISdl)this).CloseIORaw(context); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool CloseIO(IOStreamHandle context) => DllImport.CloseIO(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.CloseIORaw(IOStreamHandle context) => ( - (delegate* unmanaged)( - _slots[37] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[35] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[37] = nativeContext.LoadFunction("SDL_CloseIO", "SDL3") + : _slots[35] = nativeContext.LoadFunction("SDL_CloseIO", "SDL3") ) )(context); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int CloseIO(IOStreamHandle context) => DllImport.CloseIO(context); + public static byte CloseIORaw(IOStreamHandle context) => DllImport.CloseIORaw(context); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.CloseJoystick(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[38] is not null and var loadedFnPtr + _slots[36] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[38] = nativeContext.LoadFunction("SDL_CloseJoystick", "SDL3") + : _slots[36] = nativeContext.LoadFunction("SDL_CloseJoystick", "SDL3") ) )(joystick); @@ -41015,9 +50069,9 @@ _slots[38] is not null and var loadedFnPtr void ISdl.CloseSensor(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[39] is not null and var loadedFnPtr + _slots[37] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[39] = nativeContext.LoadFunction("SDL_CloseSensor", "SDL3") + : _slots[37] = nativeContext.LoadFunction("SDL_CloseSensor", "SDL3") ) )(sensor); @@ -41026,21 +50080,154 @@ _slots[39] is not null and var loadedFnPtr public static void CloseSensor(SensorHandle sensor) => DllImport.CloseSensor(sensor); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.CloseStorage(StorageHandle storage) => + MaybeBool ISdl.CloseStorage(StorageHandle storage) => + (MaybeBool)(byte)((ISdl)this).CloseStorageRaw(storage); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool CloseStorage(StorageHandle storage) => + DllImport.CloseStorage(storage); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.CloseStorageRaw(StorageHandle storage) => ( - (delegate* unmanaged)( - _slots[40] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[38] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[40] = nativeContext.LoadFunction("SDL_CloseStorage", "SDL3") + : _slots[38] = nativeContext.LoadFunction("SDL_CloseStorage", "SDL3") ) )(storage); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int CloseStorage(StorageHandle storage) => DllImport.CloseStorage(storage); + public static byte CloseStorageRaw(StorageHandle storage) => DllImport.CloseStorageRaw(storage); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.CompareAndSwapAtomicInt(AtomicInt* a, int oldval, int newval) => + ( + (delegate* unmanaged)( + _slots[39] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[39] = nativeContext.LoadFunction("SDL_CompareAndSwapAtomicInt", "SDL3") + ) + )(a, oldval, newval); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicInt")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte CompareAndSwapAtomicInt(AtomicInt* a, int oldval, int newval) => + DllImport.CompareAndSwapAtomicInt(a, oldval, newval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.CompareAndSwapAtomicInt(Ref a, int oldval, int newval) + { + fixed (AtomicInt* __dsl_a = a) + { + return (MaybeBool) + (byte)((ISdl)this).CompareAndSwapAtomicInt(__dsl_a, oldval, newval); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicInt")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool CompareAndSwapAtomicInt( + Ref a, + int oldval, + int newval + ) => DllImport.CompareAndSwapAtomicInt(a, oldval, newval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.CompareAndSwapAtomicPointer(void** a, void* oldval, void* newval) => + ( + (delegate* unmanaged)( + _slots[40] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[40] = nativeContext.LoadFunction( + "SDL_CompareAndSwapAtomicPointer", + "SDL3" + ) + ) + )(a, oldval, newval); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicPointer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte CompareAndSwapAtomicPointer(void** a, void* oldval, void* newval) => + DllImport.CompareAndSwapAtomicPointer(a, oldval, newval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.CompareAndSwapAtomicPointer(Ref2D a, Ref oldval, Ref newval) + { + fixed (void* __dsl_newval = newval) + fixed (void* __dsl_oldval = oldval) + fixed (void** __dsl_a = a) + { + return (MaybeBool) + (byte)((ISdl)this).CompareAndSwapAtomicPointer(__dsl_a, __dsl_oldval, __dsl_newval); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicPointer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool CompareAndSwapAtomicPointer(Ref2D a, Ref oldval, Ref newval) => + DllImport.CompareAndSwapAtomicPointer(a, oldval, newval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.CompareAndSwapAtomicU32( + AtomicU32* a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ) => + ( + (delegate* unmanaged)( + _slots[41] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[41] = nativeContext.LoadFunction("SDL_CompareAndSwapAtomicU32", "SDL3") + ) + )(a, oldval, newval); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicU32")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte CompareAndSwapAtomicU32( + AtomicU32* a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ) => DllImport.CompareAndSwapAtomicU32(a, oldval, newval); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - BlendMode ISdl.ComposeCustomBlendMode( + MaybeBool ISdl.CompareAndSwapAtomicU32( + Ref a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ) + { + fixed (AtomicU32* __dsl_a = a) + { + return (MaybeBool) + (byte)((ISdl)this).CompareAndSwapAtomicU32(__dsl_a, oldval, newval); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CompareAndSwapAtomicU32")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool CompareAndSwapAtomicU32( + Ref a, + [NativeTypeName("Uint32")] uint oldval, + [NativeTypeName("Uint32")] uint newval + ) => DllImport.CompareAndSwapAtomicU32(a, oldval, newval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.ComposeCustomBlendMode( BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendOperation colorOperation, @@ -41056,10 +50243,10 @@ BlendOperation alphaOperation BlendFactor, BlendFactor, BlendOperation, - BlendMode>)( - _slots[41] is not null and var loadedFnPtr + uint>)( + _slots[42] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[41] = nativeContext.LoadFunction("SDL_ComposeCustomBlendMode", "SDL3") + : _slots[42] = nativeContext.LoadFunction("SDL_ComposeCustomBlendMode", "SDL3") ) )( srcColorFactor, @@ -41070,9 +50257,10 @@ _slots[41] is not null and var loadedFnPtr alphaOperation ); + [return: NativeTypeName("SDL_BlendMode")] [NativeFunction("SDL3", EntryPoint = "SDL_ComposeCustomBlendMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static BlendMode ComposeCustomBlendMode( + public static uint ComposeCustomBlendMode( BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendOperation colorOperation, @@ -41090,7 +50278,7 @@ BlendOperation alphaOperation ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ConvertAudioSamples( + byte ISdl.ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const Uint8 *")] byte* src_data, int src_len, @@ -41099,16 +50287,17 @@ int ISdl.ConvertAudioSamples( int* dst_len ) => ( - (delegate* unmanaged)( - _slots[42] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[43] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[42] = nativeContext.LoadFunction("SDL_ConvertAudioSamples", "SDL3") + : _slots[43] = nativeContext.LoadFunction("SDL_ConvertAudioSamples", "SDL3") ) )(src_spec, src_data, src_len, dst_spec, dst_data, dst_len); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ConvertAudioSamples( + public static byte ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const Uint8 *")] byte* src_data, int src_len, @@ -41118,7 +50307,7 @@ public static int ConvertAudioSamples( ) => DllImport.ConvertAudioSamples(src_spec, src_data, src_len, dst_spec, dst_data, dst_len); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ConvertAudioSamples( + MaybeBool ISdl.ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const Uint8 *")] Ref src_data, int src_len, @@ -41133,22 +50322,24 @@ Ref dst_len fixed (byte* __dsl_src_data = src_data) fixed (AudioSpec* __dsl_src_spec = src_spec) { - return (int) - ((ISdl)this).ConvertAudioSamples( - __dsl_src_spec, - __dsl_src_data, - src_len, - __dsl_dst_spec, - __dsl_dst_data, - __dsl_dst_len - ); + return (MaybeBool) + (byte) + ((ISdl)this).ConvertAudioSamples( + __dsl_src_spec, + __dsl_src_data, + src_len, + __dsl_dst_spec, + __dsl_dst_data, + __dsl_dst_len + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ConvertAudioSamples( + public static MaybeBool ConvertAudioSamples( [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const Uint8 *")] Ref src_data, int src_len, @@ -41158,75 +50349,72 @@ Ref dst_len ) => DllImport.ConvertAudioSamples(src_spec, src_data, src_len, dst_spec, dst_data, dst_len); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event) => + byte ISdl.ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event) => ( - (delegate* unmanaged)( - _slots[43] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[44] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[43] = nativeContext.LoadFunction( + : _slots[44] = nativeContext.LoadFunction( "SDL_ConvertEventToRenderCoordinates", "SDL3" ) ) )(renderer, @event); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event) => + public static byte ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event) => DllImport.ConvertEventToRenderCoordinates(renderer, @event); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ConvertEventToRenderCoordinates(RendererHandle renderer, Ref @event) + MaybeBool ISdl.ConvertEventToRenderCoordinates(RendererHandle renderer, Ref @event) { fixed (Event* __dsl_event = @event) { - return (int)((ISdl)this).ConvertEventToRenderCoordinates(renderer, __dsl_event); + return (MaybeBool) + (byte)((ISdl)this).ConvertEventToRenderCoordinates(renderer, __dsl_event); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ConvertEventToRenderCoordinates(RendererHandle renderer, Ref @event) => - DllImport.ConvertEventToRenderCoordinates(renderer, @event); + public static MaybeBool ConvertEventToRenderCoordinates( + RendererHandle renderer, + Ref @event + ) => DllImport.ConvertEventToRenderCoordinates(renderer, @event); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ConvertPixels( + byte ISdl.ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, int dst_pitch ) => ( - (delegate* unmanaged< - int, - int, - PixelFormatEnum, - void*, - int, - PixelFormatEnum, - void*, - int, - int>)( - _slots[44] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[45] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[44] = nativeContext.LoadFunction("SDL_ConvertPixels", "SDL3") + : _slots[45] = nativeContext.LoadFunction("SDL_ConvertPixels", "SDL3") ) )(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ConvertPixels( + public static byte ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, int dst_pitch ) => @@ -41242,13 +50430,13 @@ int dst_pitch ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ConvertPixels( + MaybeBool ISdl.ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, int dst_pitch ) @@ -41256,30 +50444,32 @@ int dst_pitch fixed (void* __dsl_dst = dst) fixed (void* __dsl_src = src) { - return (int) - ((ISdl)this).ConvertPixels( - width, - height, - src_format, - __dsl_src, - src_pitch, - dst_format, - __dsl_dst, - dst_pitch - ); + return (MaybeBool) + (byte) + ((ISdl)this).ConvertPixels( + width, + height, + src_format, + __dsl_src, + src_pitch, + dst_format, + __dsl_dst, + dst_pitch + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ConvertPixels( + public static MaybeBool ConvertPixels( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, int dst_pitch ) => @@ -41295,15 +50485,15 @@ int dst_pitch ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ConvertPixelsAndColorspace( + byte ISdl.ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, void* dst, @@ -41313,20 +50503,20 @@ int dst_pitch (delegate* unmanaged< int, int, - PixelFormatEnum, + PixelFormat, Colorspace, uint, void*, int, - PixelFormatEnum, + PixelFormat, Colorspace, uint, void*, int, - int>)( - _slots[45] is not null and var loadedFnPtr + byte>)( + _slots[46] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[45] = nativeContext.LoadFunction( + : _slots[46] = nativeContext.LoadFunction( "SDL_ConvertPixelsAndColorspace", "SDL3" ) @@ -41346,17 +50536,18 @@ _slots[45] is not null and var loadedFnPtr dst_pitch ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ConvertPixelsAndColorspace( + public static byte ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, void* dst, @@ -41378,15 +50569,15 @@ int dst_pitch ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ConvertPixelsAndColorspace( + MaybeBool ISdl.ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, Ref dst, @@ -41396,36 +50587,38 @@ int dst_pitch fixed (void* __dsl_dst = dst) fixed (void* __dsl_src = src) { - return (int) - ((ISdl)this).ConvertPixelsAndColorspace( - width, - height, - src_format, - src_colorspace, - src_properties, - __dsl_src, - src_pitch, - dst_format, - dst_colorspace, - dst_properties, - __dsl_dst, - dst_pitch - ); + return (MaybeBool) + (byte) + ((ISdl)this).ConvertPixelsAndColorspace( + width, + height, + src_format, + src_colorspace, + src_properties, + __dsl_src, + src_pitch, + dst_format, + dst_colorspace, + dst_properties, + __dsl_dst, + dst_pitch + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ConvertPixelsAndColorspace( + public static MaybeBool ConvertPixelsAndColorspace( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, Colorspace src_colorspace, [NativeTypeName("SDL_PropertiesID")] uint src_properties, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Colorspace dst_colorspace, [NativeTypeName("SDL_PropertiesID")] uint dst_properties, Ref dst, @@ -41447,119 +50640,81 @@ int dst_pitch ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Surface* ISdl.ConvertSurface( - Surface* surface, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format - ) => + Surface* ISdl.ConvertSurface(Surface* surface, PixelFormat format) => ( - (delegate* unmanaged)( - _slots[46] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[47] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[46] = nativeContext.LoadFunction("SDL_ConvertSurface", "SDL3") + : _slots[47] = nativeContext.LoadFunction("SDL_ConvertSurface", "SDL3") ) )(surface, format); [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Surface* ConvertSurface( - Surface* surface, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format - ) => DllImport.ConvertSurface(surface, format); + public static Surface* ConvertSurface(Surface* surface, PixelFormat format) => + DllImport.ConvertSurface(surface, format); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.ConvertSurface( - Ref surface, - [NativeTypeName("const SDL_PixelFormat *")] Ref format - ) + Ptr ISdl.ConvertSurface(Ref surface, PixelFormat format) { - fixed (PixelFormat* __dsl_format = format) fixed (Surface* __dsl_surface = surface) { - return (Surface*)((ISdl)this).ConvertSurface(__dsl_surface, __dsl_format); + return (Surface*)((ISdl)this).ConvertSurface(__dsl_surface, format); } } [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr ConvertSurface( - Ref surface, - [NativeTypeName("const SDL_PixelFormat *")] Ref format - ) => DllImport.ConvertSurface(surface, format); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Surface* ISdl.ConvertSurfaceFormat(Surface* surface, PixelFormatEnum pixel_format) => - ( - (delegate* unmanaged)( - _slots[47] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[47] = nativeContext.LoadFunction("SDL_ConvertSurfaceFormat", "SDL3") - ) - )(surface, pixel_format); - - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Surface* ConvertSurfaceFormat(Surface* surface, PixelFormatEnum pixel_format) => - DllImport.ConvertSurfaceFormat(surface, pixel_format); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.ConvertSurfaceFormat(Ref surface, PixelFormatEnum pixel_format) - { - fixed (Surface* __dsl_surface = surface) - { - return (Surface*)((ISdl)this).ConvertSurfaceFormat(__dsl_surface, pixel_format); - } - } + public static Ptr ConvertSurface(Ref surface, PixelFormat format) => + DllImport.ConvertSurface(surface, format); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr ConvertSurfaceFormat( - Ref surface, - PixelFormatEnum pixel_format - ) => DllImport.ConvertSurfaceFormat(surface, pixel_format); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Surface* ISdl.ConvertSurfaceFormatAndColorspace( + Surface* ISdl.ConvertSurfaceAndColorspace( Surface* surface, - PixelFormatEnum pixel_format, + PixelFormat format, + Palette* palette, Colorspace colorspace, [NativeTypeName("SDL_PropertiesID")] uint props ) => ( - (delegate* unmanaged)( + (delegate* unmanaged)( _slots[48] is not null and var loadedFnPtr ? loadedFnPtr : _slots[48] = nativeContext.LoadFunction( - "SDL_ConvertSurfaceFormatAndColorspace", + "SDL_ConvertSurfaceAndColorspace", "SDL3" ) ) - )(surface, pixel_format, colorspace, props); + )(surface, format, palette, colorspace, props); - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceAndColorspace")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Surface* ConvertSurfaceFormatAndColorspace( + public static Surface* ConvertSurfaceAndColorspace( Surface* surface, - PixelFormatEnum pixel_format, + PixelFormat format, + Palette* palette, Colorspace colorspace, [NativeTypeName("SDL_PropertiesID")] uint props - ) => DllImport.ConvertSurfaceFormatAndColorspace(surface, pixel_format, colorspace, props); + ) => DllImport.ConvertSurfaceAndColorspace(surface, format, palette, colorspace, props); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.ConvertSurfaceFormatAndColorspace( + Ptr ISdl.ConvertSurfaceAndColorspace( Ref surface, - PixelFormatEnum pixel_format, + PixelFormat format, + Ref palette, Colorspace colorspace, [NativeTypeName("SDL_PropertiesID")] uint props ) { + fixed (Palette* __dsl_palette = palette) fixed (Surface* __dsl_surface = surface) { return (Surface*) - ((ISdl)this).ConvertSurfaceFormatAndColorspace( + ((ISdl)this).ConvertSurfaceAndColorspace( __dsl_surface, - pixel_format, + format, + __dsl_palette, colorspace, props ); @@ -41567,34 +50722,142 @@ Ptr ISdl.ConvertSurfaceFormatAndColorspace( } [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceAndColorspace")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr ConvertSurfaceFormatAndColorspace( + public static Ptr ConvertSurfaceAndColorspace( Ref surface, - PixelFormatEnum pixel_format, + PixelFormat format, + Ref palette, Colorspace colorspace, [NativeTypeName("SDL_PropertiesID")] uint props - ) => DllImport.ConvertSurfaceFormatAndColorspace(surface, pixel_format, colorspace, props); + ) => DllImport.ConvertSurfaceAndColorspace(surface, format, palette, colorspace, props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.CopyFile( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => + ( + (delegate* unmanaged)( + _slots[49] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[49] = nativeContext.LoadFunction("SDL_CopyFile", "SDL3") + ) + )(oldpath, newpath); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte CopyFile( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => DllImport.CopyFile(oldpath, newpath); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.CopyFile( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) + { + fixed (sbyte* __dsl_newpath = newpath) + fixed (sbyte* __dsl_oldpath = oldpath) + { + return (MaybeBool)(byte)((ISdl)this).CopyFile(__dsl_oldpath, __dsl_newpath); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool CopyFile( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) => DllImport.CopyFile(oldpath, newpath); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.CopyProperties( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ) => (MaybeBool)(byte)((ISdl)this).CopyPropertiesRaw(src, dst); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool CopyProperties( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ) => DllImport.CopyProperties(src, dst); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.CopyProperties( + byte ISdl.CopyPropertiesRaw( [NativeTypeName("SDL_PropertiesID")] uint src, [NativeTypeName("SDL_PropertiesID")] uint dst ) => ( - (delegate* unmanaged)( - _slots[49] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[50] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[49] = nativeContext.LoadFunction("SDL_CopyProperties", "SDL3") + : _slots[50] = nativeContext.LoadFunction("SDL_CopyProperties", "SDL3") ) )(src, dst); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CopyProperties")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int CopyProperties( + public static byte CopyPropertiesRaw( [NativeTypeName("SDL_PropertiesID")] uint src, [NativeTypeName("SDL_PropertiesID")] uint dst - ) => DllImport.CopyProperties(src, dst); + ) => DllImport.CopyPropertiesRaw(src, dst); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => + ( + (delegate* unmanaged)( + _slots[51] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[51] = nativeContext.LoadFunction("SDL_CopyStorageFile", "SDL3") + ) + )(storage, oldpath, newpath); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyStorageFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => DllImport.CopyStorageFile(storage, oldpath, newpath); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) + { + fixed (sbyte* __dsl_newpath = newpath) + fixed (sbyte* __dsl_oldpath = oldpath) + { + return (MaybeBool) + (byte)((ISdl)this).CopyStorageFile(storage, __dsl_oldpath, __dsl_newpath); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CopyStorageFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool CopyStorageFile( + StorageHandle storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) => DllImport.CopyStorageFile(storage, oldpath, newpath); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] AudioStreamHandle ISdl.CreateAudioStream( @@ -41603,9 +50866,9 @@ AudioStreamHandle ISdl.CreateAudioStream( ) => ( (delegate* unmanaged)( - _slots[50] is not null and var loadedFnPtr + _slots[52] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[50] = nativeContext.LoadFunction("SDL_CreateAudioStream", "SDL3") + : _slots[52] = nativeContext.LoadFunction("SDL_CreateAudioStream", "SDL3") ) )(src_spec, dst_spec); @@ -41642,9 +50905,9 @@ public static AudioStreamHandle CreateAudioStream( CursorHandle ISdl.CreateColorCursor(Surface* surface, int hot_x, int hot_y) => ( (delegate* unmanaged)( - _slots[51] is not null and var loadedFnPtr + _slots[53] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[51] = nativeContext.LoadFunction("SDL_CreateColorCursor", "SDL3") + : _slots[53] = nativeContext.LoadFunction("SDL_CreateColorCursor", "SDL3") ) )(surface, hot_x, hot_y); @@ -41672,9 +50935,9 @@ public static CursorHandle CreateColorCursor(Ref surface, int hot_x, in ConditionHandle ISdl.CreateCondition() => ( (delegate* unmanaged)( - _slots[52] is not null and var loadedFnPtr + _slots[54] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[52] = nativeContext.LoadFunction("SDL_CreateCondition", "SDL3") + : _slots[54] = nativeContext.LoadFunction("SDL_CreateCondition", "SDL3") ) )(); @@ -41693,9 +50956,9 @@ int hot_y ) => ( (delegate* unmanaged)( - _slots[53] is not null and var loadedFnPtr + _slots[55] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[53] = nativeContext.LoadFunction("SDL_CreateCursor", "SDL3") + : _slots[55] = nativeContext.LoadFunction("SDL_CreateCursor", "SDL3") ) )(data, mask, w, h, hot_x, hot_y); @@ -41741,34 +51004,37 @@ int hot_y ) => DllImport.CreateCursor(data, mask, w, h, hot_x, hot_y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.CreateDirectory([NativeTypeName("const char *")] sbyte* path) => + byte ISdl.CreateDirectory([NativeTypeName("const char *")] sbyte* path) => ( - (delegate* unmanaged)( - _slots[54] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[56] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[54] = nativeContext.LoadFunction("SDL_CreateDirectory", "SDL3") + : _slots[56] = nativeContext.LoadFunction("SDL_CreateDirectory", "SDL3") ) )(path); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int CreateDirectory([NativeTypeName("const char *")] sbyte* path) => + public static byte CreateDirectory([NativeTypeName("const char *")] sbyte* path) => DllImport.CreateDirectory(path); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.CreateDirectory([NativeTypeName("const char *")] Ref path) + MaybeBool ISdl.CreateDirectory([NativeTypeName("const char *")] Ref path) { fixed (sbyte* __dsl_path = path) { - return (int)((ISdl)this).CreateDirectory(__dsl_path); + return (MaybeBool)(byte)((ISdl)this).CreateDirectory(__dsl_path); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int CreateDirectory([NativeTypeName("const char *")] Ref path) => - DllImport.CreateDirectory(path); + public static MaybeBool CreateDirectory( + [NativeTypeName("const char *")] Ref path + ) => DllImport.CreateDirectory(path); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.CreateHapticEffect( @@ -41777,9 +51043,9 @@ int ISdl.CreateHapticEffect( ) => ( (delegate* unmanaged)( - _slots[55] is not null and var loadedFnPtr + _slots[57] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[55] = nativeContext.LoadFunction("SDL_CreateHapticEffect", "SDL3") + : _slots[57] = nativeContext.LoadFunction("SDL_CreateHapticEffect", "SDL3") ) )(haptic, effect); @@ -41814,9 +51080,9 @@ public static int CreateHapticEffect( MutexHandle ISdl.CreateMutex() => ( (delegate* unmanaged)( - _slots[56] is not null and var loadedFnPtr + _slots[58] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[56] = nativeContext.LoadFunction("SDL_CreateMutex", "SDL3") + : _slots[58] = nativeContext.LoadFunction("SDL_CreateMutex", "SDL3") ) )(); @@ -41837,9 +51103,9 @@ Ptr ISdl.CreatePalette(int ncolors) => Palette* ISdl.CreatePaletteRaw(int ncolors) => ( (delegate* unmanaged)( - _slots[57] is not null and var loadedFnPtr + _slots[59] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[57] = nativeContext.LoadFunction("SDL_CreatePalette", "SDL3") + : _slots[59] = nativeContext.LoadFunction("SDL_CreatePalette", "SDL3") ) )(ncolors); @@ -41847,31 +51113,6 @@ _slots[57] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static Palette* CreatePaletteRaw(int ncolors) => DllImport.CreatePaletteRaw(ncolors); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.CreatePixelFormat(PixelFormatEnum pixel_format) => - (PixelFormat*)((ISdl)this).CreatePixelFormatRaw(pixel_format); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePixelFormat")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr CreatePixelFormat(PixelFormatEnum pixel_format) => - DllImport.CreatePixelFormat(pixel_format); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - PixelFormat* ISdl.CreatePixelFormatRaw(PixelFormatEnum pixel_format) => - ( - (delegate* unmanaged)( - _slots[58] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[58] = nativeContext.LoadFunction("SDL_CreatePixelFormat", "SDL3") - ) - )(pixel_format); - - [NativeFunction("SDL3", EntryPoint = "SDL_CreatePixelFormat")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static PixelFormat* CreatePixelFormatRaw(PixelFormatEnum pixel_format) => - DllImport.CreatePixelFormatRaw(pixel_format); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.CreatePopupWindow( WindowHandle parent, @@ -41879,13 +51120,13 @@ WindowHandle ISdl.CreatePopupWindow( int offset_y, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) => ( - (delegate* unmanaged)( - _slots[59] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[60] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[59] = nativeContext.LoadFunction("SDL_CreatePopupWindow", "SDL3") + : _slots[60] = nativeContext.LoadFunction("SDL_CreatePopupWindow", "SDL3") ) )(parent, offset_x, offset_y, w, h, flags); @@ -41897,16 +51138,16 @@ public static WindowHandle CreatePopupWindow( int offset_y, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) => DllImport.CreatePopupWindow(parent, offset_x, offset_y, w, h, flags); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.CreateProperties() => ( (delegate* unmanaged)( - _slots[60] is not null and var loadedFnPtr + _slots[61] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[60] = nativeContext.LoadFunction("SDL_CreateProperties", "SDL3") + : _slots[61] = nativeContext.LoadFunction("SDL_CreateProperties", "SDL3") ) )(); @@ -41918,35 +51159,32 @@ _slots[60] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] RendererHandle ISdl.CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("Uint32")] uint flags + [NativeTypeName("const char *")] sbyte* name ) => ( - (delegate* unmanaged)( - _slots[61] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[62] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[61] = nativeContext.LoadFunction("SDL_CreateRenderer", "SDL3") + : _slots[62] = nativeContext.LoadFunction("SDL_CreateRenderer", "SDL3") ) - )(window, name, flags); + )(window, name); [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static RendererHandle CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("Uint32")] uint flags - ) => DllImport.CreateRenderer(window, name, flags); + [NativeTypeName("const char *")] sbyte* name + ) => DllImport.CreateRenderer(window, name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] RendererHandle ISdl.CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("Uint32")] uint flags + [NativeTypeName("const char *")] Ref name ) { fixed (sbyte* __dsl_name = name) { - return (RendererHandle)((ISdl)this).CreateRenderer(window, __dsl_name, flags); + return (RendererHandle)((ISdl)this).CreateRenderer(window, __dsl_name); } } @@ -41955,9 +51193,8 @@ RendererHandle ISdl.CreateRenderer( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static RendererHandle CreateRenderer( WindowHandle window, - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("Uint32")] uint flags - ) => DllImport.CreateRenderer(window, name, flags); + [NativeTypeName("const char *")] Ref name + ) => DllImport.CreateRenderer(window, name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] RendererHandle ISdl.CreateRendererWithProperties( @@ -41965,9 +51202,9 @@ RendererHandle ISdl.CreateRendererWithProperties( ) => ( (delegate* unmanaged)( - _slots[62] is not null and var loadedFnPtr + _slots[63] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[62] = nativeContext.LoadFunction( + : _slots[63] = nativeContext.LoadFunction( "SDL_CreateRendererWithProperties", "SDL3" ) @@ -41984,9 +51221,9 @@ public static RendererHandle CreateRendererWithProperties( RWLockHandle ISdl.CreateRWLock() => ( (delegate* unmanaged)( - _slots[63] is not null and var loadedFnPtr + _slots[64] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[63] = nativeContext.LoadFunction("SDL_CreateRWLock", "SDL3") + : _slots[64] = nativeContext.LoadFunction("SDL_CreateRWLock", "SDL3") ) )(); @@ -41998,9 +51235,9 @@ _slots[63] is not null and var loadedFnPtr SemaphoreHandle ISdl.CreateSemaphore([NativeTypeName("Uint32")] uint initial_value) => ( (delegate* unmanaged)( - _slots[64] is not null and var loadedFnPtr + _slots[65] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[64] = nativeContext.LoadFunction("SDL_CreateSemaphore", "SDL3") + : _slots[65] = nativeContext.LoadFunction("SDL_CreateSemaphore", "SDL3") ) )(initial_value); @@ -42013,9 +51250,9 @@ public static SemaphoreHandle CreateSemaphore([NativeTypeName("Uint32")] uint in RendererHandle ISdl.CreateSoftwareRenderer(Surface* surface) => ( (delegate* unmanaged)( - _slots[65] is not null and var loadedFnPtr + _slots[66] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[65] = nativeContext.LoadFunction("SDL_CreateSoftwareRenderer", "SDL3") + : _slots[66] = nativeContext.LoadFunction("SDL_CreateSoftwareRenderer", "SDL3") ) )(surface); @@ -42040,94 +51277,96 @@ public static RendererHandle CreateSoftwareRenderer(Ref surface) => DllImport.CreateSoftwareRenderer(surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.CreateStorageDirectory( + byte ISdl.CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path ) => ( - (delegate* unmanaged)( - _slots[66] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[67] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[66] = nativeContext.LoadFunction("SDL_CreateStorageDirectory", "SDL3") + : _slots[67] = nativeContext.LoadFunction("SDL_CreateStorageDirectory", "SDL3") ) )(storage, path); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int CreateStorageDirectory( + public static byte CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path ) => DllImport.CreateStorageDirectory(storage, path); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.CreateStorageDirectory( + MaybeBool ISdl.CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path ) { fixed (sbyte* __dsl_path = path) { - return (int)((ISdl)this).CreateStorageDirectory(storage, __dsl_path); + return (MaybeBool)(byte)((ISdl)this).CreateStorageDirectory(storage, __dsl_path); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int CreateStorageDirectory( + public static MaybeBool CreateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path ) => DllImport.CreateStorageDirectory(storage, path); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.CreateSurface(int width, int height, PixelFormatEnum format) => + Ptr ISdl.CreateSurface(int width, int height, PixelFormat format) => (Surface*)((ISdl)this).CreateSurfaceRaw(width, height, format); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr CreateSurface(int width, int height, PixelFormatEnum format) => + public static Ptr CreateSurface(int width, int height, PixelFormat format) => DllImport.CreateSurface(width, height, format); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Surface* ISdl.CreateSurfaceFrom( - void* pixels, int width, int height, - int pitch, - PixelFormatEnum format + PixelFormat format, + void* pixels, + int pitch ) => ( - (delegate* unmanaged)( - _slots[68] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[69] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[68] = nativeContext.LoadFunction("SDL_CreateSurfaceFrom", "SDL3") + : _slots[69] = nativeContext.LoadFunction("SDL_CreateSurfaceFrom", "SDL3") ) - )(pixels, width, height, pitch, format); + )(width, height, format, pixels, pitch); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static Surface* CreateSurfaceFrom( - void* pixels, int width, int height, - int pitch, - PixelFormatEnum format - ) => DllImport.CreateSurfaceFrom(pixels, width, height, pitch, format); + PixelFormat format, + void* pixels, + int pitch + ) => DllImport.CreateSurfaceFrom(width, height, format, pixels, pitch); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.CreateSurfaceFrom( - Ref pixels, int width, int height, - int pitch, - PixelFormatEnum format + PixelFormat format, + Ref pixels, + int pitch ) { fixed (void* __dsl_pixels = pixels) { return (Surface*) - ((ISdl)this).CreateSurfaceFrom(__dsl_pixels, width, height, pitch, format); + ((ISdl)this).CreateSurfaceFrom(width, height, format, __dsl_pixels, pitch); } } @@ -42135,35 +51374,65 @@ PixelFormatEnum format [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static Ptr CreateSurfaceFrom( - Ref pixels, int width, int height, - int pitch, - PixelFormatEnum format - ) => DllImport.CreateSurfaceFrom(pixels, width, height, pitch, format); + PixelFormat format, + Ref pixels, + int pitch + ) => DllImport.CreateSurfaceFrom(width, height, format, pixels, pitch); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Surface* ISdl.CreateSurfaceRaw(int width, int height, PixelFormatEnum format) => + Palette* ISdl.CreateSurfacePalette(Surface* surface) => ( - (delegate* unmanaged)( - _slots[67] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[70] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[70] = nativeContext.LoadFunction("SDL_CreateSurfacePalette", "SDL3") + ) + )(surface); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfacePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Palette* CreateSurfacePalette(Surface* surface) => + DllImport.CreateSurfacePalette(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateSurfacePalette(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (Palette*)((ISdl)this).CreateSurfacePalette(__dsl_surface); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfacePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateSurfacePalette(Ref surface) => + DllImport.CreateSurfacePalette(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.CreateSurfaceRaw(int width, int height, PixelFormat format) => + ( + (delegate* unmanaged)( + _slots[68] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[67] = nativeContext.LoadFunction("SDL_CreateSurface", "SDL3") + : _slots[68] = nativeContext.LoadFunction("SDL_CreateSurface", "SDL3") ) )(width, height, format); [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Surface* CreateSurfaceRaw(int width, int height, PixelFormatEnum format) => + public static Surface* CreateSurfaceRaw(int width, int height, PixelFormat format) => DllImport.CreateSurfaceRaw(width, height, format); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] CursorHandle ISdl.CreateSystemCursor(SystemCursor id) => ( (delegate* unmanaged)( - _slots[69] is not null and var loadedFnPtr + _slots[71] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[69] = nativeContext.LoadFunction("SDL_CreateSystemCursor", "SDL3") + : _slots[71] = nativeContext.LoadFunction("SDL_CreateSystemCursor", "SDL3") ) )(id); @@ -42173,38 +51442,32 @@ public static CursorHandle CreateSystemCursor(SystemCursor id) => DllImport.CreateSystemCursor(id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - TextureHandle ISdl.CreateTexture( + Ptr ISdl.CreateTexture( RendererHandle renderer, - PixelFormatEnum format, - int access, + PixelFormat format, + TextureAccess access, int w, int h - ) => - ( - (delegate* unmanaged)( - _slots[70] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[70] = nativeContext.LoadFunction("SDL_CreateTexture", "SDL3") - ) - )(renderer, format, access, w, h); + ) => (Texture*)((ISdl)this).CreateTextureRaw(renderer, format, access, w, h); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static TextureHandle CreateTexture( + public static Ptr CreateTexture( RendererHandle renderer, - PixelFormatEnum format, - int access, + PixelFormat format, + TextureAccess access, int w, int h ) => DllImport.CreateTexture(renderer, format, access, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - TextureHandle ISdl.CreateTextureFromSurface(RendererHandle renderer, Surface* surface) => + Texture* ISdl.CreateTextureFromSurface(RendererHandle renderer, Surface* surface) => ( - (delegate* unmanaged)( - _slots[71] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[73] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[71] = nativeContext.LoadFunction( + : _slots[73] = nativeContext.LoadFunction( "SDL_CreateTextureFromSurface", "SDL3" ) @@ -42213,176 +51476,192 @@ _slots[71] is not null and var loadedFnPtr [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static TextureHandle CreateTextureFromSurface( - RendererHandle renderer, - Surface* surface - ) => DllImport.CreateTextureFromSurface(renderer, surface); + public static Texture* CreateTextureFromSurface(RendererHandle renderer, Surface* surface) => + DllImport.CreateTextureFromSurface(renderer, surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - TextureHandle ISdl.CreateTextureFromSurface(RendererHandle renderer, Ref surface) + Ptr ISdl.CreateTextureFromSurface(RendererHandle renderer, Ref surface) { fixed (Surface* __dsl_surface = surface) { - return (TextureHandle)((ISdl)this).CreateTextureFromSurface(renderer, __dsl_surface); + return (Texture*)((ISdl)this).CreateTextureFromSurface(renderer, __dsl_surface); } } [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static TextureHandle CreateTextureFromSurface( + public static Ptr CreateTextureFromSurface( RendererHandle renderer, Ref surface ) => DllImport.CreateTextureFromSurface(renderer, surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - TextureHandle ISdl.CreateTextureWithProperties( + Texture* ISdl.CreateTextureRaw( RendererHandle renderer, - [NativeTypeName("SDL_PropertiesID")] uint props + PixelFormat format, + TextureAccess access, + int w, + int h ) => ( - (delegate* unmanaged)( + (delegate* unmanaged)( _slots[72] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[72] = nativeContext.LoadFunction( - "SDL_CreateTextureWithProperties", - "SDL3" - ) + : _slots[72] = nativeContext.LoadFunction("SDL_CreateTexture", "SDL3") ) - )(renderer, props); + )(renderer, format, access, w, h); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Texture* CreateTextureRaw( + RendererHandle renderer, + PixelFormat format, + TextureAccess access, + int w, + int h + ) => DllImport.CreateTextureRaw(renderer, format, access, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateTextureWithProperties( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => (Texture*)((ISdl)this).CreateTextureWithPropertiesRaw(renderer, props); + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static TextureHandle CreateTextureWithProperties( + public static Ptr CreateTextureWithProperties( RendererHandle renderer, [NativeTypeName("SDL_PropertiesID")] uint props ) => DllImport.CreateTextureWithProperties(renderer, props); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - ThreadHandle ISdl.CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] sbyte* name, - void* data + Texture* ISdl.CreateTextureWithPropertiesRaw( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props ) => ( - (delegate* unmanaged)( - _slots[73] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[74] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[73] = nativeContext.LoadFunction("SDL_CreateThread", "SDL3") + : _slots[74] = nativeContext.LoadFunction( + "SDL_CreateTextureWithProperties", + "SDL3" + ) ) - )(fn, name, data); - - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static ThreadHandle CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] sbyte* name, - void* data - ) => DllImport.CreateThread(fn, name, data); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - ThreadHandle ISdl.CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] Ref name, - Ref data - ) - { - fixed (void* __dsl_data = data) - fixed (sbyte* __dsl_name = name) - { - return (ThreadHandle)((ISdl)this).CreateThread(fn, __dsl_name, __dsl_data); - } - } + )(renderer, props); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static ThreadHandle CreateThread( - [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, - [NativeTypeName("const char *")] Ref name, - Ref data - ) => DllImport.CreateThread(fn, name, data); + public static Texture* CreateTextureWithPropertiesRaw( + RendererHandle renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.CreateTextureWithPropertiesRaw(renderer, props); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - ThreadHandle ISdl.CreateThreadWithStackSize( + ThreadHandle ISdl.CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("const size_t")] nuint stacksize, - void* data + void* data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread ) => ( - (delegate* unmanaged)( - _slots[74] is not null and var loadedFnPtr + (delegate* unmanaged< + ThreadFunction, + sbyte*, + void*, + FunctionPointer, + FunctionPointer, + ThreadHandle>)( + _slots[75] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[74] = nativeContext.LoadFunction( - "SDL_CreateThreadWithStackSize", - "SDL3" - ) + : _slots[75] = nativeContext.LoadFunction("SDL_CreateThreadRuntime", "SDL3") ) - )(fn, name, stacksize, data); + )(fn, name, data, pfnBeginThread, pfnEndThread); - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadRuntime")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static ThreadHandle CreateThreadWithStackSize( + public static ThreadHandle CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("const size_t")] nuint stacksize, - void* data - ) => DllImport.CreateThreadWithStackSize(fn, name, stacksize, data); + void* data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread + ) => DllImport.CreateThreadRuntime(fn, name, data, pfnBeginThread, pfnEndThread); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - ThreadHandle ISdl.CreateThreadWithStackSize( + ThreadHandle ISdl.CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("const size_t")] nuint stacksize, - Ref data + Ref data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread ) { fixed (void* __dsl_data = data) fixed (sbyte* __dsl_name = name) { return (ThreadHandle) - ((ISdl)this).CreateThreadWithStackSize(fn, __dsl_name, stacksize, __dsl_data); + ((ISdl)this).CreateThreadRuntime( + fn, + __dsl_name, + __dsl_data, + pfnBeginThread, + pfnEndThread + ); } } [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadRuntime")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static ThreadHandle CreateThreadWithStackSize( + public static ThreadHandle CreateThreadRuntime( [NativeTypeName("SDL_ThreadFunction")] ThreadFunction fn, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("const size_t")] nuint stacksize, - Ref data - ) => DllImport.CreateThreadWithStackSize(fn, name, stacksize, data); + Ref data, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread + ) => DllImport.CreateThreadRuntime(fn, name, data, pfnBeginThread, pfnEndThread); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.CreateTLS() => + ThreadHandle ISdl.CreateThreadWithPropertiesRuntime( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread + ) => ( - (delegate* unmanaged)( - _slots[75] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[76] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[75] = nativeContext.LoadFunction("SDL_CreateTLS", "SDL3") + : _slots[76] = nativeContext.LoadFunction( + "SDL_CreateThreadWithPropertiesRuntime", + "SDL3" + ) ) - )(); + )(props, pfnBeginThread, pfnEndThread); - [return: NativeTypeName("SDL_TLSID")] - [NativeFunction("SDL3", EntryPoint = "SDL_CreateTLS")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithPropertiesRuntime")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint CreateTLS() => DllImport.CreateTLS(); + public static ThreadHandle CreateThreadWithPropertiesRuntime( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnBeginThread, + [NativeTypeName("SDL_FunctionPointer")] FunctionPointer pfnEndThread + ) => DllImport.CreateThreadWithPropertiesRuntime(props, pfnBeginThread, pfnEndThread); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.CreateWindow( [NativeTypeName("const char *")] sbyte* title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) => ( - (delegate* unmanaged)( - _slots[76] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[77] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[76] = nativeContext.LoadFunction("SDL_CreateWindow", "SDL3") + : _slots[77] = nativeContext.LoadFunction("SDL_CreateWindow", "SDL3") ) )(title, w, h, flags); @@ -42392,7 +51671,7 @@ public static WindowHandle CreateWindow( [NativeTypeName("const char *")] sbyte* title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) => DllImport.CreateWindow(title, w, h, flags); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -42400,7 +51679,7 @@ WindowHandle ISdl.CreateWindow( [NativeTypeName("const char *")] Ref title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) { fixed (sbyte* __dsl_title = title) @@ -42416,43 +51695,44 @@ public static WindowHandle CreateWindow( [NativeTypeName("const char *")] Ref title, int w, int h, - [NativeTypeName("SDL_WindowFlags")] uint flags + [NativeTypeName("SDL_WindowFlags")] ulong flags ) => DllImport.CreateWindow(title, w, h, flags); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.CreateWindowAndRenderer( + byte ISdl.CreateWindowAndRenderer( [NativeTypeName("const char *")] sbyte* title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, WindowHandle* window, RendererHandle* renderer ) => ( - (delegate* unmanaged)( - _slots[77] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[78] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[77] = nativeContext.LoadFunction("SDL_CreateWindowAndRenderer", "SDL3") + : _slots[78] = nativeContext.LoadFunction("SDL_CreateWindowAndRenderer", "SDL3") ) )(title, width, height, window_flags, window, renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int CreateWindowAndRenderer( + public static byte CreateWindowAndRenderer( [NativeTypeName("const char *")] sbyte* title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, WindowHandle* window, RendererHandle* renderer ) => DllImport.CreateWindowAndRenderer(title, width, height, window_flags, window, renderer); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.CreateWindowAndRenderer( + MaybeBool ISdl.CreateWindowAndRenderer( [NativeTypeName("const char *")] Ref title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, Ref window, Ref renderer ) @@ -42461,26 +51741,28 @@ Ref renderer fixed (WindowHandle* __dsl_window = window) fixed (sbyte* __dsl_title = title) { - return (int) - ((ISdl)this).CreateWindowAndRenderer( - __dsl_title, - width, - height, - window_flags, - __dsl_window, - __dsl_renderer - ); + return (MaybeBool) + (byte) + ((ISdl)this).CreateWindowAndRenderer( + __dsl_title, + width, + height, + window_flags, + __dsl_window, + __dsl_renderer + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int CreateWindowAndRenderer( + public static MaybeBool CreateWindowAndRenderer( [NativeTypeName("const char *")] Ref title, int width, int height, - [NativeTypeName("SDL_WindowFlags")] uint window_flags, + [NativeTypeName("SDL_WindowFlags")] ulong window_flags, Ref window, Ref renderer ) => DllImport.CreateWindowAndRenderer(title, width, height, window_flags, window, renderer); @@ -42489,9 +51771,9 @@ Ref renderer WindowHandle ISdl.CreateWindowWithProperties([NativeTypeName("SDL_PropertiesID")] uint props) => ( (delegate* unmanaged)( - _slots[78] is not null and var loadedFnPtr + _slots[79] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[78] = nativeContext.LoadFunction( + : _slots[79] = nativeContext.LoadFunction( "SDL_CreateWindowWithProperties", "SDL3" ) @@ -42505,51 +51787,52 @@ public static WindowHandle CreateWindowWithProperties( ) => DllImport.CreateWindowWithProperties(props); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.CursorVisible() => (MaybeBool)(int)((ISdl)this).CursorVisibleRaw(); + MaybeBool ISdl.CursorVisible() => (MaybeBool)(byte)((ISdl)this).CursorVisibleRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool CursorVisible() => DllImport.CursorVisible(); + public static MaybeBool CursorVisible() => DllImport.CursorVisible(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.CursorVisibleRaw() => + byte ISdl.CursorVisibleRaw() => ( - (delegate* unmanaged)( - _slots[79] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[80] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[79] = nativeContext.LoadFunction("SDL_CursorVisible", "SDL3") + : _slots[80] = nativeContext.LoadFunction("SDL_CursorVisible", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int CursorVisibleRaw() => DllImport.CursorVisibleRaw(); + public static byte CursorVisibleRaw() => DllImport.CursorVisibleRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.DateTimeToTime( + byte ISdl.DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] DateTime* dt, [NativeTypeName("SDL_Time *")] long* ticks ) => ( - (delegate* unmanaged)( - _slots[80] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[81] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[80] = nativeContext.LoadFunction("SDL_DateTimeToTime", "SDL3") + : _slots[81] = nativeContext.LoadFunction("SDL_DateTimeToTime", "SDL3") ) )(dt, ticks); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int DateTimeToTime( + public static byte DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] DateTime* dt, [NativeTypeName("SDL_Time *")] long* ticks ) => DllImport.DateTimeToTime(dt, ticks); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.DateTimeToTime( + MaybeBool ISdl.DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] Ref dt, [NativeTypeName("SDL_Time *")] Ref ticks ) @@ -42557,14 +51840,15 @@ int ISdl.DateTimeToTime( fixed (long* __dsl_ticks = ticks) fixed (DateTime* __dsl_dt = dt) { - return (int)((ISdl)this).DateTimeToTime(__dsl_dt, __dsl_ticks); + return (MaybeBool)(byte)((ISdl)this).DateTimeToTime(__dsl_dt, __dsl_ticks); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int DateTimeToTime( + public static MaybeBool DateTimeToTime( [NativeTypeName("const SDL_DateTime *")] Ref dt, [NativeTypeName("SDL_Time *")] Ref ticks ) => DllImport.DateTimeToTime(dt, ticks); @@ -42573,9 +51857,9 @@ public static int DateTimeToTime( void ISdl.Delay([NativeTypeName("Uint32")] uint ms) => ( (delegate* unmanaged)( - _slots[81] is not null and var loadedFnPtr + _slots[82] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[81] = nativeContext.LoadFunction("SDL_Delay", "SDL3") + : _slots[82] = nativeContext.LoadFunction("SDL_Delay", "SDL3") ) )(ms); @@ -42587,9 +51871,9 @@ _slots[81] is not null and var loadedFnPtr void ISdl.DelayNS([NativeTypeName("Uint64")] ulong ns) => ( (delegate* unmanaged)( - _slots[82] is not null and var loadedFnPtr + _slots[83] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[82] = nativeContext.LoadFunction("SDL_DelayNS", "SDL3") + : _slots[83] = nativeContext.LoadFunction("SDL_DelayNS", "SDL3") ) )(ns); @@ -42598,86 +51882,19 @@ _slots[82] is not null and var loadedFnPtr public static void DelayNS([NativeTypeName("Uint64")] ulong ns) => DllImport.DelayNS(ns); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.DelEventWatch( - [NativeTypeName("SDL_EventFilter")] EventFilter filter, - void* userdata - ) => - ( - (delegate* unmanaged)( - _slots[83] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[83] = nativeContext.LoadFunction("SDL_DelEventWatch", "SDL3") - ) - )(filter, userdata); - - [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void DelEventWatch( - [NativeTypeName("SDL_EventFilter")] EventFilter filter, - void* userdata - ) => DllImport.DelEventWatch(filter, userdata); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.DelEventWatch([NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata) - { - fixed (void* __dsl_userdata = userdata) - { - ((ISdl)this).DelEventWatch(filter, __dsl_userdata); - } - } - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void DelEventWatch( - [NativeTypeName("SDL_EventFilter")] EventFilter filter, - Ref userdata - ) => DllImport.DelEventWatch(filter, userdata); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.DelHintCallback( - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - void* userdata - ) => + void ISdl.DelayPrecise([NativeTypeName("Uint64")] ulong ns) => ( - (delegate* unmanaged)( + (delegate* unmanaged)( _slots[84] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[84] = nativeContext.LoadFunction("SDL_DelHintCallback", "SDL3") + : _slots[84] = nativeContext.LoadFunction("SDL_DelayPrecise", "SDL3") ) - )(name, callback, userdata); - - [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void DelHintCallback( - [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - void* userdata - ) => DllImport.DelHintCallback(name, callback, userdata); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.DelHintCallback( - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - Ref userdata - ) - { - fixed (void* __dsl_userdata = userdata) - fixed (sbyte* __dsl_name = name) - { - ((ISdl)this).DelHintCallback(__dsl_name, callback, __dsl_userdata); - } - } + )(ns); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] + [NativeFunction("SDL3", EntryPoint = "SDL_DelayPrecise")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void DelHintCallback( - [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_HintCallback")] HintCallback callback, - Ref userdata - ) => DllImport.DelHintCallback(name, callback, userdata); + public static void DelayPrecise([NativeTypeName("Uint64")] ulong ns) => + DllImport.DelayPrecise(ns); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyAudioStream(AudioStreamHandle stream) => @@ -42779,43 +51996,13 @@ void ISdl.DestroyPalette(Ref palette) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void DestroyPalette(Ref palette) => DllImport.DestroyPalette(palette); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.DestroyPixelFormat(PixelFormat* format) => - ( - (delegate* unmanaged)( - _slots[91] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[91] = nativeContext.LoadFunction("SDL_DestroyPixelFormat", "SDL3") - ) - )(format); - - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void DestroyPixelFormat(PixelFormat* format) => - DllImport.DestroyPixelFormat(format); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.DestroyPixelFormat(Ref format) - { - fixed (PixelFormat* __dsl_format = format) - { - ((ISdl)this).DestroyPixelFormat(__dsl_format); - } - } - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void DestroyPixelFormat(Ref format) => - DllImport.DestroyPixelFormat(format); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props) => ( (delegate* unmanaged)( - _slots[92] is not null and var loadedFnPtr + _slots[91] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[92] = nativeContext.LoadFunction("SDL_DestroyProperties", "SDL3") + : _slots[91] = nativeContext.LoadFunction("SDL_DestroyProperties", "SDL3") ) )(props); @@ -42828,9 +52015,9 @@ public static void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint p void ISdl.DestroyRenderer(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[93] is not null and var loadedFnPtr + _slots[92] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[93] = nativeContext.LoadFunction("SDL_DestroyRenderer", "SDL3") + : _slots[92] = nativeContext.LoadFunction("SDL_DestroyRenderer", "SDL3") ) )(renderer); @@ -42843,9 +52030,9 @@ public static void DestroyRenderer(RendererHandle renderer) => void ISdl.DestroyRWLock(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[94] is not null and var loadedFnPtr + _slots[93] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[94] = nativeContext.LoadFunction("SDL_DestroyRWLock", "SDL3") + : _slots[93] = nativeContext.LoadFunction("SDL_DestroyRWLock", "SDL3") ) )(rwlock); @@ -42857,9 +52044,9 @@ _slots[94] is not null and var loadedFnPtr void ISdl.DestroySemaphore(SemaphoreHandle sem) => ( (delegate* unmanaged)( - _slots[95] is not null and var loadedFnPtr + _slots[94] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[95] = nativeContext.LoadFunction("SDL_DestroySemaphore", "SDL3") + : _slots[94] = nativeContext.LoadFunction("SDL_DestroySemaphore", "SDL3") ) )(sem); @@ -42871,9 +52058,9 @@ _slots[95] is not null and var loadedFnPtr void ISdl.DestroySurface(Surface* surface) => ( (delegate* unmanaged)( - _slots[96] is not null and var loadedFnPtr + _slots[95] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[96] = nativeContext.LoadFunction("SDL_DestroySurface", "SDL3") + : _slots[95] = nativeContext.LoadFunction("SDL_DestroySurface", "SDL3") ) )(surface); @@ -42896,26 +52083,40 @@ void ISdl.DestroySurface(Ref surface) public static void DestroySurface(Ref surface) => DllImport.DestroySurface(surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.DestroyTexture(TextureHandle texture) => + void ISdl.DestroyTexture(Texture* texture) => ( - (delegate* unmanaged)( - _slots[97] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[96] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[97] = nativeContext.LoadFunction("SDL_DestroyTexture", "SDL3") + : _slots[96] = nativeContext.LoadFunction("SDL_DestroyTexture", "SDL3") ) )(texture); [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void DestroyTexture(TextureHandle texture) => DllImport.DestroyTexture(texture); + public static void DestroyTexture(Texture* texture) => DllImport.DestroyTexture(texture); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyTexture(Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + ((ISdl)this).DestroyTexture(__dsl_texture); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyTexture(Ref texture) => DllImport.DestroyTexture(texture); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyWindow(WindowHandle window) => ( (delegate* unmanaged)( - _slots[98] is not null and var loadedFnPtr + _slots[97] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[98] = nativeContext.LoadFunction("SDL_DestroyWindow", "SDL3") + : _slots[97] = nativeContext.LoadFunction("SDL_DestroyWindow", "SDL3") ) )(window); @@ -42924,27 +52125,39 @@ _slots[98] is not null and var loadedFnPtr public static void DestroyWindow(WindowHandle window) => DllImport.DestroyWindow(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.DestroyWindowSurface(WindowHandle window) => + MaybeBool ISdl.DestroyWindowSurface(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).DestroyWindowSurfaceRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool DestroyWindowSurface(WindowHandle window) => + DllImport.DestroyWindowSurface(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.DestroyWindowSurfaceRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[99] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[98] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[99] = nativeContext.LoadFunction("SDL_DestroyWindowSurface", "SDL3") + : _slots[98] = nativeContext.LoadFunction("SDL_DestroyWindowSurface", "SDL3") ) )(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int DestroyWindowSurface(WindowHandle window) => - DllImport.DestroyWindowSurface(window); + public static byte DestroyWindowSurfaceRaw(WindowHandle window) => + DllImport.DestroyWindowSurfaceRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DetachThread(ThreadHandle thread) => ( (delegate* unmanaged)( - _slots[100] is not null and var loadedFnPtr + _slots[99] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[100] = nativeContext.LoadFunction("SDL_DetachThread", "SDL3") + : _slots[99] = nativeContext.LoadFunction("SDL_DetachThread", "SDL3") ) )(thread); @@ -42953,41 +52166,67 @@ _slots[100] is not null and var loadedFnPtr public static void DetachThread(ThreadHandle thread) => DllImport.DetachThread(thread); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id) => + MaybeBool ISdl.DetachVirtualJoystick( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (MaybeBool)(byte)((ISdl)this).DetachVirtualJoystickRaw(instance_id); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DetachVirtualJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool DetachVirtualJoystick( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.DetachVirtualJoystick(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.DetachVirtualJoystickRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged)( - _slots[101] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[100] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[101] = nativeContext.LoadFunction("SDL_DetachVirtualJoystick", "SDL3") + : _slots[100] = nativeContext.LoadFunction("SDL_DetachVirtualJoystick", "SDL3") ) )(instance_id); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DetachVirtualJoystick")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id) => - DllImport.DetachVirtualJoystick(instance_id); + public static byte DetachVirtualJoystickRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.DetachVirtualJoystickRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.DisableScreenSaver() => + (MaybeBool)(byte)((ISdl)this).DisableScreenSaverRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool DisableScreenSaver() => DllImport.DisableScreenSaver(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.DisableScreenSaver() => + byte ISdl.DisableScreenSaverRaw() => ( - (delegate* unmanaged)( - _slots[102] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[101] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[102] = nativeContext.LoadFunction("SDL_DisableScreenSaver", "SDL3") + : _slots[101] = nativeContext.LoadFunction("SDL_DisableScreenSaver", "SDL3") ) )(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_DisableScreenSaver")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int DisableScreenSaver() => DllImport.DisableScreenSaver(); + public static byte DisableScreenSaverRaw() => DllImport.DisableScreenSaverRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Surface* ISdl.DuplicateSurface(Surface* surface) => ( (delegate* unmanaged)( - _slots[103] is not null and var loadedFnPtr + _slots[102] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[103] = nativeContext.LoadFunction("SDL_DuplicateSurface", "SDL3") + : _slots[102] = nativeContext.LoadFunction("SDL_DuplicateSurface", "SDL3") ) )(surface); @@ -43012,66 +52251,60 @@ public static Ptr DuplicateSurface(Ref surface) => DllImport.DuplicateSurface(surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.EGLGetCurrentEGLConfig() => (void*)((ISdl)this).EGLGetCurrentEGLConfigRaw(); + Ptr ISdl.EGLGetCurrentConfig() => (void*)((ISdl)this).EGLGetCurrentConfigRaw(); [return: NativeTypeName("SDL_EGLConfig")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentConfig")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr EGLGetCurrentEGLConfig() => DllImport.EGLGetCurrentEGLConfig(); + public static Ptr EGLGetCurrentConfig() => DllImport.EGLGetCurrentConfig(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void* ISdl.EGLGetCurrentEGLConfigRaw() => + void* ISdl.EGLGetCurrentConfigRaw() => ( (delegate* unmanaged)( - _slots[104] is not null and var loadedFnPtr + _slots[103] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[104] = nativeContext.LoadFunction( - "SDL_EGL_GetCurrentEGLConfig", - "SDL3" - ) + : _slots[103] = nativeContext.LoadFunction("SDL_EGL_GetCurrentConfig", "SDL3") ) )(); [return: NativeTypeName("SDL_EGLConfig")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentConfig")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void* EGLGetCurrentEGLConfigRaw() => DllImport.EGLGetCurrentEGLConfigRaw(); + public static void* EGLGetCurrentConfigRaw() => DllImport.EGLGetCurrentConfigRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.EGLGetCurrentEGLDisplay() => (void*)((ISdl)this).EGLGetCurrentEGLDisplayRaw(); + Ptr ISdl.EGLGetCurrentDisplay() => (void*)((ISdl)this).EGLGetCurrentDisplayRaw(); [return: NativeTypeName("SDL_EGLDisplay")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentDisplay")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr EGLGetCurrentEGLDisplay() => DllImport.EGLGetCurrentEGLDisplay(); + public static Ptr EGLGetCurrentDisplay() => DllImport.EGLGetCurrentDisplay(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void* ISdl.EGLGetCurrentEGLDisplayRaw() => + void* ISdl.EGLGetCurrentDisplayRaw() => ( (delegate* unmanaged)( - _slots[105] is not null and var loadedFnPtr + _slots[104] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[105] = nativeContext.LoadFunction( - "SDL_EGL_GetCurrentEGLDisplay", - "SDL3" - ) + : _slots[104] = nativeContext.LoadFunction("SDL_EGL_GetCurrentDisplay", "SDL3") ) )(); [return: NativeTypeName("SDL_EGLDisplay")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentDisplay")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void* EGLGetCurrentEGLDisplayRaw() => DllImport.EGLGetCurrentEGLDisplayRaw(); + public static void* EGLGetCurrentDisplayRaw() => DllImport.EGLGetCurrentDisplayRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] FunctionPointer ISdl.EGLGetProcAddress([NativeTypeName("const char *")] sbyte* proc) => ( (delegate* unmanaged)( - _slots[106] is not null and var loadedFnPtr + _slots[105] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[106] = nativeContext.LoadFunction("SDL_EGL_GetProcAddress", "SDL3") + : _slots[105] = nativeContext.LoadFunction("SDL_EGL_GetProcAddress", "SDL3") ) )(proc); @@ -43099,109 +52332,159 @@ public static FunctionPointer EGLGetProcAddress( ) => DllImport.EGLGetProcAddress(proc); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.EGLGetWindowEGLSurface(WindowHandle window) => - (void*)((ISdl)this).EGLGetWindowEGLSurfaceRaw(window); + Ptr ISdl.EGLGetWindowSurface(WindowHandle window) => + (void*)((ISdl)this).EGLGetWindowSurfaceRaw(window); [return: NativeTypeName("SDL_EGLSurface")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr EGLGetWindowEGLSurface(WindowHandle window) => - DllImport.EGLGetWindowEGLSurface(window); + public static Ptr EGLGetWindowSurface(WindowHandle window) => + DllImport.EGLGetWindowSurface(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void* ISdl.EGLGetWindowEGLSurfaceRaw(WindowHandle window) => + void* ISdl.EGLGetWindowSurfaceRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[107] is not null and var loadedFnPtr + _slots[106] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[107] = nativeContext.LoadFunction( - "SDL_EGL_GetWindowEGLSurface", - "SDL3" - ) + : _slots[106] = nativeContext.LoadFunction("SDL_EGL_GetWindowSurface", "SDL3") ) )(window); [return: NativeTypeName("SDL_EGLSurface")] - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void* EGLGetWindowEGLSurfaceRaw(WindowHandle window) => - DllImport.EGLGetWindowEGLSurfaceRaw(window); + public static void* EGLGetWindowSurfaceRaw(WindowHandle window) => + DllImport.EGLGetWindowSurfaceRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.EGLSetEGLAttributeCallbacks( + void ISdl.EGLSetAttributeCallbacks( [NativeTypeName("SDL_EGLAttribArrayCallback")] EGLAttribArrayCallback platformAttribCallback, [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, - [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + void* userdata ) => ( (delegate* unmanaged< EGLAttribArrayCallback, EGLIntArrayCallback, EGLIntArrayCallback, + void*, void>)( - _slots[108] is not null and var loadedFnPtr + _slots[107] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[108] = nativeContext.LoadFunction( - "SDL_EGL_SetEGLAttributeCallbacks", + : _slots[107] = nativeContext.LoadFunction( + "SDL_EGL_SetAttributeCallbacks", "SDL3" ) ) - )(platformAttribCallback, surfaceAttribCallback, contextAttribCallback); + )(platformAttribCallback, surfaceAttribCallback, contextAttribCallback, userdata); + + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetAttributeCallbacks")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void EGLSetAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + EGLAttribArrayCallback platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + void* userdata + ) => + DllImport.EGLSetAttributeCallbacks( + platformAttribCallback, + surfaceAttribCallback, + contextAttribCallback, + userdata + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.EGLSetAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + EGLAttribArrayCallback platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + ((ISdl)this).EGLSetAttributeCallbacks( + platformAttribCallback, + surfaceAttribCallback, + contextAttribCallback, + __dsl_userdata + ); + } + } - [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetEGLAttributeCallbacks")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_SetAttributeCallbacks")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void EGLSetEGLAttributeCallbacks( + public static void EGLSetAttributeCallbacks( [NativeTypeName("SDL_EGLAttribArrayCallback")] EGLAttribArrayCallback platformAttribCallback, [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback surfaceAttribCallback, - [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback + [NativeTypeName("SDL_EGLIntArrayCallback")] EGLIntArrayCallback contextAttribCallback, + Ref userdata ) => - DllImport.EGLSetEGLAttributeCallbacks( + DllImport.EGLSetAttributeCallbacks( platformAttribCallback, surfaceAttribCallback, - contextAttribCallback + contextAttribCallback, + userdata ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.EnableScreenSaver() => + MaybeBool ISdl.EnableScreenSaver() => + (MaybeBool)(byte)((ISdl)this).EnableScreenSaverRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnableScreenSaver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool EnableScreenSaver() => DllImport.EnableScreenSaver(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.EnableScreenSaverRaw() => ( - (delegate* unmanaged)( - _slots[109] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[108] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[109] = nativeContext.LoadFunction("SDL_EnableScreenSaver", "SDL3") + : _slots[108] = nativeContext.LoadFunction("SDL_EnableScreenSaver", "SDL3") ) )(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnableScreenSaver")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int EnableScreenSaver() => DllImport.EnableScreenSaver(); + public static byte EnableScreenSaverRaw() => DllImport.EnableScreenSaverRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.EnumerateDirectory( + byte ISdl.EnumerateDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ) => ( - (delegate* unmanaged)( - _slots[110] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[109] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[110] = nativeContext.LoadFunction("SDL_EnumerateDirectory", "SDL3") + : _slots[109] = nativeContext.LoadFunction("SDL_EnumerateDirectory", "SDL3") ) )(path, callback, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int EnumerateDirectory( + public static byte EnumerateDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ) => DllImport.EnumerateDirectory(path, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.EnumerateDirectory( + MaybeBool ISdl.EnumerateDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, Ref userdata @@ -43210,43 +52493,46 @@ Ref userdata fixed (void* __dsl_userdata = userdata) fixed (sbyte* __dsl_path = path) { - return (int)((ISdl)this).EnumerateDirectory(__dsl_path, callback, __dsl_userdata); + return (MaybeBool) + (byte)((ISdl)this).EnumerateDirectory(__dsl_path, callback, __dsl_userdata); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int EnumerateDirectory( + public static MaybeBool EnumerateDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, Ref userdata ) => DllImport.EnumerateDirectory(path, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.EnumerateProperties( + byte ISdl.EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, void* userdata ) => ( - (delegate* unmanaged)( - _slots[111] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[110] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[111] = nativeContext.LoadFunction("SDL_EnumerateProperties", "SDL3") + : _slots[110] = nativeContext.LoadFunction("SDL_EnumerateProperties", "SDL3") ) )(props, callback, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int EnumerateProperties( + public static byte EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, void* userdata ) => DllImport.EnumerateProperties(props, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.EnumerateProperties( + MaybeBool ISdl.EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, Ref userdata @@ -43254,40 +52540,43 @@ Ref userdata { fixed (void* __dsl_userdata = userdata) { - return (int)((ISdl)this).EnumerateProperties(props, callback, __dsl_userdata); + return (MaybeBool) + (byte)((ISdl)this).EnumerateProperties(props, callback, __dsl_userdata); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int EnumerateProperties( + public static MaybeBool EnumerateProperties( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("SDL_EnumeratePropertiesCallback")] EnumeratePropertiesCallback callback, Ref userdata ) => DllImport.EnumerateProperties(props, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.EnumerateStorageDirectory( + byte ISdl.EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, void* userdata ) => ( - (delegate* unmanaged)( - _slots[112] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[111] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[112] = nativeContext.LoadFunction( + : _slots[111] = nativeContext.LoadFunction( "SDL_EnumerateStorageDirectory", "SDL3" ) ) )(storage, path, callback, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int EnumerateStorageDirectory( + public static byte EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, @@ -43295,7 +52584,7 @@ public static int EnumerateStorageDirectory( ) => DllImport.EnumerateStorageDirectory(storage, path, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.EnumerateStorageDirectory( + MaybeBool ISdl.EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, @@ -43305,20 +52594,22 @@ Ref userdata fixed (void* __dsl_userdata = userdata) fixed (sbyte* __dsl_path = path) { - return (int) - ((ISdl)this).EnumerateStorageDirectory( - storage, - __dsl_path, - callback, - __dsl_userdata - ); + return (MaybeBool) + (byte) + ((ISdl)this).EnumerateStorageDirectory( + storage, + __dsl_path, + callback, + __dsl_userdata + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int EnumerateStorageDirectory( + public static MaybeBool EnumerateStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("SDL_EnumerateDirectoryCallback")] EnumerateDirectoryCallback callback, @@ -43326,70 +52617,57 @@ Ref userdata ) => DllImport.EnumerateStorageDirectory(storage, path, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.Error(Errorcode code) => - ( - (delegate* unmanaged)( - _slots[113] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[113] = nativeContext.LoadFunction("SDL_Error", "SDL3") - ) - )(code); - - [NativeFunction("SDL3", EntryPoint = "SDL_Error")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int Error(Errorcode code) => DllImport.Error(code); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.EventEnabled([NativeTypeName("Uint32")] uint type) => - (MaybeBool)(int)((ISdl)this).EventEnabledRaw(type); + MaybeBool ISdl.EventEnabled([NativeTypeName("Uint32")] uint type) => + (MaybeBool)(byte)((ISdl)this).EventEnabledRaw(type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) => + public static MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) => DllImport.EventEnabled(type); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.EventEnabledRaw([NativeTypeName("Uint32")] uint type) => + byte ISdl.EventEnabledRaw([NativeTypeName("Uint32")] uint type) => ( - (delegate* unmanaged)( - _slots[114] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[112] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[114] = nativeContext.LoadFunction("SDL_EventEnabled", "SDL3") + : _slots[112] = nativeContext.LoadFunction("SDL_EventEnabled", "SDL3") ) )(type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int EventEnabledRaw([NativeTypeName("Uint32")] uint type) => + public static byte EventEnabledRaw([NativeTypeName("Uint32")] uint type) => DllImport.EventEnabledRaw(type); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.FillSurfaceRect( + byte ISdl.FillSurfaceRect( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("Uint32")] uint color ) => ( - (delegate* unmanaged)( - _slots[115] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[113] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[115] = nativeContext.LoadFunction("SDL_FillSurfaceRect", "SDL3") + : _slots[113] = nativeContext.LoadFunction("SDL_FillSurfaceRect", "SDL3") ) )(dst, rect, color); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int FillSurfaceRect( + public static byte FillSurfaceRect( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("Uint32")] uint color ) => DllImport.FillSurfaceRect(dst, rect, color); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.FillSurfaceRect( + MaybeBool ISdl.FillSurfaceRect( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("Uint32")] uint color @@ -43398,37 +52676,40 @@ int ISdl.FillSurfaceRect( fixed (Rect* __dsl_rect = rect) fixed (Surface* __dsl_dst = dst) { - return (int)((ISdl)this).FillSurfaceRect(__dsl_dst, __dsl_rect, color); + return (MaybeBool) + (byte)((ISdl)this).FillSurfaceRect(__dsl_dst, __dsl_rect, color); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int FillSurfaceRect( + public static MaybeBool FillSurfaceRect( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("Uint32")] uint color ) => DllImport.FillSurfaceRect(dst, rect, color); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.FillSurfaceRects( + byte ISdl.FillSurfaceRects( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rects, int count, [NativeTypeName("Uint32")] uint color ) => ( - (delegate* unmanaged)( - _slots[116] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[114] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[116] = nativeContext.LoadFunction("SDL_FillSurfaceRects", "SDL3") + : _slots[114] = nativeContext.LoadFunction("SDL_FillSurfaceRects", "SDL3") ) )(dst, rects, count, color); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int FillSurfaceRects( + public static byte FillSurfaceRects( Surface* dst, [NativeTypeName("const SDL_Rect *")] Rect* rects, int count, @@ -43436,7 +52717,7 @@ public static int FillSurfaceRects( ) => DllImport.FillSurfaceRects(dst, rects, count, color); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.FillSurfaceRects( + MaybeBool ISdl.FillSurfaceRects( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rects, int count, @@ -43446,14 +52727,16 @@ int ISdl.FillSurfaceRects( fixed (Rect* __dsl_rects = rects) fixed (Surface* __dsl_dst = dst) { - return (int)((ISdl)this).FillSurfaceRects(__dsl_dst, __dsl_rects, count, color); + return (MaybeBool) + (byte)((ISdl)this).FillSurfaceRects(__dsl_dst, __dsl_rects, count, color); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int FillSurfaceRects( + public static MaybeBool FillSurfaceRects( Ref dst, [NativeTypeName("const SDL_Rect *")] Ref rects, int count, @@ -43467,9 +52750,9 @@ void ISdl.FilterEvents( ) => ( (delegate* unmanaged)( - _slots[117] is not null and var loadedFnPtr + _slots[115] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[117] = nativeContext.LoadFunction("SDL_FilterEvents", "SDL3") + : _slots[115] = nativeContext.LoadFunction("SDL_FilterEvents", "SDL3") ) )(filter, userdata); @@ -43498,72 +52781,98 @@ Ref userdata ) => DllImport.FilterEvents(filter, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.FlashWindow(WindowHandle window, FlashOperation operation) => + MaybeBool ISdl.FlashWindow(WindowHandle window, FlashOperation operation) => + (MaybeBool)(byte)((ISdl)this).FlashWindowRaw(window, operation); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool FlashWindow(WindowHandle window, FlashOperation operation) => + DllImport.FlashWindow(window, operation); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.FlashWindowRaw(WindowHandle window, FlashOperation operation) => ( - (delegate* unmanaged)( - _slots[118] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[116] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[118] = nativeContext.LoadFunction("SDL_FlashWindow", "SDL3") + : _slots[116] = nativeContext.LoadFunction("SDL_FlashWindow", "SDL3") ) )(window, operation); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int FlashWindow(WindowHandle window, FlashOperation operation) => - DllImport.FlashWindow(window, operation); + public static byte FlashWindowRaw(WindowHandle window, FlashOperation operation) => + DllImport.FlashWindowRaw(window, operation); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.FlipSurface(Surface* surface, FlipMode flip) => + byte ISdl.FlipSurface(Surface* surface, FlipMode flip) => ( - (delegate* unmanaged)( - _slots[119] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[117] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[119] = nativeContext.LoadFunction("SDL_FlipSurface", "SDL3") + : _slots[117] = nativeContext.LoadFunction("SDL_FlipSurface", "SDL3") ) )(surface, flip); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int FlipSurface(Surface* surface, FlipMode flip) => + public static byte FlipSurface(Surface* surface, FlipMode flip) => DllImport.FlipSurface(surface, flip); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.FlipSurface(Ref surface, FlipMode flip) + MaybeBool ISdl.FlipSurface(Ref surface, FlipMode flip) { fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).FlipSurface(__dsl_surface, flip); + return (MaybeBool)(byte)((ISdl)this).FlipSurface(__dsl_surface, flip); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int FlipSurface(Ref surface, FlipMode flip) => + public static MaybeBool FlipSurface(Ref surface, FlipMode flip) => DllImport.FlipSurface(surface, flip); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.FlushAudioStream(AudioStreamHandle stream) => + MaybeBool ISdl.FlushAudioStream(AudioStreamHandle stream) => + (MaybeBool)(byte)((ISdl)this).FlushAudioStreamRaw(stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool FlushAudioStream(AudioStreamHandle stream) => + DllImport.FlushAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.FlushAudioStreamRaw(AudioStreamHandle stream) => ( - (delegate* unmanaged)( - _slots[120] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[118] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[120] = nativeContext.LoadFunction("SDL_FlushAudioStream", "SDL3") + : _slots[118] = nativeContext.LoadFunction("SDL_FlushAudioStream", "SDL3") ) )(stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int FlushAudioStream(AudioStreamHandle stream) => - DllImport.FlushAudioStream(stream); + public static byte FlushAudioStreamRaw(AudioStreamHandle stream) => + DllImport.FlushAudioStreamRaw(stream); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.FlushEvent([NativeTypeName("Uint32")] uint type) => ( (delegate* unmanaged)( - _slots[121] is not null and var loadedFnPtr + _slots[119] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[121] = nativeContext.LoadFunction("SDL_FlushEvent", "SDL3") + : _slots[119] = nativeContext.LoadFunction("SDL_FlushEvent", "SDL3") ) )(type); @@ -43579,9 +52888,9 @@ void ISdl.FlushEvents( ) => ( (delegate* unmanaged)( - _slots[122] is not null and var loadedFnPtr + _slots[120] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[122] = nativeContext.LoadFunction("SDL_FlushEvents", "SDL3") + : _slots[120] = nativeContext.LoadFunction("SDL_FlushEvents", "SDL3") ) )(minType, maxType); @@ -43593,179 +52902,250 @@ public static void FlushEvents( ) => DllImport.FlushEvents(minType, maxType); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.FlushRenderer(RendererHandle renderer) => + MaybeBool ISdl.FlushIO(IOStreamHandle context) => + (MaybeBool)(byte)((ISdl)this).FlushIORaw(context); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool FlushIO(IOStreamHandle context) => DllImport.FlushIO(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.FlushIORaw(IOStreamHandle context) => ( - (delegate* unmanaged)( - _slots[123] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[121] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[121] = nativeContext.LoadFunction("SDL_FlushIO", "SDL3") + ) + )(context); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte FlushIORaw(IOStreamHandle context) => DllImport.FlushIORaw(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.FlushRenderer(RendererHandle renderer) => + (MaybeBool)(byte)((ISdl)this).FlushRendererRaw(renderer); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool FlushRenderer(RendererHandle renderer) => + DllImport.FlushRenderer(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.FlushRendererRaw(RendererHandle renderer) => + ( + (delegate* unmanaged)( + _slots[122] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[123] = nativeContext.LoadFunction("SDL_FlushRenderer", "SDL3") + : _slots[122] = nativeContext.LoadFunction("SDL_FlushRenderer", "SDL3") ) )(renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int FlushRenderer(RendererHandle renderer) => DllImport.FlushRenderer(renderer); + public static byte FlushRendererRaw(RendererHandle renderer) => + DllImport.FlushRendererRaw(renderer); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GamepadConnected(GamepadHandle gamepad) => - (MaybeBool)(int)((ISdl)this).GamepadConnectedRaw(gamepad); + MaybeBool ISdl.GamepadConnected(GamepadHandle gamepad) => + (MaybeBool)(byte)((ISdl)this).GamepadConnectedRaw(gamepad); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GamepadConnected(GamepadHandle gamepad) => + public static MaybeBool GamepadConnected(GamepadHandle gamepad) => DllImport.GamepadConnected(gamepad); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GamepadConnectedRaw(GamepadHandle gamepad) => + byte ISdl.GamepadConnectedRaw(GamepadHandle gamepad) => ( - (delegate* unmanaged)( - _slots[124] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[123] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[124] = nativeContext.LoadFunction("SDL_GamepadConnected", "SDL3") + : _slots[123] = nativeContext.LoadFunction("SDL_GamepadConnected", "SDL3") ) )(gamepad); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GamepadConnectedRaw(GamepadHandle gamepad) => + public static byte GamepadConnectedRaw(GamepadHandle gamepad) => DllImport.GamepadConnectedRaw(gamepad); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GamepadEventsEnabled() => - (MaybeBool)(int)((ISdl)this).GamepadEventsEnabledRaw(); + MaybeBool ISdl.GamepadEventsEnabled() => + (MaybeBool)(byte)((ISdl)this).GamepadEventsEnabledRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GamepadEventsEnabled() => DllImport.GamepadEventsEnabled(); + public static MaybeBool GamepadEventsEnabled() => DllImport.GamepadEventsEnabled(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GamepadEventsEnabledRaw() => + byte ISdl.GamepadEventsEnabledRaw() => ( - (delegate* unmanaged)( - _slots[125] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[124] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[125] = nativeContext.LoadFunction("SDL_GamepadEventsEnabled", "SDL3") + : _slots[124] = nativeContext.LoadFunction("SDL_GamepadEventsEnabled", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GamepadEventsEnabledRaw() => DllImport.GamepadEventsEnabledRaw(); + public static byte GamepadEventsEnabledRaw() => DllImport.GamepadEventsEnabledRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis) => - (MaybeBool)(int)((ISdl)this).GamepadHasAxisRaw(gamepad, axis); + MaybeBool ISdl.GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis) => + (MaybeBool)(byte)((ISdl)this).GamepadHasAxisRaw(gamepad, axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis) => + public static MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis axis) => DllImport.GamepadHasAxis(gamepad, axis); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => + byte ISdl.GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => ( - (delegate* unmanaged)( - _slots[126] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[125] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[126] = nativeContext.LoadFunction("SDL_GamepadHasAxis", "SDL3") + : _slots[125] = nativeContext.LoadFunction("SDL_GamepadHasAxis", "SDL3") ) )(gamepad, axis); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => + public static byte GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => DllImport.GamepadHasAxisRaw(gamepad, axis); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GamepadHasButton(GamepadHandle gamepad, GamepadButton button) => - (MaybeBool)(int)((ISdl)this).GamepadHasButtonRaw(gamepad, button); + MaybeBool ISdl.GamepadHasButton(GamepadHandle gamepad, GamepadButton button) => + (MaybeBool)(byte)((ISdl)this).GamepadHasButtonRaw(gamepad, button); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GamepadHasButton(GamepadHandle gamepad, GamepadButton button) => + public static MaybeBool GamepadHasButton(GamepadHandle gamepad, GamepadButton button) => DllImport.GamepadHasButton(gamepad, button); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button) => + byte ISdl.GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button) => ( - (delegate* unmanaged)( - _slots[127] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[126] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[127] = nativeContext.LoadFunction("SDL_GamepadHasButton", "SDL3") + : _slots[126] = nativeContext.LoadFunction("SDL_GamepadHasButton", "SDL3") ) )(gamepad, button); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button) => + public static byte GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button) => DllImport.GamepadHasButtonRaw(gamepad, button); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GamepadHasSensor(GamepadHandle gamepad, SensorType type) => - (MaybeBool)(int)((ISdl)this).GamepadHasSensorRaw(gamepad, type); + MaybeBool ISdl.GamepadHasSensor(GamepadHandle gamepad, SensorType type) => + (MaybeBool)(byte)((ISdl)this).GamepadHasSensorRaw(gamepad, type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType type) => + public static MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType type) => DllImport.GamepadHasSensor(gamepad, type); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type) => + byte ISdl.GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type) => ( - (delegate* unmanaged)( - _slots[128] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[127] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[128] = nativeContext.LoadFunction("SDL_GamepadHasSensor", "SDL3") + : _slots[127] = nativeContext.LoadFunction("SDL_GamepadHasSensor", "SDL3") ) )(gamepad, type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type) => + public static byte GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type) => DllImport.GamepadHasSensorRaw(gamepad, type); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GamepadSensorEnabled(GamepadHandle gamepad, SensorType type) => - (MaybeBool)(int)((ISdl)this).GamepadSensorEnabledRaw(gamepad, type); + MaybeBool ISdl.GamepadSensorEnabled(GamepadHandle gamepad, SensorType type) => + (MaybeBool)(byte)((ISdl)this).GamepadSensorEnabledRaw(gamepad, type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, SensorType type) => + public static MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, SensorType type) => DllImport.GamepadSensorEnabled(gamepad, type); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => + byte ISdl.GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => ( - (delegate* unmanaged)( - _slots[129] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[128] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[129] = nativeContext.LoadFunction("SDL_GamepadSensorEnabled", "SDL3") + : _slots[128] = nativeContext.LoadFunction("SDL_GamepadSensorEnabled", "SDL3") ) )(gamepad, type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => + public static byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => DllImport.GamepadSensorEnabledRaw(gamepad, type); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetAppMetadataProperty([NativeTypeName("const char *")] sbyte* name) => + ( + (delegate* unmanaged)( + _slots[129] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[129] = nativeContext.LoadFunction("SDL_GetAppMetadataProperty", "SDL3") + ) + )(name); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAppMetadataProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetAppMetadataProperty([NativeTypeName("const char *")] sbyte* name) => + DllImport.GetAppMetadataProperty(name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetAppMetadataProperty([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (sbyte*)((ISdl)this).GetAppMetadataProperty(__dsl_name); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAppMetadataProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetAppMetadataProperty( + [NativeTypeName("const char *")] Ref name + ) => DllImport.GetAppMetadataProperty(name); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] AssertionHandler ISdl.GetAssertionHandler(void** puserdata) => ( @@ -43823,61 +53203,159 @@ _slots[131] is not null and var loadedFnPtr public static AssertData* GetAssertionReportRaw() => DllImport.GetAssertionReportRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint* ISdl.GetAudioCaptureDevices(int* count) => + int ISdl.GetAtomicInt(AtomicInt* a) => ( - (delegate* unmanaged)( + (delegate* unmanaged)( _slots[132] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[132] = nativeContext.LoadFunction("SDL_GetAudioCaptureDevices", "SDL3") + : _slots[132] = nativeContext.LoadFunction("SDL_GetAtomicInt", "SDL3") ) - )(count); + )(a); - [return: NativeTypeName("SDL_AudioDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicInt")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetAtomicInt(AtomicInt* a) => DllImport.GetAtomicInt(a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetAtomicInt(Ref a) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)((ISdl)this).GetAtomicInt(__dsl_a); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicInt")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetAtomicInt(Ref a) => DllImport.GetAtomicInt(a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.GetAtomicPointer(void** a) => + ( + (delegate* unmanaged)( + _slots[133] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[133] = nativeContext.LoadFunction("SDL_GetAtomicPointer", "SDL3") + ) + )(a); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicPointer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* GetAtomicPointer(void** a) => DllImport.GetAtomicPointer(a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetAtomicPointer(Ref2D a) + { + fixed (void** __dsl_a = a) + { + return (void*)((ISdl)this).GetAtomicPointer(__dsl_a); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicPointer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetAtomicPointer(Ref2D a) => DllImport.GetAtomicPointer(a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetAtomicU32(AtomicU32* a) => + ( + (delegate* unmanaged)( + _slots[134] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[134] = nativeContext.LoadFunction("SDL_GetAtomicU32", "SDL3") + ) + )(a); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicU32")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetAtomicU32(AtomicU32* a) => DllImport.GetAtomicU32(a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetAtomicU32(Ref a) + { + fixed (AtomicU32* __dsl_a = a) + { + return (uint)((ISdl)this).GetAtomicU32(__dsl_a); + } + } + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAtomicU32")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetAtomicU32(Ref a) => DllImport.GetAtomicU32(a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int* ISdl.GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + int* count + ) => + ( + (delegate* unmanaged)( + _slots[135] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[135] = nativeContext.LoadFunction( + "SDL_GetAudioDeviceChannelMap", + "SDL3" + ) + ) + )(devid, count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceChannelMap")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint* GetAudioCaptureDevices(int* count) => - DllImport.GetAudioCaptureDevices(count); + public static int* GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + int* count + ) => DllImport.GetAudioDeviceChannelMap(devid, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetAudioCaptureDevices(Ref count) + Ptr ISdl.GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref count + ) { fixed (int* __dsl_count = count) { - return (uint*)((ISdl)this).GetAudioCaptureDevices(__dsl_count); + return (int*)((ISdl)this).GetAudioDeviceChannelMap(devid, __dsl_count); } } - [return: NativeTypeName("SDL_AudioDeviceID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceChannelMap")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetAudioCaptureDevices(Ref count) => - DllImport.GetAudioCaptureDevices(count); + public static Ptr GetAudioDeviceChannelMap( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref count + ) => DllImport.GetAudioDeviceChannelMap(devid, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetAudioDeviceFormat( + byte ISdl.GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioSpec* spec, int* sample_frames ) => ( - (delegate* unmanaged)( - _slots[133] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[136] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[133] = nativeContext.LoadFunction("SDL_GetAudioDeviceFormat", "SDL3") + : _slots[136] = nativeContext.LoadFunction("SDL_GetAudioDeviceFormat", "SDL3") ) )(devid, spec, sample_frames); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetAudioDeviceFormat( + public static byte GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, AudioSpec* spec, int* sample_frames ) => DllImport.GetAudioDeviceFormat(devid, spec, sample_frames); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetAudioDeviceFormat( + MaybeBool ISdl.GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, Ref spec, Ref sample_frames @@ -43886,24 +53364,41 @@ Ref sample_frames fixed (int* __dsl_sample_frames = sample_frames) fixed (AudioSpec* __dsl_spec = spec) { - return (int)((ISdl)this).GetAudioDeviceFormat(devid, __dsl_spec, __dsl_sample_frames); + return (MaybeBool) + (byte)((ISdl)this).GetAudioDeviceFormat(devid, __dsl_spec, __dsl_sample_frames); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetAudioDeviceFormat( + public static MaybeBool GetAudioDeviceFormat( [NativeTypeName("SDL_AudioDeviceID")] uint devid, Ref spec, Ref sample_frames ) => DllImport.GetAudioDeviceFormat(devid, spec, sample_frames); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetAudioDeviceGain([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + ( + (delegate* unmanaged)( + _slots[137] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[137] = nativeContext.LoadFunction("SDL_GetAudioDeviceGain", "SDL3") + ) + )(devid); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceGain")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetAudioDeviceGain([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + DllImport.GetAudioDeviceGain(devid); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID")] uint devid) => (sbyte*)((ISdl)this).GetAudioDeviceNameRaw(devid); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -43914,13 +53409,13 @@ public static Ptr GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID") sbyte* ISdl.GetAudioDeviceNameRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => ( (delegate* unmanaged)( - _slots[134] is not null and var loadedFnPtr + _slots[138] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[134] = nativeContext.LoadFunction("SDL_GetAudioDeviceName", "SDL3") + : _slots[138] = nativeContext.LoadFunction("SDL_GetAudioDeviceName", "SDL3") ) )(devid); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static sbyte* GetAudioDeviceNameRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => @@ -43939,9 +53434,9 @@ _slots[134] is not null and var loadedFnPtr sbyte* ISdl.GetAudioDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[135] is not null and var loadedFnPtr + _slots[139] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[135] = nativeContext.LoadFunction("SDL_GetAudioDriver", "SDL3") + : _slots[139] = nativeContext.LoadFunction("SDL_GetAudioDriver", "SDL3") ) )(index); @@ -43951,43 +53446,109 @@ _slots[135] is not null and var loadedFnPtr public static sbyte* GetAudioDriverRaw(int index) => DllImport.GetAudioDriverRaw(index); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint* ISdl.GetAudioOutputDevices(int* count) => + Ptr ISdl.GetAudioFormatName(AudioFormat format) => + (sbyte*)((ISdl)this).GetAudioFormatNameRaw(format); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioFormatName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetAudioFormatName(AudioFormat format) => + DllImport.GetAudioFormatName(format); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetAudioFormatNameRaw(AudioFormat format) => + ( + (delegate* unmanaged)( + _slots[140] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[140] = nativeContext.LoadFunction("SDL_GetAudioFormatName", "SDL3") + ) + )(format); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioFormatName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetAudioFormatNameRaw(AudioFormat format) => + DllImport.GetAudioFormatNameRaw(format); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint* ISdl.GetAudioPlaybackDevices(int* count) => ( (delegate* unmanaged)( - _slots[136] is not null and var loadedFnPtr + _slots[141] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[136] = nativeContext.LoadFunction("SDL_GetAudioOutputDevices", "SDL3") + : _slots[141] = nativeContext.LoadFunction( + "SDL_GetAudioPlaybackDevices", + "SDL3" + ) ) )(count); [return: NativeTypeName("SDL_AudioDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioPlaybackDevices")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint* GetAudioOutputDevices(int* count) => DllImport.GetAudioOutputDevices(count); + public static uint* GetAudioPlaybackDevices(int* count) => + DllImport.GetAudioPlaybackDevices(count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetAudioOutputDevices(Ref count) + Ptr ISdl.GetAudioPlaybackDevices(Ref count) { fixed (int* __dsl_count = count) { - return (uint*)((ISdl)this).GetAudioOutputDevices(__dsl_count); + return (uint*)((ISdl)this).GetAudioPlaybackDevices(__dsl_count); } } [return: NativeTypeName("SDL_AudioDeviceID *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioPlaybackDevices")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetAudioOutputDevices(Ref count) => - DllImport.GetAudioOutputDevices(count); + public static Ptr GetAudioPlaybackDevices(Ref count) => + DllImport.GetAudioPlaybackDevices(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint* ISdl.GetAudioRecordingDevices(int* count) => + ( + (delegate* unmanaged)( + _slots[142] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[142] = nativeContext.LoadFunction( + "SDL_GetAudioRecordingDevices", + "SDL3" + ) + ) + )(count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioRecordingDevices")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint* GetAudioRecordingDevices(int* count) => + DllImport.GetAudioRecordingDevices(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetAudioRecordingDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)((ISdl)this).GetAudioRecordingDevices(__dsl_count); + } + } + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioRecordingDevices")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetAudioRecordingDevices(Ref count) => + DllImport.GetAudioRecordingDevices(count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetAudioStreamAvailable(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[137] is not null and var loadedFnPtr + _slots[143] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[137] = nativeContext.LoadFunction( + : _slots[143] = nativeContext.LoadFunction( "SDL_GetAudioStreamAvailable", "SDL3" ) @@ -44003,9 +53564,9 @@ public static int GetAudioStreamAvailable(AudioStreamHandle stream) => int ISdl.GetAudioStreamData(AudioStreamHandle stream, void* buf, int len) => ( (delegate* unmanaged)( - _slots[138] is not null and var loadedFnPtr + _slots[144] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[138] = nativeContext.LoadFunction("SDL_GetAudioStreamData", "SDL3") + : _slots[144] = nativeContext.LoadFunction("SDL_GetAudioStreamData", "SDL3") ) )(stream, buf, len); @@ -44033,9 +53594,9 @@ public static int GetAudioStreamData(AudioStreamHandle stream, Ref buf, int len) uint ISdl.GetAudioStreamDevice(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[139] is not null and var loadedFnPtr + _slots[145] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[139] = nativeContext.LoadFunction("SDL_GetAudioStreamDevice", "SDL3") + : _slots[145] = nativeContext.LoadFunction("SDL_GetAudioStreamDevice", "SDL3") ) )(stream); @@ -44046,29 +53607,30 @@ public static uint GetAudioStreamDevice(AudioStreamHandle stream) => DllImport.GetAudioStreamDevice(stream); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetAudioStreamFormat( + byte ISdl.GetAudioStreamFormat( AudioStreamHandle stream, AudioSpec* src_spec, AudioSpec* dst_spec ) => ( - (delegate* unmanaged)( - _slots[140] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[146] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[140] = nativeContext.LoadFunction("SDL_GetAudioStreamFormat", "SDL3") + : _slots[146] = nativeContext.LoadFunction("SDL_GetAudioStreamFormat", "SDL3") ) )(stream, src_spec, dst_spec); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetAudioStreamFormat( + public static byte GetAudioStreamFormat( AudioStreamHandle stream, AudioSpec* src_spec, AudioSpec* dst_spec ) => DllImport.GetAudioStreamFormat(stream, src_spec, dst_spec); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetAudioStreamFormat( + MaybeBool ISdl.GetAudioStreamFormat( AudioStreamHandle stream, Ref src_spec, Ref dst_spec @@ -44077,14 +53639,16 @@ Ref dst_spec fixed (AudioSpec* __dsl_dst_spec = dst_spec) fixed (AudioSpec* __dsl_src_spec = src_spec) { - return (int)((ISdl)this).GetAudioStreamFormat(stream, __dsl_src_spec, __dsl_dst_spec); + return (MaybeBool) + (byte)((ISdl)this).GetAudioStreamFormat(stream, __dsl_src_spec, __dsl_dst_spec); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetAudioStreamFormat( + public static MaybeBool GetAudioStreamFormat( AudioStreamHandle stream, Ref src_spec, Ref dst_spec @@ -44094,9 +53658,9 @@ Ref dst_spec float ISdl.GetAudioStreamFrequencyRatio(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[141] is not null and var loadedFnPtr + _slots[147] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[141] = nativeContext.LoadFunction( + : _slots[147] = nativeContext.LoadFunction( "SDL_GetAudioStreamFrequencyRatio", "SDL3" ) @@ -44108,13 +53672,98 @@ _slots[141] is not null and var loadedFnPtr public static float GetAudioStreamFrequencyRatio(AudioStreamHandle stream) => DllImport.GetAudioStreamFrequencyRatio(stream); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetAudioStreamGain(AudioStreamHandle stream) => + ( + (delegate* unmanaged)( + _slots[148] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[148] = nativeContext.LoadFunction("SDL_GetAudioStreamGain", "SDL3") + ) + )(stream); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamGain")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetAudioStreamGain(AudioStreamHandle stream) => + DllImport.GetAudioStreamGain(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int* ISdl.GetAudioStreamInputChannelMap(AudioStreamHandle stream, int* count) => + ( + (delegate* unmanaged)( + _slots[149] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[149] = nativeContext.LoadFunction( + "SDL_GetAudioStreamInputChannelMap", + "SDL3" + ) + ) + )(stream, count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamInputChannelMap")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int* GetAudioStreamInputChannelMap(AudioStreamHandle stream, int* count) => + DllImport.GetAudioStreamInputChannelMap(stream, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetAudioStreamInputChannelMap(AudioStreamHandle stream, Ref count) + { + fixed (int* __dsl_count = count) + { + return (int*)((ISdl)this).GetAudioStreamInputChannelMap(stream, __dsl_count); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamInputChannelMap")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetAudioStreamInputChannelMap( + AudioStreamHandle stream, + Ref count + ) => DllImport.GetAudioStreamInputChannelMap(stream, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int* ISdl.GetAudioStreamOutputChannelMap(AudioStreamHandle stream, int* count) => + ( + (delegate* unmanaged)( + _slots[150] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[150] = nativeContext.LoadFunction( + "SDL_GetAudioStreamOutputChannelMap", + "SDL3" + ) + ) + )(stream, count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamOutputChannelMap")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int* GetAudioStreamOutputChannelMap(AudioStreamHandle stream, int* count) => + DllImport.GetAudioStreamOutputChannelMap(stream, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetAudioStreamOutputChannelMap(AudioStreamHandle stream, Ref count) + { + fixed (int* __dsl_count = count) + { + return (int*)((ISdl)this).GetAudioStreamOutputChannelMap(stream, __dsl_count); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamOutputChannelMap")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + Ref count + ) => DllImport.GetAudioStreamOutputChannelMap(stream, count); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetAudioStreamProperties(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[142] is not null and var loadedFnPtr + _slots[151] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[142] = nativeContext.LoadFunction( + : _slots[151] = nativeContext.LoadFunction( "SDL_GetAudioStreamProperties", "SDL3" ) @@ -44131,9 +53780,9 @@ public static uint GetAudioStreamProperties(AudioStreamHandle stream) => int ISdl.GetAudioStreamQueued(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[143] is not null and var loadedFnPtr + _slots[152] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[143] = nativeContext.LoadFunction("SDL_GetAudioStreamQueued", "SDL3") + : _slots[152] = nativeContext.LoadFunction("SDL_GetAudioStreamQueued", "SDL3") ) )(stream); @@ -44145,7 +53794,7 @@ public static int GetAudioStreamQueued(AudioStreamHandle stream) => [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetBasePath() => (sbyte*)((ISdl)this).GetBasePathRaw(); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -44155,187 +53804,64 @@ public static int GetAudioStreamQueued(AudioStreamHandle stream) => sbyte* ISdl.GetBasePathRaw() => ( (delegate* unmanaged)( - _slots[144] is not null and var loadedFnPtr + _slots[153] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[144] = nativeContext.LoadFunction("SDL_GetBasePath", "SDL3") + : _slots[153] = nativeContext.LoadFunction("SDL_GetBasePath", "SDL3") ) )(); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static sbyte* GetBasePathRaw() => DllImport.GetBasePathRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetBooleanProperty( + byte ISdl.GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ) => ( - (delegate* unmanaged)( - _slots[145] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[154] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[145] = nativeContext.LoadFunction("SDL_GetBooleanProperty", "SDL3") + : _slots[154] = nativeContext.LoadFunction("SDL_GetBooleanProperty", "SDL3") ) )(props, name, default_value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetBooleanProperty( + public static byte GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ) => DllImport.GetBooleanProperty(props, name, default_value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetBooleanProperty( + MaybeBool ISdl.GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value + [NativeTypeName("bool")] MaybeBool default_value ) { fixed (sbyte* __dsl_name = name) { - return (MaybeBool) - (int)((ISdl)this).GetBooleanProperty(props, __dsl_name, (int)default_value); + return (MaybeBool) + (byte)((ISdl)this).GetBooleanProperty(props, __dsl_name, (byte)default_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetBooleanProperty( + public static MaybeBool GetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value + [NativeTypeName("bool")] MaybeBool default_value ) => DllImport.GetBooleanProperty(props, name, default_value); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetCameraDeviceName([NativeTypeName("SDL_CameraDeviceID")] uint instance_id) => - (sbyte*)((ISdl)this).GetCameraDeviceNameRaw(instance_id); - - [return: NativeTypeName("char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetCameraDeviceName( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ) => DllImport.GetCameraDeviceName(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetCameraDeviceNameRaw([NativeTypeName("SDL_CameraDeviceID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[146] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[146] = nativeContext.LoadFunction("SDL_GetCameraDeviceName", "SDL3") - ) - )(instance_id); - - [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetCameraDeviceNameRaw( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ) => DllImport.GetCameraDeviceNameRaw(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - CameraPosition ISdl.GetCameraDevicePosition( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ) => - ( - (delegate* unmanaged)( - _slots[147] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[147] = nativeContext.LoadFunction( - "SDL_GetCameraDevicePosition", - "SDL3" - ) - ) - )(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevicePosition")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static CameraPosition GetCameraDevicePosition( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id - ) => DllImport.GetCameraDevicePosition(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint* ISdl.GetCameraDevices(int* count) => - ( - (delegate* unmanaged)( - _slots[148] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[148] = nativeContext.LoadFunction("SDL_GetCameraDevices", "SDL3") - ) - )(count); - - [return: NativeTypeName("SDL_CameraDeviceID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint* GetCameraDevices(int* count) => DllImport.GetCameraDevices(count); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetCameraDevices(Ref count) - { - fixed (int* __dsl_count = count) - { - return (uint*)((ISdl)this).GetCameraDevices(__dsl_count); - } - } - - [return: NativeTypeName("SDL_CameraDeviceID *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetCameraDevices(Ref count) => DllImport.GetCameraDevices(count); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - CameraSpec* ISdl.GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - int* count - ) => - ( - (delegate* unmanaged)( - _slots[149] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[149] = nativeContext.LoadFunction( - "SDL_GetCameraDeviceSupportedFormats", - "SDL3" - ) - ) - )(devid, count); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static CameraSpec* GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - int* count - ) => DllImport.GetCameraDeviceSupportedFormats(devid, count); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - Ref count - ) - { - fixed (int* __dsl_count = count) - { - return (CameraSpec*)((ISdl)this).GetCameraDeviceSupportedFormats(devid, __dsl_count); - } - } - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetCameraDeviceSupportedFormats( - [NativeTypeName("SDL_CameraDeviceID")] uint devid, - Ref count - ) => DllImport.GetCameraDeviceSupportedFormats(devid, count); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetCameraDriver(int index) => (sbyte*)((ISdl)this).GetCameraDriverRaw(index); @@ -44349,9 +53875,9 @@ Ref count sbyte* ISdl.GetCameraDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[150] is not null and var loadedFnPtr + _slots[155] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[150] = nativeContext.LoadFunction("SDL_GetCameraDriver", "SDL3") + : _slots[155] = nativeContext.LoadFunction("SDL_GetCameraDriver", "SDL3") ) )(index); @@ -44361,58 +53887,86 @@ _slots[150] is not null and var loadedFnPtr public static sbyte* GetCameraDriverRaw(int index) => DllImport.GetCameraDriverRaw(index); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetCameraFormat(CameraHandle camera, CameraSpec* spec) => + byte ISdl.GetCameraFormat(CameraHandle camera, CameraSpec* spec) => ( - (delegate* unmanaged)( - _slots[151] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[156] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[151] = nativeContext.LoadFunction("SDL_GetCameraFormat", "SDL3") + : _slots[156] = nativeContext.LoadFunction("SDL_GetCameraFormat", "SDL3") ) )(camera, spec); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetCameraFormat(CameraHandle camera, CameraSpec* spec) => + public static byte GetCameraFormat(CameraHandle camera, CameraSpec* spec) => DllImport.GetCameraFormat(camera, spec); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetCameraFormat(CameraHandle camera, Ref spec) + MaybeBool ISdl.GetCameraFormat(CameraHandle camera, Ref spec) { fixed (CameraSpec* __dsl_spec = spec) { - return (int)((ISdl)this).GetCameraFormat(camera, __dsl_spec); + return (MaybeBool)(byte)((ISdl)this).GetCameraFormat(camera, __dsl_spec); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetCameraFormat(CameraHandle camera, Ref spec) => + public static MaybeBool GetCameraFormat(CameraHandle camera, Ref spec) => DllImport.GetCameraFormat(camera, spec); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetCameraInstanceID(CameraHandle camera) => + uint ISdl.GetCameraID(CameraHandle camera) => ( (delegate* unmanaged)( - _slots[152] is not null and var loadedFnPtr + _slots[157] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[152] = nativeContext.LoadFunction("SDL_GetCameraInstanceID", "SDL3") + : _slots[157] = nativeContext.LoadFunction("SDL_GetCameraID", "SDL3") ) )(camera); - [return: NativeTypeName("SDL_CameraDeviceID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraInstanceID")] + [return: NativeTypeName("SDL_CameraID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetCameraInstanceID(CameraHandle camera) => - DllImport.GetCameraInstanceID(camera); + public static uint GetCameraID(CameraHandle camera) => DllImport.GetCameraID(camera); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetCameraName([NativeTypeName("SDL_CameraID")] uint instance_id) => + (sbyte*)((ISdl)this).GetCameraNameRaw(instance_id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetCameraName([NativeTypeName("SDL_CameraID")] uint instance_id) => + DllImport.GetCameraName(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetCameraNameRaw([NativeTypeName("SDL_CameraID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[158] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[158] = nativeContext.LoadFunction("SDL_GetCameraName", "SDL3") + ) + )(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetCameraNameRaw([NativeTypeName("SDL_CameraID")] uint instance_id) => + DllImport.GetCameraNameRaw(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetCameraPermissionState(CameraHandle camera) => ( (delegate* unmanaged)( - _slots[153] is not null and var loadedFnPtr + _slots[159] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[153] = nativeContext.LoadFunction( + : _slots[159] = nativeContext.LoadFunction( "SDL_GetCameraPermissionState", "SDL3" ) @@ -44424,13 +53978,29 @@ _slots[153] is not null and var loadedFnPtr public static int GetCameraPermissionState(CameraHandle camera) => DllImport.GetCameraPermissionState(camera); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + CameraPosition ISdl.GetCameraPosition([NativeTypeName("SDL_CameraID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[160] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[160] = nativeContext.LoadFunction("SDL_GetCameraPosition", "SDL3") + ) + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPosition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static CameraPosition GetCameraPosition( + [NativeTypeName("SDL_CameraID")] uint instance_id + ) => DllImport.GetCameraPosition(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetCameraProperties(CameraHandle camera) => ( (delegate* unmanaged)( - _slots[154] is not null and var loadedFnPtr + _slots[161] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[154] = nativeContext.LoadFunction("SDL_GetCameraProperties", "SDL3") + : _slots[161] = nativeContext.LoadFunction("SDL_GetCameraProperties", "SDL3") ) )(camera); @@ -44440,6 +54010,79 @@ _slots[154] is not null and var loadedFnPtr public static uint GetCameraProperties(CameraHandle camera) => DllImport.GetCameraProperties(camera); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint* ISdl.GetCameras(int* count) => + ( + (delegate* unmanaged)( + _slots[162] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[162] = nativeContext.LoadFunction("SDL_GetCameras", "SDL3") + ) + )(count); + + [return: NativeTypeName("SDL_CameraID *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameras")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint* GetCameras(int* count) => DllImport.GetCameras(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetCameras(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)((ISdl)this).GetCameras(__dsl_count); + } + } + + [return: NativeTypeName("SDL_CameraID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameras")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetCameras(Ref count) => DllImport.GetCameras(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + CameraSpec** ISdl.GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + int* count + ) => + ( + (delegate* unmanaged)( + _slots[163] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[163] = nativeContext.LoadFunction( + "SDL_GetCameraSupportedFormats", + "SDL3" + ) + ) + )(devid, count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static CameraSpec** GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + int* count + ) => DllImport.GetCameraSupportedFormats(devid, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr2D ISdl.GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + Ref count + ) + { + fixed (int* __dsl_count = count) + { + return (CameraSpec**)((ISdl)this).GetCameraSupportedFormats(devid, __dsl_count); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraSupportedFormats")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr2D GetCameraSupportedFormats( + [NativeTypeName("SDL_CameraID")] uint devid, + Ref count + ) => DllImport.GetCameraSupportedFormats(devid, count); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void* ISdl.GetClipboardData( [NativeTypeName("const char *")] sbyte* mime_type, @@ -44447,9 +54090,9 @@ public static uint GetCameraProperties(CameraHandle camera) => ) => ( (delegate* unmanaged)( - _slots[155] is not null and var loadedFnPtr + _slots[164] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[155] = nativeContext.LoadFunction("SDL_GetClipboardData", "SDL3") + : _slots[164] = nativeContext.LoadFunction("SDL_GetClipboardData", "SDL3") ) )(mime_type, size); @@ -44481,6 +54124,40 @@ public static Ptr GetClipboardData( [NativeTypeName("size_t *")] Ref size ) => DllImport.GetClipboardData(mime_type, size); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte** ISdl.GetClipboardMimeTypes([NativeTypeName("size_t *")] nuint* num_mime_types) => + ( + (delegate* unmanaged)( + _slots[165] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[165] = nativeContext.LoadFunction("SDL_GetClipboardMimeTypes", "SDL3") + ) + )(num_mime_types); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardMimeTypes")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte** GetClipboardMimeTypes( + [NativeTypeName("size_t *")] nuint* num_mime_types + ) => DllImport.GetClipboardMimeTypes(num_mime_types); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr2D ISdl.GetClipboardMimeTypes([NativeTypeName("size_t *")] Ref num_mime_types) + { + fixed (nuint* __dsl_num_mime_types = num_mime_types) + { + return (sbyte**)((ISdl)this).GetClipboardMimeTypes(__dsl_num_mime_types); + } + } + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardMimeTypes")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr2D GetClipboardMimeTypes( + [NativeTypeName("size_t *")] Ref num_mime_types + ) => DllImport.GetClipboardMimeTypes(num_mime_types); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetClipboardText() => (sbyte*)((ISdl)this).GetClipboardTextRaw(); @@ -44494,9 +54171,9 @@ public static Ptr GetClipboardData( sbyte* ISdl.GetClipboardTextRaw() => ( (delegate* unmanaged)( - _slots[156] is not null and var loadedFnPtr + _slots[166] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[156] = nativeContext.LoadFunction("SDL_GetClipboardText", "SDL3") + : _slots[166] = nativeContext.LoadFunction("SDL_GetClipboardText", "SDL3") ) )(); @@ -44506,85 +54183,98 @@ _slots[156] is not null and var loadedFnPtr public static sbyte* GetClipboardTextRaw() => DllImport.GetClipboardTextRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - DisplayMode* ISdl.GetClosestFullscreenDisplayMode( + byte ISdl.GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] int include_high_density_modes + [NativeTypeName("bool")] byte include_high_density_modes, + DisplayMode* mode ) => ( - (delegate* unmanaged)( - _slots[157] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[167] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[157] = nativeContext.LoadFunction( + : _slots[167] = nativeContext.LoadFunction( "SDL_GetClosestFullscreenDisplayMode", "SDL3" ) ) - )(displayID, w, h, refresh_rate, include_high_density_modes); + )(displayID, w, h, refresh_rate, include_high_density_modes, mode); - [return: NativeTypeName("const SDL_DisplayMode *")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static DisplayMode* GetClosestFullscreenDisplayMode( + public static byte GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] int include_high_density_modes + [NativeTypeName("bool")] byte include_high_density_modes, + DisplayMode* mode ) => DllImport.GetClosestFullscreenDisplayMode( displayID, w, h, refresh_rate, - include_high_density_modes + include_high_density_modes, + mode ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetClosestFullscreenDisplayMode( + MaybeBool ISdl.GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] MaybeBool include_high_density_modes - ) => - (DisplayMode*) - ((ISdl)this).GetClosestFullscreenDisplayMode( - displayID, - w, - h, - refresh_rate, - (int)include_high_density_modes - ); + [NativeTypeName("bool")] MaybeBool include_high_density_modes, + Ref mode + ) + { + fixed (DisplayMode* __dsl_mode = mode) + { + return (MaybeBool) + (byte) + ((ISdl)this).GetClosestFullscreenDisplayMode( + displayID, + w, + h, + refresh_rate, + (byte)include_high_density_modes, + __dsl_mode + ); + } + } - [return: NativeTypeName("const SDL_DisplayMode *")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetClosestFullscreenDisplayMode( + public static MaybeBool GetClosestFullscreenDisplayMode( [NativeTypeName("SDL_DisplayID")] uint displayID, int w, int h, float refresh_rate, - [NativeTypeName("SDL_bool")] MaybeBool include_high_density_modes + [NativeTypeName("bool")] MaybeBool include_high_density_modes, + Ref mode ) => DllImport.GetClosestFullscreenDisplayMode( displayID, w, h, refresh_rate, - include_high_density_modes + include_high_density_modes, + mode ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetCPUCacheLineSize() => ( (delegate* unmanaged)( - _slots[158] is not null and var loadedFnPtr + _slots[168] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[158] = nativeContext.LoadFunction("SDL_GetCPUCacheLineSize", "SDL3") + : _slots[168] = nativeContext.LoadFunction("SDL_GetCPUCacheLineSize", "SDL3") ) )(); @@ -44592,20 +54282,6 @@ _slots[158] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static int GetCPUCacheLineSize() => DllImport.GetCPUCacheLineSize(); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetCPUCount() => - ( - (delegate* unmanaged)( - _slots[159] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[159] = nativeContext.LoadFunction("SDL_GetCPUCount", "SDL3") - ) - )(); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetCPUCount")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetCPUCount() => DllImport.GetCPUCount(); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetCurrentAudioDriver() => (sbyte*)((ISdl)this).GetCurrentAudioDriverRaw(); @@ -44619,9 +54295,9 @@ _slots[159] is not null and var loadedFnPtr sbyte* ISdl.GetCurrentAudioDriverRaw() => ( (delegate* unmanaged)( - _slots[160] is not null and var loadedFnPtr + _slots[169] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[160] = nativeContext.LoadFunction("SDL_GetCurrentAudioDriver", "SDL3") + : _slots[169] = nativeContext.LoadFunction("SDL_GetCurrentAudioDriver", "SDL3") ) )(); @@ -44643,9 +54319,9 @@ _slots[160] is not null and var loadedFnPtr sbyte* ISdl.GetCurrentCameraDriverRaw() => ( (delegate* unmanaged)( - _slots[161] is not null and var loadedFnPtr + _slots[170] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[161] = nativeContext.LoadFunction("SDL_GetCurrentCameraDriver", "SDL3") + : _slots[170] = nativeContext.LoadFunction("SDL_GetCurrentCameraDriver", "SDL3") ) )(); @@ -44670,9 +54346,9 @@ public static Ptr GetCurrentDisplayMode( DisplayMode* ISdl.GetCurrentDisplayModeRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => ( (delegate* unmanaged)( - _slots[162] is not null and var loadedFnPtr + _slots[171] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[162] = nativeContext.LoadFunction("SDL_GetCurrentDisplayMode", "SDL3") + : _slots[171] = nativeContext.LoadFunction("SDL_GetCurrentDisplayMode", "SDL3") ) )(displayID); @@ -44689,9 +54365,9 @@ DisplayOrientation ISdl.GetCurrentDisplayOrientation( ) => ( (delegate* unmanaged)( - _slots[163] is not null and var loadedFnPtr + _slots[172] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[163] = nativeContext.LoadFunction( + : _slots[172] = nativeContext.LoadFunction( "SDL_GetCurrentDisplayOrientation", "SDL3" ) @@ -44705,46 +54381,52 @@ public static DisplayOrientation GetCurrentDisplayOrientation( ) => DllImport.GetCurrentDisplayOrientation(displayID); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h) => + byte ISdl.GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h) => ( - (delegate* unmanaged)( - _slots[164] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[173] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[164] = nativeContext.LoadFunction( + : _slots[173] = nativeContext.LoadFunction( "SDL_GetCurrentRenderOutputSize", "SDL3" ) ) )(renderer, w, h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h) => + public static byte GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h) => DllImport.GetCurrentRenderOutputSize(renderer, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetCurrentRenderOutputSize(RendererHandle renderer, Ref w, Ref h) + MaybeBool ISdl.GetCurrentRenderOutputSize(RendererHandle renderer, Ref w, Ref h) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)((ISdl)this).GetCurrentRenderOutputSize(renderer, __dsl_w, __dsl_h); + return (MaybeBool) + (byte)((ISdl)this).GetCurrentRenderOutputSize(renderer, __dsl_w, __dsl_h); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetCurrentRenderOutputSize(RendererHandle renderer, Ref w, Ref h) => - DllImport.GetCurrentRenderOutputSize(renderer, w, h); + public static MaybeBool GetCurrentRenderOutputSize( + RendererHandle renderer, + Ref w, + Ref h + ) => DllImport.GetCurrentRenderOutputSize(renderer, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetCurrentThreadID() => ( (delegate* unmanaged)( - _slots[165] is not null and var loadedFnPtr + _slots[174] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[165] = nativeContext.LoadFunction("SDL_GetCurrentThreadID", "SDL3") + : _slots[174] = nativeContext.LoadFunction("SDL_GetCurrentThreadID", "SDL3") ) )(); @@ -44754,33 +54436,35 @@ _slots[165] is not null and var loadedFnPtr public static ulong GetCurrentThreadID() => DllImport.GetCurrentThreadID(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => + byte ISdl.GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => ( - (delegate* unmanaged)( - _slots[166] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[175] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[166] = nativeContext.LoadFunction("SDL_GetCurrentTime", "SDL3") + : _slots[175] = nativeContext.LoadFunction("SDL_GetCurrentTime", "SDL3") ) )(ticks); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => + public static byte GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => DllImport.GetCurrentTime(ticks); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) + MaybeBool ISdl.GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) { fixed (long* __dsl_ticks = ticks) { - return (int)((ISdl)this).GetCurrentTime(__dsl_ticks); + return (MaybeBool)(byte)((ISdl)this).GetCurrentTime(__dsl_ticks); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) => + public static MaybeBool GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) => DllImport.GetCurrentTime(ticks); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -44796,9 +54480,9 @@ public static int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) sbyte* ISdl.GetCurrentVideoDriverRaw() => ( (delegate* unmanaged)( - _slots[167] is not null and var loadedFnPtr + _slots[176] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[167] = nativeContext.LoadFunction("SDL_GetCurrentVideoDriver", "SDL3") + : _slots[176] = nativeContext.LoadFunction("SDL_GetCurrentVideoDriver", "SDL3") ) )(); @@ -44811,9 +54495,9 @@ _slots[167] is not null and var loadedFnPtr CursorHandle ISdl.GetCursor() => ( (delegate* unmanaged)( - _slots[168] is not null and var loadedFnPtr + _slots[177] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[168] = nativeContext.LoadFunction("SDL_GetCursor", "SDL3") + : _slots[177] = nativeContext.LoadFunction("SDL_GetCursor", "SDL3") ) )(); @@ -44821,13 +54505,57 @@ _slots[168] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static CursorHandle GetCursor() => DllImport.GetCursor(); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetDateTimeLocalePreferences(DateFormat* dateFormat, TimeFormat* timeFormat) => + ( + (delegate* unmanaged)( + _slots[178] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[178] = nativeContext.LoadFunction( + "SDL_GetDateTimeLocalePreferences", + "SDL3" + ) + ) + )(dateFormat, timeFormat); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDateTimeLocalePreferences")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetDateTimeLocalePreferences( + DateFormat* dateFormat, + TimeFormat* timeFormat + ) => DllImport.GetDateTimeLocalePreferences(dateFormat, timeFormat); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetDateTimeLocalePreferences( + Ref dateFormat, + Ref timeFormat + ) + { + fixed (TimeFormat* __dsl_timeFormat = timeFormat) + fixed (DateFormat* __dsl_dateFormat = dateFormat) + { + return (MaybeBool) + (byte)((ISdl)this).GetDateTimeLocalePreferences(__dsl_dateFormat, __dsl_timeFormat); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDateTimeLocalePreferences")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetDateTimeLocalePreferences( + Ref dateFormat, + Ref timeFormat + ) => DllImport.GetDateTimeLocalePreferences(dateFormat, timeFormat); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetDayOfWeek(int year, int month, int day) => ( (delegate* unmanaged)( - _slots[169] is not null and var loadedFnPtr + _slots[179] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[169] = nativeContext.LoadFunction("SDL_GetDayOfWeek", "SDL3") + : _slots[179] = nativeContext.LoadFunction("SDL_GetDayOfWeek", "SDL3") ) )(year, month, day); @@ -44840,9 +54568,9 @@ public static int GetDayOfWeek(int year, int month, int day) => int ISdl.GetDayOfYear(int year, int month, int day) => ( (delegate* unmanaged)( - _slots[170] is not null and var loadedFnPtr + _slots[180] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[170] = nativeContext.LoadFunction("SDL_GetDayOfYear", "SDL3") + : _slots[180] = nativeContext.LoadFunction("SDL_GetDayOfYear", "SDL3") ) )(year, month, day); @@ -44855,9 +54583,9 @@ public static int GetDayOfYear(int year, int month, int day) => int ISdl.GetDaysInMonth(int year, int month) => ( (delegate* unmanaged)( - _slots[171] is not null and var loadedFnPtr + _slots[181] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[171] = nativeContext.LoadFunction("SDL_GetDaysInMonth", "SDL3") + : _slots[181] = nativeContext.LoadFunction("SDL_GetDaysInMonth", "SDL3") ) )(year, month); @@ -44869,9 +54597,9 @@ _slots[171] is not null and var loadedFnPtr AssertionHandler ISdl.GetDefaultAssertionHandler() => ( (delegate* unmanaged)( - _slots[172] is not null and var loadedFnPtr + _slots[182] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[172] = nativeContext.LoadFunction( + : _slots[182] = nativeContext.LoadFunction( "SDL_GetDefaultAssertionHandler", "SDL3" ) @@ -44888,9 +54616,9 @@ public static AssertionHandler GetDefaultAssertionHandler() => CursorHandle ISdl.GetDefaultCursor() => ( (delegate* unmanaged)( - _slots[173] is not null and var loadedFnPtr + _slots[183] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[173] = nativeContext.LoadFunction("SDL_GetDefaultCursor", "SDL3") + : _slots[183] = nativeContext.LoadFunction("SDL_GetDefaultCursor", "SDL3") ) )(); @@ -44898,6 +54626,25 @@ _slots[173] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static CursorHandle GetDefaultCursor() => DllImport.GetDefaultCursor(); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + LogOutputFunction ISdl.GetDefaultLogOutputFunction() => + ( + (delegate* unmanaged)( + _slots[184] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[184] = nativeContext.LoadFunction( + "SDL_GetDefaultLogOutputFunction", + "SDL3" + ) + ) + )(); + + [return: NativeTypeName("SDL_LogOutputFunction")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultLogOutputFunction")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static LogOutputFunction GetDefaultLogOutputFunction() => + DllImport.GetDefaultLogOutputFunction(); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetDesktopDisplayMode([NativeTypeName("SDL_DisplayID")] uint displayID) => (DisplayMode*)((ISdl)this).GetDesktopDisplayModeRaw(displayID); @@ -44914,9 +54661,9 @@ public static Ptr GetDesktopDisplayMode( DisplayMode* ISdl.GetDesktopDisplayModeRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => ( (delegate* unmanaged)( - _slots[174] is not null and var loadedFnPtr + _slots[185] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[174] = nativeContext.LoadFunction("SDL_GetDesktopDisplayMode", "SDL3") + : _slots[185] = nativeContext.LoadFunction("SDL_GetDesktopDisplayMode", "SDL3") ) )(displayID); @@ -44928,35 +54675,40 @@ _slots[174] is not null and var loadedFnPtr ) => DllImport.GetDesktopDisplayModeRaw(displayID); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect) => + byte ISdl.GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect) => ( - (delegate* unmanaged)( - _slots[175] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[186] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[175] = nativeContext.LoadFunction("SDL_GetDisplayBounds", "SDL3") + : _slots[186] = nativeContext.LoadFunction("SDL_GetDisplayBounds", "SDL3") ) )(displayID, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetDisplayBounds( + public static byte GetDisplayBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect ) => DllImport.GetDisplayBounds(displayID, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect) + MaybeBool ISdl.GetDisplayBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ) { fixed (Rect* __dsl_rect = rect) { - return (int)((ISdl)this).GetDisplayBounds(displayID, __dsl_rect); + return (MaybeBool)(byte)((ISdl)this).GetDisplayBounds(displayID, __dsl_rect); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetDisplayBounds( + public static MaybeBool GetDisplayBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect ) => DllImport.GetDisplayBounds(displayID, rect); @@ -44965,9 +54717,9 @@ Ref rect float ISdl.GetDisplayContentScale([NativeTypeName("SDL_DisplayID")] uint displayID) => ( (delegate* unmanaged)( - _slots[176] is not null and var loadedFnPtr + _slots[187] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[176] = nativeContext.LoadFunction("SDL_GetDisplayContentScale", "SDL3") + : _slots[187] = nativeContext.LoadFunction("SDL_GetDisplayContentScale", "SDL3") ) )(displayID); @@ -44980,9 +54732,9 @@ public static float GetDisplayContentScale([NativeTypeName("SDL_DisplayID")] uin uint ISdl.GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Point* point) => ( (delegate* unmanaged)( - _slots[177] is not null and var loadedFnPtr + _slots[188] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[177] = nativeContext.LoadFunction("SDL_GetDisplayForPoint", "SDL3") + : _slots[188] = nativeContext.LoadFunction("SDL_GetDisplayForPoint", "SDL3") ) )(point); @@ -45012,9 +54764,9 @@ public static uint GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Ref< uint ISdl.GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => ( (delegate* unmanaged)( - _slots[178] is not null and var loadedFnPtr + _slots[189] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[178] = nativeContext.LoadFunction("SDL_GetDisplayForRect", "SDL3") + : _slots[189] = nativeContext.LoadFunction("SDL_GetDisplayForRect", "SDL3") ) )(rect); @@ -45044,9 +54796,9 @@ public static uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Ref ( (delegate* unmanaged)( - _slots[179] is not null and var loadedFnPtr + _slots[190] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[179] = nativeContext.LoadFunction("SDL_GetDisplayForWindow", "SDL3") + : _slots[190] = nativeContext.LoadFunction("SDL_GetDisplayForWindow", "SDL3") ) )(window); @@ -45071,9 +54823,9 @@ public static Ptr GetDisplayName([NativeTypeName("SDL_DisplayID")] uint d sbyte* ISdl.GetDisplayNameRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => ( (delegate* unmanaged)( - _slots[180] is not null and var loadedFnPtr + _slots[191] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[180] = nativeContext.LoadFunction("SDL_GetDisplayName", "SDL3") + : _slots[191] = nativeContext.LoadFunction("SDL_GetDisplayName", "SDL3") ) )(displayID); @@ -45087,9 +54839,9 @@ _slots[180] is not null and var loadedFnPtr uint ISdl.GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint displayID) => ( (delegate* unmanaged)( - _slots[181] is not null and var loadedFnPtr + _slots[192] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[181] = nativeContext.LoadFunction("SDL_GetDisplayProperties", "SDL3") + : _slots[192] = nativeContext.LoadFunction("SDL_GetDisplayProperties", "SDL3") ) )(displayID); @@ -45103,9 +54855,9 @@ public static uint GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint d uint* ISdl.GetDisplays(int* count) => ( (delegate* unmanaged)( - _slots[182] is not null and var loadedFnPtr + _slots[193] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[182] = nativeContext.LoadFunction("SDL_GetDisplays", "SDL3") + : _slots[193] = nativeContext.LoadFunction("SDL_GetDisplays", "SDL3") ) )(count); @@ -45130,38 +54882,44 @@ Ptr ISdl.GetDisplays(Ref count) public static Ptr GetDisplays(Ref count) => DllImport.GetDisplays(count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetDisplayUsableBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect) => + byte ISdl.GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Rect* rect + ) => ( - (delegate* unmanaged)( - _slots[183] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[194] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[183] = nativeContext.LoadFunction("SDL_GetDisplayUsableBounds", "SDL3") + : _slots[194] = nativeContext.LoadFunction("SDL_GetDisplayUsableBounds", "SDL3") ) )(displayID, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetDisplayUsableBounds( + public static byte GetDisplayUsableBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect ) => DllImport.GetDisplayUsableBounds(displayID, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetDisplayUsableBounds( + MaybeBool ISdl.GetDisplayUsableBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)((ISdl)this).GetDisplayUsableBounds(displayID, __dsl_rect); + return (MaybeBool) + (byte)((ISdl)this).GetDisplayUsableBounds(displayID, __dsl_rect); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetDisplayUsableBounds( + public static MaybeBool GetDisplayUsableBounds( [NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect ) => DllImport.GetDisplayUsableBounds(displayID, rect); @@ -45179,9 +54937,9 @@ Ref rect sbyte* ISdl.GetErrorRaw() => ( (delegate* unmanaged)( - _slots[184] is not null and var loadedFnPtr + _slots[195] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[184] = nativeContext.LoadFunction("SDL_GetError", "SDL3") + : _slots[195] = nativeContext.LoadFunction("SDL_GetError", "SDL3") ) )(); @@ -45191,28 +54949,28 @@ _slots[184] is not null and var loadedFnPtr public static sbyte* GetErrorRaw() => DllImport.GetErrorRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetEventFilter( + byte ISdl.GetEventFilter( [NativeTypeName("SDL_EventFilter *")] EventFilter* filter, void** userdata ) => ( - (delegate* unmanaged)( - _slots[185] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[196] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[185] = nativeContext.LoadFunction("SDL_GetEventFilter", "SDL3") + : _slots[196] = nativeContext.LoadFunction("SDL_GetEventFilter", "SDL3") ) )(filter, userdata); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetEventFilter( + public static byte GetEventFilter( [NativeTypeName("SDL_EventFilter *")] EventFilter* filter, void** userdata ) => DllImport.GetEventFilter(filter, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetEventFilter( + MaybeBool ISdl.GetEventFilter( [NativeTypeName("SDL_EventFilter *")] Ref filter, Ref2D userdata ) @@ -45220,15 +54978,15 @@ Ref2D userdata fixed (void** __dsl_userdata = userdata) fixed (EventFilter* __dsl_filter = filter) { - return (MaybeBool)(int)((ISdl)this).GetEventFilter(__dsl_filter, __dsl_userdata); + return (MaybeBool)(byte)((ISdl)this).GetEventFilter(__dsl_filter, __dsl_userdata); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetEventFilter( + public static MaybeBool GetEventFilter( [NativeTypeName("SDL_EventFilter *")] Ref filter, Ref2D userdata ) => DllImport.GetEventFilter(filter, userdata); @@ -45241,9 +54999,9 @@ float default_value ) => ( (delegate* unmanaged)( - _slots[186] is not null and var loadedFnPtr + _slots[197] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[186] = nativeContext.LoadFunction("SDL_GetFloatProperty", "SDL3") + : _slots[197] = nativeContext.LoadFunction("SDL_GetFloatProperty", "SDL3") ) )(props, name, default_value); @@ -45284,16 +55042,15 @@ float default_value ) => ( (delegate* unmanaged)( - _slots[187] is not null and var loadedFnPtr + _slots[198] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[187] = nativeContext.LoadFunction( + : _slots[198] = nativeContext.LoadFunction( "SDL_GetFullscreenDisplayModes", "SDL3" ) ) )(displayID, count); - [return: NativeTypeName("const SDL_DisplayMode **")] [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static DisplayMode** GetFullscreenDisplayModes( @@ -45313,7 +55070,6 @@ Ref count } } - [return: NativeTypeName("const SDL_DisplayMode **")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -45339,9 +55095,9 @@ GamepadAxis axis sbyte* ISdl.GetGamepadAppleSFSymbolsNameForAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => ( (delegate* unmanaged)( - _slots[188] is not null and var loadedFnPtr + _slots[199] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[188] = nativeContext.LoadFunction( + : _slots[199] = nativeContext.LoadFunction( "SDL_GetGamepadAppleSFSymbolsNameForAxis", "SDL3" ) @@ -45378,9 +55134,9 @@ GamepadButton button ) => ( (delegate* unmanaged)( - _slots[189] is not null and var loadedFnPtr + _slots[200] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[189] = nativeContext.LoadFunction( + : _slots[200] = nativeContext.LoadFunction( "SDL_GetGamepadAppleSFSymbolsNameForButton", "SDL3" ) @@ -45399,9 +55155,9 @@ GamepadButton button short ISdl.GetGamepadAxis(GamepadHandle gamepad, GamepadAxis axis) => ( (delegate* unmanaged)( - _slots[190] is not null and var loadedFnPtr + _slots[201] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[190] = nativeContext.LoadFunction("SDL_GetGamepadAxis", "SDL3") + : _slots[201] = nativeContext.LoadFunction("SDL_GetGamepadAxis", "SDL3") ) )(gamepad, axis); @@ -45415,9 +55171,9 @@ public static short GetGamepadAxis(GamepadHandle gamepad, GamepadAxis axis) => GamepadAxis ISdl.GetGamepadAxisFromString([NativeTypeName("const char *")] sbyte* str) => ( (delegate* unmanaged)( - _slots[191] is not null and var loadedFnPtr + _slots[202] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[191] = nativeContext.LoadFunction( + : _slots[202] = nativeContext.LoadFunction( "SDL_GetGamepadAxisFromString", "SDL3" ) @@ -45450,9 +55206,9 @@ public static GamepadAxis GetGamepadAxisFromString( GamepadBinding** ISdl.GetGamepadBindings(GamepadHandle gamepad, int* count) => ( (delegate* unmanaged)( - _slots[192] is not null and var loadedFnPtr + _slots[203] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[192] = nativeContext.LoadFunction("SDL_GetGamepadBindings", "SDL3") + : _slots[203] = nativeContext.LoadFunction("SDL_GetGamepadBindings", "SDL3") ) )(gamepad, count); @@ -45477,28 +55233,23 @@ public static Ptr2D GetGamepadBindings(GamepadHandle gamepad, Re DllImport.GetGamepadBindings(gamepad, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - byte ISdl.GetGamepadButton(GamepadHandle gamepad, GamepadButton button) => - ( - (delegate* unmanaged)( - _slots[193] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[193] = nativeContext.LoadFunction("SDL_GetGamepadButton", "SDL3") - ) - )(gamepad, button); + MaybeBool ISdl.GetGamepadButton(GamepadHandle gamepad, GamepadButton button) => + (MaybeBool)(byte)((ISdl)this).GetGamepadButtonRaw(gamepad, button); - [return: NativeTypeName("Uint8")] + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static byte GetGamepadButton(GamepadHandle gamepad, GamepadButton button) => + public static MaybeBool GetGamepadButton(GamepadHandle gamepad, GamepadButton button) => DllImport.GetGamepadButton(gamepad, button); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadButton ISdl.GetGamepadButtonFromString([NativeTypeName("const char *")] sbyte* str) => ( (delegate* unmanaged)( - _slots[194] is not null and var loadedFnPtr + _slots[205] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[194] = nativeContext.LoadFunction( + : _slots[205] = nativeContext.LoadFunction( "SDL_GetGamepadButtonFromString", "SDL3" ) @@ -45531,9 +55282,9 @@ public static GamepadButton GetGamepadButtonFromString( GamepadButtonLabel ISdl.GetGamepadButtonLabel(GamepadHandle gamepad, GamepadButton button) => ( (delegate* unmanaged)( - _slots[195] is not null and var loadedFnPtr + _slots[206] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[195] = nativeContext.LoadFunction("SDL_GetGamepadButtonLabel", "SDL3") + : _slots[206] = nativeContext.LoadFunction("SDL_GetGamepadButtonLabel", "SDL3") ) )(gamepad, button); @@ -45548,9 +55299,9 @@ GamepadButton button GamepadButtonLabel ISdl.GetGamepadButtonLabelForType(GamepadType type, GamepadButton button) => ( (delegate* unmanaged)( - _slots[196] is not null and var loadedFnPtr + _slots[207] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[196] = nativeContext.LoadFunction( + : _slots[207] = nativeContext.LoadFunction( "SDL_GetGamepadButtonLabelForType", "SDL3" ) @@ -45564,13 +55315,29 @@ public static GamepadButtonLabel GetGamepadButtonLabelForType( GamepadButton button ) => DllImport.GetGamepadButtonLabelForType(type, button); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetGamepadButtonRaw(GamepadHandle gamepad, GamepadButton button) => + ( + (delegate* unmanaged)( + _slots[204] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[204] = nativeContext.LoadFunction("SDL_GetGamepadButton", "SDL3") + ) + )(gamepad, button); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetGamepadButtonRaw(GamepadHandle gamepad, GamepadButton button) => + DllImport.GetGamepadButtonRaw(gamepad, button); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] JoystickConnectionState ISdl.GetGamepadConnectionState(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[197] is not null and var loadedFnPtr + _slots[208] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[197] = nativeContext.LoadFunction( + : _slots[208] = nativeContext.LoadFunction( "SDL_GetGamepadConnectionState", "SDL3" ) @@ -45586,9 +55353,9 @@ public static JoystickConnectionState GetGamepadConnectionState(GamepadHandle ga ushort ISdl.GetGamepadFirmwareVersion(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[198] is not null and var loadedFnPtr + _slots[209] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[198] = nativeContext.LoadFunction( + : _slots[209] = nativeContext.LoadFunction( "SDL_GetGamepadFirmwareVersion", "SDL3" ) @@ -45602,33 +55369,28 @@ public static ushort GetGamepadFirmwareVersion(GamepadHandle gamepad) => DllImport.GetGamepadFirmwareVersion(gamepad); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - GamepadHandle ISdl.GetGamepadFromInstanceID( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => + GamepadHandle ISdl.GetGamepadFromID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[199] is not null and var loadedFnPtr + _slots[210] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[199] = nativeContext.LoadFunction( - "SDL_GetGamepadFromInstanceID", - "SDL3" - ) + : _slots[210] = nativeContext.LoadFunction("SDL_GetGamepadFromID", "SDL3") ) )(instance_id); - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static GamepadHandle GetGamepadFromInstanceID( + public static GamepadHandle GetGamepadFromID( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadFromInstanceID(instance_id); + ) => DllImport.GetGamepadFromID(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadHandle ISdl.GetGamepadFromPlayerIndex(int player_index) => ( (delegate* unmanaged)( - _slots[200] is not null and var loadedFnPtr + _slots[211] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[200] = nativeContext.LoadFunction( + : _slots[211] = nativeContext.LoadFunction( "SDL_GetGamepadFromPlayerIndex", "SDL3" ) @@ -45641,233 +55403,42 @@ public static GamepadHandle GetGamepadFromPlayerIndex(int player_index) => DllImport.GetGamepadFromPlayerIndex(player_index); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Guid ISdl.GetGamepadInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id) => + Guid ISdl.GetGamepadGuidForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[201] is not null and var loadedFnPtr + _slots[212] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[201] = nativeContext.LoadFunction("SDL_GetGamepadInstanceGUID", "SDL3") + : _slots[212] = nativeContext.LoadFunction("SDL_GetGamepadGUIDForID", "SDL3") ) )(instance_id); - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceGUID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadGUIDForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Guid GetGamepadInstanceGuid( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadInstanceGuid(instance_id); + public static Guid GetGamepadGuidForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + DllImport.GetGamepadGuidForID(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetGamepadInstanceID(GamepadHandle gamepad) => + uint ISdl.GetGamepadID(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[202] is not null and var loadedFnPtr + _slots[213] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[202] = nativeContext.LoadFunction("SDL_GetGamepadInstanceID", "SDL3") + : _slots[213] = nativeContext.LoadFunction("SDL_GetGamepadID", "SDL3") ) )(gamepad); [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetGamepadInstanceID(GamepadHandle gamepad) => - DllImport.GetGamepadInstanceID(gamepad); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetGamepadInstanceMapping( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => (sbyte*)((ISdl)this).GetGamepadInstanceMappingRaw(instance_id); - - [return: NativeTypeName("char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceMapping")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetGamepadInstanceMapping( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadInstanceMapping(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetGamepadInstanceMappingRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[203] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[203] = nativeContext.LoadFunction( - "SDL_GetGamepadInstanceMapping", - "SDL3" - ) - ) - )(instance_id); - - [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceMapping")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetGamepadInstanceMappingRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadInstanceMappingRaw(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetGamepadInstanceName([NativeTypeName("SDL_JoystickID")] uint instance_id) => - (sbyte*)((ISdl)this).GetGamepadInstanceNameRaw(instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceName")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetGamepadInstanceName( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadInstanceName(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetGamepadInstanceNameRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[204] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[204] = nativeContext.LoadFunction("SDL_GetGamepadInstanceName", "SDL3") - ) - )(instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceName")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetGamepadInstanceNameRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadInstanceNameRaw(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetGamepadInstancePath([NativeTypeName("SDL_JoystickID")] uint instance_id) => - (sbyte*)((ISdl)this).GetGamepadInstancePathRaw(instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePath")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetGamepadInstancePath( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadInstancePath(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetGamepadInstancePathRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[205] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[205] = nativeContext.LoadFunction("SDL_GetGamepadInstancePath", "SDL3") - ) - )(instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePath")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetGamepadInstancePathRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadInstancePathRaw(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetGamepadInstancePlayerIndex([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[206] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[206] = nativeContext.LoadFunction( - "SDL_GetGamepadInstancePlayerIndex", - "SDL3" - ) - ) - )(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstancePlayerIndex")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetGamepadInstancePlayerIndex( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadInstancePlayerIndex(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - ushort ISdl.GetGamepadInstanceProduct([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[207] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[207] = nativeContext.LoadFunction( - "SDL_GetGamepadInstanceProduct", - "SDL3" - ) - ) - )(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceProduct")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static ushort GetGamepadInstanceProduct( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadInstanceProduct(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - ushort ISdl.GetGamepadInstanceProductVersion( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => - ( - (delegate* unmanaged)( - _slots[208] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[208] = nativeContext.LoadFunction( - "SDL_GetGamepadInstanceProductVersion", - "SDL3" - ) - ) - )(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceProductVersion")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static ushort GetGamepadInstanceProductVersion( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadInstanceProductVersion(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - GamepadType ISdl.GetGamepadInstanceType([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[209] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[209] = nativeContext.LoadFunction("SDL_GetGamepadInstanceType", "SDL3") - ) - )(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceType")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static GamepadType GetGamepadInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadInstanceType(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - ushort ISdl.GetGamepadInstanceVendor([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[210] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[210] = nativeContext.LoadFunction( - "SDL_GetGamepadInstanceVendor", - "SDL3" - ) - ) - )(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceVendor")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static ushort GetGamepadInstanceVendor( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetGamepadInstanceVendor(instance_id); + public static uint GetGamepadID(GamepadHandle gamepad) => DllImport.GetGamepadID(gamepad); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] JoystickHandle ISdl.GetGamepadJoystick(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[211] is not null and var loadedFnPtr + _slots[214] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[211] = nativeContext.LoadFunction("SDL_GetGamepadJoystick", "SDL3") + : _slots[214] = nativeContext.LoadFunction("SDL_GetGamepadJoystick", "SDL3") ) )(gamepad); @@ -45888,24 +55459,23 @@ public static Ptr GetGamepadMapping(GamepadHandle gamepad) => DllImport.GetGamepadMapping(gamepad); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetGamepadMappingForGuid([NativeTypeName("SDL_JoystickGUID")] Guid guid) => + Ptr ISdl.GetGamepadMappingForGuid(Guid guid) => (sbyte*)((ISdl)this).GetGamepadMappingForGuidRaw(guid); [return: NativeTypeName("char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetGamepadMappingForGuid( - [NativeTypeName("SDL_JoystickGUID")] Guid guid - ) => DllImport.GetGamepadMappingForGuid(guid); + public static Ptr GetGamepadMappingForGuid(Guid guid) => + DllImport.GetGamepadMappingForGuid(guid); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetGamepadMappingForGuidRaw([NativeTypeName("SDL_JoystickGUID")] Guid guid) => + sbyte* ISdl.GetGamepadMappingForGuidRaw(Guid guid) => ( (delegate* unmanaged)( - _slots[213] is not null and var loadedFnPtr + _slots[216] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[213] = nativeContext.LoadFunction( + : _slots[216] = nativeContext.LoadFunction( "SDL_GetGamepadMappingForGUID", "SDL3" ) @@ -45915,17 +55485,45 @@ _slots[213] is not null and var loadedFnPtr [return: NativeTypeName("char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetGamepadMappingForGuidRaw( - [NativeTypeName("SDL_JoystickGUID")] Guid guid - ) => DllImport.GetGamepadMappingForGuidRaw(guid); + public static sbyte* GetGamepadMappingForGuidRaw(Guid guid) => + DllImport.GetGamepadMappingForGuidRaw(guid); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadMappingForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + (sbyte*)((ISdl)this).GetGamepadMappingForIDRaw(instance_id); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadMappingForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadMappingForID(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadMappingForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[217] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[217] = nativeContext.LoadFunction("SDL_GetGamepadMappingForID", "SDL3") + ) + )(instance_id); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetGamepadMappingForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadMappingForIDRaw(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadMappingRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[212] is not null and var loadedFnPtr + _slots[215] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[212] = nativeContext.LoadFunction("SDL_GetGamepadMapping", "SDL3") + : _slots[215] = nativeContext.LoadFunction("SDL_GetGamepadMapping", "SDL3") ) )(gamepad); @@ -45939,9 +55537,9 @@ _slots[212] is not null and var loadedFnPtr sbyte** ISdl.GetGamepadMappings(int* count) => ( (delegate* unmanaged)( - _slots[214] is not null and var loadedFnPtr + _slots[218] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[214] = nativeContext.LoadFunction("SDL_GetGamepadMappings", "SDL3") + : _slots[218] = nativeContext.LoadFunction("SDL_GetGamepadMappings", "SDL3") ) )(count); @@ -45977,13 +55575,42 @@ Ptr ISdl.GetGamepadName(GamepadHandle gamepad) => public static Ptr GetGamepadName(GamepadHandle gamepad) => DllImport.GetGamepadName(gamepad); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadNameForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + (sbyte*)((ISdl)this).GetGamepadNameForIDRaw(instance_id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadNameForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadNameForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadNameForID(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadNameForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[220] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[220] = nativeContext.LoadFunction("SDL_GetGamepadNameForID", "SDL3") + ) + )(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadNameForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetGamepadNameForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadNameForIDRaw(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadNameRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[215] is not null and var loadedFnPtr + _slots[219] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[215] = nativeContext.LoadFunction("SDL_GetGamepadName", "SDL3") + : _slots[219] = nativeContext.LoadFunction("SDL_GetGamepadName", "SDL3") ) )(gamepad); @@ -46004,13 +55631,42 @@ Ptr ISdl.GetGamepadPath(GamepadHandle gamepad) => public static Ptr GetGamepadPath(GamepadHandle gamepad) => DllImport.GetGamepadPath(gamepad); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadPathForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + (sbyte*)((ISdl)this).GetGamepadPathForIDRaw(instance_id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPathForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadPathForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadPathForID(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadPathForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[222] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[222] = nativeContext.LoadFunction("SDL_GetGamepadPathForID", "SDL3") + ) + )(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPathForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetGamepadPathForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadPathForIDRaw(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetGamepadPathRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[216] is not null and var loadedFnPtr + _slots[221] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[216] = nativeContext.LoadFunction("SDL_GetGamepadPath", "SDL3") + : _slots[221] = nativeContext.LoadFunction("SDL_GetGamepadPath", "SDL3") ) )(gamepad); @@ -46024,9 +55680,9 @@ _slots[216] is not null and var loadedFnPtr int ISdl.GetGamepadPlayerIndex(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[217] is not null and var loadedFnPtr + _slots[223] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[217] = nativeContext.LoadFunction("SDL_GetGamepadPlayerIndex", "SDL3") + : _slots[223] = nativeContext.LoadFunction("SDL_GetGamepadPlayerIndex", "SDL3") ) )(gamepad); @@ -46035,13 +55691,32 @@ _slots[217] is not null and var loadedFnPtr public static int GetGamepadPlayerIndex(GamepadHandle gamepad) => DllImport.GetGamepadPlayerIndex(gamepad); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetGamepadPlayerIndexForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[224] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[224] = nativeContext.LoadFunction( + "SDL_GetGamepadPlayerIndexForID", + "SDL3" + ) + ) + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndexForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetGamepadPlayerIndexForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadPlayerIndexForID(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] PowerState ISdl.GetGamepadPowerInfo(GamepadHandle gamepad, int* percent) => ( (delegate* unmanaged)( - _slots[218] is not null and var loadedFnPtr + _slots[225] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[218] = nativeContext.LoadFunction("SDL_GetGamepadPowerInfo", "SDL3") + : _slots[225] = nativeContext.LoadFunction("SDL_GetGamepadPowerInfo", "SDL3") ) )(gamepad, percent); @@ -46069,9 +55744,9 @@ public static PowerState GetGamepadPowerInfo(GamepadHandle gamepad, Ref per ushort ISdl.GetGamepadProduct(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[219] is not null and var loadedFnPtr + _slots[226] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[219] = nativeContext.LoadFunction("SDL_GetGamepadProduct", "SDL3") + : _slots[226] = nativeContext.LoadFunction("SDL_GetGamepadProduct", "SDL3") ) )(gamepad); @@ -46081,13 +55756,30 @@ _slots[219] is not null and var loadedFnPtr public static ushort GetGamepadProduct(GamepadHandle gamepad) => DllImport.GetGamepadProduct(gamepad); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetGamepadProductForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[227] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[227] = nativeContext.LoadFunction("SDL_GetGamepadProductForID", "SDL3") + ) + )(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetGamepadProductForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadProductForID(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetGamepadProductVersion(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[220] is not null and var loadedFnPtr + _slots[228] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[220] = nativeContext.LoadFunction( + : _slots[228] = nativeContext.LoadFunction( "SDL_GetGamepadProductVersion", "SDL3" ) @@ -46100,13 +55792,35 @@ _slots[220] is not null and var loadedFnPtr public static ushort GetGamepadProductVersion(GamepadHandle gamepad) => DllImport.GetGamepadProductVersion(gamepad); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetGamepadProductVersionForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => + ( + (delegate* unmanaged)( + _slots[229] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[229] = nativeContext.LoadFunction( + "SDL_GetGamepadProductVersionForID", + "SDL3" + ) + ) + )(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersionForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetGamepadProductVersionForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadProductVersionForID(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetGamepadProperties(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[221] is not null and var loadedFnPtr + _slots[230] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[221] = nativeContext.LoadFunction("SDL_GetGamepadProperties", "SDL3") + : _slots[230] = nativeContext.LoadFunction("SDL_GetGamepadProperties", "SDL3") ) )(gamepad); @@ -46120,9 +55834,9 @@ public static uint GetGamepadProperties(GamepadHandle gamepad) => uint* ISdl.GetGamepads(int* count) => ( (delegate* unmanaged)( - _slots[222] is not null and var loadedFnPtr + _slots[231] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[222] = nativeContext.LoadFunction("SDL_GetGamepads", "SDL3") + : _slots[231] = nativeContext.LoadFunction("SDL_GetGamepads", "SDL3") ) )(count); @@ -46147,23 +55861,24 @@ Ptr ISdl.GetGamepads(Ref count) public static Ptr GetGamepads(Ref count) => DllImport.GetGamepads(count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetGamepadSensorData( + byte ISdl.GetGamepadSensorData( GamepadHandle gamepad, SensorType type, float* data, int num_values ) => ( - (delegate* unmanaged)( - _slots[223] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[232] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[223] = nativeContext.LoadFunction("SDL_GetGamepadSensorData", "SDL3") + : _slots[232] = nativeContext.LoadFunction("SDL_GetGamepadSensorData", "SDL3") ) )(gamepad, type, data, num_values); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetGamepadSensorData( + public static byte GetGamepadSensorData( GamepadHandle gamepad, SensorType type, float* data, @@ -46171,7 +55886,7 @@ int num_values ) => DllImport.GetGamepadSensorData(gamepad, type, data, num_values); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetGamepadSensorData( + MaybeBool ISdl.GetGamepadSensorData( GamepadHandle gamepad, SensorType type, Ref data, @@ -46180,14 +55895,16 @@ int num_values { fixed (float* __dsl_data = data) { - return (int)((ISdl)this).GetGamepadSensorData(gamepad, type, __dsl_data, num_values); + return (MaybeBool) + (byte)((ISdl)this).GetGamepadSensorData(gamepad, type, __dsl_data, num_values); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetGamepadSensorData( + public static MaybeBool GetGamepadSensorData( GamepadHandle gamepad, SensorType type, Ref data, @@ -46198,9 +55915,9 @@ int num_values float ISdl.GetGamepadSensorDataRate(GamepadHandle gamepad, SensorType type) => ( (delegate* unmanaged)( - _slots[224] is not null and var loadedFnPtr + _slots[233] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[224] = nativeContext.LoadFunction( + : _slots[233] = nativeContext.LoadFunction( "SDL_GetGamepadSensorDataRate", "SDL3" ) @@ -46227,9 +55944,9 @@ public static Ptr GetGamepadSerial(GamepadHandle gamepad) => sbyte* ISdl.GetGamepadSerialRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[225] is not null and var loadedFnPtr + _slots[234] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[225] = nativeContext.LoadFunction("SDL_GetGamepadSerial", "SDL3") + : _slots[234] = nativeContext.LoadFunction("SDL_GetGamepadSerial", "SDL3") ) )(gamepad); @@ -46243,9 +55960,9 @@ _slots[225] is not null and var loadedFnPtr ulong ISdl.GetGamepadSteamHandle(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[226] is not null and var loadedFnPtr + _slots[235] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[226] = nativeContext.LoadFunction("SDL_GetGamepadSteamHandle", "SDL3") + : _slots[235] = nativeContext.LoadFunction("SDL_GetGamepadSteamHandle", "SDL3") ) )(gamepad); @@ -46270,9 +55987,9 @@ public static Ptr GetGamepadStringForAxis(GamepadAxis axis) => sbyte* ISdl.GetGamepadStringForAxisRaw(GamepadAxis axis) => ( (delegate* unmanaged)( - _slots[227] is not null and var loadedFnPtr + _slots[236] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[227] = nativeContext.LoadFunction( + : _slots[236] = nativeContext.LoadFunction( "SDL_GetGamepadStringForAxis", "SDL3" ) @@ -46300,9 +56017,9 @@ public static Ptr GetGamepadStringForButton(GamepadButton button) => sbyte* ISdl.GetGamepadStringForButtonRaw(GamepadButton button) => ( (delegate* unmanaged)( - _slots[228] is not null and var loadedFnPtr + _slots[237] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[228] = nativeContext.LoadFunction( + : _slots[237] = nativeContext.LoadFunction( "SDL_GetGamepadStringForButton", "SDL3" ) @@ -46330,9 +56047,9 @@ public static Ptr GetGamepadStringForType(GamepadType type) => sbyte* ISdl.GetGamepadStringForTypeRaw(GamepadType type) => ( (delegate* unmanaged)( - _slots[229] is not null and var loadedFnPtr + _slots[238] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[229] = nativeContext.LoadFunction( + : _slots[238] = nativeContext.LoadFunction( "SDL_GetGamepadStringForType", "SDL3" ) @@ -46346,44 +56063,45 @@ _slots[229] is not null and var loadedFnPtr DllImport.GetGamepadStringForTypeRaw(type); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetGamepadTouchpadFinger( + byte ISdl.GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] byte* state, + bool* down, float* x, float* y, float* pressure ) => ( - (delegate* unmanaged)( - _slots[230] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[239] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[230] = nativeContext.LoadFunction( + : _slots[239] = nativeContext.LoadFunction( "SDL_GetGamepadTouchpadFinger", "SDL3" ) ) - )(gamepad, touchpad, finger, state, x, y, pressure); + )(gamepad, touchpad, finger, down, x, y, pressure); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetGamepadTouchpadFinger( + public static byte GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] byte* state, + bool* down, float* x, float* y, float* pressure - ) => DllImport.GetGamepadTouchpadFinger(gamepad, touchpad, finger, state, x, y, pressure); + ) => DllImport.GetGamepadTouchpadFinger(gamepad, touchpad, finger, down, x, y, pressure); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetGamepadTouchpadFinger( + MaybeBool ISdl.GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] Ref state, + Ref down, Ref x, Ref y, Ref pressure @@ -46392,41 +56110,43 @@ Ref pressure fixed (float* __dsl_pressure = pressure) fixed (float* __dsl_y = y) fixed (float* __dsl_x = x) - fixed (byte* __dsl_state = state) - { - return (int) - ((ISdl)this).GetGamepadTouchpadFinger( - gamepad, - touchpad, - finger, - __dsl_state, - __dsl_x, - __dsl_y, - __dsl_pressure - ); + fixed (bool* __dsl_down = down) + { + return (MaybeBool) + (byte) + ((ISdl)this).GetGamepadTouchpadFinger( + gamepad, + touchpad, + finger, + __dsl_down, + __dsl_x, + __dsl_y, + __dsl_pressure + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetGamepadTouchpadFinger( + public static MaybeBool GetGamepadTouchpadFinger( GamepadHandle gamepad, int touchpad, int finger, - [NativeTypeName("Uint8 *")] Ref state, + Ref down, Ref x, Ref y, Ref pressure - ) => DllImport.GetGamepadTouchpadFinger(gamepad, touchpad, finger, state, x, y, pressure); + ) => DllImport.GetGamepadTouchpadFinger(gamepad, touchpad, finger, down, x, y, pressure); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadType ISdl.GetGamepadType(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[231] is not null and var loadedFnPtr + _slots[240] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[231] = nativeContext.LoadFunction("SDL_GetGamepadType", "SDL3") + : _slots[240] = nativeContext.LoadFunction("SDL_GetGamepadType", "SDL3") ) )(gamepad); @@ -46435,13 +56155,29 @@ _slots[231] is not null and var loadedFnPtr public static GamepadType GetGamepadType(GamepadHandle gamepad) => DllImport.GetGamepadType(gamepad); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadType ISdl.GetGamepadTypeForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[241] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[241] = nativeContext.LoadFunction("SDL_GetGamepadTypeForID", "SDL3") + ) + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadType GetGamepadTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadTypeForID(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] GamepadType ISdl.GetGamepadTypeFromString([NativeTypeName("const char *")] sbyte* str) => ( (delegate* unmanaged)( - _slots[232] is not null and var loadedFnPtr + _slots[242] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[232] = nativeContext.LoadFunction( + : _slots[242] = nativeContext.LoadFunction( "SDL_GetGamepadTypeFromString", "SDL3" ) @@ -46474,9 +56210,9 @@ public static GamepadType GetGamepadTypeFromString( ushort ISdl.GetGamepadVendor(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[233] is not null and var loadedFnPtr + _slots[243] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[233] = nativeContext.LoadFunction("SDL_GetGamepadVendor", "SDL3") + : _slots[243] = nativeContext.LoadFunction("SDL_GetGamepadVendor", "SDL3") ) )(gamepad); @@ -46486,17 +56222,34 @@ _slots[233] is not null and var loadedFnPtr public static ushort GetGamepadVendor(GamepadHandle gamepad) => DllImport.GetGamepadVendor(gamepad); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetGamepadVendorForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[244] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[244] = nativeContext.LoadFunction("SDL_GetGamepadVendorForID", "SDL3") + ) + )(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendorForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetGamepadVendorForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadVendorForID(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetGlobalMouseState(float* x, float* y) => ( (delegate* unmanaged)( - _slots[234] is not null and var loadedFnPtr + _slots[245] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[234] = nativeContext.LoadFunction("SDL_GetGlobalMouseState", "SDL3") + : _slots[245] = nativeContext.LoadFunction("SDL_GetGlobalMouseState", "SDL3") ) )(x, y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static uint GetGlobalMouseState(float* x, float* y) => @@ -46512,7 +56265,7 @@ uint ISdl.GetGlobalMouseState(Ref x, Ref y) } } - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -46523,9 +56276,9 @@ public static uint GetGlobalMouseState(Ref x, Ref y) => uint ISdl.GetGlobalProperties() => ( (delegate* unmanaged)( - _slots[235] is not null and var loadedFnPtr + _slots[246] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[235] = nativeContext.LoadFunction("SDL_GetGlobalProperties", "SDL3") + : _slots[246] = nativeContext.LoadFunction("SDL_GetGlobalProperties", "SDL3") ) )(); @@ -46538,9 +56291,9 @@ _slots[235] is not null and var loadedFnPtr WindowHandle ISdl.GetGrabbedWindow() => ( (delegate* unmanaged)( - _slots[236] is not null and var loadedFnPtr + _slots[247] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[236] = nativeContext.LoadFunction("SDL_GetGrabbedWindow", "SDL3") + : _slots[247] = nativeContext.LoadFunction("SDL_GetGrabbedWindow", "SDL3") ) )(); @@ -46549,27 +56302,39 @@ _slots[236] is not null and var loadedFnPtr public static WindowHandle GetGrabbedWindow() => DllImport.GetGrabbedWindow(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetHapticEffectStatus(HapticHandle haptic, int effect) => + MaybeBool ISdl.GetHapticEffectStatus(HapticHandle haptic, int effect) => + (MaybeBool)(byte)((ISdl)this).GetHapticEffectStatusRaw(haptic, effect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetHapticEffectStatus(HapticHandle haptic, int effect) => + DllImport.GetHapticEffectStatus(haptic, effect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetHapticEffectStatusRaw(HapticHandle haptic, int effect) => ( - (delegate* unmanaged)( - _slots[237] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[248] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[237] = nativeContext.LoadFunction("SDL_GetHapticEffectStatus", "SDL3") + : _slots[248] = nativeContext.LoadFunction("SDL_GetHapticEffectStatus", "SDL3") ) )(haptic, effect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetHapticEffectStatus(HapticHandle haptic, int effect) => - DllImport.GetHapticEffectStatus(haptic, effect); + public static byte GetHapticEffectStatusRaw(HapticHandle haptic, int effect) => + DllImport.GetHapticEffectStatusRaw(haptic, effect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetHapticFeatures(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[238] is not null and var loadedFnPtr + _slots[249] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[238] = nativeContext.LoadFunction("SDL_GetHapticFeatures", "SDL3") + : _slots[249] = nativeContext.LoadFunction("SDL_GetHapticFeatures", "SDL3") ) )(haptic); @@ -46580,86 +56345,80 @@ public static uint GetHapticFeatures(HapticHandle haptic) => DllImport.GetHapticFeatures(haptic); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - HapticHandle ISdl.GetHapticFromInstanceID([NativeTypeName("SDL_HapticID")] uint instance_id) => + HapticHandle ISdl.GetHapticFromID([NativeTypeName("SDL_HapticID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[239] is not null and var loadedFnPtr + _slots[250] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[239] = nativeContext.LoadFunction( - "SDL_GetHapticFromInstanceID", - "SDL3" - ) + : _slots[250] = nativeContext.LoadFunction("SDL_GetHapticFromID", "SDL3") ) )(instance_id); - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static HapticHandle GetHapticFromInstanceID( - [NativeTypeName("SDL_HapticID")] uint instance_id - ) => DllImport.GetHapticFromInstanceID(instance_id); + public static HapticHandle GetHapticFromID([NativeTypeName("SDL_HapticID")] uint instance_id) => + DllImport.GetHapticFromID(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetHapticInstanceID(HapticHandle haptic) => + uint ISdl.GetHapticID(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[240] is not null and var loadedFnPtr + _slots[251] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[240] = nativeContext.LoadFunction("SDL_GetHapticInstanceID", "SDL3") + : _slots[251] = nativeContext.LoadFunction("SDL_GetHapticID", "SDL3") ) )(haptic); [return: NativeTypeName("SDL_HapticID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetHapticID(HapticHandle haptic) => DllImport.GetHapticID(haptic); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetHapticInstanceID(HapticHandle haptic) => - DllImport.GetHapticInstanceID(haptic); + Ptr ISdl.GetHapticName(HapticHandle haptic) => + (sbyte*)((ISdl)this).GetHapticNameRaw(haptic); + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetHapticInstanceName([NativeTypeName("SDL_HapticID")] uint instance_id) => - (sbyte*)((ISdl)this).GetHapticInstanceNameRaw(instance_id); + public static Ptr GetHapticName(HapticHandle haptic) => DllImport.GetHapticName(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetHapticNameForID([NativeTypeName("SDL_HapticID")] uint instance_id) => + (sbyte*)((ISdl)this).GetHapticNameForIDRaw(instance_id); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticNameForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetHapticInstanceName( + public static Ptr GetHapticNameForID( [NativeTypeName("SDL_HapticID")] uint instance_id - ) => DllImport.GetHapticInstanceName(instance_id); + ) => DllImport.GetHapticNameForID(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetHapticInstanceNameRaw([NativeTypeName("SDL_HapticID")] uint instance_id) => + sbyte* ISdl.GetHapticNameForIDRaw([NativeTypeName("SDL_HapticID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[241] is not null and var loadedFnPtr + _slots[253] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[241] = nativeContext.LoadFunction("SDL_GetHapticInstanceName", "SDL3") + : _slots[253] = nativeContext.LoadFunction("SDL_GetHapticNameForID", "SDL3") ) )(instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticNameForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetHapticInstanceNameRaw( - [NativeTypeName("SDL_HapticID")] uint instance_id - ) => DllImport.GetHapticInstanceNameRaw(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetHapticName(HapticHandle haptic) => - (sbyte*)((ISdl)this).GetHapticNameRaw(haptic); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetHapticName(HapticHandle haptic) => DllImport.GetHapticName(haptic); + public static sbyte* GetHapticNameForIDRaw([NativeTypeName("SDL_HapticID")] uint instance_id) => + DllImport.GetHapticNameForIDRaw(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetHapticNameRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[242] is not null and var loadedFnPtr + _slots[252] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[242] = nativeContext.LoadFunction("SDL_GetHapticName", "SDL3") + : _slots[252] = nativeContext.LoadFunction("SDL_GetHapticName", "SDL3") ) )(haptic); @@ -46673,9 +56432,9 @@ _slots[242] is not null and var loadedFnPtr uint* ISdl.GetHaptics(int* count) => ( (delegate* unmanaged)( - _slots[243] is not null and var loadedFnPtr + _slots[254] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[243] = nativeContext.LoadFunction("SDL_GetHaptics", "SDL3") + : _slots[254] = nativeContext.LoadFunction("SDL_GetHaptics", "SDL3") ) )(count); @@ -46703,9 +56462,9 @@ Ptr ISdl.GetHaptics(Ref count) sbyte* ISdl.GetHint([NativeTypeName("const char *")] sbyte* name) => ( (delegate* unmanaged)( - _slots[244] is not null and var loadedFnPtr + _slots[255] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[244] = nativeContext.LoadFunction("SDL_GetHint", "SDL3") + : _slots[255] = nativeContext.LoadFunction("SDL_GetHint", "SDL3") ) )(name); @@ -46732,54 +56491,55 @@ public static Ptr GetHint([NativeTypeName("const char *")] Ref nam DllImport.GetHint(name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetHintBoolean( + byte ISdl.GetHintBoolean( [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ) => ( - (delegate* unmanaged)( - _slots[245] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[256] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[245] = nativeContext.LoadFunction("SDL_GetHintBoolean", "SDL3") + : _slots[256] = nativeContext.LoadFunction("SDL_GetHintBoolean", "SDL3") ) )(name, default_value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetHintBoolean( + public static byte GetHintBoolean( [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int default_value + [NativeTypeName("bool")] byte default_value ) => DllImport.GetHintBoolean(name, default_value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetHintBoolean( + MaybeBool ISdl.GetHintBoolean( [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value + [NativeTypeName("bool")] MaybeBool default_value ) { fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)((ISdl)this).GetHintBoolean(__dsl_name, (int)default_value); + return (MaybeBool) + (byte)((ISdl)this).GetHintBoolean(__dsl_name, (byte)default_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetHintBoolean( + public static MaybeBool GetHintBoolean( [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool default_value + [NativeTypeName("bool")] MaybeBool default_value ) => DllImport.GetHintBoolean(name, default_value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetIOProperties(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[246] is not null and var loadedFnPtr + _slots[257] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[246] = nativeContext.LoadFunction("SDL_GetIOProperties", "SDL3") + : _slots[257] = nativeContext.LoadFunction("SDL_GetIOProperties", "SDL3") ) )(context); @@ -46793,9 +56553,9 @@ public static uint GetIOProperties(IOStreamHandle context) => long ISdl.GetIOSize(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[247] is not null and var loadedFnPtr + _slots[258] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[247] = nativeContext.LoadFunction("SDL_GetIOSize", "SDL3") + : _slots[258] = nativeContext.LoadFunction("SDL_GetIOSize", "SDL3") ) )(context); @@ -46808,9 +56568,9 @@ _slots[247] is not null and var loadedFnPtr IOStatus ISdl.GetIOStatus(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[248] is not null and var loadedFnPtr + _slots[259] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[248] = nativeContext.LoadFunction("SDL_GetIOStatus", "SDL3") + : _slots[259] = nativeContext.LoadFunction("SDL_GetIOStatus", "SDL3") ) )(context); @@ -46822,9 +56582,9 @@ _slots[248] is not null and var loadedFnPtr short ISdl.GetJoystickAxis(JoystickHandle joystick, int axis) => ( (delegate* unmanaged)( - _slots[249] is not null and var loadedFnPtr + _slots[260] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[249] = nativeContext.LoadFunction("SDL_GetJoystickAxis", "SDL3") + : _slots[260] = nativeContext.LoadFunction("SDL_GetJoystickAxis", "SDL3") ) )(joystick, axis); @@ -46835,33 +56595,33 @@ public static short GetJoystickAxis(JoystickHandle joystick, int axis) => DllImport.GetJoystickAxis(joystick, axis); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetJoystickAxisInitialState( + byte ISdl.GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] short* state ) => ( - (delegate* unmanaged)( - _slots[250] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[261] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[250] = nativeContext.LoadFunction( + : _slots[261] = nativeContext.LoadFunction( "SDL_GetJoystickAxisInitialState", "SDL3" ) ) )(joystick, axis, state); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetJoystickAxisInitialState( + public static byte GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] short* state ) => DllImport.GetJoystickAxisInitialState(joystick, axis, state); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetJoystickAxisInitialState( + MaybeBool ISdl.GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] Ref state @@ -46869,50 +56629,58 @@ MaybeBool ISdl.GetJoystickAxisInitialState( { fixed (short* __dsl_state = state) { - return (MaybeBool) - (int)((ISdl)this).GetJoystickAxisInitialState(joystick, axis, __dsl_state); + return (MaybeBool) + (byte)((ISdl)this).GetJoystickAxisInitialState(joystick, axis, __dsl_state); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetJoystickAxisInitialState( + public static MaybeBool GetJoystickAxisInitialState( JoystickHandle joystick, int axis, [NativeTypeName("Sint16 *")] Ref state ) => DllImport.GetJoystickAxisInitialState(joystick, axis, state); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy) => + byte ISdl.GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy) => ( - (delegate* unmanaged)( - _slots[251] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[262] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[251] = nativeContext.LoadFunction("SDL_GetJoystickBall", "SDL3") + : _slots[262] = nativeContext.LoadFunction("SDL_GetJoystickBall", "SDL3") ) )(joystick, ball, dx, dy); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy) => + public static byte GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy) => DllImport.GetJoystickBall(joystick, ball, dx, dy); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetJoystickBall(JoystickHandle joystick, int ball, Ref dx, Ref dy) + MaybeBool ISdl.GetJoystickBall( + JoystickHandle joystick, + int ball, + Ref dx, + Ref dy + ) { fixed (int* __dsl_dy = dy) fixed (int* __dsl_dx = dx) { - return (int)((ISdl)this).GetJoystickBall(joystick, ball, __dsl_dx, __dsl_dy); + return (MaybeBool) + (byte)((ISdl)this).GetJoystickBall(joystick, ball, __dsl_dx, __dsl_dy); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetJoystickBall( + public static MaybeBool GetJoystickBall( JoystickHandle joystick, int ball, Ref dx, @@ -46920,28 +56688,39 @@ Ref dy ) => DllImport.GetJoystickBall(joystick, ball, dx, dy); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - byte ISdl.GetJoystickButton(JoystickHandle joystick, int button) => + MaybeBool ISdl.GetJoystickButton(JoystickHandle joystick, int button) => + (MaybeBool)(byte)((ISdl)this).GetJoystickButtonRaw(joystick, button); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetJoystickButton(JoystickHandle joystick, int button) => + DllImport.GetJoystickButton(joystick, button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetJoystickButtonRaw(JoystickHandle joystick, int button) => ( (delegate* unmanaged)( - _slots[252] is not null and var loadedFnPtr + _slots[263] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[252] = nativeContext.LoadFunction("SDL_GetJoystickButton", "SDL3") + : _slots[263] = nativeContext.LoadFunction("SDL_GetJoystickButton", "SDL3") ) )(joystick, button); - [return: NativeTypeName("Uint8")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static byte GetJoystickButton(JoystickHandle joystick, int button) => - DllImport.GetJoystickButton(joystick, button); + public static byte GetJoystickButtonRaw(JoystickHandle joystick, int button) => + DllImport.GetJoystickButtonRaw(joystick, button); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] JoystickConnectionState ISdl.GetJoystickConnectionState(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[253] is not null and var loadedFnPtr + _slots[264] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[253] = nativeContext.LoadFunction( + : _slots[264] = nativeContext.LoadFunction( "SDL_GetJoystickConnectionState", "SDL3" ) @@ -46957,9 +56736,9 @@ public static JoystickConnectionState GetJoystickConnectionState(JoystickHandle ushort ISdl.GetJoystickFirmwareVersion(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[254] is not null and var loadedFnPtr + _slots[265] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[254] = nativeContext.LoadFunction( + : _slots[265] = nativeContext.LoadFunction( "SDL_GetJoystickFirmwareVersion", "SDL3" ) @@ -46973,33 +56752,28 @@ public static ushort GetJoystickFirmwareVersion(JoystickHandle joystick) => DllImport.GetJoystickFirmwareVersion(joystick); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - JoystickHandle ISdl.GetJoystickFromInstanceID( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => + JoystickHandle ISdl.GetJoystickFromID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[255] is not null and var loadedFnPtr + _slots[266] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[255] = nativeContext.LoadFunction( - "SDL_GetJoystickFromInstanceID", - "SDL3" - ) + : _slots[266] = nativeContext.LoadFunction("SDL_GetJoystickFromID", "SDL3") ) )(instance_id); - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static JoystickHandle GetJoystickFromInstanceID( + public static JoystickHandle GetJoystickFromID( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetJoystickFromInstanceID(instance_id); + ) => DllImport.GetJoystickFromID(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] JoystickHandle ISdl.GetJoystickFromPlayerIndex(int player_index) => ( (delegate* unmanaged)( - _slots[256] is not null and var loadedFnPtr + _slots[267] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[256] = nativeContext.LoadFunction( + : _slots[267] = nativeContext.LoadFunction( "SDL_GetJoystickFromPlayerIndex", "SDL3" ) @@ -47015,57 +56789,35 @@ public static JoystickHandle GetJoystickFromPlayerIndex(int player_index) => Guid ISdl.GetJoystickGuid(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[257] is not null and var loadedFnPtr + _slots[268] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[257] = nativeContext.LoadFunction("SDL_GetJoystickGUID", "SDL3") + : _slots[268] = nativeContext.LoadFunction("SDL_GetJoystickGUID", "SDL3") ) )(joystick); - [return: NativeTypeName("SDL_JoystickGUID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static Guid GetJoystickGuid(JoystickHandle joystick) => DllImport.GetJoystickGuid(joystick); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Guid ISdl.GetJoystickGuidFromString([NativeTypeName("const char *")] sbyte* pchGUID) => + Guid ISdl.GetJoystickGuidForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged)( - _slots[258] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[269] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[258] = nativeContext.LoadFunction( - "SDL_GetJoystickGUIDFromString", - "SDL3" - ) + : _slots[269] = nativeContext.LoadFunction("SDL_GetJoystickGUIDForID", "SDL3") ) - )(pchGUID); - - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDFromString")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Guid GetJoystickGuidFromString([NativeTypeName("const char *")] sbyte* pchGUID) => - DllImport.GetJoystickGuidFromString(pchGUID); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Guid ISdl.GetJoystickGuidFromString([NativeTypeName("const char *")] Ref pchGUID) - { - fixed (sbyte* __dsl_pchGUID = pchGUID) - { - return (Guid)((ISdl)this).GetJoystickGuidFromString(__dsl_pchGUID); - } - } + )(instance_id); - [return: NativeTypeName("SDL_JoystickGUID")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDFromString")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Guid GetJoystickGuidFromString( - [NativeTypeName("const char *")] Ref pchGUID - ) => DllImport.GetJoystickGuidFromString(pchGUID); + public static Guid GetJoystickGuidForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + DllImport.GetJoystickGuidForID(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] ushort* vendor, [NativeTypeName("Uint16 *")] ushort* product, [NativeTypeName("Uint16 *")] ushort* version, @@ -47073,16 +56825,16 @@ void ISdl.GetJoystickGuidInfo( ) => ( (delegate* unmanaged)( - _slots[259] is not null and var loadedFnPtr + _slots[270] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[259] = nativeContext.LoadFunction("SDL_GetJoystickGUIDInfo", "SDL3") + : _slots[270] = nativeContext.LoadFunction("SDL_GetJoystickGUIDInfo", "SDL3") ) )(guid, vendor, product, version, crc16); [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] ushort* vendor, [NativeTypeName("Uint16 *")] ushort* product, [NativeTypeName("Uint16 *")] ushort* version, @@ -47091,7 +56843,7 @@ public static void GetJoystickGuidInfo( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] Ref vendor, [NativeTypeName("Uint16 *")] Ref product, [NativeTypeName("Uint16 *")] Ref version, @@ -47117,64 +56869,20 @@ void ISdl.GetJoystickGuidInfo( [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void GetJoystickGuidInfo( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, + Guid guid, [NativeTypeName("Uint16 *")] Ref vendor, [NativeTypeName("Uint16 *")] Ref product, [NativeTypeName("Uint16 *")] Ref version, [NativeTypeName("Uint16 *")] Ref crc16 ) => DllImport.GetJoystickGuidInfo(guid, vendor, product, version, crc16); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] sbyte* pszGUID, - int cbGUID - ) => - ( - (delegate* unmanaged)( - _slots[260] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[260] = nativeContext.LoadFunction("SDL_GetJoystickGUIDString", "SDL3") - ) - )(guid, pszGUID, cbGUID); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDString")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] sbyte* pszGUID, - int cbGUID - ) => DllImport.GetJoystickGuidString(guid, pszGUID, cbGUID); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] Ref pszGUID, - int cbGUID - ) - { - fixed (sbyte* __dsl_pszGUID = pszGUID) - { - return (int)((ISdl)this).GetJoystickGuidString(guid, __dsl_pszGUID, cbGUID); - } - } - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDString")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetJoystickGuidString( - [NativeTypeName("SDL_JoystickGUID")] Guid guid, - [NativeTypeName("char *")] Ref pszGUID, - int cbGUID - ) => DllImport.GetJoystickGuidString(guid, pszGUID, cbGUID); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.GetJoystickHat(JoystickHandle joystick, int hat) => ( (delegate* unmanaged)( - _slots[261] is not null and var loadedFnPtr + _slots[271] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[261] = nativeContext.LoadFunction("SDL_GetJoystickHat", "SDL3") + : _slots[271] = nativeContext.LoadFunction("SDL_GetJoystickHat", "SDL3") ) )(joystick, hat); @@ -47185,225 +56893,67 @@ public static byte GetJoystickHat(JoystickHandle joystick, int hat) => DllImport.GetJoystickHat(joystick, hat); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Guid ISdl.GetJoystickInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[262] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[262] = nativeContext.LoadFunction( - "SDL_GetJoystickInstanceGUID", - "SDL3" - ) - ) - )(instance_id); - - [return: NativeTypeName("SDL_JoystickGUID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceGUID")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Guid GetJoystickInstanceGuid( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetJoystickInstanceGuid(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetJoystickInstanceID(JoystickHandle joystick) => + uint ISdl.GetJoystickID(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[263] is not null and var loadedFnPtr + _slots[272] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[263] = nativeContext.LoadFunction("SDL_GetJoystickInstanceID", "SDL3") + : _slots[272] = nativeContext.LoadFunction("SDL_GetJoystickID", "SDL3") ) )(joystick); [return: NativeTypeName("SDL_JoystickID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetJoystickInstanceID(JoystickHandle joystick) => - DllImport.GetJoystickInstanceID(joystick); + public static uint GetJoystickID(JoystickHandle joystick) => DllImport.GetJoystickID(joystick); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetJoystickInstanceName([NativeTypeName("SDL_JoystickID")] uint instance_id) => - (sbyte*)((ISdl)this).GetJoystickInstanceNameRaw(instance_id); + Ptr ISdl.GetJoystickName(JoystickHandle joystick) => + (sbyte*)((ISdl)this).GetJoystickNameRaw(joystick); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceName")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetJoystickInstanceName( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetJoystickInstanceName(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetJoystickInstanceNameRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[264] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[264] = nativeContext.LoadFunction( - "SDL_GetJoystickInstanceName", - "SDL3" - ) - ) - )(instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetJoystickInstanceNameRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetJoystickInstanceNameRaw(instance_id); + public static Ptr GetJoystickName(JoystickHandle joystick) => + DllImport.GetJoystickName(joystick); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetJoystickInstancePath([NativeTypeName("SDL_JoystickID")] uint instance_id) => - (sbyte*)((ISdl)this).GetJoystickInstancePathRaw(instance_id); + Ptr ISdl.GetJoystickNameForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + (sbyte*)((ISdl)this).GetJoystickNameForIDRaw(instance_id); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickNameForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetJoystickInstancePath( + public static Ptr GetJoystickNameForID( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetJoystickInstancePath(instance_id); + ) => DllImport.GetJoystickNameForID(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetJoystickInstancePathRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + sbyte* ISdl.GetJoystickNameForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[265] is not null and var loadedFnPtr + _slots[274] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[265] = nativeContext.LoadFunction( - "SDL_GetJoystickInstancePath", - "SDL3" - ) + : _slots[274] = nativeContext.LoadFunction("SDL_GetJoystickNameForID", "SDL3") ) )(instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetJoystickInstancePathRaw( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetJoystickInstancePathRaw(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetJoystickInstancePlayerIndex([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[266] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[266] = nativeContext.LoadFunction( - "SDL_GetJoystickInstancePlayerIndex", - "SDL3" - ) - ) - )(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePlayerIndex")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetJoystickInstancePlayerIndex( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetJoystickInstancePlayerIndex(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - ushort ISdl.GetJoystickInstanceProduct([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[267] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[267] = nativeContext.LoadFunction( - "SDL_GetJoystickInstanceProduct", - "SDL3" - ) - ) - )(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceProduct")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickNameForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static ushort GetJoystickInstanceProduct( + public static sbyte* GetJoystickNameForIDRaw( [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetJoystickInstanceProduct(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - ushort ISdl.GetJoystickInstanceProductVersion( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => - ( - (delegate* unmanaged)( - _slots[268] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[268] = nativeContext.LoadFunction( - "SDL_GetJoystickInstanceProductVersion", - "SDL3" - ) - ) - )(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceProductVersion")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static ushort GetJoystickInstanceProductVersion( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetJoystickInstanceProductVersion(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - JoystickType ISdl.GetJoystickInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => - ( - (delegate* unmanaged)( - _slots[269] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[269] = nativeContext.LoadFunction( - "SDL_GetJoystickInstanceType", - "SDL3" - ) - ) - )(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceType")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static JoystickType GetJoystickInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetJoystickInstanceType(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - ushort ISdl.GetJoystickInstanceVendor([NativeTypeName("SDL_JoystickID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[270] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[270] = nativeContext.LoadFunction( - "SDL_GetJoystickInstanceVendor", - "SDL3" - ) - ) - )(instance_id); - - [return: NativeTypeName("Uint16")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceVendor")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static ushort GetJoystickInstanceVendor( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetJoystickInstanceVendor(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetJoystickName(JoystickHandle joystick) => - (sbyte*)((ISdl)this).GetJoystickNameRaw(joystick); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetJoystickName(JoystickHandle joystick) => - DllImport.GetJoystickName(joystick); + ) => DllImport.GetJoystickNameForIDRaw(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetJoystickNameRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[271] is not null and var loadedFnPtr + _slots[273] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[271] = nativeContext.LoadFunction("SDL_GetJoystickName", "SDL3") + : _slots[273] = nativeContext.LoadFunction("SDL_GetJoystickName", "SDL3") ) )(joystick); @@ -47424,13 +56974,42 @@ Ptr ISdl.GetJoystickPath(JoystickHandle joystick) => public static Ptr GetJoystickPath(JoystickHandle joystick) => DllImport.GetJoystickPath(joystick); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetJoystickPathForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + (sbyte*)((ISdl)this).GetJoystickPathForIDRaw(instance_id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPathForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetJoystickPathForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetJoystickPathForID(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetJoystickPathForIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[276] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[276] = nativeContext.LoadFunction("SDL_GetJoystickPathForID", "SDL3") + ) + )(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPathForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetJoystickPathForIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetJoystickPathForIDRaw(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetJoystickPathRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[272] is not null and var loadedFnPtr + _slots[275] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[272] = nativeContext.LoadFunction("SDL_GetJoystickPath", "SDL3") + : _slots[275] = nativeContext.LoadFunction("SDL_GetJoystickPath", "SDL3") ) )(joystick); @@ -47444,9 +57023,9 @@ _slots[272] is not null and var loadedFnPtr int ISdl.GetJoystickPlayerIndex(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[273] is not null and var loadedFnPtr + _slots[277] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[273] = nativeContext.LoadFunction("SDL_GetJoystickPlayerIndex", "SDL3") + : _slots[277] = nativeContext.LoadFunction("SDL_GetJoystickPlayerIndex", "SDL3") ) )(joystick); @@ -47455,13 +57034,32 @@ _slots[273] is not null and var loadedFnPtr public static int GetJoystickPlayerIndex(JoystickHandle joystick) => DllImport.GetJoystickPlayerIndex(joystick); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetJoystickPlayerIndexForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[278] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[278] = nativeContext.LoadFunction( + "SDL_GetJoystickPlayerIndexForID", + "SDL3" + ) + ) + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndexForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetJoystickPlayerIndexForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetJoystickPlayerIndexForID(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] PowerState ISdl.GetJoystickPowerInfo(JoystickHandle joystick, int* percent) => ( (delegate* unmanaged)( - _slots[274] is not null and var loadedFnPtr + _slots[279] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[274] = nativeContext.LoadFunction("SDL_GetJoystickPowerInfo", "SDL3") + : _slots[279] = nativeContext.LoadFunction("SDL_GetJoystickPowerInfo", "SDL3") ) )(joystick, percent); @@ -47489,9 +57087,9 @@ public static PowerState GetJoystickPowerInfo(JoystickHandle joystick, Ref ushort ISdl.GetJoystickProduct(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[275] is not null and var loadedFnPtr + _slots[280] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[275] = nativeContext.LoadFunction("SDL_GetJoystickProduct", "SDL3") + : _slots[280] = nativeContext.LoadFunction("SDL_GetJoystickProduct", "SDL3") ) )(joystick); @@ -47501,13 +57099,33 @@ _slots[275] is not null and var loadedFnPtr public static ushort GetJoystickProduct(JoystickHandle joystick) => DllImport.GetJoystickProduct(joystick); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetJoystickProductForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[281] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[281] = nativeContext.LoadFunction( + "SDL_GetJoystickProductForID", + "SDL3" + ) + ) + )(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetJoystickProductForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetJoystickProductForID(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetJoystickProductVersion(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[276] is not null and var loadedFnPtr + _slots[282] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[276] = nativeContext.LoadFunction( + : _slots[282] = nativeContext.LoadFunction( "SDL_GetJoystickProductVersion", "SDL3" ) @@ -47520,13 +57138,35 @@ _slots[276] is not null and var loadedFnPtr public static ushort GetJoystickProductVersion(JoystickHandle joystick) => DllImport.GetJoystickProductVersion(joystick); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetJoystickProductVersionForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => + ( + (delegate* unmanaged)( + _slots[283] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[283] = nativeContext.LoadFunction( + "SDL_GetJoystickProductVersionForID", + "SDL3" + ) + ) + )(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersionForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetJoystickProductVersionForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetJoystickProductVersionForID(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetJoystickProperties(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[277] is not null and var loadedFnPtr + _slots[284] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[277] = nativeContext.LoadFunction("SDL_GetJoystickProperties", "SDL3") + : _slots[284] = nativeContext.LoadFunction("SDL_GetJoystickProperties", "SDL3") ) )(joystick); @@ -47540,9 +57180,9 @@ public static uint GetJoystickProperties(JoystickHandle joystick) => uint* ISdl.GetJoysticks(int* count) => ( (delegate* unmanaged)( - _slots[278] is not null and var loadedFnPtr + _slots[285] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[278] = nativeContext.LoadFunction("SDL_GetJoysticks", "SDL3") + : _slots[285] = nativeContext.LoadFunction("SDL_GetJoysticks", "SDL3") ) )(count); @@ -47581,9 +57221,9 @@ public static Ptr GetJoystickSerial(JoystickHandle joystick) => sbyte* ISdl.GetJoystickSerialRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[279] is not null and var loadedFnPtr + _slots[286] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[279] = nativeContext.LoadFunction("SDL_GetJoystickSerial", "SDL3") + : _slots[286] = nativeContext.LoadFunction("SDL_GetJoystickSerial", "SDL3") ) )(joystick); @@ -47597,9 +57237,9 @@ _slots[279] is not null and var loadedFnPtr JoystickType ISdl.GetJoystickType(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[280] is not null and var loadedFnPtr + _slots[287] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[280] = nativeContext.LoadFunction("SDL_GetJoystickType", "SDL3") + : _slots[287] = nativeContext.LoadFunction("SDL_GetJoystickType", "SDL3") ) )(joystick); @@ -47608,13 +57248,29 @@ _slots[280] is not null and var loadedFnPtr public static JoystickType GetJoystickType(JoystickHandle joystick) => DllImport.GetJoystickType(joystick); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + JoystickType ISdl.GetJoystickTypeForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[288] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[288] = nativeContext.LoadFunction("SDL_GetJoystickTypeForID", "SDL3") + ) + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickTypeForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static JoystickType GetJoystickTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetJoystickTypeForID(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ushort ISdl.GetJoystickVendor(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[281] is not null and var loadedFnPtr + _slots[289] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[281] = nativeContext.LoadFunction("SDL_GetJoystickVendor", "SDL3") + : _slots[289] = nativeContext.LoadFunction("SDL_GetJoystickVendor", "SDL3") ) )(joystick); @@ -47624,13 +57280,30 @@ _slots[281] is not null and var loadedFnPtr public static ushort GetJoystickVendor(JoystickHandle joystick) => DllImport.GetJoystickVendor(joystick); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetJoystickVendorForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[290] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[290] = nativeContext.LoadFunction("SDL_GetJoystickVendorForID", "SDL3") + ) + )(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendorForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetJoystickVendorForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetJoystickVendorForID(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GetKeyboardFocus() => ( (delegate* unmanaged)( - _slots[282] is not null and var loadedFnPtr + _slots[291] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[282] = nativeContext.LoadFunction("SDL_GetKeyboardFocus", "SDL3") + : _slots[291] = nativeContext.LoadFunction("SDL_GetKeyboardFocus", "SDL3") ) )(); @@ -47639,44 +57312,41 @@ _slots[282] is not null and var loadedFnPtr public static WindowHandle GetKeyboardFocus() => DllImport.GetKeyboardFocus(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetKeyboardInstanceName([NativeTypeName("SDL_KeyboardID")] uint instance_id) => - (sbyte*)((ISdl)this).GetKeyboardInstanceNameRaw(instance_id); + Ptr ISdl.GetKeyboardNameForID([NativeTypeName("SDL_KeyboardID")] uint instance_id) => + (sbyte*)((ISdl)this).GetKeyboardNameForIDRaw(instance_id); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardNameForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetKeyboardInstanceName( + public static Ptr GetKeyboardNameForID( [NativeTypeName("SDL_KeyboardID")] uint instance_id - ) => DllImport.GetKeyboardInstanceName(instance_id); + ) => DllImport.GetKeyboardNameForID(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetKeyboardInstanceNameRaw([NativeTypeName("SDL_KeyboardID")] uint instance_id) => + sbyte* ISdl.GetKeyboardNameForIDRaw([NativeTypeName("SDL_KeyboardID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[283] is not null and var loadedFnPtr + _slots[292] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[283] = nativeContext.LoadFunction( - "SDL_GetKeyboardInstanceName", - "SDL3" - ) + : _slots[292] = nativeContext.LoadFunction("SDL_GetKeyboardNameForID", "SDL3") ) )(instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardNameForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetKeyboardInstanceNameRaw( + public static sbyte* GetKeyboardNameForIDRaw( [NativeTypeName("SDL_KeyboardID")] uint instance_id - ) => DllImport.GetKeyboardInstanceNameRaw(instance_id); + ) => DllImport.GetKeyboardNameForIDRaw(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint* ISdl.GetKeyboards(int* count) => ( (delegate* unmanaged)( - _slots[284] is not null and var loadedFnPtr + _slots[293] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[284] = nativeContext.LoadFunction("SDL_GetKeyboards", "SDL3") + : _slots[293] = nativeContext.LoadFunction("SDL_GetKeyboards", "SDL3") ) )(count); @@ -47701,58 +57371,58 @@ Ptr ISdl.GetKeyboards(Ref count) public static Ptr GetKeyboards(Ref count) => DllImport.GetKeyboards(count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - byte* ISdl.GetKeyboardState(int* numkeys) => + bool* ISdl.GetKeyboardState(int* numkeys) => ( - (delegate* unmanaged)( - _slots[285] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[294] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[285] = nativeContext.LoadFunction("SDL_GetKeyboardState", "SDL3") + : _slots[294] = nativeContext.LoadFunction("SDL_GetKeyboardState", "SDL3") ) )(numkeys); - [return: NativeTypeName("const Uint8 *")] + [return: NativeTypeName("const bool *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static byte* GetKeyboardState(int* numkeys) => DllImport.GetKeyboardState(numkeys); + public static bool* GetKeyboardState(int* numkeys) => DllImport.GetKeyboardState(numkeys); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetKeyboardState(Ref numkeys) + Ptr ISdl.GetKeyboardState(Ref numkeys) { fixed (int* __dsl_numkeys = numkeys) { - return (byte*)((ISdl)this).GetKeyboardState(__dsl_numkeys); + return (bool*)((ISdl)this).GetKeyboardState(__dsl_numkeys); } } - [return: NativeTypeName("const Uint8 *")] + [return: NativeTypeName("const bool *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetKeyboardState(Ref numkeys) => + public static Ptr GetKeyboardState(Ref numkeys) => DllImport.GetKeyboardState(numkeys); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => + uint ISdl.GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => ( - (delegate* unmanaged)( - _slots[286] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[295] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[286] = nativeContext.LoadFunction("SDL_GetKeyFromName", "SDL3") + : _slots[295] = nativeContext.LoadFunction("SDL_GetKeyFromName", "SDL3") ) )(name); [return: NativeTypeName("SDL_Keycode")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => + public static uint GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => DllImport.GetKeyFromName(name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetKeyFromName([NativeTypeName("const char *")] Ref name) + uint ISdl.GetKeyFromName([NativeTypeName("const char *")] Ref name) { fixed (sbyte* __dsl_name = name) { - return (int)((ISdl)this).GetKeyFromName(__dsl_name); + return (uint)((ISdl)this).GetKeyFromName(__dsl_name); } } @@ -47760,50 +57430,74 @@ int ISdl.GetKeyFromName([NativeTypeName("const char *")] Ref name) [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetKeyFromName([NativeTypeName("const char *")] Ref name) => + public static uint GetKeyFromName([NativeTypeName("const char *")] Ref name) => DllImport.GetKeyFromName(name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetKeyFromScancode(Scancode scancode) => + uint ISdl.GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] byte key_event + ) => ( - (delegate* unmanaged)( - _slots[287] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[296] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[287] = nativeContext.LoadFunction("SDL_GetKeyFromScancode", "SDL3") + : _slots[296] = nativeContext.LoadFunction("SDL_GetKeyFromScancode", "SDL3") ) - )(scancode); + )(scancode, modstate, key_event); [return: NativeTypeName("SDL_Keycode")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromScancode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetKeyFromScancode(Scancode scancode) => - DllImport.GetKeyFromScancode(scancode); + public static uint GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] byte key_event + ) => DllImport.GetKeyFromScancode(scancode, modstate, key_event); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetKeyName([NativeTypeName("SDL_Keycode")] int key) => + uint ISdl.GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] MaybeBool key_event + ) => (uint)((ISdl)this).GetKeyFromScancode(scancode, modstate, (byte)key_event); + + [return: NativeTypeName("SDL_Keycode")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromScancode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetKeyFromScancode( + Scancode scancode, + [NativeTypeName("SDL_Keymod")] ushort modstate, + [NativeTypeName("bool")] MaybeBool key_event + ) => DllImport.GetKeyFromScancode(scancode, modstate, key_event); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetKeyName([NativeTypeName("SDL_Keycode")] uint key) => (sbyte*)((ISdl)this).GetKeyNameRaw(key); [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int key) => + public static Ptr GetKeyName([NativeTypeName("SDL_Keycode")] uint key) => DllImport.GetKeyName(key); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetKeyNameRaw([NativeTypeName("SDL_Keycode")] int key) => + sbyte* ISdl.GetKeyNameRaw([NativeTypeName("SDL_Keycode")] uint key) => ( - (delegate* unmanaged)( - _slots[288] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[297] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[288] = nativeContext.LoadFunction("SDL_GetKeyName", "SDL3") + : _slots[297] = nativeContext.LoadFunction("SDL_GetKeyName", "SDL3") ) )(key); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] int key) => + public static sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] uint key) => DllImport.GetKeyNameRaw(key); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -47813,9 +57507,9 @@ void ISdl.GetLogOutputFunction( ) => ( (delegate* unmanaged)( - _slots[289] is not null and var loadedFnPtr + _slots[298] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[289] = nativeContext.LoadFunction("SDL_GetLogOutputFunction", "SDL3") + : _slots[298] = nativeContext.LoadFunction("SDL_GetLogOutputFunction", "SDL3") ) )(callback, userdata); @@ -47848,8 +57542,22 @@ Ref2D userdata ) => DllImport.GetLogOutputFunction(callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetMasksForPixelFormatEnum( - PixelFormatEnum format, + LogPriority ISdl.GetLogPriority(int category) => + ( + (delegate* unmanaged)( + _slots[299] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[299] = nativeContext.LoadFunction("SDL_GetLogPriority", "SDL3") + ) + )(category); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetLogPriority")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static LogPriority GetLogPriority(int category) => DllImport.GetLogPriority(category); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetMasksForPixelFormat( + PixelFormat format, int* bpp, [NativeTypeName("Uint32 *")] uint* Rmask, [NativeTypeName("Uint32 *")] uint* Gmask, @@ -47857,31 +57565,28 @@ int ISdl.GetMasksForPixelFormatEnum( [NativeTypeName("Uint32 *")] uint* Amask ) => ( - (delegate* unmanaged)( - _slots[290] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[300] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[290] = nativeContext.LoadFunction( - "SDL_GetMasksForPixelFormatEnum", - "SDL3" - ) + : _slots[300] = nativeContext.LoadFunction("SDL_GetMasksForPixelFormat", "SDL3") ) )(format, bpp, Rmask, Gmask, Bmask, Amask); - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetMasksForPixelFormatEnum( - PixelFormatEnum format, + public static byte GetMasksForPixelFormat( + PixelFormat format, int* bpp, [NativeTypeName("Uint32 *")] uint* Rmask, [NativeTypeName("Uint32 *")] uint* Gmask, [NativeTypeName("Uint32 *")] uint* Bmask, [NativeTypeName("Uint32 *")] uint* Amask - ) => DllImport.GetMasksForPixelFormatEnum(format, bpp, Rmask, Gmask, Bmask, Amask); + ) => DllImport.GetMasksForPixelFormat(format, bpp, Rmask, Gmask, Bmask, Amask); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetMasksForPixelFormatEnum( - PixelFormatEnum format, + MaybeBool ISdl.GetMasksForPixelFormat( + PixelFormat format, Ref bpp, [NativeTypeName("Uint32 *")] Ref Rmask, [NativeTypeName("Uint32 *")] Ref Gmask, @@ -47895,9 +57600,9 @@ MaybeBool ISdl.GetMasksForPixelFormatEnum( fixed (uint* __dsl_Rmask = Rmask) fixed (int* __dsl_bpp = bpp) { - return (MaybeBool) - (int) - ((ISdl)this).GetMasksForPixelFormatEnum( + return (MaybeBool) + (byte) + ((ISdl)this).GetMasksForPixelFormat( format, __dsl_bpp, __dsl_Rmask, @@ -47908,26 +57613,26 @@ MaybeBool ISdl.GetMasksForPixelFormatEnum( } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetMasksForPixelFormatEnum( - PixelFormatEnum format, + public static MaybeBool GetMasksForPixelFormat( + PixelFormat format, Ref bpp, [NativeTypeName("Uint32 *")] Ref Rmask, [NativeTypeName("Uint32 *")] Ref Gmask, [NativeTypeName("Uint32 *")] Ref Bmask, [NativeTypeName("Uint32 *")] Ref Amask - ) => DllImport.GetMasksForPixelFormatEnum(format, bpp, Rmask, Gmask, Bmask, Amask); + ) => DllImport.GetMasksForPixelFormat(format, bpp, Rmask, Gmask, Bmask, Amask); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetMaxHapticEffects(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[291] is not null and var loadedFnPtr + _slots[301] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[291] = nativeContext.LoadFunction("SDL_GetMaxHapticEffects", "SDL3") + : _slots[301] = nativeContext.LoadFunction("SDL_GetMaxHapticEffects", "SDL3") ) )(haptic); @@ -47940,9 +57645,9 @@ public static int GetMaxHapticEffects(HapticHandle haptic) => int ISdl.GetMaxHapticEffectsPlaying(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[292] is not null and var loadedFnPtr + _slots[302] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[292] = nativeContext.LoadFunction( + : _slots[302] = nativeContext.LoadFunction( "SDL_GetMaxHapticEffectsPlaying", "SDL3" ) @@ -47958,9 +57663,9 @@ public static int GetMaxHapticEffectsPlaying(HapticHandle haptic) => uint* ISdl.GetMice(int* count) => ( (delegate* unmanaged)( - _slots[293] is not null and var loadedFnPtr + _slots[303] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[293] = nativeContext.LoadFunction("SDL_GetMice", "SDL3") + : _slots[303] = nativeContext.LoadFunction("SDL_GetMice", "SDL3") ) )(count); @@ -47985,26 +57690,27 @@ Ptr ISdl.GetMice(Ref count) public static Ptr GetMice(Ref count) => DllImport.GetMice(count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Keymod ISdl.GetModState() => + ushort ISdl.GetModState() => ( - (delegate* unmanaged)( - _slots[294] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[304] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[294] = nativeContext.LoadFunction("SDL_GetModState", "SDL3") + : _slots[304] = nativeContext.LoadFunction("SDL_GetModState", "SDL3") ) )(); + [return: NativeTypeName("SDL_Keymod")] [NativeFunction("SDL3", EntryPoint = "SDL_GetModState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Keymod GetModState() => DllImport.GetModState(); + public static ushort GetModState() => DllImport.GetModState(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GetMouseFocus() => ( (delegate* unmanaged)( - _slots[295] is not null and var loadedFnPtr + _slots[305] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[295] = nativeContext.LoadFunction("SDL_GetMouseFocus", "SDL3") + : _slots[305] = nativeContext.LoadFunction("SDL_GetMouseFocus", "SDL3") ) )(); @@ -48013,45 +57719,43 @@ _slots[295] is not null and var loadedFnPtr public static WindowHandle GetMouseFocus() => DllImport.GetMouseFocus(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetMouseInstanceName([NativeTypeName("SDL_MouseID")] uint instance_id) => - (sbyte*)((ISdl)this).GetMouseInstanceNameRaw(instance_id); + Ptr ISdl.GetMouseNameForID([NativeTypeName("SDL_MouseID")] uint instance_id) => + (sbyte*)((ISdl)this).GetMouseNameForIDRaw(instance_id); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseNameForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetMouseInstanceName( - [NativeTypeName("SDL_MouseID")] uint instance_id - ) => DllImport.GetMouseInstanceName(instance_id); + public static Ptr GetMouseNameForID([NativeTypeName("SDL_MouseID")] uint instance_id) => + DllImport.GetMouseNameForID(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetMouseInstanceNameRaw([NativeTypeName("SDL_MouseID")] uint instance_id) => + sbyte* ISdl.GetMouseNameForIDRaw([NativeTypeName("SDL_MouseID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[296] is not null and var loadedFnPtr + _slots[306] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[296] = nativeContext.LoadFunction("SDL_GetMouseInstanceName", "SDL3") + : _slots[306] = nativeContext.LoadFunction("SDL_GetMouseNameForID", "SDL3") ) )(instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseNameForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetMouseInstanceNameRaw( - [NativeTypeName("SDL_MouseID")] uint instance_id - ) => DllImport.GetMouseInstanceNameRaw(instance_id); + public static sbyte* GetMouseNameForIDRaw([NativeTypeName("SDL_MouseID")] uint instance_id) => + DllImport.GetMouseNameForIDRaw(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetMouseState(float* x, float* y) => ( (delegate* unmanaged)( - _slots[297] is not null and var loadedFnPtr + _slots[307] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[297] = nativeContext.LoadFunction("SDL_GetMouseState", "SDL3") + : _slots[307] = nativeContext.LoadFunction("SDL_GetMouseState", "SDL3") ) )(x, y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static uint GetMouseState(float* x, float* y) => DllImport.GetMouseState(x, y); @@ -48066,7 +57770,7 @@ uint ISdl.GetMouseState(Ref x, Ref y) } } - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -48078,9 +57782,9 @@ DisplayOrientation ISdl.GetNaturalDisplayOrientation( ) => ( (delegate* unmanaged)( - _slots[298] is not null and var loadedFnPtr + _slots[308] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[298] = nativeContext.LoadFunction( + : _slots[308] = nativeContext.LoadFunction( "SDL_GetNaturalDisplayOrientation", "SDL3" ) @@ -48097,9 +57801,9 @@ public static DisplayOrientation GetNaturalDisplayOrientation( int ISdl.GetNumAudioDrivers() => ( (delegate* unmanaged)( - _slots[299] is not null and var loadedFnPtr + _slots[309] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[299] = nativeContext.LoadFunction("SDL_GetNumAudioDrivers", "SDL3") + : _slots[309] = nativeContext.LoadFunction("SDL_GetNumAudioDrivers", "SDL3") ) )(); @@ -48115,9 +57819,9 @@ long ISdl.GetNumberProperty( ) => ( (delegate* unmanaged)( - _slots[300] is not null and var loadedFnPtr + _slots[310] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[300] = nativeContext.LoadFunction("SDL_GetNumberProperty", "SDL3") + : _slots[310] = nativeContext.LoadFunction("SDL_GetNumberProperty", "SDL3") ) )(props, name, default_value); @@ -48157,9 +57861,9 @@ public static long GetNumberProperty( int ISdl.GetNumCameraDrivers() => ( (delegate* unmanaged)( - _slots[301] is not null and var loadedFnPtr + _slots[311] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[301] = nativeContext.LoadFunction("SDL_GetNumCameraDrivers", "SDL3") + : _slots[311] = nativeContext.LoadFunction("SDL_GetNumCameraDrivers", "SDL3") ) )(); @@ -48171,9 +57875,9 @@ _slots[301] is not null and var loadedFnPtr int ISdl.GetNumGamepadTouchpadFingers(GamepadHandle gamepad, int touchpad) => ( (delegate* unmanaged)( - _slots[302] is not null and var loadedFnPtr + _slots[312] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[302] = nativeContext.LoadFunction( + : _slots[312] = nativeContext.LoadFunction( "SDL_GetNumGamepadTouchpadFingers", "SDL3" ) @@ -48189,9 +57893,9 @@ public static int GetNumGamepadTouchpadFingers(GamepadHandle gamepad, int touchp int ISdl.GetNumGamepadTouchpads(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[303] is not null and var loadedFnPtr + _slots[313] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[303] = nativeContext.LoadFunction("SDL_GetNumGamepadTouchpads", "SDL3") + : _slots[313] = nativeContext.LoadFunction("SDL_GetNumGamepadTouchpads", "SDL3") ) )(gamepad); @@ -48204,9 +57908,9 @@ public static int GetNumGamepadTouchpads(GamepadHandle gamepad) => int ISdl.GetNumHapticAxes(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[304] is not null and var loadedFnPtr + _slots[314] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[304] = nativeContext.LoadFunction("SDL_GetNumHapticAxes", "SDL3") + : _slots[314] = nativeContext.LoadFunction("SDL_GetNumHapticAxes", "SDL3") ) )(haptic); @@ -48218,9 +57922,9 @@ _slots[304] is not null and var loadedFnPtr int ISdl.GetNumJoystickAxes(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[305] is not null and var loadedFnPtr + _slots[315] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[305] = nativeContext.LoadFunction("SDL_GetNumJoystickAxes", "SDL3") + : _slots[315] = nativeContext.LoadFunction("SDL_GetNumJoystickAxes", "SDL3") ) )(joystick); @@ -48233,9 +57937,9 @@ public static int GetNumJoystickAxes(JoystickHandle joystick) => int ISdl.GetNumJoystickBalls(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[306] is not null and var loadedFnPtr + _slots[316] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[306] = nativeContext.LoadFunction("SDL_GetNumJoystickBalls", "SDL3") + : _slots[316] = nativeContext.LoadFunction("SDL_GetNumJoystickBalls", "SDL3") ) )(joystick); @@ -48248,9 +57952,9 @@ public static int GetNumJoystickBalls(JoystickHandle joystick) => int ISdl.GetNumJoystickButtons(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[307] is not null and var loadedFnPtr + _slots[317] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[307] = nativeContext.LoadFunction("SDL_GetNumJoystickButtons", "SDL3") + : _slots[317] = nativeContext.LoadFunction("SDL_GetNumJoystickButtons", "SDL3") ) )(joystick); @@ -48263,9 +57967,9 @@ public static int GetNumJoystickButtons(JoystickHandle joystick) => int ISdl.GetNumJoystickHats(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[308] is not null and var loadedFnPtr + _slots[318] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[308] = nativeContext.LoadFunction("SDL_GetNumJoystickHats", "SDL3") + : _slots[318] = nativeContext.LoadFunction("SDL_GetNumJoystickHats", "SDL3") ) )(joystick); @@ -48274,13 +57978,27 @@ _slots[308] is not null and var loadedFnPtr public static int GetNumJoystickHats(JoystickHandle joystick) => DllImport.GetNumJoystickHats(joystick); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumLogicalCPUCores() => + ( + (delegate* unmanaged)( + _slots[319] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[319] = nativeContext.LoadFunction("SDL_GetNumLogicalCPUCores", "SDL3") + ) + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumLogicalCPUCores")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumLogicalCPUCores() => DllImport.GetNumLogicalCPUCores(); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetNumRenderDrivers() => ( (delegate* unmanaged)( - _slots[309] is not null and var loadedFnPtr + _slots[320] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[309] = nativeContext.LoadFunction("SDL_GetNumRenderDrivers", "SDL3") + : _slots[320] = nativeContext.LoadFunction("SDL_GetNumRenderDrivers", "SDL3") ) )(); @@ -48292,9 +58010,9 @@ _slots[309] is not null and var loadedFnPtr int ISdl.GetNumVideoDrivers() => ( (delegate* unmanaged)( - _slots[310] is not null and var loadedFnPtr + _slots[321] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[310] = nativeContext.LoadFunction("SDL_GetNumVideoDrivers", "SDL3") + : _slots[321] = nativeContext.LoadFunction("SDL_GetNumVideoDrivers", "SDL3") ) )(); @@ -48303,246 +58021,50 @@ _slots[310] is not null and var loadedFnPtr public static int GetNumVideoDrivers() => DllImport.GetNumVideoDrivers(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info) => + byte ISdl.GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info) => ( - (delegate* unmanaged)( - _slots[311] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[322] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[311] = nativeContext.LoadFunction("SDL_GetPathInfo", "SDL3") + : _slots[322] = nativeContext.LoadFunction("SDL_GetPathInfo", "SDL3") ) )(path, info); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info) => + public static byte GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info) => DllImport.GetPathInfo(path, info); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetPathInfo([NativeTypeName("const char *")] Ref path, Ref info) + MaybeBool ISdl.GetPathInfo( + [NativeTypeName("const char *")] Ref path, + Ref info + ) { fixed (PathInfo* __dsl_info = info) fixed (sbyte* __dsl_path = path) { - return (int)((ISdl)this).GetPathInfo(__dsl_path, __dsl_info); + return (MaybeBool)(byte)((ISdl)this).GetPathInfo(__dsl_path, __dsl_info); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetPathInfo( + public static MaybeBool GetPathInfo( [NativeTypeName("const char *")] Ref path, Ref info ) => DllImport.GetPathInfo(path, info); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - PenCapabilityInfo* capabilities - ) => - ( - (delegate* unmanaged)( - _slots[312] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[312] = nativeContext.LoadFunction("SDL_GetPenCapabilities", "SDL3") - ) - )(instance_id, capabilities); - - [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenCapabilities")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - PenCapabilityInfo* capabilities - ) => DllImport.GetPenCapabilities(instance_id, capabilities); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref capabilities - ) - { - fixed (PenCapabilityInfo* __dsl_capabilities = capabilities) - { - return (uint)((ISdl)this).GetPenCapabilities(instance_id, __dsl_capabilities); - } - } - - [return: NativeTypeName("Uint32")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenCapabilities")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetPenCapabilities( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref capabilities - ) => DllImport.GetPenCapabilities(instance_id, capabilities); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetPenFromGuid(Guid guid) => - ( - (delegate* unmanaged)( - _slots[313] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[313] = nativeContext.LoadFunction("SDL_GetPenFromGUID", "SDL3") - ) - )(guid); - - [return: NativeTypeName("SDL_PenID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenFromGUID")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetPenFromGuid(Guid guid) => DllImport.GetPenFromGuid(guid); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Guid ISdl.GetPenGuid([NativeTypeName("SDL_PenID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[314] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[314] = nativeContext.LoadFunction("SDL_GetPenGUID", "SDL3") - ) - )(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenGUID")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Guid GetPenGuid([NativeTypeName("SDL_PenID")] uint instance_id) => - DllImport.GetPenGuid(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetPenName([NativeTypeName("SDL_PenID")] uint instance_id) => - (sbyte*)((ISdl)this).GetPenNameRaw(instance_id); - - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenName")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetPenName([NativeTypeName("SDL_PenID")] uint instance_id) => - DllImport.GetPenName(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetPenNameRaw([NativeTypeName("SDL_PenID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[315] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[315] = nativeContext.LoadFunction("SDL_GetPenName", "SDL3") - ) - )(instance_id); - - [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenName")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetPenNameRaw([NativeTypeName("SDL_PenID")] uint instance_id) => - DllImport.GetPenNameRaw(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint* ISdl.GetPens(int* count) => - ( - (delegate* unmanaged)( - _slots[316] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[316] = nativeContext.LoadFunction("SDL_GetPens", "SDL3") - ) - )(count); - - [return: NativeTypeName("SDL_PenID *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint* GetPens(int* count) => DllImport.GetPens(count); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetPens(Ref count) - { - fixed (int* __dsl_count = count) - { - return (uint*)((ISdl)this).GetPens(__dsl_count); - } - } - - [return: NativeTypeName("SDL_PenID *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetPens(Ref count) => DllImport.GetPens(count); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - float* x, - float* y, - float* axes, - [NativeTypeName("size_t")] nuint num_axes - ) => - ( - (delegate* unmanaged)( - _slots[317] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[317] = nativeContext.LoadFunction("SDL_GetPenStatus", "SDL3") - ) - )(instance_id, x, y, axes, num_axes); - - [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenStatus")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - float* x, - float* y, - float* axes, - [NativeTypeName("size_t")] nuint num_axes - ) => DllImport.GetPenStatus(instance_id, x, y, axes, num_axes); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref x, - Ref y, - Ref axes, - [NativeTypeName("size_t")] nuint num_axes - ) - { - fixed (float* __dsl_axes = axes) - fixed (float* __dsl_y = y) - fixed (float* __dsl_x = x) - { - return (uint) - ((ISdl)this).GetPenStatus(instance_id, __dsl_x, __dsl_y, __dsl_axes, num_axes); - } - } - - [return: NativeTypeName("Uint32")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenStatus")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetPenStatus( - [NativeTypeName("SDL_PenID")] uint instance_id, - Ref x, - Ref y, - Ref axes, - [NativeTypeName("size_t")] nuint num_axes - ) => DllImport.GetPenStatus(instance_id, x, y, axes, num_axes); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - PenSubtype ISdl.GetPenType([NativeTypeName("SDL_PenID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[318] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[318] = nativeContext.LoadFunction("SDL_GetPenType", "SDL3") - ) - )(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetPenType")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static PenSubtype GetPenType([NativeTypeName("SDL_PenID")] uint instance_id) => - DllImport.GetPenType(instance_id); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetPerformanceCounter() => ( (delegate* unmanaged)( - _slots[319] is not null and var loadedFnPtr + _slots[323] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[319] = nativeContext.LoadFunction("SDL_GetPerformanceCounter", "SDL3") + : _slots[323] = nativeContext.LoadFunction("SDL_GetPerformanceCounter", "SDL3") ) )(); @@ -48555,9 +58077,9 @@ _slots[319] is not null and var loadedFnPtr ulong ISdl.GetPerformanceFrequency() => ( (delegate* unmanaged)( - _slots[320] is not null and var loadedFnPtr + _slots[324] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[320] = nativeContext.LoadFunction( + : _slots[324] = nativeContext.LoadFunction( "SDL_GetPerformanceFrequency", "SDL3" ) @@ -48570,7 +58092,34 @@ _slots[320] is not null and var loadedFnPtr public static ulong GetPerformanceFrequency() => DllImport.GetPerformanceFrequency(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - PixelFormatEnum ISdl.GetPixelFormatEnumForMasks( + Ptr ISdl.GetPixelFormatDetails(PixelFormat format) => + (PixelFormatDetails*)((ISdl)this).GetPixelFormatDetailsRaw(format); + + [return: NativeTypeName("const SDL_PixelFormatDetails *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatDetails")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetPixelFormatDetails(PixelFormat format) => + DllImport.GetPixelFormatDetails(format); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PixelFormatDetails* ISdl.GetPixelFormatDetailsRaw(PixelFormat format) => + ( + (delegate* unmanaged)( + _slots[325] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[325] = nativeContext.LoadFunction("SDL_GetPixelFormatDetails", "SDL3") + ) + )(format); + + [return: NativeTypeName("const SDL_PixelFormatDetails *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatDetails")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static PixelFormatDetails* GetPixelFormatDetailsRaw(PixelFormat format) => + DllImport.GetPixelFormatDetailsRaw(format); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PixelFormat ISdl.GetPixelFormatForMasks( int bpp, [NativeTypeName("Uint32")] uint Rmask, [NativeTypeName("Uint32")] uint Gmask, @@ -48578,51 +58127,48 @@ PixelFormatEnum ISdl.GetPixelFormatEnumForMasks( [NativeTypeName("Uint32")] uint Amask ) => ( - (delegate* unmanaged)( - _slots[321] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[326] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[321] = nativeContext.LoadFunction( - "SDL_GetPixelFormatEnumForMasks", - "SDL3" - ) + : _slots[326] = nativeContext.LoadFunction("SDL_GetPixelFormatForMasks", "SDL3") ) )(bpp, Rmask, Gmask, Bmask, Amask); - [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatEnumForMasks")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatForMasks")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static PixelFormatEnum GetPixelFormatEnumForMasks( + public static PixelFormat GetPixelFormatForMasks( int bpp, [NativeTypeName("Uint32")] uint Rmask, [NativeTypeName("Uint32")] uint Gmask, [NativeTypeName("Uint32")] uint Bmask, [NativeTypeName("Uint32")] uint Amask - ) => DllImport.GetPixelFormatEnumForMasks(bpp, Rmask, Gmask, Bmask, Amask); + ) => DllImport.GetPixelFormatForMasks(bpp, Rmask, Gmask, Bmask, Amask); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetPixelFormatName(PixelFormatEnum format) => + Ptr ISdl.GetPixelFormatName(PixelFormat format) => (sbyte*)((ISdl)this).GetPixelFormatNameRaw(format); [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetPixelFormatName(PixelFormatEnum format) => + public static Ptr GetPixelFormatName(PixelFormat format) => DllImport.GetPixelFormatName(format); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetPixelFormatNameRaw(PixelFormatEnum format) => + sbyte* ISdl.GetPixelFormatNameRaw(PixelFormat format) => ( - (delegate* unmanaged)( - _slots[322] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[327] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[322] = nativeContext.LoadFunction("SDL_GetPixelFormatName", "SDL3") + : _slots[327] = nativeContext.LoadFunction("SDL_GetPixelFormatName", "SDL3") ) )(format); [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetPixelFormatNameRaw(PixelFormatEnum format) => + public static sbyte* GetPixelFormatNameRaw(PixelFormat format) => DllImport.GetPixelFormatNameRaw(format); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -48638,9 +58184,9 @@ _slots[322] is not null and var loadedFnPtr sbyte* ISdl.GetPlatformRaw() => ( (delegate* unmanaged)( - _slots[323] is not null and var loadedFnPtr + _slots[328] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[323] = nativeContext.LoadFunction("SDL_GetPlatform", "SDL3") + : _slots[328] = nativeContext.LoadFunction("SDL_GetPlatform", "SDL3") ) )(); @@ -48650,145 +58196,7 @@ _slots[323] is not null and var loadedFnPtr public static sbyte* GetPlatformRaw() => DllImport.GetPlatformRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - PowerState ISdl.GetPowerInfo(int* seconds, int* percent) => - ( - (delegate* unmanaged)( - _slots[324] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[324] = nativeContext.LoadFunction("SDL_GetPowerInfo", "SDL3") - ) - )(seconds, percent); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static PowerState GetPowerInfo(int* seconds, int* percent) => - DllImport.GetPowerInfo(seconds, percent); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - PowerState ISdl.GetPowerInfo(Ref seconds, Ref percent) - { - fixed (int* __dsl_percent = percent) - fixed (int* __dsl_seconds = seconds) - { - return (PowerState)((ISdl)this).GetPowerInfo(__dsl_seconds, __dsl_percent); - } - } - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static PowerState GetPowerInfo(Ref seconds, Ref percent) => - DllImport.GetPowerInfo(seconds, percent); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetPreferredLocales() => (Locale*)((ISdl)this).GetPreferredLocalesRaw(); - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetPreferredLocales() => DllImport.GetPreferredLocales(); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Locale* ISdl.GetPreferredLocalesRaw() => - ( - (delegate* unmanaged)( - _slots[325] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[325] = nativeContext.LoadFunction("SDL_GetPreferredLocales", "SDL3") - ) - )(); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Locale* GetPreferredLocalesRaw() => DllImport.GetPreferredLocalesRaw(); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetPrefPath( - [NativeTypeName("const char *")] sbyte* org, - [NativeTypeName("const char *")] sbyte* app - ) => - ( - (delegate* unmanaged)( - _slots[326] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[326] = nativeContext.LoadFunction("SDL_GetPrefPath", "SDL3") - ) - )(org, app); - - [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPrefPath")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetPrefPath( - [NativeTypeName("const char *")] sbyte* org, - [NativeTypeName("const char *")] sbyte* app - ) => DllImport.GetPrefPath(org, app); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetPrefPath( - [NativeTypeName("const char *")] Ref org, - [NativeTypeName("const char *")] Ref app - ) - { - fixed (sbyte* __dsl_app = app) - fixed (sbyte* __dsl_org = org) - { - return (sbyte*)((ISdl)this).GetPrefPath(__dsl_org, __dsl_app); - } - } - - [return: NativeTypeName("char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPrefPath")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetPrefPath( - [NativeTypeName("const char *")] Ref org, - [NativeTypeName("const char *")] Ref app - ) => DllImport.GetPrefPath(org, app); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetPrimaryDisplay() => - ( - (delegate* unmanaged)( - _slots[327] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[327] = nativeContext.LoadFunction("SDL_GetPrimaryDisplay", "SDL3") - ) - )(); - - [return: NativeTypeName("SDL_DisplayID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimaryDisplay")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetPrimaryDisplay() => DllImport.GetPrimaryDisplay(); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetPrimarySelectionText() => (sbyte*)((ISdl)this).GetPrimarySelectionTextRaw(); - - [return: NativeTypeName("char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetPrimarySelectionText() => DllImport.GetPrimarySelectionText(); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetPrimarySelectionTextRaw() => - ( - (delegate* unmanaged)( - _slots[328] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[328] = nativeContext.LoadFunction( - "SDL_GetPrimarySelectionText", - "SDL3" - ) - ) - )(); - - [return: NativeTypeName("char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetPrimarySelectionTextRaw() => DllImport.GetPrimarySelectionTextRaw(); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void* ISdl.GetProperty( + void* ISdl.GetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* default_value @@ -48797,20 +58205,20 @@ _slots[328] is not null and var loadedFnPtr (delegate* unmanaged)( _slots[329] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[329] = nativeContext.LoadFunction("SDL_GetProperty", "SDL3") + : _slots[329] = nativeContext.LoadFunction("SDL_GetPointerProperty", "SDL3") ) )(props, name, default_value); - [NativeFunction("SDL3", EntryPoint = "SDL_GetProperty")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPointerProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void* GetProperty( + public static void* GetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* default_value - ) => DllImport.GetProperty(props, name, default_value); + ) => DllImport.GetPointerProperty(props, name, default_value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetProperty( + Ptr ISdl.GetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref default_value @@ -48819,18 +58227,163 @@ Ref default_value fixed (void* __dsl_default_value = default_value) fixed (sbyte* __dsl_name = name) { - return (void*)((ISdl)this).GetProperty(props, __dsl_name, __dsl_default_value); + return (void*)((ISdl)this).GetPointerProperty(props, __dsl_name, __dsl_default_value); } } [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetProperty")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPointerProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetProperty( + public static Ptr GetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref default_value - ) => DllImport.GetProperty(props, name, default_value); + ) => DllImport.GetPointerProperty(props, name, default_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PowerState ISdl.GetPowerInfo(int* seconds, int* percent) => + ( + (delegate* unmanaged)( + _slots[330] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[330] = nativeContext.LoadFunction("SDL_GetPowerInfo", "SDL3") + ) + )(seconds, percent); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static PowerState GetPowerInfo(int* seconds, int* percent) => + DllImport.GetPowerInfo(seconds, percent); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PowerState ISdl.GetPowerInfo(Ref seconds, Ref percent) + { + fixed (int* __dsl_percent = percent) + fixed (int* __dsl_seconds = seconds) + { + return (PowerState)((ISdl)this).GetPowerInfo(__dsl_seconds, __dsl_percent); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static PowerState GetPowerInfo(Ref seconds, Ref percent) => + DllImport.GetPowerInfo(seconds, percent); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Locale** ISdl.GetPreferredLocales(int* count) => + ( + (delegate* unmanaged)( + _slots[331] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[331] = nativeContext.LoadFunction("SDL_GetPreferredLocales", "SDL3") + ) + )(count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Locale** GetPreferredLocales(int* count) => DllImport.GetPreferredLocales(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr2D ISdl.GetPreferredLocales(Ref count) + { + fixed (int* __dsl_count = count) + { + return (Locale**)((ISdl)this).GetPreferredLocales(__dsl_count); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr2D GetPreferredLocales(Ref count) => + DllImport.GetPreferredLocales(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetPrefPath( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app + ) => + ( + (delegate* unmanaged)( + _slots[332] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[332] = nativeContext.LoadFunction("SDL_GetPrefPath", "SDL3") + ) + )(org, app); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrefPath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetPrefPath( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app + ) => DllImport.GetPrefPath(org, app); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetPrefPath( + [NativeTypeName("const char *")] Ref org, + [NativeTypeName("const char *")] Ref app + ) + { + fixed (sbyte* __dsl_app = app) + fixed (sbyte* __dsl_org = org) + { + return (sbyte*)((ISdl)this).GetPrefPath(__dsl_org, __dsl_app); + } + } + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrefPath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetPrefPath( + [NativeTypeName("const char *")] Ref org, + [NativeTypeName("const char *")] Ref app + ) => DllImport.GetPrefPath(org, app); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetPrimaryDisplay() => + ( + (delegate* unmanaged)( + _slots[333] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[333] = nativeContext.LoadFunction("SDL_GetPrimaryDisplay", "SDL3") + ) + )(); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimaryDisplay")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetPrimaryDisplay() => DllImport.GetPrimaryDisplay(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetPrimarySelectionText() => (sbyte*)((ISdl)this).GetPrimarySelectionTextRaw(); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetPrimarySelectionText() => DllImport.GetPrimarySelectionText(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetPrimarySelectionTextRaw() => + ( + (delegate* unmanaged)( + _slots[334] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[334] = nativeContext.LoadFunction( + "SDL_GetPrimarySelectionText", + "SDL3" + ) + ) + )(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetPrimarySelectionTextRaw() => DllImport.GetPrimarySelectionTextRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] PropertyType ISdl.GetPropertyType( @@ -48839,9 +58392,9 @@ PropertyType ISdl.GetPropertyType( ) => ( (delegate* unmanaged)( - _slots[330] is not null and var loadedFnPtr + _slots[335] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[330] = nativeContext.LoadFunction("SDL_GetPropertyType", "SDL3") + : _slots[335] = nativeContext.LoadFunction("SDL_GetPropertyType", "SDL3") ) )(props, name); @@ -48873,43 +58426,41 @@ public static PropertyType GetPropertyType( ) => DllImport.GetPropertyType(props, name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - GamepadType ISdl.GetRealGamepadInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => + GamepadType ISdl.GetRealGamepadType(GamepadHandle gamepad) => ( - (delegate* unmanaged)( - _slots[331] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[336] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[331] = nativeContext.LoadFunction( - "SDL_GetRealGamepadInstanceType", - "SDL3" - ) + : _slots[336] = nativeContext.LoadFunction("SDL_GetRealGamepadType", "SDL3") ) - )(instance_id); + )(gamepad); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadInstanceType")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static GamepadType GetRealGamepadInstanceType( - [NativeTypeName("SDL_JoystickID")] uint instance_id - ) => DllImport.GetRealGamepadInstanceType(instance_id); + public static GamepadType GetRealGamepadType(GamepadHandle gamepad) => + DllImport.GetRealGamepadType(gamepad); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - GamepadType ISdl.GetRealGamepadType(GamepadHandle gamepad) => + GamepadType ISdl.GetRealGamepadTypeForID([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged)( - _slots[332] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[337] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[332] = nativeContext.LoadFunction("SDL_GetRealGamepadType", "SDL3") + : _slots[337] = nativeContext.LoadFunction( + "SDL_GetRealGamepadTypeForID", + "SDL3" + ) ) - )(gamepad); + )(instance_id); - [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadTypeForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static GamepadType GetRealGamepadType(GamepadHandle gamepad) => - DllImport.GetRealGamepadType(gamepad); + public static GamepadType GetRealGamepadTypeForID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetRealGamepadTypeForID(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRectAndLineIntersection( + byte ISdl.GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Rect* rect, int* X1, int* Y1, @@ -48917,20 +58468,20 @@ int ISdl.GetRectAndLineIntersection( int* Y2 ) => ( - (delegate* unmanaged)( - _slots[333] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[338] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[333] = nativeContext.LoadFunction( + : _slots[338] = nativeContext.LoadFunction( "SDL_GetRectAndLineIntersection", "SDL3" ) ) )(rect, X1, Y1, X2, Y2); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRectAndLineIntersection( + public static byte GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Rect* rect, int* X1, int* Y1, @@ -48939,7 +58490,7 @@ public static int GetRectAndLineIntersection( ) => DllImport.GetRectAndLineIntersection(rect, X1, Y1, X2, Y2); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetRectAndLineIntersection( + MaybeBool ISdl.GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Ref rect, Ref X1, Ref Y1, @@ -48953,8 +58504,8 @@ Ref Y2 fixed (int* __dsl_X1 = X1) fixed (Rect* __dsl_rect = rect) { - return (MaybeBool) - (int) + return (MaybeBool) + (byte) ((ISdl)this).GetRectAndLineIntersection( __dsl_rect, __dsl_X1, @@ -48965,11 +58516,11 @@ Ref Y2 } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetRectAndLineIntersection( + public static MaybeBool GetRectAndLineIntersection( [NativeTypeName("const SDL_Rect *")] Ref rect, Ref X1, Ref Y1, @@ -48978,7 +58529,7 @@ Ref Y2 ) => DllImport.GetRectAndLineIntersection(rect, X1, Y1, X2, Y2); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRectAndLineIntersectionFloat( + byte ISdl.GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* rect, float* X1, float* Y1, @@ -48986,20 +58537,20 @@ int ISdl.GetRectAndLineIntersectionFloat( float* Y2 ) => ( - (delegate* unmanaged)( - _slots[334] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[339] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[334] = nativeContext.LoadFunction( + : _slots[339] = nativeContext.LoadFunction( "SDL_GetRectAndLineIntersectionFloat", "SDL3" ) ) )(rect, X1, Y1, X2, Y2); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRectAndLineIntersectionFloat( + public static byte GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* rect, float* X1, float* Y1, @@ -49008,7 +58559,7 @@ public static int GetRectAndLineIntersectionFloat( ) => DllImport.GetRectAndLineIntersectionFloat(rect, X1, Y1, X2, Y2); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetRectAndLineIntersectionFloat( + MaybeBool ISdl.GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref rect, Ref X1, Ref Y1, @@ -49022,8 +58573,8 @@ Ref Y2 fixed (float* __dsl_X1 = X1) fixed (FRect* __dsl_rect = rect) { - return (MaybeBool) - (int) + return (MaybeBool) + (byte) ((ISdl)this).GetRectAndLineIntersectionFloat( __dsl_rect, __dsl_X1, @@ -49034,11 +58585,11 @@ Ref Y2 } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetRectAndLineIntersectionFloat( + public static MaybeBool GetRectAndLineIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref rect, Ref X1, Ref Y1, @@ -49047,24 +58598,24 @@ Ref Y2 ) => DllImport.GetRectAndLineIntersectionFloat(rect, X1, Y1, X2, Y2); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRectEnclosingPoints( + byte ISdl.GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Point* points, int count, [NativeTypeName("const SDL_Rect *")] Rect* clip, Rect* result ) => ( - (delegate* unmanaged)( - _slots[335] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[340] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[335] = nativeContext.LoadFunction("SDL_GetRectEnclosingPoints", "SDL3") + : _slots[340] = nativeContext.LoadFunction("SDL_GetRectEnclosingPoints", "SDL3") ) )(points, count, clip, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRectEnclosingPoints( + public static byte GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Point* points, int count, [NativeTypeName("const SDL_Rect *")] Rect* clip, @@ -49072,7 +58623,7 @@ public static int GetRectEnclosingPoints( ) => DllImport.GetRectEnclosingPoints(points, count, clip, result); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetRectEnclosingPoints( + MaybeBool ISdl.GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Ref points, int count, [NativeTypeName("const SDL_Rect *")] Ref clip, @@ -49083,8 +58634,8 @@ Ref result fixed (Rect* __dsl_clip = clip) fixed (Point* __dsl_points = points) { - return (MaybeBool) - (int) + return (MaybeBool) + (byte) ((ISdl)this).GetRectEnclosingPoints( __dsl_points, count, @@ -49094,11 +58645,11 @@ Ref result } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetRectEnclosingPoints( + public static MaybeBool GetRectEnclosingPoints( [NativeTypeName("const SDL_Point *")] Ref points, int count, [NativeTypeName("const SDL_Rect *")] Ref clip, @@ -49106,27 +58657,27 @@ Ref result ) => DllImport.GetRectEnclosingPoints(points, count, clip, result); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRectEnclosingPointsFloat( + byte ISdl.GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count, [NativeTypeName("const SDL_FRect *")] FRect* clip, FRect* result ) => ( - (delegate* unmanaged)( - _slots[336] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[341] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[336] = nativeContext.LoadFunction( + : _slots[341] = nativeContext.LoadFunction( "SDL_GetRectEnclosingPointsFloat", "SDL3" ) ) )(points, count, clip, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRectEnclosingPointsFloat( + public static byte GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count, [NativeTypeName("const SDL_FRect *")] FRect* clip, @@ -49134,7 +58685,7 @@ public static int GetRectEnclosingPointsFloat( ) => DllImport.GetRectEnclosingPointsFloat(points, count, clip, result); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetRectEnclosingPointsFloat( + MaybeBool ISdl.GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] Ref points, int count, [NativeTypeName("const SDL_FRect *")] Ref clip, @@ -49145,8 +58696,8 @@ Ref result fixed (FRect* __dsl_clip = clip) fixed (FPoint* __dsl_points = points) { - return (MaybeBool) - (int) + return (MaybeBool) + (byte) ((ISdl)this).GetRectEnclosingPointsFloat( __dsl_points, count, @@ -49156,11 +58707,11 @@ Ref result } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetRectEnclosingPointsFloat( + public static MaybeBool GetRectEnclosingPointsFloat( [NativeTypeName("const SDL_FPoint *")] Ref points, int count, [NativeTypeName("const SDL_FRect *")] Ref clip, @@ -49168,30 +58719,30 @@ Ref result ) => DllImport.GetRectEnclosingPointsFloat(points, count, clip, result); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRectIntersection( + byte ISdl.GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ) => ( - (delegate* unmanaged)( - _slots[337] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[342] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[337] = nativeContext.LoadFunction("SDL_GetRectIntersection", "SDL3") + : _slots[342] = nativeContext.LoadFunction("SDL_GetRectIntersection", "SDL3") ) )(A, B, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRectIntersection( + public static byte GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ) => DllImport.GetRectIntersection(A, B, result); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetRectIntersection( + MaybeBool ISdl.GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result @@ -49201,49 +58752,49 @@ Ref result fixed (Rect* __dsl_B = B) fixed (Rect* __dsl_A = A) { - return (MaybeBool) - (int)((ISdl)this).GetRectIntersection(__dsl_A, __dsl_B, __dsl_result); + return (MaybeBool) + (byte)((ISdl)this).GetRectIntersection(__dsl_A, __dsl_B, __dsl_result); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetRectIntersection( + public static MaybeBool GetRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result ) => DllImport.GetRectIntersection(A, B, result); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRectIntersectionFloat( + byte ISdl.GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ) => ( - (delegate* unmanaged)( - _slots[338] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[343] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[338] = nativeContext.LoadFunction( + : _slots[343] = nativeContext.LoadFunction( "SDL_GetRectIntersectionFloat", "SDL3" ) ) )(A, B, result); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRectIntersectionFloat( + public static byte GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ) => DllImport.GetRectIntersectionFloat(A, B, result); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetRectIntersectionFloat( + MaybeBool ISdl.GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result @@ -49253,45 +58804,46 @@ Ref result fixed (FRect* __dsl_B = B) fixed (FRect* __dsl_A = A) { - return (MaybeBool) - (int)((ISdl)this).GetRectIntersectionFloat(__dsl_A, __dsl_B, __dsl_result); + return (MaybeBool) + (byte)((ISdl)this).GetRectIntersectionFloat(__dsl_A, __dsl_B, __dsl_result); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetRectIntersectionFloat( + public static MaybeBool GetRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result ) => DllImport.GetRectIntersectionFloat(A, B, result); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRectUnion( + byte ISdl.GetRectUnion( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ) => ( - (delegate* unmanaged)( - _slots[339] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[344] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[339] = nativeContext.LoadFunction("SDL_GetRectUnion", "SDL3") + : _slots[344] = nativeContext.LoadFunction("SDL_GetRectUnion", "SDL3") ) )(A, B, result); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRectUnion( + public static byte GetRectUnion( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B, Rect* result ) => DllImport.GetRectUnion(A, B, result); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRectUnion( + MaybeBool ISdl.GetRectUnion( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result @@ -49301,43 +58853,45 @@ Ref result fixed (Rect* __dsl_B = B) fixed (Rect* __dsl_A = A) { - return (int)((ISdl)this).GetRectUnion(__dsl_A, __dsl_B, __dsl_result); + return (MaybeBool)(byte)((ISdl)this).GetRectUnion(__dsl_A, __dsl_B, __dsl_result); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRectUnion( + public static MaybeBool GetRectUnion( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B, Ref result ) => DllImport.GetRectUnion(A, B, result); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRectUnionFloat( + byte ISdl.GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ) => ( - (delegate* unmanaged)( - _slots[340] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[345] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[340] = nativeContext.LoadFunction("SDL_GetRectUnionFloat", "SDL3") + : _slots[345] = nativeContext.LoadFunction("SDL_GetRectUnionFloat", "SDL3") ) )(A, B, result); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRectUnionFloat( + public static byte GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B, FRect* result ) => DllImport.GetRectUnionFloat(A, B, result); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRectUnionFloat( + MaybeBool ISdl.GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result @@ -49347,55 +58901,32 @@ Ref result fixed (FRect* __dsl_B = B) fixed (FRect* __dsl_A = A) { - return (int)((ISdl)this).GetRectUnionFloat(__dsl_A, __dsl_B, __dsl_result); + return (MaybeBool) + (byte)((ISdl)this).GetRectUnionFloat(__dsl_A, __dsl_B, __dsl_result); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRectUnionFloat( + public static MaybeBool GetRectUnionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B, Ref result ) => DllImport.GetRectUnionFloat(A, B, result); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetRelativeMouseMode() => - (MaybeBool)(int)((ISdl)this).GetRelativeMouseModeRaw(); - - [return: NativeTypeName("SDL_bool")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseMode")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetRelativeMouseMode() => DllImport.GetRelativeMouseMode(); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRelativeMouseModeRaw() => - ( - (delegate* unmanaged)( - _slots[341] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[341] = nativeContext.LoadFunction("SDL_GetRelativeMouseMode", "SDL3") - ) - )(); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseMode")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRelativeMouseModeRaw() => DllImport.GetRelativeMouseModeRaw(); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetRelativeMouseState(float* x, float* y) => ( (delegate* unmanaged)( - _slots[342] is not null and var loadedFnPtr + _slots[346] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[342] = nativeContext.LoadFunction("SDL_GetRelativeMouseState", "SDL3") + : _slots[346] = nativeContext.LoadFunction("SDL_GetRelativeMouseState", "SDL3") ) )(x, y); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static uint GetRelativeMouseState(float* x, float* y) => @@ -49411,7 +58942,7 @@ uint ISdl.GetRelativeMouseState(Ref x, Ref y) } } - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_MouseButtonFlags")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -49419,97 +58950,114 @@ public static uint GetRelativeMouseState(Ref x, Ref y) => DllImport.GetRelativeMouseState(x, y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderClipRect(RendererHandle renderer, Rect* rect) => + byte ISdl.GetRenderClipRect(RendererHandle renderer, Rect* rect) => ( - (delegate* unmanaged)( - _slots[343] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[347] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[343] = nativeContext.LoadFunction("SDL_GetRenderClipRect", "SDL3") + : _slots[347] = nativeContext.LoadFunction("SDL_GetRenderClipRect", "SDL3") ) )(renderer, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderClipRect(RendererHandle renderer, Rect* rect) => + public static byte GetRenderClipRect(RendererHandle renderer, Rect* rect) => DllImport.GetRenderClipRect(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderClipRect(RendererHandle renderer, Ref rect) + MaybeBool ISdl.GetRenderClipRect(RendererHandle renderer, Ref rect) { fixed (Rect* __dsl_rect = rect) { - return (int)((ISdl)this).GetRenderClipRect(renderer, __dsl_rect); + return (MaybeBool)(byte)((ISdl)this).GetRenderClipRect(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderClipRect(RendererHandle renderer, Ref rect) => + public static MaybeBool GetRenderClipRect(RendererHandle renderer, Ref rect) => DllImport.GetRenderClipRect(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderColorScale(RendererHandle renderer, float* scale) => + byte ISdl.GetRenderColorScale(RendererHandle renderer, float* scale) => ( - (delegate* unmanaged)( - _slots[344] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[348] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[344] = nativeContext.LoadFunction("SDL_GetRenderColorScale", "SDL3") + : _slots[348] = nativeContext.LoadFunction("SDL_GetRenderColorScale", "SDL3") ) )(renderer, scale); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderColorScale(RendererHandle renderer, float* scale) => + public static byte GetRenderColorScale(RendererHandle renderer, float* scale) => DllImport.GetRenderColorScale(renderer, scale); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderColorScale(RendererHandle renderer, Ref scale) + MaybeBool ISdl.GetRenderColorScale(RendererHandle renderer, Ref scale) { fixed (float* __dsl_scale = scale) { - return (int)((ISdl)this).GetRenderColorScale(renderer, __dsl_scale); + return (MaybeBool)(byte)((ISdl)this).GetRenderColorScale(renderer, __dsl_scale); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderColorScale(RendererHandle renderer, Ref scale) => + public static MaybeBool GetRenderColorScale(RendererHandle renderer, Ref scale) => DllImport.GetRenderColorScale(renderer, scale); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderDrawBlendMode(RendererHandle renderer, BlendMode* blendMode) => + byte ISdl.GetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ) => ( - (delegate* unmanaged)( - _slots[345] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[349] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[345] = nativeContext.LoadFunction("SDL_GetRenderDrawBlendMode", "SDL3") + : _slots[349] = nativeContext.LoadFunction("SDL_GetRenderDrawBlendMode", "SDL3") ) )(renderer, blendMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderDrawBlendMode(RendererHandle renderer, BlendMode* blendMode) => - DllImport.GetRenderDrawBlendMode(renderer, blendMode); + public static byte GetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ) => DllImport.GetRenderDrawBlendMode(renderer, blendMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderDrawBlendMode(RendererHandle renderer, Ref blendMode) + MaybeBool ISdl.GetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) { fixed (BlendMode* __dsl_blendMode = blendMode) { - return (int)((ISdl)this).GetRenderDrawBlendMode(renderer, __dsl_blendMode); + return (MaybeBool) + (byte)((ISdl)this).GetRenderDrawBlendMode(renderer, __dsl_blendMode); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderDrawBlendMode(RendererHandle renderer, Ref blendMode) => - DllImport.GetRenderDrawBlendMode(renderer, blendMode); + public static MaybeBool GetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) => DllImport.GetRenderDrawBlendMode(renderer, blendMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderDrawColor( + byte ISdl.GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, @@ -49517,16 +59065,17 @@ int ISdl.GetRenderDrawColor( [NativeTypeName("Uint8 *")] byte* a ) => ( - (delegate* unmanaged)( - _slots[346] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[350] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[346] = nativeContext.LoadFunction("SDL_GetRenderDrawColor", "SDL3") + : _slots[350] = nativeContext.LoadFunction("SDL_GetRenderDrawColor", "SDL3") ) )(renderer, r, g, b, a); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderDrawColor( + public static byte GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, @@ -49535,7 +59084,7 @@ public static int GetRenderDrawColor( ) => DllImport.GetRenderDrawColor(renderer, r, g, b, a); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderDrawColor( + MaybeBool ISdl.GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -49548,15 +59097,16 @@ int ISdl.GetRenderDrawColor( fixed (byte* __dsl_g = g) fixed (byte* __dsl_r = r) { - return (int) - ((ISdl)this).GetRenderDrawColor(renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + return (MaybeBool) + (byte)((ISdl)this).GetRenderDrawColor(renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderDrawColor( + public static MaybeBool GetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -49565,7 +59115,7 @@ public static int GetRenderDrawColor( ) => DllImport.GetRenderDrawColor(renderer, r, g, b, a); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderDrawColorFloat( + byte ISdl.GetRenderDrawColorFloat( RendererHandle renderer, float* r, float* g, @@ -49573,19 +59123,20 @@ int ISdl.GetRenderDrawColorFloat( float* a ) => ( - (delegate* unmanaged)( - _slots[347] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[351] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[347] = nativeContext.LoadFunction( + : _slots[351] = nativeContext.LoadFunction( "SDL_GetRenderDrawColorFloat", "SDL3" ) ) )(renderer, r, g, b, a); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderDrawColorFloat( + public static byte GetRenderDrawColorFloat( RendererHandle renderer, float* r, float* g, @@ -49594,7 +59145,7 @@ public static int GetRenderDrawColorFloat( ) => DllImport.GetRenderDrawColorFloat(renderer, r, g, b, a); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderDrawColorFloat( + MaybeBool ISdl.GetRenderDrawColorFloat( RendererHandle renderer, Ref r, Ref g, @@ -49607,15 +59158,23 @@ Ref a fixed (float* __dsl_g = g) fixed (float* __dsl_r = r) { - return (int) - ((ISdl)this).GetRenderDrawColorFloat(renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + return (MaybeBool) + (byte) + ((ISdl)this).GetRenderDrawColorFloat( + renderer, + __dsl_r, + __dsl_g, + __dsl_b, + __dsl_a + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderDrawColorFloat( + public static MaybeBool GetRenderDrawColorFloat( RendererHandle renderer, Ref r, Ref g, @@ -49636,9 +59195,9 @@ Ref a sbyte* ISdl.GetRenderDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[348] is not null and var loadedFnPtr + _slots[352] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[348] = nativeContext.LoadFunction("SDL_GetRenderDriver", "SDL3") + : _slots[352] = nativeContext.LoadFunction("SDL_GetRenderDriver", "SDL3") ) )(index); @@ -49651,9 +59210,9 @@ _slots[348] is not null and var loadedFnPtr RendererHandle ISdl.GetRenderer(WindowHandle window) => ( (delegate* unmanaged)( - _slots[349] is not null and var loadedFnPtr + _slots[353] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[349] = nativeContext.LoadFunction("SDL_GetRenderer", "SDL3") + : _slots[353] = nativeContext.LoadFunction("SDL_GetRenderer", "SDL3") ) )(window); @@ -49662,57 +59221,69 @@ _slots[349] is not null and var loadedFnPtr public static RendererHandle GetRenderer(WindowHandle window) => DllImport.GetRenderer(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - RendererHandle ISdl.GetRendererFromTexture(TextureHandle texture) => + RendererHandle ISdl.GetRendererFromTexture(Texture* texture) => ( - (delegate* unmanaged)( - _slots[350] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[354] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[350] = nativeContext.LoadFunction("SDL_GetRendererFromTexture", "SDL3") + : _slots[354] = nativeContext.LoadFunction("SDL_GetRendererFromTexture", "SDL3") ) )(texture); [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static RendererHandle GetRendererFromTexture(TextureHandle texture) => + public static RendererHandle GetRendererFromTexture(Texture* texture) => DllImport.GetRendererFromTexture(texture); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRendererInfo(RendererHandle renderer, RendererInfo* info) => - ( - (delegate* unmanaged)( - _slots[351] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[351] = nativeContext.LoadFunction("SDL_GetRendererInfo", "SDL3") - ) - )(renderer, info); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRendererInfo(RendererHandle renderer, RendererInfo* info) => - DllImport.GetRendererInfo(renderer, info); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRendererInfo(RendererHandle renderer, Ref info) + RendererHandle ISdl.GetRendererFromTexture(Ref texture) { - fixed (RendererInfo* __dsl_info = info) + fixed (Texture* __dsl_texture = texture) { - return (int)((ISdl)this).GetRendererInfo(renderer, __dsl_info); + return (RendererHandle)((ISdl)this).GetRendererFromTexture(__dsl_texture); } } [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static RendererHandle GetRendererFromTexture(Ref texture) => + DllImport.GetRendererFromTexture(texture); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetRendererName(RendererHandle renderer) => + (sbyte*)((ISdl)this).GetRendererNameRaw(renderer); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRendererInfo(RendererHandle renderer, Ref info) => - DllImport.GetRendererInfo(renderer, info); + public static Ptr GetRendererName(RendererHandle renderer) => + DllImport.GetRendererName(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetRendererNameRaw(RendererHandle renderer) => + ( + (delegate* unmanaged)( + _slots[355] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[355] = nativeContext.LoadFunction("SDL_GetRendererName", "SDL3") + ) + )(renderer); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetRendererNameRaw(RendererHandle renderer) => + DllImport.GetRendererNameRaw(renderer); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetRendererProperties(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[352] is not null and var loadedFnPtr + _slots[356] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[352] = nativeContext.LoadFunction("SDL_GetRendererProperties", "SDL3") + : _slots[356] = nativeContext.LoadFunction("SDL_GetRendererProperties", "SDL3") ) )(renderer); @@ -49723,75 +59294,104 @@ public static uint GetRendererProperties(RendererHandle renderer) => DllImport.GetRendererProperties(renderer); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderLogicalPresentation( + byte ISdl.GetRenderLogicalPresentation( RendererHandle renderer, int* w, int* h, - RendererLogicalPresentation* mode, - ScaleMode* scale_mode + RendererLogicalPresentation* mode ) => ( - (delegate* unmanaged< - RendererHandle, - int*, - int*, - RendererLogicalPresentation*, - ScaleMode*, - int>)( - _slots[353] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[357] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[353] = nativeContext.LoadFunction( + : _slots[357] = nativeContext.LoadFunction( "SDL_GetRenderLogicalPresentation", "SDL3" ) ) - )(renderer, w, h, mode, scale_mode); + )(renderer, w, h, mode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderLogicalPresentation( + public static byte GetRenderLogicalPresentation( RendererHandle renderer, int* w, int* h, - RendererLogicalPresentation* mode, - ScaleMode* scale_mode - ) => DllImport.GetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + RendererLogicalPresentation* mode + ) => DllImport.GetRenderLogicalPresentation(renderer, w, h, mode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderLogicalPresentation( + MaybeBool ISdl.GetRenderLogicalPresentation( RendererHandle renderer, Ref w, Ref h, - Ref mode, - Ref scale_mode + Ref mode ) { - fixed (ScaleMode* __dsl_scale_mode = scale_mode) fixed (RendererLogicalPresentation* __dsl_mode = mode) fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int) - ((ISdl)this).GetRenderLogicalPresentation( - renderer, - __dsl_w, - __dsl_h, - __dsl_mode, - __dsl_scale_mode - ); + return (MaybeBool) + (byte) + ((ISdl)this).GetRenderLogicalPresentation( + renderer, + __dsl_w, + __dsl_h, + __dsl_mode + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderLogicalPresentation( + public static MaybeBool GetRenderLogicalPresentation( RendererHandle renderer, Ref w, Ref h, - Ref mode, - Ref scale_mode - ) => DllImport.GetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + Ref mode + ) => DllImport.GetRenderLogicalPresentation(renderer, w, h, mode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetRenderLogicalPresentationRect(RendererHandle renderer, FRect* rect) => + ( + (delegate* unmanaged)( + _slots[358] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[358] = nativeContext.LoadFunction( + "SDL_GetRenderLogicalPresentationRect", + "SDL3" + ) + ) + )(renderer, rect); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentationRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetRenderLogicalPresentationRect(RendererHandle renderer, FRect* rect) => + DllImport.GetRenderLogicalPresentationRect(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetRenderLogicalPresentationRect(RendererHandle renderer, Ref rect) + { + fixed (FRect* __dsl_rect = rect) + { + return (MaybeBool) + (byte)((ISdl)this).GetRenderLogicalPresentationRect(renderer, __dsl_rect); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentationRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetRenderLogicalPresentationRect( + RendererHandle renderer, + Ref rect + ) => DllImport.GetRenderLogicalPresentationRect(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetRenderMetalCommandEncoder(RendererHandle renderer) => @@ -49807,9 +59407,9 @@ public static Ptr GetRenderMetalCommandEncoder(RendererHandle renderer) => void* ISdl.GetRenderMetalCommandEncoderRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[354] is not null and var loadedFnPtr + _slots[359] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[354] = nativeContext.LoadFunction( + : _slots[359] = nativeContext.LoadFunction( "SDL_GetRenderMetalCommandEncoder", "SDL3" ) @@ -49835,9 +59435,9 @@ public static Ptr GetRenderMetalLayer(RendererHandle renderer) => void* ISdl.GetRenderMetalLayerRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[355] is not null and var loadedFnPtr + _slots[360] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[355] = nativeContext.LoadFunction("SDL_GetRenderMetalLayer", "SDL3") + : _slots[360] = nativeContext.LoadFunction("SDL_GetRenderMetalLayer", "SDL3") ) )(renderer); @@ -49847,152 +59447,211 @@ _slots[355] is not null and var loadedFnPtr DllImport.GetRenderMetalLayerRaw(renderer); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderOutputSize(RendererHandle renderer, int* w, int* h) => + byte ISdl.GetRenderOutputSize(RendererHandle renderer, int* w, int* h) => ( - (delegate* unmanaged)( - _slots[356] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[361] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[356] = nativeContext.LoadFunction("SDL_GetRenderOutputSize", "SDL3") + : _slots[361] = nativeContext.LoadFunction("SDL_GetRenderOutputSize", "SDL3") ) )(renderer, w, h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderOutputSize(RendererHandle renderer, int* w, int* h) => + public static byte GetRenderOutputSize(RendererHandle renderer, int* w, int* h) => DllImport.GetRenderOutputSize(renderer, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderOutputSize(RendererHandle renderer, Ref w, Ref h) + MaybeBool ISdl.GetRenderOutputSize(RendererHandle renderer, Ref w, Ref h) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)((ISdl)this).GetRenderOutputSize(renderer, __dsl_w, __dsl_h); + return (MaybeBool) + (byte)((ISdl)this).GetRenderOutputSize(renderer, __dsl_w, __dsl_h); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderOutputSize(RendererHandle renderer, Ref w, Ref h) => - DllImport.GetRenderOutputSize(renderer, w, h); + public static MaybeBool GetRenderOutputSize( + RendererHandle renderer, + Ref w, + Ref h + ) => DllImport.GetRenderOutputSize(renderer, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderScale(RendererHandle renderer, float* scaleX, float* scaleY) => + byte ISdl.GetRenderSafeArea(RendererHandle renderer, Rect* rect) => ( - (delegate* unmanaged)( - _slots[357] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[362] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[357] = nativeContext.LoadFunction("SDL_GetRenderScale", "SDL3") + : _slots[362] = nativeContext.LoadFunction("SDL_GetRenderSafeArea", "SDL3") + ) + )(renderer, rect); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderSafeArea")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetRenderSafeArea(RendererHandle renderer, Rect* rect) => + DllImport.GetRenderSafeArea(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetRenderSafeArea(RendererHandle renderer, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + { + return (MaybeBool)(byte)((ISdl)this).GetRenderSafeArea(renderer, __dsl_rect); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderSafeArea")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetRenderSafeArea(RendererHandle renderer, Ref rect) => + DllImport.GetRenderSafeArea(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetRenderScale(RendererHandle renderer, float* scaleX, float* scaleY) => + ( + (delegate* unmanaged)( + _slots[363] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[363] = nativeContext.LoadFunction("SDL_GetRenderScale", "SDL3") ) )(renderer, scaleX, scaleY); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderScale(RendererHandle renderer, float* scaleX, float* scaleY) => + public static byte GetRenderScale(RendererHandle renderer, float* scaleX, float* scaleY) => DllImport.GetRenderScale(renderer, scaleX, scaleY); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderScale(RendererHandle renderer, Ref scaleX, Ref scaleY) + MaybeBool ISdl.GetRenderScale( + RendererHandle renderer, + Ref scaleX, + Ref scaleY + ) { fixed (float* __dsl_scaleY = scaleY) fixed (float* __dsl_scaleX = scaleX) { - return (int)((ISdl)this).GetRenderScale(renderer, __dsl_scaleX, __dsl_scaleY); + return (MaybeBool) + (byte)((ISdl)this).GetRenderScale(renderer, __dsl_scaleX, __dsl_scaleY); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderScale( + public static MaybeBool GetRenderScale( RendererHandle renderer, Ref scaleX, Ref scaleY ) => DllImport.GetRenderScale(renderer, scaleX, scaleY); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - TextureHandle ISdl.GetRenderTarget(RendererHandle renderer) => + Ptr ISdl.GetRenderTarget(RendererHandle renderer) => + (Texture*)((ISdl)this).GetRenderTargetRaw(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetRenderTarget(RendererHandle renderer) => + DllImport.GetRenderTarget(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Texture* ISdl.GetRenderTargetRaw(RendererHandle renderer) => ( - (delegate* unmanaged)( - _slots[358] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[364] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[358] = nativeContext.LoadFunction("SDL_GetRenderTarget", "SDL3") + : _slots[364] = nativeContext.LoadFunction("SDL_GetRenderTarget", "SDL3") ) )(renderer); [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static TextureHandle GetRenderTarget(RendererHandle renderer) => - DllImport.GetRenderTarget(renderer); + public static Texture* GetRenderTargetRaw(RendererHandle renderer) => + DllImport.GetRenderTargetRaw(renderer); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderViewport(RendererHandle renderer, Rect* rect) => + byte ISdl.GetRenderViewport(RendererHandle renderer, Rect* rect) => ( - (delegate* unmanaged)( - _slots[359] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[365] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[359] = nativeContext.LoadFunction("SDL_GetRenderViewport", "SDL3") + : _slots[365] = nativeContext.LoadFunction("SDL_GetRenderViewport", "SDL3") ) )(renderer, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderViewport(RendererHandle renderer, Rect* rect) => + public static byte GetRenderViewport(RendererHandle renderer, Rect* rect) => DllImport.GetRenderViewport(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderViewport(RendererHandle renderer, Ref rect) + MaybeBool ISdl.GetRenderViewport(RendererHandle renderer, Ref rect) { fixed (Rect* __dsl_rect = rect) { - return (int)((ISdl)this).GetRenderViewport(renderer, __dsl_rect); + return (MaybeBool)(byte)((ISdl)this).GetRenderViewport(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderViewport(RendererHandle renderer, Ref rect) => + public static MaybeBool GetRenderViewport(RendererHandle renderer, Ref rect) => DllImport.GetRenderViewport(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderVSync(RendererHandle renderer, int* vsync) => + byte ISdl.GetRenderVSync(RendererHandle renderer, int* vsync) => ( - (delegate* unmanaged)( - _slots[360] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[366] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[360] = nativeContext.LoadFunction("SDL_GetRenderVSync", "SDL3") + : _slots[366] = nativeContext.LoadFunction("SDL_GetRenderVSync", "SDL3") ) )(renderer, vsync); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderVSync(RendererHandle renderer, int* vsync) => + public static byte GetRenderVSync(RendererHandle renderer, int* vsync) => DllImport.GetRenderVSync(renderer, vsync); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetRenderVSync(RendererHandle renderer, Ref vsync) + MaybeBool ISdl.GetRenderVSync(RendererHandle renderer, Ref vsync) { fixed (int* __dsl_vsync = vsync) { - return (int)((ISdl)this).GetRenderVSync(renderer, __dsl_vsync); + return (MaybeBool)(byte)((ISdl)this).GetRenderVSync(renderer, __dsl_vsync); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetRenderVSync(RendererHandle renderer, Ref vsync) => + public static MaybeBool GetRenderVSync(RendererHandle renderer, Ref vsync) => DllImport.GetRenderVSync(renderer, vsync); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GetRenderWindow(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[361] is not null and var loadedFnPtr + _slots[367] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[361] = nativeContext.LoadFunction("SDL_GetRenderWindow", "SDL3") + : _slots[367] = nativeContext.LoadFunction("SDL_GetRenderWindow", "SDL3") ) )(renderer); @@ -50014,9 +59673,9 @@ public static WindowHandle GetRenderWindow(RendererHandle renderer) => sbyte* ISdl.GetRevisionRaw() => ( (delegate* unmanaged)( - _slots[362] is not null and var loadedFnPtr + _slots[368] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[362] = nativeContext.LoadFunction("SDL_GetRevision", "SDL3") + : _slots[368] = nativeContext.LoadFunction("SDL_GetRevision", "SDL3") ) )(); @@ -50028,33 +59687,36 @@ _slots[362] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ) => ( - (delegate* unmanaged)( - _slots[363] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[369] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[363] = nativeContext.LoadFunction("SDL_GetRGB", "SDL3") + : _slots[369] = nativeContext.LoadFunction("SDL_GetRGB", "SDL3") ) - )(pixel, format, r, g, b); + )(pixel, format, palette, r, g, b); [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b - ) => DllImport.GetRGB(pixel, format, r, g, b); + ) => DllImport.GetRGB(pixel, format, palette, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b @@ -50063,9 +59725,10 @@ void ISdl.GetRGB( fixed (byte* __dsl_b = b) fixed (byte* __dsl_g = g) fixed (byte* __dsl_r = r) - fixed (PixelFormat* __dsl_format = format) + fixed (Palette* __dsl_palette = palette) + fixed (PixelFormatDetails* __dsl_format = format) { - ((ISdl)this).GetRGB(pixel, __dsl_format, __dsl_r, __dsl_g, __dsl_b); + ((ISdl)this).GetRGB(pixel, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b); } } @@ -50074,44 +59737,56 @@ void ISdl.GetRGB( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void GetRGB( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b - ) => DllImport.GetRGB(pixel, format, r, g, b); + ) => DllImport.GetRGB(pixel, format, palette, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b, [NativeTypeName("Uint8 *")] byte* a ) => ( - (delegate* unmanaged)( - _slots[364] is not null and var loadedFnPtr + (delegate* unmanaged< + uint, + PixelFormatDetails*, + Palette*, + byte*, + byte*, + byte*, + byte*, + void>)( + _slots[370] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[364] = nativeContext.LoadFunction("SDL_GetRGBA", "SDL3") + : _slots[370] = nativeContext.LoadFunction("SDL_GetRGBA", "SDL3") ) - )(pixel, format, r, g, b, a); + )(pixel, format, palette, r, g, b, a); [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b, [NativeTypeName("Uint8 *")] byte* a - ) => DllImport.GetRgba(pixel, format, r, g, b, a); + ) => DllImport.GetRgba(pixel, format, palette, r, g, b, a); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b, @@ -50122,9 +59797,18 @@ void ISdl.GetRgba( fixed (byte* __dsl_b = b) fixed (byte* __dsl_g = g) fixed (byte* __dsl_r = r) - fixed (PixelFormat* __dsl_format = format) - { - ((ISdl)this).GetRgba(pixel, __dsl_format, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + fixed (Palette* __dsl_palette = palette) + fixed (PixelFormatDetails* __dsl_format = format) + { + ((ISdl)this).GetRgba( + pixel, + __dsl_format, + __dsl_palette, + __dsl_r, + __dsl_g, + __dsl_b, + __dsl_a + ); } } @@ -50133,35 +59817,75 @@ void ISdl.GetRgba( [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void GetRgba( [NativeTypeName("Uint32")] uint pixel, - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b, [NativeTypeName("Uint8 *")] Ref a - ) => DllImport.GetRgba(pixel, format, r, g, b, a); + ) => DllImport.GetRgba(pixel, format, palette, r, g, b, a); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Scancode ISdl.GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key) => + Sandbox ISdl.GetSandbox() => ( - (delegate* unmanaged)( - _slots[365] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[371] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[365] = nativeContext.LoadFunction("SDL_GetScancodeFromKey", "SDL3") + : _slots[371] = nativeContext.LoadFunction("SDL_GetSandbox", "SDL3") ) - )(key); + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSandbox")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Sandbox GetSandbox() => DllImport.GetSandbox(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Scancode ISdl.GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] ushort* modstate + ) => + ( + (delegate* unmanaged)( + _slots[372] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[372] = nativeContext.LoadFunction("SDL_GetScancodeFromKey", "SDL3") + ) + )(key, modstate); [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromKey")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key) => - DllImport.GetScancodeFromKey(key); + public static Scancode GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] ushort* modstate + ) => DllImport.GetScancodeFromKey(key, modstate); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Scancode ISdl.GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] Ref modstate + ) + { + fixed (ushort* __dsl_modstate = modstate) + { + return (Scancode)((ISdl)this).GetScancodeFromKey(key, __dsl_modstate); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromKey")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Scancode GetScancodeFromKey( + [NativeTypeName("SDL_Keycode")] uint key, + [NativeTypeName("SDL_Keymod *")] Ref modstate + ) => DllImport.GetScancodeFromKey(key, modstate); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Scancode ISdl.GetScancodeFromName([NativeTypeName("const char *")] sbyte* name) => ( (delegate* unmanaged)( - _slots[366] is not null and var loadedFnPtr + _slots[373] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[366] = nativeContext.LoadFunction("SDL_GetScancodeFromName", "SDL3") + : _slots[373] = nativeContext.LoadFunction("SDL_GetScancodeFromName", "SDL3") ) )(name); @@ -50200,9 +59924,9 @@ public static Ptr GetScancodeName(Scancode scancode) => sbyte* ISdl.GetScancodeNameRaw(Scancode scancode) => ( (delegate* unmanaged)( - _slots[367] is not null and var loadedFnPtr + _slots[374] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[367] = nativeContext.LoadFunction("SDL_GetScancodeName", "SDL3") + : _slots[374] = nativeContext.LoadFunction("SDL_GetScancodeName", "SDL3") ) )(scancode); @@ -50216,9 +59940,9 @@ _slots[367] is not null and var loadedFnPtr uint ISdl.GetSemaphoreValue(SemaphoreHandle sem) => ( (delegate* unmanaged)( - _slots[368] is not null and var loadedFnPtr + _slots[375] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[368] = nativeContext.LoadFunction("SDL_GetSemaphoreValue", "SDL3") + : _slots[375] = nativeContext.LoadFunction("SDL_GetSemaphoreValue", "SDL3") ) )(sem); @@ -50228,151 +59952,116 @@ _slots[368] is not null and var loadedFnPtr public static uint GetSemaphoreValue(SemaphoreHandle sem) => DllImport.GetSemaphoreValue(sem); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSensorData(SensorHandle sensor, float* data, int num_values) => + byte ISdl.GetSensorData(SensorHandle sensor, float* data, int num_values) => ( - (delegate* unmanaged)( - _slots[369] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[376] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[369] = nativeContext.LoadFunction("SDL_GetSensorData", "SDL3") + : _slots[376] = nativeContext.LoadFunction("SDL_GetSensorData", "SDL3") ) )(sensor, data, num_values); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSensorData(SensorHandle sensor, float* data, int num_values) => + public static byte GetSensorData(SensorHandle sensor, float* data, int num_values) => DllImport.GetSensorData(sensor, data, num_values); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSensorData(SensorHandle sensor, Ref data, int num_values) + MaybeBool ISdl.GetSensorData(SensorHandle sensor, Ref data, int num_values) { fixed (float* __dsl_data = data) { - return (int)((ISdl)this).GetSensorData(sensor, __dsl_data, num_values); + return (MaybeBool) + (byte)((ISdl)this).GetSensorData(sensor, __dsl_data, num_values); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSensorData(SensorHandle sensor, Ref data, int num_values) => - DllImport.GetSensorData(sensor, data, num_values); + public static MaybeBool GetSensorData( + SensorHandle sensor, + Ref data, + int num_values + ) => DllImport.GetSensorData(sensor, data, num_values); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - SensorHandle ISdl.GetSensorFromInstanceID([NativeTypeName("SDL_SensorID")] uint instance_id) => + SensorHandle ISdl.GetSensorFromID([NativeTypeName("SDL_SensorID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[370] is not null and var loadedFnPtr + _slots[377] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[370] = nativeContext.LoadFunction( - "SDL_GetSensorFromInstanceID", - "SDL3" - ) + : _slots[377] = nativeContext.LoadFunction("SDL_GetSensorFromID", "SDL3") ) )(instance_id); - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static SensorHandle GetSensorFromInstanceID( - [NativeTypeName("SDL_SensorID")] uint instance_id - ) => DllImport.GetSensorFromInstanceID(instance_id); + public static SensorHandle GetSensorFromID([NativeTypeName("SDL_SensorID")] uint instance_id) => + DllImport.GetSensorFromID(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetSensorInstanceID(SensorHandle sensor) => + uint ISdl.GetSensorID(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[371] is not null and var loadedFnPtr + _slots[378] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[371] = nativeContext.LoadFunction("SDL_GetSensorInstanceID", "SDL3") + : _slots[378] = nativeContext.LoadFunction("SDL_GetSensorID", "SDL3") ) )(sensor); [return: NativeTypeName("SDL_SensorID")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceID")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetSensorInstanceID(SensorHandle sensor) => - DllImport.GetSensorInstanceID(sensor); + public static uint GetSensorID(SensorHandle sensor) => DllImport.GetSensorID(sensor); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetSensorInstanceName([NativeTypeName("SDL_SensorID")] uint instance_id) => - (sbyte*)((ISdl)this).GetSensorInstanceNameRaw(instance_id); + Ptr ISdl.GetSensorName(SensorHandle sensor) => + (sbyte*)((ISdl)this).GetSensorNameRaw(sensor); [return: NativeTypeName("const char *")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetSensorInstanceName( - [NativeTypeName("SDL_SensorID")] uint instance_id - ) => DllImport.GetSensorInstanceName(instance_id); + public static Ptr GetSensorName(SensorHandle sensor) => DllImport.GetSensorName(sensor); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - sbyte* ISdl.GetSensorInstanceNameRaw([NativeTypeName("SDL_SensorID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[372] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[372] = nativeContext.LoadFunction("SDL_GetSensorInstanceName", "SDL3") - ) - )(instance_id); + Ptr ISdl.GetSensorNameForID([NativeTypeName("SDL_SensorID")] uint instance_id) => + (sbyte*)((ISdl)this).GetSensorNameForIDRaw(instance_id); [return: NativeTypeName("const char *")] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static sbyte* GetSensorInstanceNameRaw( - [NativeTypeName("SDL_SensorID")] uint instance_id - ) => DllImport.GetSensorInstanceNameRaw(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSensorInstanceNonPortableType([NativeTypeName("SDL_SensorID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[373] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[373] = nativeContext.LoadFunction( - "SDL_GetSensorInstanceNonPortableType", - "SDL3" - ) - ) - )(instance_id); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceNonPortableType")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNameForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSensorInstanceNonPortableType( + public static Ptr GetSensorNameForID( [NativeTypeName("SDL_SensorID")] uint instance_id - ) => DllImport.GetSensorInstanceNonPortableType(instance_id); + ) => DllImport.GetSensorNameForID(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - SensorType ISdl.GetSensorInstanceType([NativeTypeName("SDL_SensorID")] uint instance_id) => + sbyte* ISdl.GetSensorNameForIDRaw([NativeTypeName("SDL_SensorID")] uint instance_id) => ( - (delegate* unmanaged)( - _slots[374] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[380] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[374] = nativeContext.LoadFunction("SDL_GetSensorInstanceType", "SDL3") + : _slots[380] = nativeContext.LoadFunction("SDL_GetSensorNameForID", "SDL3") ) )(instance_id); - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceType")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static SensorType GetSensorInstanceType( - [NativeTypeName("SDL_SensorID")] uint instance_id - ) => DllImport.GetSensorInstanceType(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetSensorName(SensorHandle sensor) => - (sbyte*)((ISdl)this).GetSensorNameRaw(sensor); - [return: NativeTypeName("const char *")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNameForID")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetSensorName(SensorHandle sensor) => DllImport.GetSensorName(sensor); + public static sbyte* GetSensorNameForIDRaw([NativeTypeName("SDL_SensorID")] uint instance_id) => + DllImport.GetSensorNameForIDRaw(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] sbyte* ISdl.GetSensorNameRaw(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[375] is not null and var loadedFnPtr + _slots[379] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[375] = nativeContext.LoadFunction("SDL_GetSensorName", "SDL3") + : _slots[379] = nativeContext.LoadFunction("SDL_GetSensorName", "SDL3") ) )(sensor); @@ -50386,9 +60075,9 @@ _slots[375] is not null and var loadedFnPtr int ISdl.GetSensorNonPortableType(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[376] is not null and var loadedFnPtr + _slots[381] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[376] = nativeContext.LoadFunction( + : _slots[381] = nativeContext.LoadFunction( "SDL_GetSensorNonPortableType", "SDL3" ) @@ -50400,13 +60089,32 @@ _slots[376] is not null and var loadedFnPtr public static int GetSensorNonPortableType(SensorHandle sensor) => DllImport.GetSensorNonPortableType(sensor); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSensorNonPortableTypeForID([NativeTypeName("SDL_SensorID")] uint instance_id) => + ( + (delegate* unmanaged)( + _slots[382] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[382] = nativeContext.LoadFunction( + "SDL_GetSensorNonPortableTypeForID", + "SDL3" + ) + ) + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableTypeForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSensorNonPortableTypeForID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => DllImport.GetSensorNonPortableTypeForID(instance_id); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetSensorProperties(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[377] is not null and var loadedFnPtr + _slots[383] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[377] = nativeContext.LoadFunction("SDL_GetSensorProperties", "SDL3") + : _slots[383] = nativeContext.LoadFunction("SDL_GetSensorProperties", "SDL3") ) )(sensor); @@ -50420,9 +60128,9 @@ public static uint GetSensorProperties(SensorHandle sensor) => uint* ISdl.GetSensors(int* count) => ( (delegate* unmanaged)( - _slots[378] is not null and var loadedFnPtr + _slots[384] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[378] = nativeContext.LoadFunction("SDL_GetSensors", "SDL3") + : _slots[384] = nativeContext.LoadFunction("SDL_GetSensors", "SDL3") ) )(count); @@ -50450,9 +60158,9 @@ Ptr ISdl.GetSensors(Ref count) SensorType ISdl.GetSensorType(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[379] is not null and var loadedFnPtr + _slots[385] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[379] = nativeContext.LoadFunction("SDL_GetSensorType", "SDL3") + : _slots[385] = nativeContext.LoadFunction("SDL_GetSensorType", "SDL3") ) )(sensor); @@ -50461,12 +60169,28 @@ _slots[379] is not null and var loadedFnPtr public static SensorType GetSensorType(SensorHandle sensor) => DllImport.GetSensorType(sensor); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSilenceValueForFormat([NativeTypeName("SDL_AudioFormat")] ushort format) => + SensorType ISdl.GetSensorTypeForID([NativeTypeName("SDL_SensorID")] uint instance_id) => ( - (delegate* unmanaged)( - _slots[380] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[386] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[386] = nativeContext.LoadFunction("SDL_GetSensorTypeForID", "SDL3") + ) + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorTypeForID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SensorType GetSensorTypeForID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => DllImport.GetSensorTypeForID(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSilenceValueForFormat(AudioFormat format) => + ( + (delegate* unmanaged)( + _slots[387] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[380] = nativeContext.LoadFunction( + : _slots[387] = nativeContext.LoadFunction( "SDL_GetSilenceValueForFormat", "SDL3" ) @@ -50475,33 +60199,49 @@ _slots[380] is not null and var loadedFnPtr [NativeFunction("SDL3", EntryPoint = "SDL_GetSilenceValueForFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSilenceValueForFormat([NativeTypeName("SDL_AudioFormat")] ushort format) => + public static int GetSilenceValueForFormat(AudioFormat format) => DllImport.GetSilenceValueForFormat(format); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetStorageFileSize( + nuint ISdl.GetSimdAlignment() => + ( + (delegate* unmanaged)( + _slots[388] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[388] = nativeContext.LoadFunction("SDL_GetSIMDAlignment", "SDL3") + ) + )(); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSIMDAlignment")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static nuint GetSimdAlignment() => DllImport.GetSimdAlignment(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("Uint64 *")] ulong* length ) => ( - (delegate* unmanaged)( - _slots[381] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[389] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[381] = nativeContext.LoadFunction("SDL_GetStorageFileSize", "SDL3") + : _slots[389] = nativeContext.LoadFunction("SDL_GetStorageFileSize", "SDL3") ) )(storage, path, length); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetStorageFileSize( + public static byte GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("Uint64 *")] ulong* length ) => DllImport.GetStorageFileSize(storage, path, length); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetStorageFileSize( + MaybeBool ISdl.GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("Uint64 *")] Ref length @@ -50510,43 +60250,46 @@ int ISdl.GetStorageFileSize( fixed (ulong* __dsl_length = length) fixed (sbyte* __dsl_path = path) { - return (int)((ISdl)this).GetStorageFileSize(storage, __dsl_path, __dsl_length); + return (MaybeBool) + (byte)((ISdl)this).GetStorageFileSize(storage, __dsl_path, __dsl_length); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetStorageFileSize( + public static MaybeBool GetStorageFileSize( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("Uint64 *")] Ref length ) => DllImport.GetStorageFileSize(storage, path, length); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetStoragePathInfo( + byte ISdl.GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, PathInfo* info ) => ( - (delegate* unmanaged)( - _slots[382] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[390] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[382] = nativeContext.LoadFunction("SDL_GetStoragePathInfo", "SDL3") + : _slots[390] = nativeContext.LoadFunction("SDL_GetStoragePathInfo", "SDL3") ) )(storage, path, info); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetStoragePathInfo( + public static byte GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, PathInfo* info ) => DllImport.GetStoragePathInfo(storage, path, info); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetStoragePathInfo( + MaybeBool ISdl.GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref info @@ -50555,14 +60298,16 @@ Ref info fixed (PathInfo* __dsl_info = info) fixed (sbyte* __dsl_path = path) { - return (int)((ISdl)this).GetStoragePathInfo(storage, __dsl_path, __dsl_info); + return (MaybeBool) + (byte)((ISdl)this).GetStoragePathInfo(storage, __dsl_path, __dsl_info); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetStoragePathInfo( + public static MaybeBool GetStoragePathInfo( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref info @@ -50572,9 +60317,9 @@ Ref info ulong ISdl.GetStorageSpaceRemaining(StorageHandle storage) => ( (delegate* unmanaged)( - _slots[383] is not null and var loadedFnPtr + _slots[391] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[383] = nativeContext.LoadFunction( + : _slots[391] = nativeContext.LoadFunction( "SDL_GetStorageSpaceRemaining", "SDL3" ) @@ -50595,9 +60340,9 @@ public static ulong GetStorageSpaceRemaining(StorageHandle storage) => ) => ( (delegate* unmanaged)( - _slots[384] is not null and var loadedFnPtr + _slots[392] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[384] = nativeContext.LoadFunction("SDL_GetStringProperty", "SDL3") + : _slots[392] = nativeContext.LoadFunction("SDL_GetStringProperty", "SDL3") ) )(props, name, default_value); @@ -50635,155 +60380,183 @@ public static Ptr GetStringProperty( ) => DllImport.GetStringProperty(props, name, default_value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha) => + byte ISdl.GetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha) => ( - (delegate* unmanaged)( - _slots[385] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[393] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[385] = nativeContext.LoadFunction("SDL_GetSurfaceAlphaMod", "SDL3") + : _slots[393] = nativeContext.LoadFunction("SDL_GetSurfaceAlphaMod", "SDL3") ) )(surface, alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSurfaceAlphaMod( + public static byte GetSurfaceAlphaMod( Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha ) => DllImport.GetSurfaceAlphaMod(surface, alpha); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSurfaceAlphaMod(Ref surface, [NativeTypeName("Uint8 *")] Ref alpha) + MaybeBool ISdl.GetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref alpha + ) { fixed (byte* __dsl_alpha = alpha) fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).GetSurfaceAlphaMod(__dsl_surface, __dsl_alpha); + return (MaybeBool) + (byte)((ISdl)this).GetSurfaceAlphaMod(__dsl_surface, __dsl_alpha); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSurfaceAlphaMod( + public static MaybeBool GetSurfaceAlphaMod( Ref surface, [NativeTypeName("Uint8 *")] Ref alpha ) => DllImport.GetSurfaceAlphaMod(surface, alpha); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode) => + byte ISdl.GetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ) => ( - (delegate* unmanaged)( - _slots[386] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[394] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[386] = nativeContext.LoadFunction("SDL_GetSurfaceBlendMode", "SDL3") + : _slots[394] = nativeContext.LoadFunction("SDL_GetSurfaceBlendMode", "SDL3") ) )(surface, blendMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode) => - DllImport.GetSurfaceBlendMode(surface, blendMode); + public static byte GetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ) => DllImport.GetSurfaceBlendMode(surface, blendMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSurfaceBlendMode(Ref surface, Ref blendMode) + MaybeBool ISdl.GetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) { fixed (BlendMode* __dsl_blendMode = blendMode) fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).GetSurfaceBlendMode(__dsl_surface, __dsl_blendMode); + return (MaybeBool) + (byte)((ISdl)this).GetSurfaceBlendMode(__dsl_surface, __dsl_blendMode); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSurfaceBlendMode(Ref surface, Ref blendMode) => - DllImport.GetSurfaceBlendMode(surface, blendMode); + public static MaybeBool GetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) => DllImport.GetSurfaceBlendMode(surface, blendMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSurfaceClipRect(Surface* surface, Rect* rect) => + byte ISdl.GetSurfaceClipRect(Surface* surface, Rect* rect) => ( - (delegate* unmanaged)( - _slots[387] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[395] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[387] = nativeContext.LoadFunction("SDL_GetSurfaceClipRect", "SDL3") + : _slots[395] = nativeContext.LoadFunction("SDL_GetSurfaceClipRect", "SDL3") ) )(surface, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSurfaceClipRect(Surface* surface, Rect* rect) => + public static byte GetSurfaceClipRect(Surface* surface, Rect* rect) => DllImport.GetSurfaceClipRect(surface, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSurfaceClipRect(Ref surface, Ref rect) + MaybeBool ISdl.GetSurfaceClipRect(Ref surface, Ref rect) { fixed (Rect* __dsl_rect = rect) fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).GetSurfaceClipRect(__dsl_surface, __dsl_rect); + return (MaybeBool) + (byte)((ISdl)this).GetSurfaceClipRect(__dsl_surface, __dsl_rect); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSurfaceClipRect(Ref surface, Ref rect) => + public static MaybeBool GetSurfaceClipRect(Ref surface, Ref rect) => DllImport.GetSurfaceClipRect(surface, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSurfaceColorKey(Surface* surface, [NativeTypeName("Uint32 *")] uint* key) => + byte ISdl.GetSurfaceColorKey(Surface* surface, [NativeTypeName("Uint32 *")] uint* key) => ( - (delegate* unmanaged)( - _slots[388] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[396] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[388] = nativeContext.LoadFunction("SDL_GetSurfaceColorKey", "SDL3") + : _slots[396] = nativeContext.LoadFunction("SDL_GetSurfaceColorKey", "SDL3") ) )(surface, key); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSurfaceColorKey( + public static byte GetSurfaceColorKey( Surface* surface, [NativeTypeName("Uint32 *")] uint* key ) => DllImport.GetSurfaceColorKey(surface, key); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSurfaceColorKey(Ref surface, [NativeTypeName("Uint32 *")] Ref key) + MaybeBool ISdl.GetSurfaceColorKey( + Ref surface, + [NativeTypeName("Uint32 *")] Ref key + ) { fixed (uint* __dsl_key = key) fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).GetSurfaceColorKey(__dsl_surface, __dsl_key); + return (MaybeBool)(byte)((ISdl)this).GetSurfaceColorKey(__dsl_surface, __dsl_key); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSurfaceColorKey( + public static MaybeBool GetSurfaceColorKey( Ref surface, [NativeTypeName("Uint32 *")] Ref key ) => DllImport.GetSurfaceColorKey(surface, key); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSurfaceColorMod( + byte ISdl.GetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ) => ( - (delegate* unmanaged)( - _slots[389] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[397] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[389] = nativeContext.LoadFunction("SDL_GetSurfaceColorMod", "SDL3") + : _slots[397] = nativeContext.LoadFunction("SDL_GetSurfaceColorMod", "SDL3") ) )(surface, r, g, b); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSurfaceColorMod( + public static byte GetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, @@ -50791,7 +60564,7 @@ public static int GetSurfaceColorMod( ) => DllImport.GetSurfaceColorMod(surface, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSurfaceColorMod( + MaybeBool ISdl.GetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -50803,14 +60576,16 @@ int ISdl.GetSurfaceColorMod( fixed (byte* __dsl_r = r) fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).GetSurfaceColorMod(__dsl_surface, __dsl_r, __dsl_g, __dsl_b); + return (MaybeBool) + (byte)((ISdl)this).GetSurfaceColorMod(__dsl_surface, __dsl_r, __dsl_g, __dsl_b); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSurfaceColorMod( + public static MaybeBool GetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, @@ -50818,43 +60593,103 @@ public static int GetSurfaceColorMod( ) => DllImport.GetSurfaceColorMod(surface, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSurfaceColorspace(Surface* surface, Colorspace* colorspace) => + Colorspace ISdl.GetSurfaceColorspace(Surface* surface) => ( - (delegate* unmanaged)( - _slots[390] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[398] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[390] = nativeContext.LoadFunction("SDL_GetSurfaceColorspace", "SDL3") + : _slots[398] = nativeContext.LoadFunction("SDL_GetSurfaceColorspace", "SDL3") ) - )(surface, colorspace); + )(surface); [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSurfaceColorspace(Surface* surface, Colorspace* colorspace) => - DllImport.GetSurfaceColorspace(surface, colorspace); + public static Colorspace GetSurfaceColorspace(Surface* surface) => + DllImport.GetSurfaceColorspace(surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetSurfaceColorspace(Ref surface, Ref colorspace) + Colorspace ISdl.GetSurfaceColorspace(Ref surface) { - fixed (Colorspace* __dsl_colorspace = colorspace) fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).GetSurfaceColorspace(__dsl_surface, __dsl_colorspace); + return (Colorspace)((ISdl)this).GetSurfaceColorspace(__dsl_surface); } } [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetSurfaceColorspace(Ref surface, Ref colorspace) => - DllImport.GetSurfaceColorspace(surface, colorspace); + public static Colorspace GetSurfaceColorspace(Ref surface) => + DllImport.GetSurfaceColorspace(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface** ISdl.GetSurfaceImages(Surface* surface, int* count) => + ( + (delegate* unmanaged)( + _slots[399] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[399] = nativeContext.LoadFunction("SDL_GetSurfaceImages", "SDL3") + ) + )(surface, count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceImages")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface** GetSurfaceImages(Surface* surface, int* count) => + DllImport.GetSurfaceImages(surface, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr2D ISdl.GetSurfaceImages(Ref surface, Ref count) + { + fixed (int* __dsl_count = count) + fixed (Surface* __dsl_surface = surface) + { + return (Surface**)((ISdl)this).GetSurfaceImages(__dsl_surface, __dsl_count); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceImages")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr2D GetSurfaceImages(Ref surface, Ref count) => + DllImport.GetSurfaceImages(surface, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Palette* ISdl.GetSurfacePalette(Surface* surface) => + ( + (delegate* unmanaged)( + _slots[400] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[400] = nativeContext.LoadFunction("SDL_GetSurfacePalette", "SDL3") + ) + )(surface); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfacePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Palette* GetSurfacePalette(Surface* surface) => + DllImport.GetSurfacePalette(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetSurfacePalette(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (Palette*)((ISdl)this).GetSurfacePalette(__dsl_surface); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfacePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetSurfacePalette(Ref surface) => + DllImport.GetSurfacePalette(surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetSurfaceProperties(Surface* surface) => ( (delegate* unmanaged)( - _slots[391] is not null and var loadedFnPtr + _slots[401] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[391] = nativeContext.LoadFunction("SDL_GetSurfaceProperties", "SDL3") + : _slots[401] = nativeContext.LoadFunction("SDL_GetSurfaceProperties", "SDL3") ) )(surface); @@ -50884,9 +60719,9 @@ public static uint GetSurfaceProperties(Ref surface) => int ISdl.GetSystemRAM() => ( (delegate* unmanaged)( - _slots[392] is not null and var loadedFnPtr + _slots[402] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[392] = nativeContext.LoadFunction("SDL_GetSystemRAM", "SDL3") + : _slots[402] = nativeContext.LoadFunction("SDL_GetSystemRAM", "SDL3") ) )(); @@ -50898,9 +60733,9 @@ _slots[392] is not null and var loadedFnPtr SystemTheme ISdl.GetSystemTheme() => ( (delegate* unmanaged)( - _slots[393] is not null and var loadedFnPtr + _slots[403] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[393] = nativeContext.LoadFunction("SDL_GetSystemTheme", "SDL3") + : _slots[403] = nativeContext.LoadFunction("SDL_GetSystemTheme", "SDL3") ) )(); @@ -50909,129 +60744,192 @@ _slots[393] is not null and var loadedFnPtr public static SystemTheme GetSystemTheme() => DllImport.GetSystemTheme(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetTextureAlphaMod(TextureHandle texture, [NativeTypeName("Uint8 *")] byte* alpha) => + byte ISdl.GetTextInputArea(WindowHandle window, Rect* rect, int* cursor) => ( - (delegate* unmanaged)( - _slots[394] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[404] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[404] = nativeContext.LoadFunction("SDL_GetTextInputArea", "SDL3") + ) + )(window, rect, cursor); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextInputArea")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetTextInputArea(WindowHandle window, Rect* rect, int* cursor) => + DllImport.GetTextInputArea(window, rect, cursor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetTextInputArea(WindowHandle window, Ref rect, Ref cursor) + { + fixed (int* __dsl_cursor = cursor) + fixed (Rect* __dsl_rect = rect) + { + return (MaybeBool) + (byte)((ISdl)this).GetTextInputArea(window, __dsl_rect, __dsl_cursor); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextInputArea")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetTextInputArea( + WindowHandle window, + Ref rect, + Ref cursor + ) => DllImport.GetTextInputArea(window, rect, cursor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetTextureAlphaMod(Texture* texture, [NativeTypeName("Uint8 *")] byte* alpha) => + ( + (delegate* unmanaged)( + _slots[405] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[394] = nativeContext.LoadFunction("SDL_GetTextureAlphaMod", "SDL3") + : _slots[405] = nativeContext.LoadFunction("SDL_GetTextureAlphaMod", "SDL3") ) )(texture, alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetTextureAlphaMod( - TextureHandle texture, + public static byte GetTextureAlphaMod( + Texture* texture, [NativeTypeName("Uint8 *")] byte* alpha ) => DllImport.GetTextureAlphaMod(texture, alpha); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetTextureAlphaMod(TextureHandle texture, [NativeTypeName("Uint8 *")] Ref alpha) + MaybeBool ISdl.GetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref alpha + ) { fixed (byte* __dsl_alpha = alpha) + fixed (Texture* __dsl_texture = texture) { - return (int)((ISdl)this).GetTextureAlphaMod(texture, __dsl_alpha); + return (MaybeBool) + (byte)((ISdl)this).GetTextureAlphaMod(__dsl_texture, __dsl_alpha); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetTextureAlphaMod( - TextureHandle texture, + public static MaybeBool GetTextureAlphaMod( + Ref texture, [NativeTypeName("Uint8 *")] Ref alpha ) => DllImport.GetTextureAlphaMod(texture, alpha); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetTextureAlphaModFloat(TextureHandle texture, float* alpha) => + byte ISdl.GetTextureAlphaModFloat(Texture* texture, float* alpha) => ( - (delegate* unmanaged)( - _slots[395] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[406] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[395] = nativeContext.LoadFunction( + : _slots[406] = nativeContext.LoadFunction( "SDL_GetTextureAlphaModFloat", "SDL3" ) ) )(texture, alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetTextureAlphaModFloat(TextureHandle texture, float* alpha) => + public static byte GetTextureAlphaModFloat(Texture* texture, float* alpha) => DllImport.GetTextureAlphaModFloat(texture, alpha); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetTextureAlphaModFloat(TextureHandle texture, Ref alpha) + MaybeBool ISdl.GetTextureAlphaModFloat(Ref texture, Ref alpha) { fixed (float* __dsl_alpha = alpha) + fixed (Texture* __dsl_texture = texture) { - return (int)((ISdl)this).GetTextureAlphaModFloat(texture, __dsl_alpha); + return (MaybeBool) + (byte)((ISdl)this).GetTextureAlphaModFloat(__dsl_texture, __dsl_alpha); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetTextureAlphaModFloat(TextureHandle texture, Ref alpha) => + public static MaybeBool GetTextureAlphaModFloat(Ref texture, Ref alpha) => DllImport.GetTextureAlphaModFloat(texture, alpha); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetTextureBlendMode(TextureHandle texture, BlendMode* blendMode) => + byte ISdl.GetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ) => ( - (delegate* unmanaged)( - _slots[396] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[407] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[396] = nativeContext.LoadFunction("SDL_GetTextureBlendMode", "SDL3") + : _slots[407] = nativeContext.LoadFunction("SDL_GetTextureBlendMode", "SDL3") ) )(texture, blendMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetTextureBlendMode(TextureHandle texture, BlendMode* blendMode) => - DllImport.GetTextureBlendMode(texture, blendMode); + public static byte GetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode *")] BlendMode* blendMode + ) => DllImport.GetTextureBlendMode(texture, blendMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetTextureBlendMode(TextureHandle texture, Ref blendMode) + MaybeBool ISdl.GetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) { fixed (BlendMode* __dsl_blendMode = blendMode) + fixed (Texture* __dsl_texture = texture) { - return (int)((ISdl)this).GetTextureBlendMode(texture, __dsl_blendMode); + return (MaybeBool) + (byte)((ISdl)this).GetTextureBlendMode(__dsl_texture, __dsl_blendMode); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetTextureBlendMode(TextureHandle texture, Ref blendMode) => - DllImport.GetTextureBlendMode(texture, blendMode); + public static MaybeBool GetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode *")] Ref blendMode + ) => DllImport.GetTextureBlendMode(texture, blendMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetTextureColorMod( - TextureHandle texture, + byte ISdl.GetTextureColorMod( + Texture* texture, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ) => ( - (delegate* unmanaged)( - _slots[397] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[408] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[397] = nativeContext.LoadFunction("SDL_GetTextureColorMod", "SDL3") + : _slots[408] = nativeContext.LoadFunction("SDL_GetTextureColorMod", "SDL3") ) )(texture, r, g, b); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetTextureColorMod( - TextureHandle texture, + public static byte GetTextureColorMod( + Texture* texture, [NativeTypeName("Uint8 *")] byte* r, [NativeTypeName("Uint8 *")] byte* g, [NativeTypeName("Uint8 *")] byte* b ) => DllImport.GetTextureColorMod(texture, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetTextureColorMod( - TextureHandle texture, + MaybeBool ISdl.GetTextureColorMod( + Ref texture, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b @@ -51040,46 +60938,46 @@ int ISdl.GetTextureColorMod( fixed (byte* __dsl_b = b) fixed (byte* __dsl_g = g) fixed (byte* __dsl_r = r) + fixed (Texture* __dsl_texture = texture) { - return (int)((ISdl)this).GetTextureColorMod(texture, __dsl_r, __dsl_g, __dsl_b); + return (MaybeBool) + (byte)((ISdl)this).GetTextureColorMod(__dsl_texture, __dsl_r, __dsl_g, __dsl_b); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetTextureColorMod( - TextureHandle texture, + public static MaybeBool GetTextureColorMod( + Ref texture, [NativeTypeName("Uint8 *")] Ref r, [NativeTypeName("Uint8 *")] Ref g, [NativeTypeName("Uint8 *")] Ref b ) => DllImport.GetTextureColorMod(texture, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetTextureColorModFloat(TextureHandle texture, float* r, float* g, float* b) => + byte ISdl.GetTextureColorModFloat(Texture* texture, float* r, float* g, float* b) => ( - (delegate* unmanaged)( - _slots[398] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[409] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[398] = nativeContext.LoadFunction( + : _slots[409] = nativeContext.LoadFunction( "SDL_GetTextureColorModFloat", "SDL3" ) ) )(texture, r, g, b); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetTextureColorModFloat( - TextureHandle texture, - float* r, - float* g, - float* b - ) => DllImport.GetTextureColorModFloat(texture, r, g, b); + public static byte GetTextureColorModFloat(Texture* texture, float* r, float* g, float* b) => + DllImport.GetTextureColorModFloat(texture, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetTextureColorModFloat( - TextureHandle texture, + MaybeBool ISdl.GetTextureColorModFloat( + Ref texture, Ref r, Ref g, Ref b @@ -51088,74 +60986,138 @@ Ref b fixed (float* __dsl_b = b) fixed (float* __dsl_g = g) fixed (float* __dsl_r = r) + fixed (Texture* __dsl_texture = texture) { - return (int)((ISdl)this).GetTextureColorModFloat(texture, __dsl_r, __dsl_g, __dsl_b); + return (MaybeBool) + (byte) + ((ISdl)this).GetTextureColorModFloat(__dsl_texture, __dsl_r, __dsl_g, __dsl_b); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetTextureColorModFloat( - TextureHandle texture, + public static MaybeBool GetTextureColorModFloat( + Ref texture, Ref r, Ref g, Ref b ) => DllImport.GetTextureColorModFloat(texture, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetTextureProperties(TextureHandle texture) => + uint ISdl.GetTextureProperties(Texture* texture) => ( - (delegate* unmanaged)( - _slots[399] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[410] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[399] = nativeContext.LoadFunction("SDL_GetTextureProperties", "SDL3") + : _slots[410] = nativeContext.LoadFunction("SDL_GetTextureProperties", "SDL3") ) )(texture); [return: NativeTypeName("SDL_PropertiesID")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetTextureProperties(TextureHandle texture) => + public static uint GetTextureProperties(Texture* texture) => DllImport.GetTextureProperties(texture); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetTextureScaleMode(TextureHandle texture, ScaleMode* scaleMode) => + uint ISdl.GetTextureProperties(Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + return (uint)((ISdl)this).GetTextureProperties(__dsl_texture); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetTextureProperties(Ref texture) => + DllImport.GetTextureProperties(texture); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetTextureScaleMode(Texture* texture, ScaleMode* scaleMode) => ( - (delegate* unmanaged)( - _slots[400] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[411] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[400] = nativeContext.LoadFunction("SDL_GetTextureScaleMode", "SDL3") + : _slots[411] = nativeContext.LoadFunction("SDL_GetTextureScaleMode", "SDL3") ) )(texture, scaleMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetTextureScaleMode(TextureHandle texture, ScaleMode* scaleMode) => + public static byte GetTextureScaleMode(Texture* texture, ScaleMode* scaleMode) => DllImport.GetTextureScaleMode(texture, scaleMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetTextureScaleMode(TextureHandle texture, Ref scaleMode) + MaybeBool ISdl.GetTextureScaleMode(Ref texture, Ref scaleMode) { fixed (ScaleMode* __dsl_scaleMode = scaleMode) + fixed (Texture* __dsl_texture = texture) { - return (int)((ISdl)this).GetTextureScaleMode(texture, __dsl_scaleMode); + return (MaybeBool) + (byte)((ISdl)this).GetTextureScaleMode(__dsl_texture, __dsl_scaleMode); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetTextureScaleMode(TextureHandle texture, Ref scaleMode) => - DllImport.GetTextureScaleMode(texture, scaleMode); + public static MaybeBool GetTextureScaleMode( + Ref texture, + Ref scaleMode + ) => DllImport.GetTextureScaleMode(texture, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetTextureSize(Texture* texture, float* w, float* h) => + ( + (delegate* unmanaged)( + _slots[412] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[412] = nativeContext.LoadFunction("SDL_GetTextureSize", "SDL3") + ) + )(texture, w, h); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetTextureSize(Texture* texture, float* w, float* h) => + DllImport.GetTextureSize(texture, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetTextureSize(Ref texture, Ref w, Ref h) + { + fixed (float* __dsl_h = h) + fixed (float* __dsl_w = w) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)((ISdl)this).GetTextureSize(__dsl_texture, __dsl_w, __dsl_h); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetTextureSize( + Ref texture, + Ref w, + Ref h + ) => DllImport.GetTextureSize(texture, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetThreadID(ThreadHandle thread) => ( (delegate* unmanaged)( - _slots[401] is not null and var loadedFnPtr + _slots[413] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[401] = nativeContext.LoadFunction("SDL_GetThreadID", "SDL3") + : _slots[413] = nativeContext.LoadFunction("SDL_GetThreadID", "SDL3") ) )(thread); @@ -51178,9 +61140,9 @@ Ptr ISdl.GetThreadName(ThreadHandle thread) => sbyte* ISdl.GetThreadNameRaw(ThreadHandle thread) => ( (delegate* unmanaged)( - _slots[402] is not null and var loadedFnPtr + _slots[414] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[402] = nativeContext.LoadFunction("SDL_GetThreadName", "SDL3") + : _slots[414] = nativeContext.LoadFunction("SDL_GetThreadName", "SDL3") ) )(thread); @@ -51194,9 +61156,9 @@ _slots[402] is not null and var loadedFnPtr ulong ISdl.GetTicks() => ( (delegate* unmanaged)( - _slots[403] is not null and var loadedFnPtr + _slots[415] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[403] = nativeContext.LoadFunction("SDL_GetTicks", "SDL3") + : _slots[415] = nativeContext.LoadFunction("SDL_GetTicks", "SDL3") ) )(); @@ -51209,9 +61171,9 @@ _slots[403] is not null and var loadedFnPtr ulong ISdl.GetTicksNS() => ( (delegate* unmanaged)( - _slots[404] is not null and var loadedFnPtr + _slots[416] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[404] = nativeContext.LoadFunction("SDL_GetTicksNS", "SDL3") + : _slots[416] = nativeContext.LoadFunction("SDL_GetTicksNS", "SDL3") ) )(); @@ -51221,26 +61183,34 @@ _slots[404] is not null and var loadedFnPtr public static ulong GetTicksNS() => DllImport.GetTicksNS(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GetTLS([NativeTypeName("SDL_TLSID")] uint id) => (void*)((ISdl)this).GetTLSRaw(id); + void* ISdl.GetTLS([NativeTypeName("SDL_TLSID *")] AtomicInt* id) => + ( + (delegate* unmanaged)( + _slots[417] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[417] = nativeContext.LoadFunction("SDL_GetTLS", "SDL3") + ) + )(id); - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GetTLS([NativeTypeName("SDL_TLSID")] uint id) => DllImport.GetTLS(id); + public static void* GetTLS([NativeTypeName("SDL_TLSID *")] AtomicInt* id) => + DllImport.GetTLS(id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void* ISdl.GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id) => - ( - (delegate* unmanaged)( - _slots[405] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[405] = nativeContext.LoadFunction("SDL_GetTLS", "SDL3") - ) - )(id); + Ptr ISdl.GetTLS([NativeTypeName("SDL_TLSID *")] Ref id) + { + fixed (AtomicInt* __dsl_id = id) + { + return (void*)((ISdl)this).GetTLS(__dsl_id); + } + } + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void* GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id) => DllImport.GetTLSRaw(id); + public static Ptr GetTLS([NativeTypeName("SDL_TLSID *")] Ref id) => + DllImport.GetTLS(id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetTouchDeviceName([NativeTypeName("SDL_TouchID")] ulong touchID) => @@ -51257,9 +61227,9 @@ public static Ptr GetTouchDeviceName([NativeTypeName("SDL_TouchID")] ulon sbyte* ISdl.GetTouchDeviceNameRaw([NativeTypeName("SDL_TouchID")] ulong touchID) => ( (delegate* unmanaged)( - _slots[406] is not null and var loadedFnPtr + _slots[418] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[406] = nativeContext.LoadFunction("SDL_GetTouchDeviceName", "SDL3") + : _slots[418] = nativeContext.LoadFunction("SDL_GetTouchDeviceName", "SDL3") ) )(touchID); @@ -51273,9 +61243,9 @@ _slots[406] is not null and var loadedFnPtr ulong* ISdl.GetTouchDevices(int* count) => ( (delegate* unmanaged)( - _slots[407] is not null and var loadedFnPtr + _slots[419] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[407] = nativeContext.LoadFunction("SDL_GetTouchDevices", "SDL3") + : _slots[419] = nativeContext.LoadFunction("SDL_GetTouchDevices", "SDL3") ) )(count); @@ -51303,9 +61273,9 @@ Ptr ISdl.GetTouchDevices(Ref count) TouchDeviceType ISdl.GetTouchDeviceType([NativeTypeName("SDL_TouchID")] ulong touchID) => ( (delegate* unmanaged)( - _slots[408] is not null and var loadedFnPtr + _slots[420] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[408] = nativeContext.LoadFunction("SDL_GetTouchDeviceType", "SDL3") + : _slots[420] = nativeContext.LoadFunction("SDL_GetTouchDeviceType", "SDL3") ) )(touchID); @@ -51319,9 +61289,9 @@ public static TouchDeviceType GetTouchDeviceType( Finger** ISdl.GetTouchFingers([NativeTypeName("SDL_TouchID")] ulong touchID, int* count) => ( (delegate* unmanaged)( - _slots[409] is not null and var loadedFnPtr + _slots[421] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[409] = nativeContext.LoadFunction("SDL_GetTouchFingers", "SDL3") + : _slots[421] = nativeContext.LoadFunction("SDL_GetTouchFingers", "SDL3") ) )(touchID, count); @@ -51355,7 +61325,7 @@ Ref count [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetUserFolder(Folder folder) => (sbyte*)((ISdl)this).GetUserFolderRaw(folder); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -51365,44 +61335,30 @@ Ref count sbyte* ISdl.GetUserFolderRaw(Folder folder) => ( (delegate* unmanaged)( - _slots[410] is not null and var loadedFnPtr + _slots[422] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[410] = nativeContext.LoadFunction("SDL_GetUserFolder", "SDL3") + : _slots[422] = nativeContext.LoadFunction("SDL_GetUserFolder", "SDL3") ) )(folder); - [return: NativeTypeName("char *")] + [return: NativeTypeName("const char *")] [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static sbyte* GetUserFolderRaw(Folder folder) => DllImport.GetUserFolderRaw(folder); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetVersion(Version* ver) => + int ISdl.GetVersion() => ( - (delegate* unmanaged)( - _slots[411] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[423] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[411] = nativeContext.LoadFunction("SDL_GetVersion", "SDL3") + : _slots[423] = nativeContext.LoadFunction("SDL_GetVersion", "SDL3") ) - )(ver); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetVersion")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetVersion(Version* ver) => DllImport.GetVersion(ver); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetVersion(Ref ver) - { - fixed (Version* __dsl_ver = ver) - { - return (int)((ISdl)this).GetVersion(__dsl_ver); - } - } + )(); - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetVersion")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetVersion(Ref ver) => DllImport.GetVersion(ver); + public static int GetVersion() => DllImport.GetVersion(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetVideoDriver(int index) => (sbyte*)((ISdl)this).GetVideoDriverRaw(index); @@ -51417,9 +61373,9 @@ int ISdl.GetVersion(Ref ver) sbyte* ISdl.GetVideoDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[412] is not null and var loadedFnPtr + _slots[424] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[412] = nativeContext.LoadFunction("SDL_GetVideoDriver", "SDL3") + : _slots[424] = nativeContext.LoadFunction("SDL_GetVideoDriver", "SDL3") ) )(index); @@ -51429,7 +61385,51 @@ _slots[412] is not null and var loadedFnPtr public static sbyte* GetVideoDriverRaw(int index) => DllImport.GetVideoDriverRaw(index); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowBordersSize( + byte ISdl.GetWindowAspectRatio(WindowHandle window, float* min_aspect, float* max_aspect) => + ( + (delegate* unmanaged)( + _slots[425] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[425] = nativeContext.LoadFunction("SDL_GetWindowAspectRatio", "SDL3") + ) + )(window, min_aspect, max_aspect); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowAspectRatio")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetWindowAspectRatio( + WindowHandle window, + float* min_aspect, + float* max_aspect + ) => DllImport.GetWindowAspectRatio(window, min_aspect, max_aspect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetWindowAspectRatio( + WindowHandle window, + Ref min_aspect, + Ref max_aspect + ) + { + fixed (float* __dsl_max_aspect = max_aspect) + fixed (float* __dsl_min_aspect = min_aspect) + { + return (MaybeBool) + (byte)((ISdl)this).GetWindowAspectRatio(window, __dsl_min_aspect, __dsl_max_aspect); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowAspectRatio")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetWindowAspectRatio( + WindowHandle window, + Ref min_aspect, + Ref max_aspect + ) => DllImport.GetWindowAspectRatio(window, min_aspect, max_aspect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetWindowBordersSize( WindowHandle window, int* top, int* left, @@ -51437,16 +61437,17 @@ int ISdl.GetWindowBordersSize( int* right ) => ( - (delegate* unmanaged)( - _slots[413] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[426] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[413] = nativeContext.LoadFunction("SDL_GetWindowBordersSize", "SDL3") + : _slots[426] = nativeContext.LoadFunction("SDL_GetWindowBordersSize", "SDL3") ) )(window, top, left, bottom, right); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowBordersSize( + public static byte GetWindowBordersSize( WindowHandle window, int* top, int* left, @@ -51455,7 +61456,7 @@ public static int GetWindowBordersSize( ) => DllImport.GetWindowBordersSize(window, top, left, bottom, right); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowBordersSize( + MaybeBool ISdl.GetWindowBordersSize( WindowHandle window, Ref top, Ref left, @@ -51468,21 +61469,23 @@ Ref right fixed (int* __dsl_left = left) fixed (int* __dsl_top = top) { - return (int) - ((ISdl)this).GetWindowBordersSize( - window, - __dsl_top, - __dsl_left, - __dsl_bottom, - __dsl_right - ); + return (MaybeBool) + (byte) + ((ISdl)this).GetWindowBordersSize( + window, + __dsl_top, + __dsl_left, + __dsl_bottom, + __dsl_right + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowBordersSize( + public static MaybeBool GetWindowBordersSize( WindowHandle window, Ref top, Ref left, @@ -51494,9 +61497,9 @@ Ref right float ISdl.GetWindowDisplayScale(WindowHandle window) => ( (delegate* unmanaged)( - _slots[414] is not null and var loadedFnPtr + _slots[427] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[414] = nativeContext.LoadFunction("SDL_GetWindowDisplayScale", "SDL3") + : _slots[427] = nativeContext.LoadFunction("SDL_GetWindowDisplayScale", "SDL3") ) )(window); @@ -51506,27 +61509,59 @@ public static float GetWindowDisplayScale(WindowHandle window) => DllImport.GetWindowDisplayScale(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetWindowFlags(WindowHandle window) => + ulong ISdl.GetWindowFlags(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[415] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[428] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[415] = nativeContext.LoadFunction("SDL_GetWindowFlags", "SDL3") + : _slots[428] = nativeContext.LoadFunction("SDL_GetWindowFlags", "SDL3") ) )(window); [return: NativeTypeName("SDL_WindowFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFlags")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetWindowFlags(WindowHandle window) => DllImport.GetWindowFlags(window); + public static ulong GetWindowFlags(WindowHandle window) => DllImport.GetWindowFlags(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + WindowHandle ISdl.GetWindowFromEvent([NativeTypeName("const SDL_Event *")] Event* @event) => + ( + (delegate* unmanaged)( + _slots[429] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[429] = nativeContext.LoadFunction("SDL_GetWindowFromEvent", "SDL3") + ) + )(@event); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromEvent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static WindowHandle GetWindowFromEvent( + [NativeTypeName("const SDL_Event *")] Event* @event + ) => DllImport.GetWindowFromEvent(@event); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + WindowHandle ISdl.GetWindowFromEvent([NativeTypeName("const SDL_Event *")] Ref @event) + { + fixed (Event* __dsl_event = @event) + { + return (WindowHandle)((ISdl)this).GetWindowFromEvent(__dsl_event); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromEvent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static WindowHandle GetWindowFromEvent( + [NativeTypeName("const SDL_Event *")] Ref @event + ) => DllImport.GetWindowFromEvent(@event); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id) => ( (delegate* unmanaged)( - _slots[416] is not null and var loadedFnPtr + _slots[430] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[416] = nativeContext.LoadFunction("SDL_GetWindowFromID", "SDL3") + : _slots[430] = nativeContext.LoadFunction("SDL_GetWindowFromID", "SDL3") ) )(id); @@ -51550,9 +61585,9 @@ public static Ptr GetWindowFullscreenMode(WindowHandle window) => DisplayMode* ISdl.GetWindowFullscreenModeRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[417] is not null and var loadedFnPtr + _slots[431] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[417] = nativeContext.LoadFunction( + : _slots[431] = nativeContext.LoadFunction( "SDL_GetWindowFullscreenMode", "SDL3" ) @@ -51569,9 +61604,9 @@ _slots[417] is not null and var loadedFnPtr void* ISdl.GetWindowICCProfile(WindowHandle window, [NativeTypeName("size_t *")] nuint* size) => ( (delegate* unmanaged)( - _slots[418] is not null and var loadedFnPtr + _slots[432] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[418] = nativeContext.LoadFunction("SDL_GetWindowICCProfile", "SDL3") + : _slots[432] = nativeContext.LoadFunction("SDL_GetWindowICCProfile", "SDL3") ) )(window, size); @@ -51603,9 +61638,9 @@ public static Ptr GetWindowICCProfile( uint ISdl.GetWindowID(WindowHandle window) => ( (delegate* unmanaged)( - _slots[419] is not null and var loadedFnPtr + _slots[433] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[419] = nativeContext.LoadFunction("SDL_GetWindowID", "SDL3") + : _slots[433] = nativeContext.LoadFunction("SDL_GetWindowID", "SDL3") ) )(window); @@ -51615,119 +61650,131 @@ _slots[419] is not null and var loadedFnPtr public static uint GetWindowID(WindowHandle window) => DllImport.GetWindowID(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetWindowKeyboardGrab(WindowHandle window) => - (MaybeBool)(int)((ISdl)this).GetWindowKeyboardGrabRaw(window); + MaybeBool ISdl.GetWindowKeyboardGrab(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).GetWindowKeyboardGrabRaw(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetWindowKeyboardGrab(WindowHandle window) => + public static MaybeBool GetWindowKeyboardGrab(WindowHandle window) => DllImport.GetWindowKeyboardGrab(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowKeyboardGrabRaw(WindowHandle window) => + byte ISdl.GetWindowKeyboardGrabRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[420] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[434] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[420] = nativeContext.LoadFunction("SDL_GetWindowKeyboardGrab", "SDL3") + : _slots[434] = nativeContext.LoadFunction("SDL_GetWindowKeyboardGrab", "SDL3") ) )(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowKeyboardGrabRaw(WindowHandle window) => + public static byte GetWindowKeyboardGrabRaw(WindowHandle window) => DllImport.GetWindowKeyboardGrabRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowMaximumSize(WindowHandle window, int* w, int* h) => + byte ISdl.GetWindowMaximumSize(WindowHandle window, int* w, int* h) => ( - (delegate* unmanaged)( - _slots[421] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[435] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[421] = nativeContext.LoadFunction("SDL_GetWindowMaximumSize", "SDL3") + : _slots[435] = nativeContext.LoadFunction("SDL_GetWindowMaximumSize", "SDL3") ) )(window, w, h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowMaximumSize(WindowHandle window, int* w, int* h) => + public static byte GetWindowMaximumSize(WindowHandle window, int* w, int* h) => DllImport.GetWindowMaximumSize(window, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowMaximumSize(WindowHandle window, Ref w, Ref h) + MaybeBool ISdl.GetWindowMaximumSize(WindowHandle window, Ref w, Ref h) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)((ISdl)this).GetWindowMaximumSize(window, __dsl_w, __dsl_h); + return (MaybeBool) + (byte)((ISdl)this).GetWindowMaximumSize(window, __dsl_w, __dsl_h); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowMaximumSize(WindowHandle window, Ref w, Ref h) => - DllImport.GetWindowMaximumSize(window, w, h); + public static MaybeBool GetWindowMaximumSize( + WindowHandle window, + Ref w, + Ref h + ) => DllImport.GetWindowMaximumSize(window, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowMinimumSize(WindowHandle window, int* w, int* h) => + byte ISdl.GetWindowMinimumSize(WindowHandle window, int* w, int* h) => ( - (delegate* unmanaged)( - _slots[422] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[436] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[422] = nativeContext.LoadFunction("SDL_GetWindowMinimumSize", "SDL3") + : _slots[436] = nativeContext.LoadFunction("SDL_GetWindowMinimumSize", "SDL3") ) )(window, w, h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowMinimumSize(WindowHandle window, int* w, int* h) => + public static byte GetWindowMinimumSize(WindowHandle window, int* w, int* h) => DllImport.GetWindowMinimumSize(window, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowMinimumSize(WindowHandle window, Ref w, Ref h) + MaybeBool ISdl.GetWindowMinimumSize(WindowHandle window, Ref w, Ref h) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)((ISdl)this).GetWindowMinimumSize(window, __dsl_w, __dsl_h); + return (MaybeBool) + (byte)((ISdl)this).GetWindowMinimumSize(window, __dsl_w, __dsl_h); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowMinimumSize(WindowHandle window, Ref w, Ref h) => - DllImport.GetWindowMinimumSize(window, w, h); + public static MaybeBool GetWindowMinimumSize( + WindowHandle window, + Ref w, + Ref h + ) => DllImport.GetWindowMinimumSize(window, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GetWindowMouseGrab(WindowHandle window) => - (MaybeBool)(int)((ISdl)this).GetWindowMouseGrabRaw(window); + MaybeBool ISdl.GetWindowMouseGrab(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).GetWindowMouseGrabRaw(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GetWindowMouseGrab(WindowHandle window) => + public static MaybeBool GetWindowMouseGrab(WindowHandle window) => DllImport.GetWindowMouseGrab(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowMouseGrabRaw(WindowHandle window) => + byte ISdl.GetWindowMouseGrabRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[423] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[437] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[423] = nativeContext.LoadFunction("SDL_GetWindowMouseGrab", "SDL3") + : _slots[437] = nativeContext.LoadFunction("SDL_GetWindowMouseGrab", "SDL3") ) )(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowMouseGrabRaw(WindowHandle window) => + public static byte GetWindowMouseGrabRaw(WindowHandle window) => DllImport.GetWindowMouseGrabRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -51745,9 +61792,9 @@ public static Ptr GetWindowMouseRect(WindowHandle window) => Rect* ISdl.GetWindowMouseRectRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[424] is not null and var loadedFnPtr + _slots[438] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[424] = nativeContext.LoadFunction("SDL_GetWindowMouseRect", "SDL3") + : _slots[438] = nativeContext.LoadFunction("SDL_GetWindowMouseRect", "SDL3") ) )(window); @@ -51758,42 +61805,26 @@ _slots[424] is not null and var loadedFnPtr DllImport.GetWindowMouseRectRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowOpacity(WindowHandle window, float* out_opacity) => + float ISdl.GetWindowOpacity(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[425] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[439] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[425] = nativeContext.LoadFunction("SDL_GetWindowOpacity", "SDL3") + : _slots[439] = nativeContext.LoadFunction("SDL_GetWindowOpacity", "SDL3") ) - )(window, out_opacity); - - [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowOpacity(WindowHandle window, float* out_opacity) => - DllImport.GetWindowOpacity(window, out_opacity); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowOpacity(WindowHandle window, Ref out_opacity) - { - fixed (float* __dsl_out_opacity = out_opacity) - { - return (int)((ISdl)this).GetWindowOpacity(window, __dsl_out_opacity); - } - } + )(window); - [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowOpacity(WindowHandle window, Ref out_opacity) => - DllImport.GetWindowOpacity(window, out_opacity); + public static float GetWindowOpacity(WindowHandle window) => DllImport.GetWindowOpacity(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GetWindowParent(WindowHandle window) => ( (delegate* unmanaged)( - _slots[426] is not null and var loadedFnPtr + _slots[440] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[426] = nativeContext.LoadFunction("SDL_GetWindowParent", "SDL3") + : _slots[440] = nativeContext.LoadFunction("SDL_GetWindowParent", "SDL3") ) )(window); @@ -51806,9 +61837,9 @@ public static WindowHandle GetWindowParent(WindowHandle window) => float ISdl.GetWindowPixelDensity(WindowHandle window) => ( (delegate* unmanaged)( - _slots[427] is not null and var loadedFnPtr + _slots[441] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[427] = nativeContext.LoadFunction("SDL_GetWindowPixelDensity", "SDL3") + : _slots[441] = nativeContext.LoadFunction("SDL_GetWindowPixelDensity", "SDL3") ) )(window); @@ -51818,59 +61849,60 @@ public static float GetWindowPixelDensity(WindowHandle window) => DllImport.GetWindowPixelDensity(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.GetWindowPixelFormat(WindowHandle window) => + PixelFormat ISdl.GetWindowPixelFormat(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[428] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[442] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[428] = nativeContext.LoadFunction("SDL_GetWindowPixelFormat", "SDL3") + : _slots[442] = nativeContext.LoadFunction("SDL_GetWindowPixelFormat", "SDL3") ) )(window); - [return: NativeTypeName("Uint32")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint GetWindowPixelFormat(WindowHandle window) => + public static PixelFormat GetWindowPixelFormat(WindowHandle window) => DllImport.GetWindowPixelFormat(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowPosition(WindowHandle window, int* x, int* y) => + byte ISdl.GetWindowPosition(WindowHandle window, int* x, int* y) => ( - (delegate* unmanaged)( - _slots[429] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[443] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[429] = nativeContext.LoadFunction("SDL_GetWindowPosition", "SDL3") + : _slots[443] = nativeContext.LoadFunction("SDL_GetWindowPosition", "SDL3") ) )(window, x, y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowPosition(WindowHandle window, int* x, int* y) => + public static byte GetWindowPosition(WindowHandle window, int* x, int* y) => DllImport.GetWindowPosition(window, x, y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowPosition(WindowHandle window, Ref x, Ref y) + MaybeBool ISdl.GetWindowPosition(WindowHandle window, Ref x, Ref y) { fixed (int* __dsl_y = y) fixed (int* __dsl_x = x) { - return (int)((ISdl)this).GetWindowPosition(window, __dsl_x, __dsl_y); + return (MaybeBool)(byte)((ISdl)this).GetWindowPosition(window, __dsl_x, __dsl_y); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowPosition(WindowHandle window, Ref x, Ref y) => + public static MaybeBool GetWindowPosition(WindowHandle window, Ref x, Ref y) => DllImport.GetWindowPosition(window, x, y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetWindowProperties(WindowHandle window) => ( (delegate* unmanaged)( - _slots[430] is not null and var loadedFnPtr + _slots[444] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[430] = nativeContext.LoadFunction("SDL_GetWindowProperties", "SDL3") + : _slots[444] = nativeContext.LoadFunction("SDL_GetWindowProperties", "SDL3") ) )(window); @@ -51881,66 +61913,164 @@ public static uint GetWindowProperties(WindowHandle window) => DllImport.GetWindowProperties(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowSize(WindowHandle window, int* w, int* h) => + MaybeBool ISdl.GetWindowRelativeMouseMode(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).GetWindowRelativeMouseModeRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowRelativeMouseMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetWindowRelativeMouseMode(WindowHandle window) => + DllImport.GetWindowRelativeMouseMode(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetWindowRelativeMouseModeRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[431] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[445] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[445] = nativeContext.LoadFunction( + "SDL_GetWindowRelativeMouseMode", + "SDL3" + ) + ) + )(window); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowRelativeMouseMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetWindowRelativeMouseModeRaw(WindowHandle window) => + DllImport.GetWindowRelativeMouseModeRaw(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + WindowHandle* ISdl.GetWindows(int* count) => + ( + (delegate* unmanaged)( + _slots[446] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[446] = nativeContext.LoadFunction("SDL_GetWindows", "SDL3") + ) + )(count); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindows")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static WindowHandle* GetWindows(int* count) => DllImport.GetWindows(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetWindows(Ref count) + { + fixed (int* __dsl_count = count) + { + return (WindowHandle*)((ISdl)this).GetWindows(__dsl_count); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindows")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetWindows(Ref count) => DllImport.GetWindows(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetWindowSafeArea(WindowHandle window, Rect* rect) => + ( + (delegate* unmanaged)( + _slots[447] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[447] = nativeContext.LoadFunction("SDL_GetWindowSafeArea", "SDL3") + ) + )(window, rect); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSafeArea")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetWindowSafeArea(WindowHandle window, Rect* rect) => + DllImport.GetWindowSafeArea(window, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetWindowSafeArea(WindowHandle window, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + { + return (MaybeBool)(byte)((ISdl)this).GetWindowSafeArea(window, __dsl_rect); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSafeArea")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetWindowSafeArea(WindowHandle window, Ref rect) => + DllImport.GetWindowSafeArea(window, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetWindowSize(WindowHandle window, int* w, int* h) => + ( + (delegate* unmanaged)( + _slots[448] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[431] = nativeContext.LoadFunction("SDL_GetWindowSize", "SDL3") + : _slots[448] = nativeContext.LoadFunction("SDL_GetWindowSize", "SDL3") ) )(window, w, h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowSize(WindowHandle window, int* w, int* h) => + public static byte GetWindowSize(WindowHandle window, int* w, int* h) => DllImport.GetWindowSize(window, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowSize(WindowHandle window, Ref w, Ref h) + MaybeBool ISdl.GetWindowSize(WindowHandle window, Ref w, Ref h) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)((ISdl)this).GetWindowSize(window, __dsl_w, __dsl_h); + return (MaybeBool)(byte)((ISdl)this).GetWindowSize(window, __dsl_w, __dsl_h); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowSize(WindowHandle window, Ref w, Ref h) => + public static MaybeBool GetWindowSize(WindowHandle window, Ref w, Ref h) => DllImport.GetWindowSize(window, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowSizeInPixels(WindowHandle window, int* w, int* h) => + byte ISdl.GetWindowSizeInPixels(WindowHandle window, int* w, int* h) => ( - (delegate* unmanaged)( - _slots[432] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[449] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[432] = nativeContext.LoadFunction("SDL_GetWindowSizeInPixels", "SDL3") + : _slots[449] = nativeContext.LoadFunction("SDL_GetWindowSizeInPixels", "SDL3") ) )(window, w, h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowSizeInPixels(WindowHandle window, int* w, int* h) => + public static byte GetWindowSizeInPixels(WindowHandle window, int* w, int* h) => DllImport.GetWindowSizeInPixels(window, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetWindowSizeInPixels(WindowHandle window, Ref w, Ref h) + MaybeBool ISdl.GetWindowSizeInPixels(WindowHandle window, Ref w, Ref h) { fixed (int* __dsl_h = h) fixed (int* __dsl_w = w) { - return (int)((ISdl)this).GetWindowSizeInPixels(window, __dsl_w, __dsl_h); + return (MaybeBool) + (byte)((ISdl)this).GetWindowSizeInPixels(window, __dsl_w, __dsl_h); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetWindowSizeInPixels(WindowHandle window, Ref w, Ref h) => - DllImport.GetWindowSizeInPixels(window, w, h); + public static MaybeBool GetWindowSizeInPixels( + WindowHandle window, + Ref w, + Ref h + ) => DllImport.GetWindowSizeInPixels(window, w, h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetWindowSurface(WindowHandle window) => @@ -51956,9 +62086,9 @@ public static Ptr GetWindowSurface(WindowHandle window) => Surface* ISdl.GetWindowSurfaceRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[433] is not null and var loadedFnPtr + _slots[450] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[433] = nativeContext.LoadFunction("SDL_GetWindowSurface", "SDL3") + : _slots[450] = nativeContext.LoadFunction("SDL_GetWindowSurface", "SDL3") ) )(window); @@ -51967,6 +62097,38 @@ _slots[433] is not null and var loadedFnPtr public static Surface* GetWindowSurfaceRaw(WindowHandle window) => DllImport.GetWindowSurfaceRaw(window); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetWindowSurfaceVSync(WindowHandle window, int* vsync) => + ( + (delegate* unmanaged)( + _slots[451] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[451] = nativeContext.LoadFunction("SDL_GetWindowSurfaceVSync", "SDL3") + ) + )(window, vsync); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurfaceVSync")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetWindowSurfaceVSync(WindowHandle window, int* vsync) => + DllImport.GetWindowSurfaceVSync(window, vsync); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetWindowSurfaceVSync(WindowHandle window, Ref vsync) + { + fixed (int* __dsl_vsync = vsync) + { + return (MaybeBool)(byte)((ISdl)this).GetWindowSurfaceVSync(window, __dsl_vsync); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurfaceVSync")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetWindowSurfaceVSync(WindowHandle window, Ref vsync) => + DllImport.GetWindowSurfaceVSync(window, vsync); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.GetWindowTitle(WindowHandle window) => (sbyte*)((ISdl)this).GetWindowTitleRaw(window); @@ -51982,9 +62144,9 @@ public static Ptr GetWindowTitle(WindowHandle window) => sbyte* ISdl.GetWindowTitleRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[434] is not null and var loadedFnPtr + _slots[452] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[434] = nativeContext.LoadFunction("SDL_GetWindowTitle", "SDL3") + : _slots[452] = nativeContext.LoadFunction("SDL_GetWindowTitle", "SDL3") ) )(window); @@ -51995,154 +62157,138 @@ _slots[434] is not null and var loadedFnPtr DllImport.GetWindowTitleRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GLCreateContext(WindowHandle window) => (void*)((ISdl)this).GLCreateContextRaw(window); - - [return: NativeTypeName("SDL_GLContext")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GLCreateContext(WindowHandle window) => DllImport.GLCreateContext(window); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void* ISdl.GLCreateContextRaw(WindowHandle window) => + GLContextStateHandle ISdl.GLCreateContext(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[435] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[453] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[435] = nativeContext.LoadFunction("SDL_GL_CreateContext", "SDL3") + : _slots[453] = nativeContext.LoadFunction("SDL_GL_CreateContext", "SDL3") ) )(window); [return: NativeTypeName("SDL_GLContext")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void* GLCreateContextRaw(WindowHandle window) => - DllImport.GLCreateContextRaw(window); + public static GLContextStateHandle GLCreateContext(WindowHandle window) => + DllImport.GLCreateContext(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context) => - ( - (delegate* unmanaged)( - _slots[436] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[436] = nativeContext.LoadFunction("SDL_GL_DeleteContext", "SDL3") - ) - )(context); + MaybeBool ISdl.GLDestroyContext( + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => (MaybeBool)(byte)((ISdl)this).GLDestroyContextRaw(context); - [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DestroyContext")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context) => - DllImport.GLDeleteContext(context); + public static MaybeBool GLDestroyContext( + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => DllImport.GLDestroyContext(context); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLDeleteContext([NativeTypeName("SDL_GLContext")] Ref context) - { - fixed (void* __dsl_context = context) - { - return (int)((ISdl)this).GLDeleteContext(__dsl_context); - } - } + byte ISdl.GLDestroyContextRaw([NativeTypeName("SDL_GLContext")] GLContextStateHandle context) => + ( + (delegate* unmanaged)( + _slots[454] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[454] = nativeContext.LoadFunction("SDL_GL_DestroyContext", "SDL3") + ) + )(context); - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DestroyContext")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLDeleteContext([NativeTypeName("SDL_GLContext")] Ref context) => - DllImport.GLDeleteContext(context); + public static byte GLDestroyContextRaw( + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => DllImport.GLDestroyContextRaw(context); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => + byte ISdl.GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => ( - (delegate* unmanaged)( - _slots[437] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[455] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[437] = nativeContext.LoadFunction("SDL_GL_ExtensionSupported", "SDL3") + : _slots[455] = nativeContext.LoadFunction("SDL_GL_ExtensionSupported", "SDL3") ) )(extension); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => + public static byte GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => DllImport.GLExtensionSupported(extension); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.GLExtensionSupported([NativeTypeName("const char *")] Ref extension) + MaybeBool ISdl.GLExtensionSupported([NativeTypeName("const char *")] Ref extension) { fixed (sbyte* __dsl_extension = extension) { - return (MaybeBool)(int)((ISdl)this).GLExtensionSupported(__dsl_extension); + return (MaybeBool)(byte)((ISdl)this).GLExtensionSupported(__dsl_extension); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool GLExtensionSupported( + public static MaybeBool GLExtensionSupported( [NativeTypeName("const char *")] Ref extension ) => DllImport.GLExtensionSupported(extension); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLGetAttribute(GLattr attr, int* value) => + byte ISdl.GLGetAttribute(GLAttr attr, int* value) => ( - (delegate* unmanaged)( - _slots[438] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[456] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[438] = nativeContext.LoadFunction("SDL_GL_GetAttribute", "SDL3") + : _slots[456] = nativeContext.LoadFunction("SDL_GL_GetAttribute", "SDL3") ) )(attr, value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLGetAttribute(GLattr attr, int* value) => + public static byte GLGetAttribute(GLAttr attr, int* value) => DllImport.GLGetAttribute(attr, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLGetAttribute(GLattr attr, Ref value) + MaybeBool ISdl.GLGetAttribute(GLAttr attr, Ref value) { fixed (int* __dsl_value = value) { - return (int)((ISdl)this).GLGetAttribute(attr, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).GLGetAttribute(attr, __dsl_value); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLGetAttribute(GLattr attr, Ref value) => + public static MaybeBool GLGetAttribute(GLAttr attr, Ref value) => DllImport.GLGetAttribute(attr, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.GLGetCurrentContext() => (void*)((ISdl)this).GLGetCurrentContextRaw(); - - [return: NativeTypeName("SDL_GLContext")] - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr GLGetCurrentContext() => DllImport.GLGetCurrentContext(); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void* ISdl.GLGetCurrentContextRaw() => + GLContextStateHandle ISdl.GLGetCurrentContext() => ( - (delegate* unmanaged)( - _slots[439] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[457] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[439] = nativeContext.LoadFunction("SDL_GL_GetCurrentContext", "SDL3") + : _slots[457] = nativeContext.LoadFunction("SDL_GL_GetCurrentContext", "SDL3") ) )(); [return: NativeTypeName("SDL_GLContext")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void* GLGetCurrentContextRaw() => DllImport.GLGetCurrentContextRaw(); + public static GLContextStateHandle GLGetCurrentContext() => DllImport.GLGetCurrentContext(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GLGetCurrentWindow() => ( (delegate* unmanaged)( - _slots[440] is not null and var loadedFnPtr + _slots[458] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[440] = nativeContext.LoadFunction("SDL_GL_GetCurrentWindow", "SDL3") + : _slots[458] = nativeContext.LoadFunction("SDL_GL_GetCurrentWindow", "SDL3") ) )(); @@ -52154,9 +62300,9 @@ _slots[440] is not null and var loadedFnPtr FunctionPointer ISdl.GLGetProcAddress([NativeTypeName("const char *")] sbyte* proc) => ( (delegate* unmanaged)( - _slots[441] is not null and var loadedFnPtr + _slots[459] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[441] = nativeContext.LoadFunction("SDL_GL_GetProcAddress", "SDL3") + : _slots[459] = nativeContext.LoadFunction("SDL_GL_GetProcAddress", "SDL3") ) )(proc); @@ -52184,104 +62330,111 @@ public static FunctionPointer GLGetProcAddress( ) => DllImport.GLGetProcAddress(proc); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLGetSwapInterval(int* interval) => + byte ISdl.GLGetSwapInterval(int* interval) => ( - (delegate* unmanaged)( - _slots[442] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[460] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[442] = nativeContext.LoadFunction("SDL_GL_GetSwapInterval", "SDL3") + : _slots[460] = nativeContext.LoadFunction("SDL_GL_GetSwapInterval", "SDL3") ) )(interval); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLGetSwapInterval(int* interval) => DllImport.GLGetSwapInterval(interval); + public static byte GLGetSwapInterval(int* interval) => DllImport.GLGetSwapInterval(interval); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLGetSwapInterval(Ref interval) + MaybeBool ISdl.GLGetSwapInterval(Ref interval) { fixed (int* __dsl_interval = interval) { - return (int)((ISdl)this).GLGetSwapInterval(__dsl_interval); + return (MaybeBool)(byte)((ISdl)this).GLGetSwapInterval(__dsl_interval); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLGetSwapInterval(Ref interval) => DllImport.GLGetSwapInterval(interval); + public static MaybeBool GLGetSwapInterval(Ref interval) => + DllImport.GLGetSwapInterval(interval); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => + byte ISdl.GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => ( - (delegate* unmanaged)( - _slots[443] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[461] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[443] = nativeContext.LoadFunction("SDL_GL_LoadLibrary", "SDL3") + : _slots[461] = nativeContext.LoadFunction("SDL_GL_LoadLibrary", "SDL3") ) )(path); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => + public static byte GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => DllImport.GLLoadLibrary(path); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLLoadLibrary([NativeTypeName("const char *")] Ref path) + MaybeBool ISdl.GLLoadLibrary([NativeTypeName("const char *")] Ref path) { fixed (sbyte* __dsl_path = path) { - return (int)((ISdl)this).GLLoadLibrary(__dsl_path); + return (MaybeBool)(byte)((ISdl)this).GLLoadLibrary(__dsl_path); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLLoadLibrary([NativeTypeName("const char *")] Ref path) => + public static MaybeBool GLLoadLibrary([NativeTypeName("const char *")] Ref path) => DllImport.GLLoadLibrary(path); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLMakeCurrent(WindowHandle window, [NativeTypeName("SDL_GLContext")] void* context) => - ( - (delegate* unmanaged)( - _slots[444] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[444] = nativeContext.LoadFunction("SDL_GL_MakeCurrent", "SDL3") - ) - )(window, context); + MaybeBool ISdl.GLMakeCurrent( + WindowHandle window, + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => (MaybeBool)(byte)((ISdl)this).GLMakeCurrentRaw(window, context); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLMakeCurrent( + public static MaybeBool GLMakeCurrent( WindowHandle window, - [NativeTypeName("SDL_GLContext")] void* context + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context ) => DllImport.GLMakeCurrent(window, context); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLMakeCurrent(WindowHandle window, [NativeTypeName("SDL_GLContext")] Ref context) - { - fixed (void* __dsl_context = context) - { - return (int)((ISdl)this).GLMakeCurrent(window, __dsl_context); - } - } + byte ISdl.GLMakeCurrentRaw( + WindowHandle window, + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => + ( + (delegate* unmanaged)( + _slots[462] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[462] = nativeContext.LoadFunction("SDL_GL_MakeCurrent", "SDL3") + ) + )(window, context); - [Transformed] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLMakeCurrent( + public static byte GLMakeCurrentRaw( WindowHandle window, - [NativeTypeName("SDL_GLContext")] Ref context - ) => DllImport.GLMakeCurrent(window, context); + [NativeTypeName("SDL_GLContext")] GLContextStateHandle context + ) => DllImport.GLMakeCurrentRaw(window, context); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GLResetAttributes() => ( (delegate* unmanaged)( - _slots[445] is not null and var loadedFnPtr + _slots[463] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[445] = nativeContext.LoadFunction("SDL_GL_ResetAttributes", "SDL3") + : _slots[463] = nativeContext.LoadFunction("SDL_GL_ResetAttributes", "SDL3") ) )(); @@ -52290,55 +62443,92 @@ _slots[445] is not null and var loadedFnPtr public static void GLResetAttributes() => DllImport.GLResetAttributes(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLSetAttribute(GLattr attr, int value) => + MaybeBool ISdl.GLSetAttribute(GLAttr attr, int value) => + (MaybeBool)(byte)((ISdl)this).GLSetAttributeRaw(attr, value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetAttribute")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GLSetAttribute(GLAttr attr, int value) => + DllImport.GLSetAttribute(attr, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GLSetAttributeRaw(GLAttr attr, int value) => ( - (delegate* unmanaged)( - _slots[446] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[464] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[446] = nativeContext.LoadFunction("SDL_GL_SetAttribute", "SDL3") + : _slots[464] = nativeContext.LoadFunction("SDL_GL_SetAttribute", "SDL3") ) )(attr, value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetAttribute")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLSetAttribute(GLattr attr, int value) => - DllImport.GLSetAttribute(attr, value); + public static byte GLSetAttributeRaw(GLAttr attr, int value) => + DllImport.GLSetAttributeRaw(attr, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLSetSwapInterval(int interval) => + MaybeBool ISdl.GLSetSwapInterval(int interval) => + (MaybeBool)(byte)((ISdl)this).GLSetSwapIntervalRaw(interval); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetSwapInterval")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GLSetSwapInterval(int interval) => + DllImport.GLSetSwapInterval(interval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GLSetSwapIntervalRaw(int interval) => ( - (delegate* unmanaged)( - _slots[447] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[465] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[447] = nativeContext.LoadFunction("SDL_GL_SetSwapInterval", "SDL3") + : _slots[465] = nativeContext.LoadFunction("SDL_GL_SetSwapInterval", "SDL3") ) )(interval); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SetSwapInterval")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLSetSwapInterval(int interval) => DllImport.GLSetSwapInterval(interval); + public static byte GLSetSwapIntervalRaw(int interval) => + DllImport.GLSetSwapIntervalRaw(interval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GLSwapWindow(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).GLSwapWindowRaw(window); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GLSwapWindow(WindowHandle window) => + public static MaybeBool GLSwapWindow(WindowHandle window) => + DllImport.GLSwapWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GLSwapWindowRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[448] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[466] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[448] = nativeContext.LoadFunction("SDL_GL_SwapWindow", "SDL3") + : _slots[466] = nativeContext.LoadFunction("SDL_GL_SwapWindow", "SDL3") ) )(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GLSwapWindow(WindowHandle window) => DllImport.GLSwapWindow(window); + public static byte GLSwapWindowRaw(WindowHandle window) => DllImport.GLSwapWindowRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GLUnloadLibrary() => ( (delegate* unmanaged)( - _slots[449] is not null and var loadedFnPtr + _slots[467] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[449] = nativeContext.LoadFunction("SDL_GL_UnloadLibrary", "SDL3") + : _slots[467] = nativeContext.LoadFunction("SDL_GL_UnloadLibrary", "SDL3") ) )(); @@ -52350,14 +62540,14 @@ _slots[449] is not null and var loadedFnPtr sbyte** ISdl.GlobDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ) => ( (delegate* unmanaged)( - _slots[450] is not null and var loadedFnPtr + _slots[468] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[450] = nativeContext.LoadFunction("SDL_GlobDirectory", "SDL3") + : _slots[468] = nativeContext.LoadFunction("SDL_GlobDirectory", "SDL3") ) )(path, pattern, flags, count); @@ -52367,7 +62557,7 @@ _slots[450] is not null and var loadedFnPtr public static sbyte** GlobDirectory( [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ) => DllImport.GlobDirectory(path, pattern, flags, count); @@ -52375,7 +62565,7 @@ _slots[450] is not null and var loadedFnPtr Ptr2D ISdl.GlobDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ) { @@ -52395,7 +62585,7 @@ Ref count public static Ptr2D GlobDirectory( [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ) => DllImport.GlobDirectory(path, pattern, flags, count); @@ -52404,14 +62594,14 @@ Ref count StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ) => ( (delegate* unmanaged)( - _slots[451] is not null and var loadedFnPtr + _slots[469] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[451] = nativeContext.LoadFunction("SDL_GlobStorageDirectory", "SDL3") + : _slots[469] = nativeContext.LoadFunction("SDL_GlobStorageDirectory", "SDL3") ) )(storage, path, pattern, flags, count); @@ -52422,7 +62612,7 @@ _slots[451] is not null and var loadedFnPtr StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, int* count ) => DllImport.GlobStorageDirectory(storage, path, pattern, flags, count); @@ -52431,7 +62621,7 @@ Ptr2D ISdl.GlobStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ) { @@ -52458,671 +62648,641 @@ public static Ptr2D GlobStorageDirectory( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const char *")] Ref pattern, - [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("SDL_GlobFlags")] uint flags, Ref count ) => DllImport.GlobStorageDirectory(storage, path, pattern, flags, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Guid ISdl.GuidFromString([NativeTypeName("const char *")] sbyte* pchGUID) => + void ISdl.GuidToString(Guid guid, [NativeTypeName("char *")] sbyte* pszGUID, int cbGUID) => ( - (delegate* unmanaged)( - _slots[452] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[452] = nativeContext.LoadFunction("SDL_GUIDFromString", "SDL3") - ) - )(pchGUID); - - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Guid GuidFromString([NativeTypeName("const char *")] sbyte* pchGUID) => - DllImport.GuidFromString(pchGUID); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Guid ISdl.GuidFromString([NativeTypeName("const char *")] Ref pchGUID) - { - fixed (sbyte* __dsl_pchGUID = pchGUID) - { - return (Guid)((ISdl)this).GuidFromString(__dsl_pchGUID); - } - } - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Guid GuidFromString([NativeTypeName("const char *")] Ref pchGUID) => - DllImport.GuidFromString(pchGUID); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GuidToString(Guid guid, [NativeTypeName("char *")] sbyte* pszGUID, int cbGUID) => - ( - (delegate* unmanaged)( - _slots[453] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[470] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[453] = nativeContext.LoadFunction("SDL_GUIDToString", "SDL3") + : _slots[470] = nativeContext.LoadFunction("SDL_GUIDToString", "SDL3") ) )(guid, pszGUID, cbGUID); [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GuidToString( + public static void GuidToString( Guid guid, [NativeTypeName("char *")] sbyte* pszGUID, int cbGUID ) => DllImport.GuidToString(guid, pszGUID, cbGUID); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GuidToString(Guid guid, [NativeTypeName("char *")] Ref pszGUID, int cbGUID) + void ISdl.GuidToString(Guid guid, [NativeTypeName("char *")] Ref pszGUID, int cbGUID) { fixed (sbyte* __dsl_pszGUID = pszGUID) { - return (int)((ISdl)this).GuidToString(guid, __dsl_pszGUID, cbGUID); + ((ISdl)this).GuidToString(guid, __dsl_pszGUID, cbGUID); } } [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GuidToString( + public static void GuidToString( Guid guid, [NativeTypeName("char *")] Ref pszGUID, int cbGUID ) => DllImport.GuidToString(guid, pszGUID, cbGUID); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HapticEffectSupported( + byte ISdl.HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect ) => ( - (delegate* unmanaged)( - _slots[454] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[471] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[454] = nativeContext.LoadFunction("SDL_HapticEffectSupported", "SDL3") + : _slots[471] = nativeContext.LoadFunction("SDL_HapticEffectSupported", "SDL3") ) )(haptic, effect); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HapticEffectSupported( + public static byte HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect ) => DllImport.HapticEffectSupported(haptic, effect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HapticEffectSupported( + MaybeBool ISdl.HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] Ref effect ) { fixed (HapticEffect* __dsl_effect = effect) { - return (MaybeBool)(int)((ISdl)this).HapticEffectSupported(haptic, __dsl_effect); + return (MaybeBool)(byte)((ISdl)this).HapticEffectSupported(haptic, __dsl_effect); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HapticEffectSupported( + public static MaybeBool HapticEffectSupported( HapticHandle haptic, [NativeTypeName("const SDL_HapticEffect *")] Ref effect ) => DllImport.HapticEffectSupported(haptic, effect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HapticRumbleSupported(HapticHandle haptic) => - (MaybeBool)(int)((ISdl)this).HapticRumbleSupportedRaw(haptic); + MaybeBool ISdl.HapticRumbleSupported(HapticHandle haptic) => + (MaybeBool)(byte)((ISdl)this).HapticRumbleSupportedRaw(haptic); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HapticRumbleSupported(HapticHandle haptic) => + public static MaybeBool HapticRumbleSupported(HapticHandle haptic) => DllImport.HapticRumbleSupported(haptic); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HapticRumbleSupportedRaw(HapticHandle haptic) => + byte ISdl.HapticRumbleSupportedRaw(HapticHandle haptic) => ( - (delegate* unmanaged)( - _slots[455] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[472] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[455] = nativeContext.LoadFunction("SDL_HapticRumbleSupported", "SDL3") + : _slots[472] = nativeContext.LoadFunction("SDL_HapticRumbleSupported", "SDL3") ) )(haptic); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HapticRumbleSupportedRaw(HapticHandle haptic) => + public static byte HapticRumbleSupportedRaw(HapticHandle haptic) => DllImport.HapticRumbleSupportedRaw(haptic); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasAltiVec() => (MaybeBool)(int)((ISdl)this).HasAltiVecRaw(); + MaybeBool ISdl.HasAltiVec() => (MaybeBool)(byte)((ISdl)this).HasAltiVecRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasAltiVec() => DllImport.HasAltiVec(); + public static MaybeBool HasAltiVec() => DllImport.HasAltiVec(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasAltiVecRaw() => + byte ISdl.HasAltiVecRaw() => ( - (delegate* unmanaged)( - _slots[456] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[473] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[456] = nativeContext.LoadFunction("SDL_HasAltiVec", "SDL3") + : _slots[473] = nativeContext.LoadFunction("SDL_HasAltiVec", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasAltiVecRaw() => DllImport.HasAltiVecRaw(); + public static byte HasAltiVecRaw() => DllImport.HasAltiVecRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasArmsimd() => (MaybeBool)(int)((ISdl)this).HasArmsimdRaw(); + MaybeBool ISdl.HasArmsimd() => (MaybeBool)(byte)((ISdl)this).HasArmsimdRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasArmsimd() => DllImport.HasArmsimd(); + public static MaybeBool HasArmsimd() => DllImport.HasArmsimd(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasArmsimdRaw() => + byte ISdl.HasArmsimdRaw() => ( - (delegate* unmanaged)( - _slots[457] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[474] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[457] = nativeContext.LoadFunction("SDL_HasARMSIMD", "SDL3") + : _slots[474] = nativeContext.LoadFunction("SDL_HasARMSIMD", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasArmsimdRaw() => DllImport.HasArmsimdRaw(); + public static byte HasArmsimdRaw() => DllImport.HasArmsimdRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasAVX() => (MaybeBool)(int)((ISdl)this).HasAVXRaw(); + MaybeBool ISdl.HasAVX() => (MaybeBool)(byte)((ISdl)this).HasAVXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasAVX() => DllImport.HasAVX(); + public static MaybeBool HasAVX() => DllImport.HasAVX(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasAVX2() => (MaybeBool)(int)((ISdl)this).HasAVX2Raw(); + MaybeBool ISdl.HasAVX2() => (MaybeBool)(byte)((ISdl)this).HasAVX2Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasAVX2() => DllImport.HasAVX2(); + public static MaybeBool HasAVX2() => DllImport.HasAVX2(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasAVX2Raw() => + byte ISdl.HasAVX2Raw() => ( - (delegate* unmanaged)( - _slots[459] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[476] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[459] = nativeContext.LoadFunction("SDL_HasAVX2", "SDL3") + : _slots[476] = nativeContext.LoadFunction("SDL_HasAVX2", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasAVX2Raw() => DllImport.HasAVX2Raw(); + public static byte HasAVX2Raw() => DllImport.HasAVX2Raw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasAVX512F() => (MaybeBool)(int)((ISdl)this).HasAVX512FRaw(); + MaybeBool ISdl.HasAVX512F() => (MaybeBool)(byte)((ISdl)this).HasAVX512FRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasAVX512F() => DllImport.HasAVX512F(); + public static MaybeBool HasAVX512F() => DllImport.HasAVX512F(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasAVX512FRaw() => + byte ISdl.HasAVX512FRaw() => ( - (delegate* unmanaged)( - _slots[460] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[477] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[460] = nativeContext.LoadFunction("SDL_HasAVX512F", "SDL3") + : _slots[477] = nativeContext.LoadFunction("SDL_HasAVX512F", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasAVX512FRaw() => DllImport.HasAVX512FRaw(); + public static byte HasAVX512FRaw() => DllImport.HasAVX512FRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasAVXRaw() => + byte ISdl.HasAVXRaw() => ( - (delegate* unmanaged)( - _slots[458] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[475] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[458] = nativeContext.LoadFunction("SDL_HasAVX", "SDL3") + : _slots[475] = nativeContext.LoadFunction("SDL_HasAVX", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasAVXRaw() => DllImport.HasAVXRaw(); + public static byte HasAVXRaw() => DllImport.HasAVXRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => + byte ISdl.HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => ( - (delegate* unmanaged)( - _slots[461] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[478] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[461] = nativeContext.LoadFunction("SDL_HasClipboardData", "SDL3") + : _slots[478] = nativeContext.LoadFunction("SDL_HasClipboardData", "SDL3") ) )(mime_type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => + public static byte HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => DllImport.HasClipboardData(mime_type); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasClipboardData([NativeTypeName("const char *")] Ref mime_type) + MaybeBool ISdl.HasClipboardData([NativeTypeName("const char *")] Ref mime_type) { fixed (sbyte* __dsl_mime_type = mime_type) { - return (MaybeBool)(int)((ISdl)this).HasClipboardData(__dsl_mime_type); + return (MaybeBool)(byte)((ISdl)this).HasClipboardData(__dsl_mime_type); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasClipboardData( + public static MaybeBool HasClipboardData( [NativeTypeName("const char *")] Ref mime_type ) => DllImport.HasClipboardData(mime_type); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasClipboardText() => - (MaybeBool)(int)((ISdl)this).HasClipboardTextRaw(); + MaybeBool ISdl.HasClipboardText() => + (MaybeBool)(byte)((ISdl)this).HasClipboardTextRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasClipboardText() => DllImport.HasClipboardText(); + public static MaybeBool HasClipboardText() => DllImport.HasClipboardText(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasClipboardTextRaw() => + byte ISdl.HasClipboardTextRaw() => ( - (delegate* unmanaged)( - _slots[462] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[479] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[462] = nativeContext.LoadFunction("SDL_HasClipboardText", "SDL3") + : _slots[479] = nativeContext.LoadFunction("SDL_HasClipboardText", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasClipboardTextRaw() => DllImport.HasClipboardTextRaw(); + public static byte HasClipboardTextRaw() => DllImport.HasClipboardTextRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasEvent([NativeTypeName("Uint32")] uint type) => - (MaybeBool)(int)((ISdl)this).HasEventRaw(type); + MaybeBool ISdl.HasEvent([NativeTypeName("Uint32")] uint type) => + (MaybeBool)(byte)((ISdl)this).HasEventRaw(type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => + public static MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => DllImport.HasEvent(type); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasEventRaw([NativeTypeName("Uint32")] uint type) => + byte ISdl.HasEventRaw([NativeTypeName("Uint32")] uint type) => ( - (delegate* unmanaged)( - _slots[463] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[480] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[463] = nativeContext.LoadFunction("SDL_HasEvent", "SDL3") + : _slots[480] = nativeContext.LoadFunction("SDL_HasEvent", "SDL3") ) )(type); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasEventRaw([NativeTypeName("Uint32")] uint type) => + public static byte HasEventRaw([NativeTypeName("Uint32")] uint type) => DllImport.HasEventRaw(type); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasEvents( + MaybeBool ISdl.HasEvents( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType - ) => (MaybeBool)(int)((ISdl)this).HasEventsRaw(minType, maxType); + ) => (MaybeBool)(byte)((ISdl)this).HasEventsRaw(minType, maxType); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasEvents( + public static MaybeBool HasEvents( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ) => DllImport.HasEvents(minType, maxType); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasEventsRaw( + byte ISdl.HasEventsRaw( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ) => ( - (delegate* unmanaged)( - _slots[464] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[481] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[464] = nativeContext.LoadFunction("SDL_HasEvents", "SDL3") + : _slots[481] = nativeContext.LoadFunction("SDL_HasEvents", "SDL3") ) )(minType, maxType); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasEventsRaw( + public static byte HasEventsRaw( [NativeTypeName("Uint32")] uint minType, [NativeTypeName("Uint32")] uint maxType ) => DllImport.HasEventsRaw(minType, maxType); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasGamepad() => (MaybeBool)(int)((ISdl)this).HasGamepadRaw(); + MaybeBool ISdl.HasGamepad() => (MaybeBool)(byte)((ISdl)this).HasGamepadRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasGamepad() => DllImport.HasGamepad(); + public static MaybeBool HasGamepad() => DllImport.HasGamepad(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasGamepadRaw() => + byte ISdl.HasGamepadRaw() => ( - (delegate* unmanaged)( - _slots[465] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[482] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[465] = nativeContext.LoadFunction("SDL_HasGamepad", "SDL3") + : _slots[482] = nativeContext.LoadFunction("SDL_HasGamepad", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasGamepadRaw() => DllImport.HasGamepadRaw(); + public static byte HasGamepadRaw() => DllImport.HasGamepadRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasJoystick() => (MaybeBool)(int)((ISdl)this).HasJoystickRaw(); + MaybeBool ISdl.HasJoystick() => (MaybeBool)(byte)((ISdl)this).HasJoystickRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasJoystick() => DllImport.HasJoystick(); + public static MaybeBool HasJoystick() => DllImport.HasJoystick(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasJoystickRaw() => + byte ISdl.HasJoystickRaw() => ( - (delegate* unmanaged)( - _slots[466] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[483] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[466] = nativeContext.LoadFunction("SDL_HasJoystick", "SDL3") + : _slots[483] = nativeContext.LoadFunction("SDL_HasJoystick", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasJoystickRaw() => DllImport.HasJoystickRaw(); + public static byte HasJoystickRaw() => DllImport.HasJoystickRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasKeyboard() => (MaybeBool)(int)((ISdl)this).HasKeyboardRaw(); + MaybeBool ISdl.HasKeyboard() => (MaybeBool)(byte)((ISdl)this).HasKeyboardRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasKeyboard() => DllImport.HasKeyboard(); + public static MaybeBool HasKeyboard() => DllImport.HasKeyboard(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasKeyboardRaw() => + byte ISdl.HasKeyboardRaw() => ( - (delegate* unmanaged)( - _slots[467] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[484] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[467] = nativeContext.LoadFunction("SDL_HasKeyboard", "SDL3") + : _slots[484] = nativeContext.LoadFunction("SDL_HasKeyboard", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasKeyboardRaw() => DllImport.HasKeyboardRaw(); + public static byte HasKeyboardRaw() => DllImport.HasKeyboardRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasLasx() => (MaybeBool)(int)((ISdl)this).HasLasxRaw(); + MaybeBool ISdl.HasLasx() => (MaybeBool)(byte)((ISdl)this).HasLasxRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasLasx() => DllImport.HasLasx(); + public static MaybeBool HasLasx() => DllImport.HasLasx(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasLasxRaw() => + byte ISdl.HasLasxRaw() => ( - (delegate* unmanaged)( - _slots[468] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[485] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[468] = nativeContext.LoadFunction("SDL_HasLASX", "SDL3") + : _slots[485] = nativeContext.LoadFunction("SDL_HasLASX", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasLasxRaw() => DllImport.HasLasxRaw(); + public static byte HasLasxRaw() => DllImport.HasLasxRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasLSX() => (MaybeBool)(int)((ISdl)this).HasLSXRaw(); + MaybeBool ISdl.HasLSX() => (MaybeBool)(byte)((ISdl)this).HasLSXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasLSX() => DllImport.HasLSX(); + public static MaybeBool HasLSX() => DllImport.HasLSX(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasLSXRaw() => + byte ISdl.HasLSXRaw() => ( - (delegate* unmanaged)( - _slots[469] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[486] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[469] = nativeContext.LoadFunction("SDL_HasLSX", "SDL3") + : _slots[486] = nativeContext.LoadFunction("SDL_HasLSX", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasLSXRaw() => DllImport.HasLSXRaw(); + public static byte HasLSXRaw() => DllImport.HasLSXRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasMMX() => (MaybeBool)(int)((ISdl)this).HasMMXRaw(); + MaybeBool ISdl.HasMMX() => (MaybeBool)(byte)((ISdl)this).HasMMXRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasMMX() => DllImport.HasMMX(); + public static MaybeBool HasMMX() => DllImport.HasMMX(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasMMXRaw() => + byte ISdl.HasMMXRaw() => ( - (delegate* unmanaged)( - _slots[470] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[487] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[470] = nativeContext.LoadFunction("SDL_HasMMX", "SDL3") + : _slots[487] = nativeContext.LoadFunction("SDL_HasMMX", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasMMXRaw() => DllImport.HasMMXRaw(); + public static byte HasMMXRaw() => DllImport.HasMMXRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasMouse() => (MaybeBool)(int)((ISdl)this).HasMouseRaw(); + MaybeBool ISdl.HasMouse() => (MaybeBool)(byte)((ISdl)this).HasMouseRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasMouse() => DllImport.HasMouse(); + public static MaybeBool HasMouse() => DllImport.HasMouse(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasMouseRaw() => + byte ISdl.HasMouseRaw() => ( - (delegate* unmanaged)( - _slots[471] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[488] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[471] = nativeContext.LoadFunction("SDL_HasMouse", "SDL3") + : _slots[488] = nativeContext.LoadFunction("SDL_HasMouse", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasMouseRaw() => DllImport.HasMouseRaw(); + public static byte HasMouseRaw() => DllImport.HasMouseRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasNeon() => (MaybeBool)(int)((ISdl)this).HasNeonRaw(); + MaybeBool ISdl.HasNeon() => (MaybeBool)(byte)((ISdl)this).HasNeonRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasNeon() => DllImport.HasNeon(); + public static MaybeBool HasNeon() => DllImport.HasNeon(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasNeonRaw() => + byte ISdl.HasNeonRaw() => ( - (delegate* unmanaged)( - _slots[472] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[489] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[472] = nativeContext.LoadFunction("SDL_HasNEON", "SDL3") + : _slots[489] = nativeContext.LoadFunction("SDL_HasNEON", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasNeonRaw() => DllImport.HasNeonRaw(); + public static byte HasNeonRaw() => DllImport.HasNeonRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasPrimarySelectionText() => - (MaybeBool)(int)((ISdl)this).HasPrimarySelectionTextRaw(); + MaybeBool ISdl.HasPrimarySelectionText() => + (MaybeBool)(byte)((ISdl)this).HasPrimarySelectionTextRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasPrimarySelectionText() => DllImport.HasPrimarySelectionText(); + public static MaybeBool HasPrimarySelectionText() => DllImport.HasPrimarySelectionText(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasPrimarySelectionTextRaw() => + byte ISdl.HasPrimarySelectionTextRaw() => ( - (delegate* unmanaged)( - _slots[473] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[490] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[473] = nativeContext.LoadFunction( + : _slots[490] = nativeContext.LoadFunction( "SDL_HasPrimarySelectionText", "SDL3" ) ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasPrimarySelectionTextRaw() => DllImport.HasPrimarySelectionTextRaw(); + public static byte HasPrimarySelectionTextRaw() => DllImport.HasPrimarySelectionTextRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasProperty( + byte ISdl.HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ) => ( - (delegate* unmanaged)( - _slots[474] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[491] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[474] = nativeContext.LoadFunction("SDL_HasProperty", "SDL3") + : _slots[491] = nativeContext.LoadFunction("SDL_HasProperty", "SDL3") ) )(props, name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasProperty( + public static byte HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name ) => DllImport.HasProperty(props, name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasProperty( + MaybeBool ISdl.HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ) { fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)((ISdl)this).HasProperty(props, __dsl_name); + return (MaybeBool)(byte)((ISdl)this).HasProperty(props, __dsl_name); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasProperty( + public static MaybeBool HasProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name ) => DllImport.HasProperty(props, name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasRectIntersection( + byte ISdl.HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B ) => ( - (delegate* unmanaged)( - _slots[475] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[492] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[475] = nativeContext.LoadFunction("SDL_HasRectIntersection", "SDL3") + : _slots[492] = nativeContext.LoadFunction("SDL_HasRectIntersection", "SDL3") ) )(A, B); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasRectIntersection( + public static byte HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Rect* A, [NativeTypeName("const SDL_Rect *")] Rect* B ) => DllImport.HasRectIntersection(A, B); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasRectIntersection( + MaybeBool ISdl.HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B ) @@ -53130,45 +63290,45 @@ MaybeBool ISdl.HasRectIntersection( fixed (Rect* __dsl_B = B) fixed (Rect* __dsl_A = A) { - return (MaybeBool)(int)((ISdl)this).HasRectIntersection(__dsl_A, __dsl_B); + return (MaybeBool)(byte)((ISdl)this).HasRectIntersection(__dsl_A, __dsl_B); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasRectIntersection( + public static MaybeBool HasRectIntersection( [NativeTypeName("const SDL_Rect *")] Ref A, [NativeTypeName("const SDL_Rect *")] Ref B ) => DllImport.HasRectIntersection(A, B); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasRectIntersectionFloat( + byte ISdl.HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B ) => ( - (delegate* unmanaged)( - _slots[476] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[493] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[476] = nativeContext.LoadFunction( + : _slots[493] = nativeContext.LoadFunction( "SDL_HasRectIntersectionFloat", "SDL3" ) ) )(A, B); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasRectIntersectionFloat( + public static byte HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] FRect* A, [NativeTypeName("const SDL_FRect *")] FRect* B ) => DllImport.HasRectIntersectionFloat(A, B); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasRectIntersectionFloat( + MaybeBool ISdl.HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B ) @@ -53176,199 +63336,200 @@ MaybeBool ISdl.HasRectIntersectionFloat( fixed (FRect* __dsl_B = B) fixed (FRect* __dsl_A = A) { - return (MaybeBool)(int)((ISdl)this).HasRectIntersectionFloat(__dsl_A, __dsl_B); + return (MaybeBool)(byte)((ISdl)this).HasRectIntersectionFloat(__dsl_A, __dsl_B); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasRectIntersectionFloat( + public static MaybeBool HasRectIntersectionFloat( [NativeTypeName("const SDL_FRect *")] Ref A, [NativeTypeName("const SDL_FRect *")] Ref B ) => DllImport.HasRectIntersectionFloat(A, B); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasScreenKeyboardSupport() => - (MaybeBool)(int)((ISdl)this).HasScreenKeyboardSupportRaw(); + MaybeBool ISdl.HasScreenKeyboardSupport() => + (MaybeBool)(byte)((ISdl)this).HasScreenKeyboardSupportRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasScreenKeyboardSupport() => DllImport.HasScreenKeyboardSupport(); + public static MaybeBool HasScreenKeyboardSupport() => + DllImport.HasScreenKeyboardSupport(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasScreenKeyboardSupportRaw() => + byte ISdl.HasScreenKeyboardSupportRaw() => ( - (delegate* unmanaged)( - _slots[477] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[494] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[477] = nativeContext.LoadFunction( + : _slots[494] = nativeContext.LoadFunction( "SDL_HasScreenKeyboardSupport", "SDL3" ) ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasScreenKeyboardSupportRaw() => DllImport.HasScreenKeyboardSupportRaw(); + public static byte HasScreenKeyboardSupportRaw() => DllImport.HasScreenKeyboardSupportRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasSSE() => (MaybeBool)(int)((ISdl)this).HasSSERaw(); + MaybeBool ISdl.HasSSE() => (MaybeBool)(byte)((ISdl)this).HasSSERaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasSSE() => DllImport.HasSSE(); + public static MaybeBool HasSSE() => DllImport.HasSSE(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasSSE2() => (MaybeBool)(int)((ISdl)this).HasSSE2Raw(); + MaybeBool ISdl.HasSSE2() => (MaybeBool)(byte)((ISdl)this).HasSSE2Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasSSE2() => DllImport.HasSSE2(); + public static MaybeBool HasSSE2() => DllImport.HasSSE2(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasSSE2Raw() => + byte ISdl.HasSSE2Raw() => ( - (delegate* unmanaged)( - _slots[479] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[496] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[479] = nativeContext.LoadFunction("SDL_HasSSE2", "SDL3") + : _slots[496] = nativeContext.LoadFunction("SDL_HasSSE2", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasSSE2Raw() => DllImport.HasSSE2Raw(); + public static byte HasSSE2Raw() => DllImport.HasSSE2Raw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasSSE3() => (MaybeBool)(int)((ISdl)this).HasSSE3Raw(); + MaybeBool ISdl.HasSSE3() => (MaybeBool)(byte)((ISdl)this).HasSSE3Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasSSE3() => DllImport.HasSSE3(); + public static MaybeBool HasSSE3() => DllImport.HasSSE3(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasSSE3Raw() => + byte ISdl.HasSSE3Raw() => ( - (delegate* unmanaged)( - _slots[480] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[497] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[480] = nativeContext.LoadFunction("SDL_HasSSE3", "SDL3") + : _slots[497] = nativeContext.LoadFunction("SDL_HasSSE3", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasSSE3Raw() => DllImport.HasSSE3Raw(); + public static byte HasSSE3Raw() => DllImport.HasSSE3Raw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasSSE41() => (MaybeBool)(int)((ISdl)this).HasSSE41Raw(); + MaybeBool ISdl.HasSSE41() => (MaybeBool)(byte)((ISdl)this).HasSSE41Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasSSE41() => DllImport.HasSSE41(); + public static MaybeBool HasSSE41() => DllImport.HasSSE41(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasSSE41Raw() => + byte ISdl.HasSSE41Raw() => ( - (delegate* unmanaged)( - _slots[481] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[498] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[481] = nativeContext.LoadFunction("SDL_HasSSE41", "SDL3") + : _slots[498] = nativeContext.LoadFunction("SDL_HasSSE41", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasSSE41Raw() => DllImport.HasSSE41Raw(); + public static byte HasSSE41Raw() => DllImport.HasSSE41Raw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.HasSSE42() => (MaybeBool)(int)((ISdl)this).HasSSE42Raw(); + MaybeBool ISdl.HasSSE42() => (MaybeBool)(byte)((ISdl)this).HasSSE42Raw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool HasSSE42() => DllImport.HasSSE42(); + public static MaybeBool HasSSE42() => DllImport.HasSSE42(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasSSE42Raw() => + byte ISdl.HasSSE42Raw() => ( - (delegate* unmanaged)( - _slots[482] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[499] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[482] = nativeContext.LoadFunction("SDL_HasSSE42", "SDL3") + : _slots[499] = nativeContext.LoadFunction("SDL_HasSSE42", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasSSE42Raw() => DllImport.HasSSE42Raw(); + public static byte HasSSE42Raw() => DllImport.HasSSE42Raw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HasSSERaw() => + byte ISdl.HasSSERaw() => ( - (delegate* unmanaged)( - _slots[478] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[495] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[478] = nativeContext.LoadFunction("SDL_HasSSE", "SDL3") + : _slots[495] = nativeContext.LoadFunction("SDL_HasSSE", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HasSSERaw() => DllImport.HasSSERaw(); + public static byte HasSSERaw() => DllImport.HasSSERaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.HidBleScan([NativeTypeName("SDL_bool")] int active) => + void ISdl.HidBleScan([NativeTypeName("bool")] byte active) => ( - (delegate* unmanaged)( - _slots[483] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[500] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[483] = nativeContext.LoadFunction("SDL_hid_ble_scan", "SDL3") + : _slots[500] = nativeContext.LoadFunction("SDL_hid_ble_scan", "SDL3") ) )(active); [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void HidBleScan([NativeTypeName("SDL_bool")] int active) => + public static void HidBleScan([NativeTypeName("bool")] byte active) => DllImport.HidBleScan(active); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active) => - ((ISdl)this).HidBleScan((int)active); + void ISdl.HidBleScan([NativeTypeName("bool")] MaybeBool active) => + ((ISdl)this).HidBleScan((byte)active); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active) => + public static void HidBleScan([NativeTypeName("bool")] MaybeBool active) => DllImport.HidBleScan(active); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HidClose(HidDeviceHandle dev) => ( (delegate* unmanaged)( - _slots[484] is not null and var loadedFnPtr + _slots[501] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[484] = nativeContext.LoadFunction("SDL_hid_close", "SDL3") + : _slots[501] = nativeContext.LoadFunction("SDL_hid_close", "SDL3") ) )(dev); @@ -53380,9 +63541,9 @@ _slots[484] is not null and var loadedFnPtr uint ISdl.HidDeviceChangeCount() => ( (delegate* unmanaged)( - _slots[485] is not null and var loadedFnPtr + _slots[502] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[485] = nativeContext.LoadFunction( + : _slots[502] = nativeContext.LoadFunction( "SDL_hid_device_change_count", "SDL3" ) @@ -53415,9 +63576,9 @@ public static Ptr HidEnumerate( ) => ( (delegate* unmanaged)( - _slots[486] is not null and var loadedFnPtr + _slots[503] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[486] = nativeContext.LoadFunction("SDL_hid_enumerate", "SDL3") + : _slots[503] = nativeContext.LoadFunction("SDL_hid_enumerate", "SDL3") ) )(vendor_id, product_id); @@ -53432,9 +63593,9 @@ _slots[486] is not null and var loadedFnPtr int ISdl.HidExit() => ( (delegate* unmanaged)( - _slots[487] is not null and var loadedFnPtr + _slots[504] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[487] = nativeContext.LoadFunction("SDL_hid_exit", "SDL3") + : _slots[504] = nativeContext.LoadFunction("SDL_hid_exit", "SDL3") ) )(); @@ -53446,9 +63607,9 @@ _slots[487] is not null and var loadedFnPtr void ISdl.HidFreeEnumeration(HidDeviceInfo* devs) => ( (delegate* unmanaged)( - _slots[488] is not null and var loadedFnPtr + _slots[505] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[488] = nativeContext.LoadFunction("SDL_hid_free_enumeration", "SDL3") + : _slots[505] = nativeContext.LoadFunction("SDL_hid_free_enumeration", "SDL3") ) )(devs); @@ -53486,9 +63647,9 @@ public static Ptr HidGetDeviceInfo(HidDeviceHandle dev) => HidDeviceInfo* ISdl.HidGetDeviceInfoRaw(HidDeviceHandle dev) => ( (delegate* unmanaged)( - _slots[489] is not null and var loadedFnPtr + _slots[506] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[489] = nativeContext.LoadFunction("SDL_hid_get_device_info", "SDL3") + : _slots[506] = nativeContext.LoadFunction("SDL_hid_get_device_info", "SDL3") ) )(dev); @@ -53505,9 +63666,9 @@ int ISdl.HidGetFeatureReport( ) => ( (delegate* unmanaged)( - _slots[490] is not null and var loadedFnPtr + _slots[507] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[490] = nativeContext.LoadFunction("SDL_hid_get_feature_report", "SDL3") + : _slots[507] = nativeContext.LoadFunction("SDL_hid_get_feature_report", "SDL3") ) )(dev, data, length); @@ -53550,9 +63711,9 @@ int ISdl.HidGetIndexedString( ) => ( (delegate* unmanaged)( - _slots[491] is not null and var loadedFnPtr + _slots[508] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[491] = nativeContext.LoadFunction("SDL_hid_get_indexed_string", "SDL3") + : _slots[508] = nativeContext.LoadFunction("SDL_hid_get_indexed_string", "SDL3") ) )(dev, string_index, @string, maxlen); @@ -53597,9 +63758,9 @@ int ISdl.HidGetInputReport( ) => ( (delegate* unmanaged)( - _slots[492] is not null and var loadedFnPtr + _slots[509] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[492] = nativeContext.LoadFunction("SDL_hid_get_input_report", "SDL3") + : _slots[509] = nativeContext.LoadFunction("SDL_hid_get_input_report", "SDL3") ) )(dev, data, length); @@ -53641,9 +63802,9 @@ int ISdl.HidGetManufacturerString( ) => ( (delegate* unmanaged)( - _slots[493] is not null and var loadedFnPtr + _slots[510] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[493] = nativeContext.LoadFunction( + : _slots[510] = nativeContext.LoadFunction( "SDL_hid_get_manufacturer_string", "SDL3" ) @@ -53688,9 +63849,9 @@ int ISdl.HidGetProductString( ) => ( (delegate* unmanaged)( - _slots[494] is not null and var loadedFnPtr + _slots[511] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[494] = nativeContext.LoadFunction("SDL_hid_get_product_string", "SDL3") + : _slots[511] = nativeContext.LoadFunction("SDL_hid_get_product_string", "SDL3") ) )(dev, @string, maxlen); @@ -53732,9 +63893,9 @@ int ISdl.HidGetReportDescriptor( ) => ( (delegate* unmanaged)( - _slots[495] is not null and var loadedFnPtr + _slots[512] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[495] = nativeContext.LoadFunction( + : _slots[512] = nativeContext.LoadFunction( "SDL_hid_get_report_descriptor", "SDL3" ) @@ -53779,9 +63940,9 @@ int ISdl.HidGetSerialNumberString( ) => ( (delegate* unmanaged)( - _slots[496] is not null and var loadedFnPtr + _slots[513] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[496] = nativeContext.LoadFunction( + : _slots[513] = nativeContext.LoadFunction( "SDL_hid_get_serial_number_string", "SDL3" ) @@ -53822,9 +63983,9 @@ public static int HidGetSerialNumberString( int ISdl.HidInit() => ( (delegate* unmanaged)( - _slots[497] is not null and var loadedFnPtr + _slots[514] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[497] = nativeContext.LoadFunction("SDL_hid_init", "SDL3") + : _slots[514] = nativeContext.LoadFunction("SDL_hid_init", "SDL3") ) )(); @@ -53840,9 +64001,9 @@ HidDeviceHandle ISdl.HidOpen( ) => ( (delegate* unmanaged)( - _slots[498] is not null and var loadedFnPtr + _slots[515] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[498] = nativeContext.LoadFunction("SDL_hid_open", "SDL3") + : _slots[515] = nativeContext.LoadFunction("SDL_hid_open", "SDL3") ) )(vendor_id, product_id, serial_number); @@ -53881,9 +64042,9 @@ public static HidDeviceHandle HidOpen( HidDeviceHandle ISdl.HidOpenPath([NativeTypeName("const char *")] sbyte* path) => ( (delegate* unmanaged)( - _slots[499] is not null and var loadedFnPtr + _slots[516] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[499] = nativeContext.LoadFunction("SDL_hid_open_path", "SDL3") + : _slots[516] = nativeContext.LoadFunction("SDL_hid_open_path", "SDL3") ) )(path); @@ -53915,9 +64076,9 @@ int ISdl.HidRead( ) => ( (delegate* unmanaged)( - _slots[500] is not null and var loadedFnPtr + _slots[517] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[500] = nativeContext.LoadFunction("SDL_hid_read", "SDL3") + : _slots[517] = nativeContext.LoadFunction("SDL_hid_read", "SDL3") ) )(dev, data, length); @@ -53960,9 +64121,9 @@ int milliseconds ) => ( (delegate* unmanaged)( - _slots[501] is not null and var loadedFnPtr + _slots[518] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[501] = nativeContext.LoadFunction("SDL_hid_read_timeout", "SDL3") + : _slots[518] = nativeContext.LoadFunction("SDL_hid_read_timeout", "SDL3") ) )(dev, data, length, milliseconds); @@ -54007,9 +64168,9 @@ int ISdl.HidSendFeatureReport( ) => ( (delegate* unmanaged)( - _slots[502] is not null and var loadedFnPtr + _slots[519] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[502] = nativeContext.LoadFunction( + : _slots[519] = nativeContext.LoadFunction( "SDL_hid_send_feature_report", "SDL3" ) @@ -54050,9 +64211,9 @@ public static int HidSendFeatureReport( int ISdl.HidSetNonblocking(HidDeviceHandle dev, int nonblock) => ( (delegate* unmanaged)( - _slots[503] is not null and var loadedFnPtr + _slots[520] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[503] = nativeContext.LoadFunction("SDL_hid_set_nonblocking", "SDL3") + : _slots[520] = nativeContext.LoadFunction("SDL_hid_set_nonblocking", "SDL3") ) )(dev, nonblock); @@ -54069,9 +64230,9 @@ int ISdl.HidWrite( ) => ( (delegate* unmanaged)( - _slots[504] is not null and var loadedFnPtr + _slots[521] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[504] = nativeContext.LoadFunction("SDL_hid_write", "SDL3") + : _slots[521] = nativeContext.LoadFunction("SDL_hid_write", "SDL3") ) )(dev, data, length); @@ -54106,76 +64267,135 @@ public static int HidWrite( ) => DllImport.HidWrite(dev, data, length); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HideCursor() => + MaybeBool ISdl.HideCursor() => (MaybeBool)(byte)((ISdl)this).HideCursorRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HideCursor() => DllImport.HideCursor(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.HideCursorRaw() => ( - (delegate* unmanaged)( - _slots[505] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[522] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[505] = nativeContext.LoadFunction("SDL_HideCursor", "SDL3") + : _slots[522] = nativeContext.LoadFunction("SDL_HideCursor", "SDL3") ) )(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HideCursor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HideCursor() => DllImport.HideCursor(); + public static byte HideCursorRaw() => DllImport.HideCursorRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.HideWindow(WindowHandle window) => + MaybeBool ISdl.HideWindow(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).HideWindowRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HideWindow(WindowHandle window) => DllImport.HideWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.HideWindowRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[506] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[523] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[506] = nativeContext.LoadFunction("SDL_HideWindow", "SDL3") + : _slots[523] = nativeContext.LoadFunction("SDL_HideWindow", "SDL3") ) )(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int HideWindow(WindowHandle window) => DllImport.HideWindow(window); + public static byte HideWindowRaw(WindowHandle window) => DllImport.HideWindowRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.Init([NativeTypeName("Uint32")] uint flags) => - ( - (delegate* unmanaged)( - _slots[507] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[507] = nativeContext.LoadFunction("SDL_Init", "SDL3") - ) - )(flags); + MaybeBool ISdl.Init([NativeTypeName("SDL_InitFlags")] uint flags) => + (MaybeBool)(byte)((ISdl)this).InitRaw(flags); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_Init")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int Init([NativeTypeName("Uint32")] uint flags) => DllImport.Init(flags); + public static MaybeBool Init([NativeTypeName("SDL_InitFlags")] uint flags) => + DllImport.Init(flags); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.InitHapticRumble(HapticHandle haptic) => + (MaybeBool)(byte)((ISdl)this).InitHapticRumbleRaw(haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool InitHapticRumble(HapticHandle haptic) => + DllImport.InitHapticRumble(haptic); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.InitHapticRumble(HapticHandle haptic) => + byte ISdl.InitHapticRumbleRaw(HapticHandle haptic) => ( - (delegate* unmanaged)( - _slots[508] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[525] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[508] = nativeContext.LoadFunction("SDL_InitHapticRumble", "SDL3") + : _slots[525] = nativeContext.LoadFunction("SDL_InitHapticRumble", "SDL3") ) )(haptic); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int InitHapticRumble(HapticHandle haptic) => DllImport.InitHapticRumble(haptic); + public static byte InitHapticRumbleRaw(HapticHandle haptic) => + DllImport.InitHapticRumbleRaw(haptic); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.InitSubSystem([NativeTypeName("Uint32")] uint flags) => + byte ISdl.InitRaw([NativeTypeName("SDL_InitFlags")] uint flags) => ( - (delegate* unmanaged)( - _slots[509] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[524] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[509] = nativeContext.LoadFunction("SDL_InitSubSystem", "SDL3") + : _slots[524] = nativeContext.LoadFunction("SDL_Init", "SDL3") ) )(flags); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_Init")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte InitRaw([NativeTypeName("SDL_InitFlags")] uint flags) => + DllImport.InitRaw(flags); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.InitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags) => + (MaybeBool)(byte)((ISdl)this).InitSubSystemRaw(flags); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_InitSubSystem")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int InitSubSystem([NativeTypeName("Uint32")] uint flags) => + public static MaybeBool InitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags) => DllImport.InitSubSystem(flags); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.InitSubSystemRaw([NativeTypeName("SDL_InitFlags")] uint flags) => + ( + (delegate* unmanaged)( + _slots[526] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[526] = nativeContext.LoadFunction("SDL_InitSubSystem", "SDL3") + ) + )(flags); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_InitSubSystem")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte InitSubSystemRaw([NativeTypeName("SDL_InitFlags")] uint flags) => + DllImport.InitSubSystemRaw(flags); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] IOStreamHandle ISdl.IOFromConstMem( [NativeTypeName("const void *")] void* mem, @@ -54183,9 +64403,9 @@ IOStreamHandle ISdl.IOFromConstMem( ) => ( (delegate* unmanaged)( - _slots[510] is not null and var loadedFnPtr + _slots[527] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[510] = nativeContext.LoadFunction("SDL_IOFromConstMem", "SDL3") + : _slots[527] = nativeContext.LoadFunction("SDL_IOFromConstMem", "SDL3") ) )(mem, size); @@ -54220,9 +64440,9 @@ public static IOStreamHandle IOFromConstMem( IOStreamHandle ISdl.IOFromDynamicMem() => ( (delegate* unmanaged)( - _slots[511] is not null and var loadedFnPtr + _slots[528] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[511] = nativeContext.LoadFunction("SDL_IOFromDynamicMem", "SDL3") + : _slots[528] = nativeContext.LoadFunction("SDL_IOFromDynamicMem", "SDL3") ) )(); @@ -54237,9 +64457,9 @@ IOStreamHandle ISdl.IOFromFile( ) => ( (delegate* unmanaged)( - _slots[512] is not null and var loadedFnPtr + _slots[529] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[512] = nativeContext.LoadFunction("SDL_IOFromFile", "SDL3") + : _slots[529] = nativeContext.LoadFunction("SDL_IOFromFile", "SDL3") ) )(file, mode); @@ -54275,9 +64495,9 @@ public static IOStreamHandle IOFromFile( IOStreamHandle ISdl.IOFromMem(void* mem, [NativeTypeName("size_t")] nuint size) => ( (delegate* unmanaged)( - _slots[513] is not null and var loadedFnPtr + _slots[530] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[513] = nativeContext.LoadFunction("SDL_IOFromMem", "SDL3") + : _slots[530] = nativeContext.LoadFunction("SDL_IOFromMem", "SDL3") ) )(mem, size); @@ -54309,9 +64529,9 @@ nuint ISdl.IOvprintf( ) => ( (delegate* unmanaged)( - _slots[514] is not null and var loadedFnPtr + _slots[531] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[514] = nativeContext.LoadFunction("SDL_IOvprintf", "SDL3") + : _slots[531] = nativeContext.LoadFunction("SDL_IOvprintf", "SDL3") ) )(context, fmt, ap); @@ -54349,194 +64569,218 @@ public static nuint IOvprintf( ) => DllImport.IOvprintf(context, fmt, ap); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.IsGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id) => - (MaybeBool)(int)((ISdl)this).IsGamepadRaw(instance_id); + MaybeBool ISdl.IsGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id) => + (MaybeBool)(byte)((ISdl)this).IsGamepadRaw(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool IsGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id) => + public static MaybeBool IsGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id) => DllImport.IsGamepad(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + byte ISdl.IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged)( - _slots[515] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[532] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[515] = nativeContext.LoadFunction("SDL_IsGamepad", "SDL3") + : _slots[532] = nativeContext.LoadFunction("SDL_IsGamepad", "SDL3") ) )(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + public static byte IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => DllImport.IsGamepadRaw(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.IsJoystickHaptic(JoystickHandle joystick) => - (MaybeBool)(int)((ISdl)this).IsJoystickHapticRaw(joystick); + MaybeBool ISdl.IsJoystickHaptic(JoystickHandle joystick) => + (MaybeBool)(byte)((ISdl)this).IsJoystickHapticRaw(joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool IsJoystickHaptic(JoystickHandle joystick) => + public static MaybeBool IsJoystickHaptic(JoystickHandle joystick) => DllImport.IsJoystickHaptic(joystick); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.IsJoystickHapticRaw(JoystickHandle joystick) => + byte ISdl.IsJoystickHapticRaw(JoystickHandle joystick) => ( - (delegate* unmanaged)( - _slots[516] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[533] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[516] = nativeContext.LoadFunction("SDL_IsJoystickHaptic", "SDL3") + : _slots[533] = nativeContext.LoadFunction("SDL_IsJoystickHaptic", "SDL3") ) )(joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int IsJoystickHapticRaw(JoystickHandle joystick) => + public static byte IsJoystickHapticRaw(JoystickHandle joystick) => DllImport.IsJoystickHapticRaw(joystick); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.IsJoystickVirtual([NativeTypeName("SDL_JoystickID")] uint instance_id) => - (MaybeBool)(int)((ISdl)this).IsJoystickVirtualRaw(instance_id); + MaybeBool ISdl.IsJoystickVirtual([NativeTypeName("SDL_JoystickID")] uint instance_id) => + (MaybeBool)(byte)((ISdl)this).IsJoystickVirtualRaw(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool IsJoystickVirtual( + public static MaybeBool IsJoystickVirtual( [NativeTypeName("SDL_JoystickID")] uint instance_id ) => DllImport.IsJoystickVirtual(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + byte ISdl.IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( - (delegate* unmanaged)( - _slots[517] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[534] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[517] = nativeContext.LoadFunction("SDL_IsJoystickVirtual", "SDL3") + : _slots[534] = nativeContext.LoadFunction("SDL_IsJoystickVirtual", "SDL3") ) )(instance_id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + public static byte IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => DllImport.IsJoystickVirtualRaw(instance_id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.IsMouseHaptic() => (MaybeBool)(int)((ISdl)this).IsMouseHapticRaw(); + MaybeBool ISdl.IsMouseHaptic() => (MaybeBool)(byte)((ISdl)this).IsMouseHapticRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool IsMouseHaptic() => DllImport.IsMouseHaptic(); + public static MaybeBool IsMouseHaptic() => DllImport.IsMouseHaptic(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.IsMouseHapticRaw() => + byte ISdl.IsMouseHapticRaw() => ( - (delegate* unmanaged)( - _slots[518] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[535] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[518] = nativeContext.LoadFunction("SDL_IsMouseHaptic", "SDL3") + : _slots[535] = nativeContext.LoadFunction("SDL_IsMouseHaptic", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int IsMouseHapticRaw() => DllImport.IsMouseHapticRaw(); + public static byte IsMouseHapticRaw() => DllImport.IsMouseHapticRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.IsTablet() => (MaybeBool)(int)((ISdl)this).IsTabletRaw(); + MaybeBool ISdl.IsTablet() => (MaybeBool)(byte)((ISdl)this).IsTabletRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool IsTablet() => DllImport.IsTablet(); + public static MaybeBool IsTablet() => DllImport.IsTablet(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.IsTabletRaw() => + byte ISdl.IsTabletRaw() => ( - (delegate* unmanaged)( - _slots[519] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[536] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[519] = nativeContext.LoadFunction("SDL_IsTablet", "SDL3") + : _slots[536] = nativeContext.LoadFunction("SDL_IsTablet", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int IsTabletRaw() => DllImport.IsTabletRaw(); + public static byte IsTabletRaw() => DllImport.IsTabletRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.JoystickConnected(JoystickHandle joystick) => - (MaybeBool)(int)((ISdl)this).JoystickConnectedRaw(joystick); + MaybeBool ISdl.IsTV() => (MaybeBool)(byte)((ISdl)this).IsTVRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTV")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool IsTV() => DllImport.IsTV(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.IsTVRaw() => + ( + (delegate* unmanaged)( + _slots[537] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[537] = nativeContext.LoadFunction("SDL_IsTV", "SDL3") + ) + )(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTV")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IsTVRaw() => DllImport.IsTVRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.JoystickConnected(JoystickHandle joystick) => + (MaybeBool)(byte)((ISdl)this).JoystickConnectedRaw(joystick); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool JoystickConnected(JoystickHandle joystick) => + public static MaybeBool JoystickConnected(JoystickHandle joystick) => DllImport.JoystickConnected(joystick); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.JoystickConnectedRaw(JoystickHandle joystick) => + byte ISdl.JoystickConnectedRaw(JoystickHandle joystick) => ( - (delegate* unmanaged)( - _slots[520] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[538] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[520] = nativeContext.LoadFunction("SDL_JoystickConnected", "SDL3") + : _slots[538] = nativeContext.LoadFunction("SDL_JoystickConnected", "SDL3") ) )(joystick); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int JoystickConnectedRaw(JoystickHandle joystick) => + public static byte JoystickConnectedRaw(JoystickHandle joystick) => DllImport.JoystickConnectedRaw(joystick); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.JoystickEventsEnabled() => - (MaybeBool)(int)((ISdl)this).JoystickEventsEnabledRaw(); + MaybeBool ISdl.JoystickEventsEnabled() => + (MaybeBool)(byte)((ISdl)this).JoystickEventsEnabledRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool JoystickEventsEnabled() => DllImport.JoystickEventsEnabled(); + public static MaybeBool JoystickEventsEnabled() => DllImport.JoystickEventsEnabled(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.JoystickEventsEnabledRaw() => + byte ISdl.JoystickEventsEnabledRaw() => ( - (delegate* unmanaged)( - _slots[521] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[539] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[521] = nativeContext.LoadFunction("SDL_JoystickEventsEnabled", "SDL3") + : _slots[539] = nativeContext.LoadFunction("SDL_JoystickEventsEnabled", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int JoystickEventsEnabledRaw() => DllImport.JoystickEventsEnabledRaw(); + public static byte JoystickEventsEnabledRaw() => DllImport.JoystickEventsEnabledRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Surface* ISdl.LoadBMP([NativeTypeName("const char *")] sbyte* file) => ( (delegate* unmanaged)( - _slots[522] is not null and var loadedFnPtr + _slots[540] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[522] = nativeContext.LoadFunction("SDL_LoadBMP", "SDL3") + : _slots[540] = nativeContext.LoadFunction("SDL_LoadBMP", "SDL3") ) )(file); @@ -54561,34 +64805,32 @@ public static Ptr LoadBMP([NativeTypeName("const char *")] Ref f DllImport.LoadBMP(file); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Surface* ISdl.LoadBMPIO(IOStreamHandle src, [NativeTypeName("SDL_bool")] int closeio) => + Surface* ISdl.LoadBMPIO(IOStreamHandle src, [NativeTypeName("bool")] byte closeio) => ( - (delegate* unmanaged)( - _slots[523] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[541] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[523] = nativeContext.LoadFunction("SDL_LoadBMP_IO", "SDL3") + : _slots[541] = nativeContext.LoadFunction("SDL_LoadBMP_IO", "SDL3") ) )(src, closeio); [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Surface* LoadBMPIO( - IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio - ) => DllImport.LoadBMPIO(src, closeio); + public static Surface* LoadBMPIO(IOStreamHandle src, [NativeTypeName("bool")] byte closeio) => + DllImport.LoadBMPIO(src, closeio); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.LoadBMPIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio - ) => (Surface*)((ISdl)this).LoadBMPIO(src, (int)closeio); + [NativeTypeName("bool")] MaybeBool closeio + ) => (Surface*)((ISdl)this).LoadBMPIO(src, (byte)closeio); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static Ptr LoadBMPIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) => DllImport.LoadBMPIO(src, closeio); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -54598,9 +64840,9 @@ public static Ptr LoadBMPIO( ) => ( (delegate* unmanaged)( - _slots[524] is not null and var loadedFnPtr + _slots[542] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[524] = nativeContext.LoadFunction("SDL_LoadFile", "SDL3") + : _slots[542] = nativeContext.LoadFunction("SDL_LoadFile", "SDL3") ) )(file, datasize); @@ -54636,13 +64878,13 @@ public static Ptr LoadFile( void* ISdl.LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] nuint* datasize, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ) => ( - (delegate* unmanaged)( - _slots[525] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[543] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[525] = nativeContext.LoadFunction("SDL_LoadFile_IO", "SDL3") + : _slots[543] = nativeContext.LoadFunction("SDL_LoadFile_IO", "SDL3") ) )(src, datasize, closeio); @@ -54651,19 +64893,19 @@ _slots[525] is not null and var loadedFnPtr public static void* LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] nuint* datasize, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ) => DllImport.LoadFileIO(src, datasize, closeio); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Ptr ISdl.LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] Ref datasize, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) { fixed (nuint* __dsl_datasize = datasize) { - return (void*)((ISdl)this).LoadFileIO(src, __dsl_datasize, (int)closeio); + return (void*)((ISdl)this).LoadFileIO(src, __dsl_datasize, (byte)closeio); } } @@ -54673,16 +64915,19 @@ Ptr ISdl.LoadFileIO( public static Ptr LoadFileIO( IOStreamHandle src, [NativeTypeName("size_t *")] Ref datasize, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) => DllImport.LoadFileIO(src, datasize, closeio); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - FunctionPointer ISdl.LoadFunction(void* handle, [NativeTypeName("const char *")] sbyte* name) => + FunctionPointer ISdl.LoadFunction( + SharedObjectHandle handle, + [NativeTypeName("const char *")] sbyte* name + ) => ( - (delegate* unmanaged)( - _slots[526] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[544] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[526] = nativeContext.LoadFunction("SDL_LoadFunction", "SDL3") + : _slots[544] = nativeContext.LoadFunction("SDL_LoadFunction", "SDL3") ) )(handle, name); @@ -54690,17 +64935,19 @@ _slots[526] is not null and var loadedFnPtr [NativeFunction("SDL3", EntryPoint = "SDL_LoadFunction")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static FunctionPointer LoadFunction( - void* handle, + SharedObjectHandle handle, [NativeTypeName("const char *")] sbyte* name ) => DllImport.LoadFunction(handle, name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - FunctionPointer ISdl.LoadFunction(Ref handle, [NativeTypeName("const char *")] Ref name) + FunctionPointer ISdl.LoadFunction( + SharedObjectHandle handle, + [NativeTypeName("const char *")] Ref name + ) { fixed (sbyte* __dsl_name = name) - fixed (void* __dsl_handle = handle) { - return (FunctionPointer)((ISdl)this).LoadFunction(__dsl_handle, __dsl_name); + return (FunctionPointer)((ISdl)this).LoadFunction(handle, __dsl_name); } } @@ -54709,58 +64956,60 @@ FunctionPointer ISdl.LoadFunction(Ref handle, [NativeTypeName("const char *")] R [NativeFunction("SDL3", EntryPoint = "SDL_LoadFunction")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static FunctionPointer LoadFunction( - Ref handle, + SharedObjectHandle handle, [NativeTypeName("const char *")] Ref name ) => DllImport.LoadFunction(handle, name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void* ISdl.LoadObject([NativeTypeName("const char *")] sbyte* sofile) => + SharedObjectHandle ISdl.LoadObject([NativeTypeName("const char *")] sbyte* sofile) => ( - (delegate* unmanaged)( - _slots[527] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[545] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[527] = nativeContext.LoadFunction("SDL_LoadObject", "SDL3") + : _slots[545] = nativeContext.LoadFunction("SDL_LoadObject", "SDL3") ) )(sofile); [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void* LoadObject([NativeTypeName("const char *")] sbyte* sofile) => + public static SharedObjectHandle LoadObject([NativeTypeName("const char *")] sbyte* sofile) => DllImport.LoadObject(sofile); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - Ptr ISdl.LoadObject([NativeTypeName("const char *")] Ref sofile) + SharedObjectHandle ISdl.LoadObject([NativeTypeName("const char *")] Ref sofile) { fixed (sbyte* __dsl_sofile = sofile) { - return (void*)((ISdl)this).LoadObject(__dsl_sofile); + return (SharedObjectHandle)((ISdl)this).LoadObject(__dsl_sofile); } } [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static Ptr LoadObject([NativeTypeName("const char *")] Ref sofile) => - DllImport.LoadObject(sofile); + public static SharedObjectHandle LoadObject( + [NativeTypeName("const char *")] Ref sofile + ) => DllImport.LoadObject(sofile); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.LoadWAV( + byte ISdl.LoadWAV( [NativeTypeName("const char *")] sbyte* path, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ) => ( - (delegate* unmanaged)( - _slots[528] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[546] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[528] = nativeContext.LoadFunction("SDL_LoadWAV", "SDL3") + : _slots[546] = nativeContext.LoadFunction("SDL_LoadWAV", "SDL3") ) )(path, spec, audio_buf, audio_len); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int LoadWAV( + public static byte LoadWAV( [NativeTypeName("const char *")] sbyte* path, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, @@ -54768,7 +65017,7 @@ public static int LoadWAV( ) => DllImport.LoadWAV(path, spec, audio_buf, audio_len); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.LoadWAV( + MaybeBool ISdl.LoadWAV( [NativeTypeName("const char *")] Ref path, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, @@ -54780,15 +65029,17 @@ int ISdl.LoadWAV( fixed (AudioSpec* __dsl_spec = spec) fixed (sbyte* __dsl_path = path) { - return (int) - ((ISdl)this).LoadWAV(__dsl_path, __dsl_spec, __dsl_audio_buf, __dsl_audio_len); + return (MaybeBool) + (byte) + ((ISdl)this).LoadWAV(__dsl_path, __dsl_spec, __dsl_audio_buf, __dsl_audio_len); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int LoadWAV( + public static MaybeBool LoadWAV( [NativeTypeName("const char *")] Ref path, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, @@ -54796,35 +65047,36 @@ public static int LoadWAV( ) => DllImport.LoadWAV(path, spec, audio_buf, audio_len); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.LoadWAVIO( + byte ISdl.LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio, + [NativeTypeName("bool")] byte closeio, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ) => ( - (delegate* unmanaged)( - _slots[529] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[547] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[529] = nativeContext.LoadFunction("SDL_LoadWAV_IO", "SDL3") + : _slots[547] = nativeContext.LoadFunction("SDL_LoadWAV_IO", "SDL3") ) )(src, closeio, spec, audio_buf, audio_len); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int LoadWAVIO( + public static byte LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] int closeio, + [NativeTypeName("bool")] byte closeio, AudioSpec* spec, [NativeTypeName("Uint8 **")] byte** audio_buf, [NativeTypeName("Uint32 *")] uint* audio_len ) => DllImport.LoadWAVIO(src, closeio, spec, audio_buf, audio_len); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.LoadWAVIO( + MaybeBool ISdl.LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio, + [NativeTypeName("bool")] MaybeBool closeio, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, [NativeTypeName("Uint32 *")] Ref audio_len @@ -54834,50 +65086,64 @@ int ISdl.LoadWAVIO( fixed (byte** __dsl_audio_buf = audio_buf) fixed (AudioSpec* __dsl_spec = spec) { - return (int) - ((ISdl)this).LoadWAVIO( - src, - (int)closeio, - __dsl_spec, - __dsl_audio_buf, - __dsl_audio_len - ); + return (MaybeBool) + (byte) + ((ISdl)this).LoadWAVIO( + src, + (byte)closeio, + __dsl_spec, + __dsl_audio_buf, + __dsl_audio_len + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int LoadWAVIO( + public static MaybeBool LoadWAVIO( IOStreamHandle src, - [NativeTypeName("SDL_bool")] MaybeBool closeio, + [NativeTypeName("bool")] MaybeBool closeio, Ref spec, [NativeTypeName("Uint8 **")] Ref2D audio_buf, [NativeTypeName("Uint32 *")] Ref audio_len ) => DllImport.LoadWAVIO(src, closeio, spec, audio_buf, audio_len); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.LockAudioStream(AudioStreamHandle stream) => + MaybeBool ISdl.LockAudioStream(AudioStreamHandle stream) => + (MaybeBool)(byte)((ISdl)this).LockAudioStreamRaw(stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool LockAudioStream(AudioStreamHandle stream) => + DllImport.LockAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.LockAudioStreamRaw(AudioStreamHandle stream) => ( - (delegate* unmanaged)( - _slots[530] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[548] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[530] = nativeContext.LoadFunction("SDL_LockAudioStream", "SDL3") + : _slots[548] = nativeContext.LoadFunction("SDL_LockAudioStream", "SDL3") ) )(stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int LockAudioStream(AudioStreamHandle stream) => - DllImport.LockAudioStream(stream); + public static byte LockAudioStreamRaw(AudioStreamHandle stream) => + DllImport.LockAudioStreamRaw(stream); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.LockJoysticks() => ( (delegate* unmanaged)( - _slots[531] is not null and var loadedFnPtr + _slots[549] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[531] = nativeContext.LoadFunction("SDL_LockJoysticks", "SDL3") + : _slots[549] = nativeContext.LoadFunction("SDL_LockJoysticks", "SDL3") ) )(); @@ -54889,9 +65155,9 @@ _slots[531] is not null and var loadedFnPtr void ISdl.LockMutex(MutexHandle mutex) => ( (delegate* unmanaged)( - _slots[532] is not null and var loadedFnPtr + _slots[550] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[532] = nativeContext.LoadFunction("SDL_LockMutex", "SDL3") + : _slots[550] = nativeContext.LoadFunction("SDL_LockMutex", "SDL3") ) )(mutex); @@ -54900,27 +65166,39 @@ _slots[532] is not null and var loadedFnPtr public static void LockMutex(MutexHandle mutex) => DllImport.LockMutex(mutex); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.LockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + MaybeBool ISdl.LockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + (MaybeBool)(byte)((ISdl)this).LockPropertiesRaw(props); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool LockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + DllImport.LockProperties(props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.LockPropertiesRaw([NativeTypeName("SDL_PropertiesID")] uint props) => ( - (delegate* unmanaged)( - _slots[533] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[551] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[533] = nativeContext.LoadFunction("SDL_LockProperties", "SDL3") + : _slots[551] = nativeContext.LoadFunction("SDL_LockProperties", "SDL3") ) )(props); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockProperties")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => - DllImport.LockProperties(props); + public static byte LockPropertiesRaw([NativeTypeName("SDL_PropertiesID")] uint props) => + DllImport.LockPropertiesRaw(props); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.LockRWLockForReading(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[534] is not null and var loadedFnPtr + _slots[552] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[534] = nativeContext.LoadFunction("SDL_LockRWLockForReading", "SDL3") + : _slots[552] = nativeContext.LoadFunction("SDL_LockRWLockForReading", "SDL3") ) )(rwlock); @@ -54933,9 +65211,9 @@ public static void LockRWLockForReading(RWLockHandle rwlock) => void ISdl.LockRWLockForWriting(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[535] is not null and var loadedFnPtr + _slots[553] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[535] = nativeContext.LoadFunction("SDL_LockRWLockForWriting", "SDL3") + : _slots[553] = nativeContext.LoadFunction("SDL_LockRWLockForWriting", "SDL3") ) )(rwlock); @@ -54948,9 +65226,9 @@ public static void LockRWLockForWriting(RWLockHandle rwlock) => void ISdl.LockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => ( (delegate* unmanaged)( - _slots[536] is not null and var loadedFnPtr + _slots[554] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[536] = nativeContext.LoadFunction("SDL_LockSpinlock", "SDL3") + : _slots[554] = nativeContext.LoadFunction("SDL_LockSpinlock", "SDL3") ) )(@lock); @@ -54975,60 +65253,64 @@ public static void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @loc DllImport.LockSpinlock(@lock); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.LockSurface(Surface* surface) => + byte ISdl.LockSurface(Surface* surface) => ( - (delegate* unmanaged)( - _slots[537] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[555] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[537] = nativeContext.LoadFunction("SDL_LockSurface", "SDL3") + : _slots[555] = nativeContext.LoadFunction("SDL_LockSurface", "SDL3") ) )(surface); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int LockSurface(Surface* surface) => DllImport.LockSurface(surface); + public static byte LockSurface(Surface* surface) => DllImport.LockSurface(surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.LockSurface(Ref surface) + MaybeBool ISdl.LockSurface(Ref surface) { fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).LockSurface(__dsl_surface); + return (MaybeBool)(byte)((ISdl)this).LockSurface(__dsl_surface); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int LockSurface(Ref surface) => DllImport.LockSurface(surface); + public static MaybeBool LockSurface(Ref surface) => + DllImport.LockSurface(surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.LockTexture( - TextureHandle texture, + byte ISdl.LockTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, void** pixels, int* pitch ) => ( - (delegate* unmanaged)( - _slots[538] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[556] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[538] = nativeContext.LoadFunction("SDL_LockTexture", "SDL3") + : _slots[556] = nativeContext.LoadFunction("SDL_LockTexture", "SDL3") ) )(texture, rect, pixels, pitch); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int LockTexture( - TextureHandle texture, + public static byte LockTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, void** pixels, int* pitch ) => DllImport.LockTexture(texture, rect, pixels, pitch); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.LockTexture( - TextureHandle texture, + MaybeBool ISdl.LockTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D pixels, Ref pitch @@ -55037,80 +65319,74 @@ Ref pitch fixed (int* __dsl_pitch = pitch) fixed (void** __dsl_pixels = pixels) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)((ISdl)this).LockTexture(texture, __dsl_rect, __dsl_pixels, __dsl_pitch); + return (MaybeBool) + (byte) + ((ISdl)this).LockTexture(__dsl_texture, __dsl_rect, __dsl_pixels, __dsl_pitch); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int LockTexture( - TextureHandle texture, + public static MaybeBool LockTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D pixels, Ref pitch ) => DllImport.LockTexture(texture, rect, pixels, pitch); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.LockTextureToSurface( - TextureHandle texture, + byte ISdl.LockTextureToSurface( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, Surface** surface ) => ( - (delegate* unmanaged)( - _slots[539] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[557] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[539] = nativeContext.LoadFunction("SDL_LockTextureToSurface", "SDL3") + : _slots[557] = nativeContext.LoadFunction("SDL_LockTextureToSurface", "SDL3") ) )(texture, rect, surface); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int LockTextureToSurface( - TextureHandle texture, + public static byte LockTextureToSurface( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, Surface** surface ) => DllImport.LockTextureToSurface(texture, rect, surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.LockTextureToSurface( - TextureHandle texture, + MaybeBool ISdl.LockTextureToSurface( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D surface ) { fixed (Surface** __dsl_surface = surface) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)((ISdl)this).LockTextureToSurface(texture, __dsl_rect, __dsl_surface); + return (MaybeBool) + (byte)((ISdl)this).LockTextureToSurface(__dsl_texture, __dsl_rect, __dsl_surface); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int LockTextureToSurface( - TextureHandle texture, + public static MaybeBool LockTextureToSurface( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, Ref2D surface ) => DllImport.LockTextureToSurface(texture, rect, surface); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - LogPriority ISdl.LogGetPriority(int category) => - ( - (delegate* unmanaged)( - _slots[540] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[540] = nativeContext.LoadFunction("SDL_LogGetPriority", "SDL3") - ) - )(category); - - [NativeFunction("SDL3", EntryPoint = "SDL_LogGetPriority")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static LogPriority LogGetPriority(int category) => DllImport.LogGetPriority(category); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.LogMessageV( int category, @@ -55120,9 +65396,9 @@ void ISdl.LogMessageV( ) => ( (delegate* unmanaged)( - _slots[541] is not null and var loadedFnPtr + _slots[558] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[541] = nativeContext.LoadFunction("SDL_LogMessageV", "SDL3") + : _slots[558] = nativeContext.LoadFunction("SDL_LogMessageV", "SDL3") ) )(category, priority, fmt, ap); @@ -55161,174 +65437,257 @@ public static void LogMessageV( ) => DllImport.LogMessageV(category, priority, fmt, ap); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.LogResetPriorities() => + uint ISdl.MapRGB( + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => ( - (delegate* unmanaged)( - _slots[542] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[559] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[542] = nativeContext.LoadFunction("SDL_LogResetPriorities", "SDL3") + : _slots[559] = nativeContext.LoadFunction("SDL_MapRGB", "SDL3") ) - )(); + )(format, palette, r, g, b); - [NativeFunction("SDL3", EntryPoint = "SDL_LogResetPriorities")] + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void LogResetPriorities() => DllImport.LogResetPriorities(); + public static uint MapRGB( + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => DllImport.MapRGB(format, palette, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.LogSetAllPriority(LogPriority priority) => - ( - (delegate* unmanaged)( - _slots[543] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[543] = nativeContext.LoadFunction("SDL_LogSetAllPriority", "SDL3") - ) - )(priority); + uint ISdl.MapRGB( + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (Palette* __dsl_palette = palette) + fixed (PixelFormatDetails* __dsl_format = format) + { + return (uint)((ISdl)this).MapRGB(__dsl_format, __dsl_palette, r, g, b); + } + } - [NativeFunction("SDL3", EntryPoint = "SDL_LogSetAllPriority")] + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void LogSetAllPriority(LogPriority priority) => - DllImport.LogSetAllPriority(priority); + public static uint MapRGB( + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => DllImport.MapRGB(format, palette, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.LogSetPriority(int category, LogPriority priority) => + uint ISdl.MapRgba( + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => ( - (delegate* unmanaged)( - _slots[544] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[560] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[544] = nativeContext.LoadFunction("SDL_LogSetPriority", "SDL3") + : _slots[560] = nativeContext.LoadFunction("SDL_MapRGBA", "SDL3") ) - )(category, priority); + )(format, palette, r, g, b, a); - [NativeFunction("SDL3", EntryPoint = "SDL_LogSetPriority")] + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void LogSetPriority(int category, LogPriority priority) => - DllImport.LogSetPriority(category, priority); + public static uint MapRgba( + [NativeTypeName("const SDL_PixelFormatDetails *")] PixelFormatDetails* format, + [NativeTypeName("const SDL_Palette *")] Palette* palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => DllImport.MapRgba(format, palette, r, g, b, a); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + uint ISdl.MapRgba( + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) + { + fixed (Palette* __dsl_palette = palette) + fixed (PixelFormatDetails* __dsl_format = format) + { + return (uint)((ISdl)this).MapRgba(__dsl_format, __dsl_palette, r, g, b, a); + } + } + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint MapRgba( + [NativeTypeName("const SDL_PixelFormatDetails *")] Ref format, + [NativeTypeName("const SDL_Palette *")] Ref palette, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => DllImport.MapRgba(format, palette, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.MapSurfaceRGB( + Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ) => ( - (delegate* unmanaged)( - _slots[545] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[561] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[545] = nativeContext.LoadFunction("SDL_MapRGB", "SDL3") + : _slots[561] = nativeContext.LoadFunction("SDL_MapSurfaceRGB", "SDL3") ) - )(format, r, g, b); + )(surface, r, g, b); [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGB")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + public static uint MapSurfaceRGB( + Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b - ) => DllImport.MapRGB(format, r, g, b); + ) => DllImport.MapSurfaceRGB(surface, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + uint ISdl.MapSurfaceRGB( + Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ) { - fixed (PixelFormat* __dsl_format = format) + fixed (Surface* __dsl_surface = surface) { - return (uint)((ISdl)this).MapRGB(__dsl_format, r, g, b); + return (uint)((ISdl)this).MapSurfaceRGB(__dsl_surface, r, g, b); } } [return: NativeTypeName("Uint32")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGB")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint MapRGB( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + public static uint MapSurfaceRGB( + Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b - ) => DllImport.MapRGB(format, r, g, b); + ) => DllImport.MapSurfaceRGB(surface, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + uint ISdl.MapSurfaceRgba( + Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a ) => ( - (delegate* unmanaged)( - _slots[546] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[562] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[546] = nativeContext.LoadFunction("SDL_MapRGBA", "SDL3") + : _slots[562] = nativeContext.LoadFunction("SDL_MapSurfaceRGBA", "SDL3") ) - )(format, r, g, b, a); + )(surface, r, g, b, a); [return: NativeTypeName("Uint32")] - [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGBA")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + public static uint MapSurfaceRgba( + Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a - ) => DllImport.MapRgba(format, r, g, b, a); + ) => DllImport.MapSurfaceRgba(surface, r, g, b, a); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + uint ISdl.MapSurfaceRgba( + Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a ) { - fixed (PixelFormat* __dsl_format = format) + fixed (Surface* __dsl_surface = surface) { - return (uint)((ISdl)this).MapRgba(__dsl_format, r, g, b, a); + return (uint)((ISdl)this).MapSurfaceRgba(__dsl_surface, r, g, b, a); } } [return: NativeTypeName("Uint32")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] + [NativeFunction("SDL3", EntryPoint = "SDL_MapSurfaceRGBA")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint MapRgba( - [NativeTypeName("const SDL_PixelFormat *")] Ref format, + public static uint MapSurfaceRgba( + Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a - ) => DllImport.MapRgba(format, r, g, b, a); + ) => DllImport.MapSurfaceRgba(surface, r, g, b, a); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.MaximizeWindow(WindowHandle window) => + MaybeBool ISdl.MaximizeWindow(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).MaximizeWindowRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool MaximizeWindow(WindowHandle window) => + DllImport.MaximizeWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.MaximizeWindowRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[547] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[563] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[547] = nativeContext.LoadFunction("SDL_MaximizeWindow", "SDL3") + : _slots[563] = nativeContext.LoadFunction("SDL_MaximizeWindow", "SDL3") ) )(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int MaximizeWindow(WindowHandle window) => DllImport.MaximizeWindow(window); + public static byte MaximizeWindowRaw(WindowHandle window) => + DllImport.MaximizeWindowRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.MemoryBarrierAcquireFunction() => ( (delegate* unmanaged)( - _slots[548] is not null and var loadedFnPtr + _slots[564] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[548] = nativeContext.LoadFunction( + : _slots[564] = nativeContext.LoadFunction( "SDL_MemoryBarrierAcquireFunction", "SDL3" ) @@ -55343,9 +65702,9 @@ _slots[548] is not null and var loadedFnPtr void ISdl.MemoryBarrierReleaseFunction() => ( (delegate* unmanaged)( - _slots[549] is not null and var loadedFnPtr + _slots[565] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[549] = nativeContext.LoadFunction( + : _slots[565] = nativeContext.LoadFunction( "SDL_MemoryBarrierReleaseFunction", "SDL3" ) @@ -55369,9 +65728,9 @@ _slots[549] is not null and var loadedFnPtr void* ISdl.MetalCreateViewRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[550] is not null and var loadedFnPtr + _slots[566] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[550] = nativeContext.LoadFunction("SDL_Metal_CreateView", "SDL3") + : _slots[566] = nativeContext.LoadFunction("SDL_Metal_CreateView", "SDL3") ) )(window); @@ -55385,9 +65744,9 @@ _slots[550] is not null and var loadedFnPtr void ISdl.MetalDestroyView([NativeTypeName("SDL_MetalView")] void* view) => ( (delegate* unmanaged)( - _slots[551] is not null and var loadedFnPtr + _slots[567] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[551] = nativeContext.LoadFunction("SDL_Metal_DestroyView", "SDL3") + : _slots[567] = nativeContext.LoadFunction("SDL_Metal_DestroyView", "SDL3") ) )(view); @@ -55415,9 +65774,9 @@ public static void MetalDestroyView([NativeTypeName("SDL_MetalView")] Ref view) void* ISdl.MetalGetLayer([NativeTypeName("SDL_MetalView")] void* view) => ( (delegate* unmanaged)( - _slots[552] is not null and var loadedFnPtr + _slots[568] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[552] = nativeContext.LoadFunction("SDL_Metal_GetLayer", "SDL3") + : _slots[568] = nativeContext.LoadFunction("SDL_Metal_GetLayer", "SDL3") ) )(view); @@ -55442,114 +65801,131 @@ public static Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view) => DllImport.MetalGetLayer(view); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.MinimizeWindow(WindowHandle window) => + MaybeBool ISdl.MinimizeWindow(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).MinimizeWindowRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool MinimizeWindow(WindowHandle window) => + DllImport.MinimizeWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.MinimizeWindowRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[553] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[569] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[553] = nativeContext.LoadFunction("SDL_MinimizeWindow", "SDL3") + : _slots[569] = nativeContext.LoadFunction("SDL_MinimizeWindow", "SDL3") ) )(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int MinimizeWindow(WindowHandle window) => DllImport.MinimizeWindow(window); + public static byte MinimizeWindowRaw(WindowHandle window) => + DllImport.MinimizeWindowRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.MixAudioFormat( + byte ISdl.MixAudio( [NativeTypeName("Uint8 *")] byte* dst, [NativeTypeName("const Uint8 *")] byte* src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume + float volume ) => ( - (delegate* unmanaged)( - _slots[554] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[570] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[554] = nativeContext.LoadFunction("SDL_MixAudioFormat", "SDL3") + : _slots[570] = nativeContext.LoadFunction("SDL_MixAudio", "SDL3") ) )(dst, src, format, len, volume); - [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudio")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int MixAudioFormat( + public static byte MixAudio( [NativeTypeName("Uint8 *")] byte* dst, [NativeTypeName("const Uint8 *")] byte* src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume - ) => DllImport.MixAudioFormat(dst, src, format, len, volume); + float volume + ) => DllImport.MixAudio(dst, src, format, len, volume); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.MixAudioFormat( + MaybeBool ISdl.MixAudio( [NativeTypeName("Uint8 *")] Ref dst, [NativeTypeName("const Uint8 *")] Ref src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume + float volume ) { fixed (byte* __dsl_src = src) fixed (byte* __dsl_dst = dst) { - return (int)((ISdl)this).MixAudioFormat(__dsl_dst, __dsl_src, format, len, volume); + return (MaybeBool) + (byte)((ISdl)this).MixAudio(__dsl_dst, __dsl_src, format, len, volume); } } + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudio")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int MixAudioFormat( + public static MaybeBool MixAudio( [NativeTypeName("Uint8 *")] Ref dst, [NativeTypeName("const Uint8 *")] Ref src, - [NativeTypeName("SDL_AudioFormat")] ushort format, + AudioFormat format, [NativeTypeName("Uint32")] uint len, - int volume - ) => DllImport.MixAudioFormat(dst, src, format, len, volume); + float volume + ) => DllImport.MixAudio(dst, src, format, len, volume); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.OnApplicationDidBecomeActive() => + void ISdl.OnApplicationDidEnterBackground() => ( (delegate* unmanaged)( - _slots[555] is not null and var loadedFnPtr + _slots[571] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[555] = nativeContext.LoadFunction( - "SDL_OnApplicationDidBecomeActive", + : _slots[571] = nativeContext.LoadFunction( + "SDL_OnApplicationDidEnterBackground", "SDL3" ) ) )(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidBecomeActive")] + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterBackground")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void OnApplicationDidBecomeActive() => DllImport.OnApplicationDidBecomeActive(); + public static void OnApplicationDidEnterBackground() => + DllImport.OnApplicationDidEnterBackground(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.OnApplicationDidEnterBackground() => + void ISdl.OnApplicationDidEnterForeground() => ( (delegate* unmanaged)( - _slots[556] is not null and var loadedFnPtr + _slots[572] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[556] = nativeContext.LoadFunction( - "SDL_OnApplicationDidEnterBackground", + : _slots[572] = nativeContext.LoadFunction( + "SDL_OnApplicationDidEnterForeground", "SDL3" ) ) )(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterBackground")] + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationDidEnterForeground")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void OnApplicationDidEnterBackground() => - DllImport.OnApplicationDidEnterBackground(); + public static void OnApplicationDidEnterForeground() => + DllImport.OnApplicationDidEnterForeground(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.OnApplicationDidReceiveMemoryWarning() => ( (delegate* unmanaged)( - _slots[557] is not null and var loadedFnPtr + _slots[573] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[557] = nativeContext.LoadFunction( + : _slots[573] = nativeContext.LoadFunction( "SDL_OnApplicationDidReceiveMemoryWarning", "SDL3" ) @@ -55562,47 +65938,48 @@ public static void OnApplicationDidReceiveMemoryWarning() => DllImport.OnApplicationDidReceiveMemoryWarning(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.OnApplicationWillEnterForeground() => + void ISdl.OnApplicationWillEnterBackground() => ( (delegate* unmanaged)( - _slots[558] is not null and var loadedFnPtr + _slots[574] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[558] = nativeContext.LoadFunction( - "SDL_OnApplicationWillEnterForeground", + : _slots[574] = nativeContext.LoadFunction( + "SDL_OnApplicationWillEnterBackground", "SDL3" ) ) )(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterForeground")] + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterBackground")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void OnApplicationWillEnterForeground() => - DllImport.OnApplicationWillEnterForeground(); + public static void OnApplicationWillEnterBackground() => + DllImport.OnApplicationWillEnterBackground(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.OnApplicationWillResignActive() => + void ISdl.OnApplicationWillEnterForeground() => ( (delegate* unmanaged)( - _slots[559] is not null and var loadedFnPtr + _slots[575] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[559] = nativeContext.LoadFunction( - "SDL_OnApplicationWillResignActive", + : _slots[575] = nativeContext.LoadFunction( + "SDL_OnApplicationWillEnterForeground", "SDL3" ) ) )(); - [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillResignActive")] + [NativeFunction("SDL3", EntryPoint = "SDL_OnApplicationWillEnterForeground")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void OnApplicationWillResignActive() => DllImport.OnApplicationWillResignActive(); + public static void OnApplicationWillEnterForeground() => + DllImport.OnApplicationWillEnterForeground(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.OnApplicationWillTerminate() => ( (delegate* unmanaged)( - _slots[560] is not null and var loadedFnPtr + _slots[576] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[560] = nativeContext.LoadFunction( + : _slots[576] = nativeContext.LoadFunction( "SDL_OnApplicationWillTerminate", "SDL3" ) @@ -55620,9 +65997,9 @@ uint ISdl.OpenAudioDevice( ) => ( (delegate* unmanaged)( - _slots[561] is not null and var loadedFnPtr + _slots[577] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[561] = nativeContext.LoadFunction("SDL_OpenAudioDevice", "SDL3") + : _slots[577] = nativeContext.LoadFunction("SDL_OpenAudioDevice", "SDL3") ) )(devid, spec); @@ -55664,9 +66041,9 @@ AudioStreamHandle ISdl.OpenAudioDeviceStream( ) => ( (delegate* unmanaged)( - _slots[562] is not null and var loadedFnPtr + _slots[578] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[562] = nativeContext.LoadFunction("SDL_OpenAudioDeviceStream", "SDL3") + : _slots[578] = nativeContext.LoadFunction("SDL_OpenAudioDeviceStream", "SDL3") ) )(devid, spec, callback, userdata); @@ -55706,52 +66083,52 @@ Ref userdata ) => DllImport.OpenAudioDeviceStream(devid, spec, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - CameraHandle ISdl.OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + CameraHandle ISdl.OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec ) => ( (delegate* unmanaged)( - _slots[563] is not null and var loadedFnPtr + _slots[579] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[563] = nativeContext.LoadFunction("SDL_OpenCameraDevice", "SDL3") + : _slots[579] = nativeContext.LoadFunction("SDL_OpenCamera", "SDL3") ) )(instance_id, spec); - [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCamera")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static CameraHandle OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + public static CameraHandle OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec - ) => DllImport.OpenCameraDevice(instance_id, spec); + ) => DllImport.OpenCamera(instance_id, spec); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - CameraHandle ISdl.OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + CameraHandle ISdl.OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] Ref spec ) { fixed (CameraSpec* __dsl_spec = spec) { - return (CameraHandle)((ISdl)this).OpenCameraDevice(instance_id, __dsl_spec); + return (CameraHandle)((ISdl)this).OpenCamera(instance_id, __dsl_spec); } } [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCamera")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static CameraHandle OpenCameraDevice( - [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + public static CameraHandle OpenCamera( + [NativeTypeName("SDL_CameraID")] uint instance_id, [NativeTypeName("const SDL_CameraSpec *")] Ref spec - ) => DllImport.OpenCameraDevice(instance_id, spec); + ) => DllImport.OpenCamera(instance_id, spec); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] StorageHandle ISdl.OpenFileStorage([NativeTypeName("const char *")] sbyte* path) => ( (delegate* unmanaged)( - _slots[564] is not null and var loadedFnPtr + _slots[580] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[564] = nativeContext.LoadFunction("SDL_OpenFileStorage", "SDL3") + : _slots[580] = nativeContext.LoadFunction("SDL_OpenFileStorage", "SDL3") ) )(path); @@ -55779,9 +66156,9 @@ public static StorageHandle OpenFileStorage([NativeTypeName("const char *")] Ref GamepadHandle ISdl.OpenGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[565] is not null and var loadedFnPtr + _slots[581] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[565] = nativeContext.LoadFunction("SDL_OpenGamepad", "SDL3") + : _slots[581] = nativeContext.LoadFunction("SDL_OpenGamepad", "SDL3") ) )(instance_id); @@ -55794,9 +66171,9 @@ public static GamepadHandle OpenGamepad([NativeTypeName("SDL_JoystickID")] uint HapticHandle ISdl.OpenHaptic([NativeTypeName("SDL_HapticID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[566] is not null and var loadedFnPtr + _slots[582] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[566] = nativeContext.LoadFunction("SDL_OpenHaptic", "SDL3") + : _slots[582] = nativeContext.LoadFunction("SDL_OpenHaptic", "SDL3") ) )(instance_id); @@ -55809,9 +66186,9 @@ public static HapticHandle OpenHaptic([NativeTypeName("SDL_HapticID")] uint inst HapticHandle ISdl.OpenHapticFromJoystick(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[567] is not null and var loadedFnPtr + _slots[583] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[567] = nativeContext.LoadFunction("SDL_OpenHapticFromJoystick", "SDL3") + : _slots[583] = nativeContext.LoadFunction("SDL_OpenHapticFromJoystick", "SDL3") ) )(joystick); @@ -55824,9 +66201,9 @@ public static HapticHandle OpenHapticFromJoystick(JoystickHandle joystick) => HapticHandle ISdl.OpenHapticFromMouse() => ( (delegate* unmanaged)( - _slots[568] is not null and var loadedFnPtr + _slots[584] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[568] = nativeContext.LoadFunction("SDL_OpenHapticFromMouse", "SDL3") + : _slots[584] = nativeContext.LoadFunction("SDL_OpenHapticFromMouse", "SDL3") ) )(); @@ -55841,9 +66218,9 @@ IOStreamHandle ISdl.OpenIO( ) => ( (delegate* unmanaged)( - _slots[569] is not null and var loadedFnPtr + _slots[585] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[569] = nativeContext.LoadFunction("SDL_OpenIO", "SDL3") + : _slots[585] = nativeContext.LoadFunction("SDL_OpenIO", "SDL3") ) )(iface, userdata); @@ -55879,9 +66256,9 @@ Ref userdata JoystickHandle ISdl.OpenJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[570] is not null and var loadedFnPtr + _slots[586] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[570] = nativeContext.LoadFunction("SDL_OpenJoystick", "SDL3") + : _slots[586] = nativeContext.LoadFunction("SDL_OpenJoystick", "SDL3") ) )(instance_id); @@ -55895,9 +66272,9 @@ public static JoystickHandle OpenJoystick( SensorHandle ISdl.OpenSensor([NativeTypeName("SDL_SensorID")] uint instance_id) => ( (delegate* unmanaged)( - _slots[571] is not null and var loadedFnPtr + _slots[587] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[571] = nativeContext.LoadFunction("SDL_OpenSensor", "SDL3") + : _slots[587] = nativeContext.LoadFunction("SDL_OpenSensor", "SDL3") ) )(instance_id); @@ -55913,9 +66290,9 @@ StorageHandle ISdl.OpenStorage( ) => ( (delegate* unmanaged)( - _slots[572] is not null and var loadedFnPtr + _slots[588] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[572] = nativeContext.LoadFunction("SDL_OpenStorage", "SDL3") + : _slots[588] = nativeContext.LoadFunction("SDL_OpenStorage", "SDL3") ) )(iface, userdata); @@ -55954,9 +66331,9 @@ StorageHandle ISdl.OpenTitleStorage( ) => ( (delegate* unmanaged)( - _slots[573] is not null and var loadedFnPtr + _slots[589] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[573] = nativeContext.LoadFunction("SDL_OpenTitleStorage", "SDL3") + : _slots[589] = nativeContext.LoadFunction("SDL_OpenTitleStorage", "SDL3") ) )(@override, props); @@ -55988,33 +66365,35 @@ public static StorageHandle OpenTitleStorage( ) => DllImport.OpenTitleStorage(@override, props); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.OpenURL([NativeTypeName("const char *")] sbyte* url) => + byte ISdl.OpenURL([NativeTypeName("const char *")] sbyte* url) => ( - (delegate* unmanaged)( - _slots[574] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[590] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[574] = nativeContext.LoadFunction("SDL_OpenURL", "SDL3") + : _slots[590] = nativeContext.LoadFunction("SDL_OpenURL", "SDL3") ) )(url); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int OpenURL([NativeTypeName("const char *")] sbyte* url) => + public static byte OpenURL([NativeTypeName("const char *")] sbyte* url) => DllImport.OpenURL(url); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.OpenURL([NativeTypeName("const char *")] Ref url) + MaybeBool ISdl.OpenURL([NativeTypeName("const char *")] Ref url) { fixed (sbyte* __dsl_url = url) { - return (int)((ISdl)this).OpenURL(__dsl_url); + return (MaybeBool)(byte)((ISdl)this).OpenURL(__dsl_url); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int OpenURL([NativeTypeName("const char *")] Ref url) => + public static MaybeBool OpenURL([NativeTypeName("const char *")] Ref url) => DllImport.OpenURL(url); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -56025,9 +66404,9 @@ StorageHandle ISdl.OpenUserStorage( ) => ( (delegate* unmanaged)( - _slots[575] is not null and var loadedFnPtr + _slots[591] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[575] = nativeContext.LoadFunction("SDL_OpenUserStorage", "SDL3") + : _slots[591] = nativeContext.LoadFunction("SDL_OpenUserStorage", "SDL3") ) )(org, app, props); @@ -56063,33 +66442,108 @@ public static StorageHandle OpenUserStorage( ) => DllImport.OpenUserStorage(org, app, props); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + MaybeBool ISdl.OutOfMemory() => (MaybeBool)(byte)((ISdl)this).OutOfMemoryRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OutOfMemory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool OutOfMemory() => DllImport.OutOfMemory(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.OutOfMemoryRaw() => ( - (delegate* unmanaged)( - _slots[576] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[592] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[592] = nativeContext.LoadFunction("SDL_OutOfMemory", "SDL3") + ) + )(); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_OutOfMemory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte OutOfMemoryRaw() => DllImport.OutOfMemoryRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + (MaybeBool)(byte)((ISdl)this).PauseAudioDeviceRaw(dev); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool PauseAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ) => DllImport.PauseAudioDevice(dev); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + ( + (delegate* unmanaged)( + _slots[593] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[576] = nativeContext.LoadFunction("SDL_PauseAudioDevice", "SDL3") + : _slots[593] = nativeContext.LoadFunction("SDL_PauseAudioDevice", "SDL3") ) )(dev); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioDevice")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - DllImport.PauseAudioDevice(dev); + public static byte PauseAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + DllImport.PauseAudioDeviceRaw(dev); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.PauseAudioStreamDevice(AudioStreamHandle stream) => + (MaybeBool)(byte)((ISdl)this).PauseAudioStreamDeviceRaw(stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioStreamDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool PauseAudioStreamDevice(AudioStreamHandle stream) => + DllImport.PauseAudioStreamDevice(stream); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.PauseHaptic(HapticHandle haptic) => + byte ISdl.PauseAudioStreamDeviceRaw(AudioStreamHandle stream) => ( - (delegate* unmanaged)( - _slots[577] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[594] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[594] = nativeContext.LoadFunction("SDL_PauseAudioStreamDevice", "SDL3") + ) + )(stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseAudioStreamDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte PauseAudioStreamDeviceRaw(AudioStreamHandle stream) => + DllImport.PauseAudioStreamDeviceRaw(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.PauseHaptic(HapticHandle haptic) => + (MaybeBool)(byte)((ISdl)this).PauseHapticRaw(haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool PauseHaptic(HapticHandle haptic) => DllImport.PauseHaptic(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.PauseHapticRaw(HapticHandle haptic) => + ( + (delegate* unmanaged)( + _slots[595] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[577] = nativeContext.LoadFunction("SDL_PauseHaptic", "SDL3") + : _slots[595] = nativeContext.LoadFunction("SDL_PauseHaptic", "SDL3") ) )(haptic); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int PauseHaptic(HapticHandle haptic) => DllImport.PauseHaptic(haptic); + public static byte PauseHapticRaw(HapticHandle haptic) => DllImport.PauseHapticRaw(haptic); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.PeepEvents( @@ -56101,9 +66555,9 @@ int ISdl.PeepEvents( ) => ( (delegate* unmanaged)( - _slots[578] is not null and var loadedFnPtr + _slots[596] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[578] = nativeContext.LoadFunction("SDL_PeepEvents", "SDL3") + : _slots[596] = nativeContext.LoadFunction("SDL_PeepEvents", "SDL3") ) )(events, numevents, action, minType, maxType); @@ -56144,137 +66598,118 @@ public static int PeepEvents( ) => DllImport.PeepEvents(events, numevents, action, minType, maxType); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.PenConnected([NativeTypeName("SDL_PenID")] uint instance_id) => - (MaybeBool)(int)((ISdl)this).PenConnectedRaw(instance_id); + MaybeBool ISdl.PlayHapticRumble( + HapticHandle haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) => (MaybeBool)(byte)((ISdl)this).PlayHapticRumbleRaw(haptic, strength, length); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool PenConnected([NativeTypeName("SDL_PenID")] uint instance_id) => - DllImport.PenConnected(instance_id); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.PenConnectedRaw([NativeTypeName("SDL_PenID")] uint instance_id) => - ( - (delegate* unmanaged)( - _slots[579] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[579] = nativeContext.LoadFunction("SDL_PenConnected", "SDL3") - ) - )(instance_id); - - [return: NativeTypeName("SDL_bool")] - [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] + [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int PenConnectedRaw([NativeTypeName("SDL_PenID")] uint instance_id) => - DllImport.PenConnectedRaw(instance_id); + public static MaybeBool PlayHapticRumble( + HapticHandle haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) => DllImport.PlayHapticRumble(haptic, strength, length); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.PlayHapticRumble( + byte ISdl.PlayHapticRumbleRaw( HapticHandle haptic, float strength, [NativeTypeName("Uint32")] uint length ) => ( - (delegate* unmanaged)( - _slots[580] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[597] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[580] = nativeContext.LoadFunction("SDL_PlayHapticRumble", "SDL3") + : _slots[597] = nativeContext.LoadFunction("SDL_PlayHapticRumble", "SDL3") ) )(haptic, strength, length); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int PlayHapticRumble( + public static byte PlayHapticRumbleRaw( HapticHandle haptic, float strength, [NativeTypeName("Uint32")] uint length - ) => DllImport.PlayHapticRumble(haptic, strength, length); + ) => DllImport.PlayHapticRumbleRaw(haptic, strength, length); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.PollEvent(Event* @event) => + byte ISdl.PollEvent(Event* @event) => ( - (delegate* unmanaged)( - _slots[581] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[598] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[581] = nativeContext.LoadFunction("SDL_PollEvent", "SDL3") + : _slots[598] = nativeContext.LoadFunction("SDL_PollEvent", "SDL3") ) )(@event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int PollEvent(Event* @event) => DllImport.PollEvent(@event); + public static byte PollEvent(Event* @event) => DllImport.PollEvent(@event); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.PollEvent(Ref @event) + MaybeBool ISdl.PollEvent(Ref @event) { fixed (Event* __dsl_event = @event) { - return (MaybeBool)(int)((ISdl)this).PollEvent(__dsl_event); + return (MaybeBool)(byte)((ISdl)this).PollEvent(__dsl_event); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool PollEvent(Ref @event) => DllImport.PollEvent(@event); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.PostSemaphore(SemaphoreHandle sem) => - ( - (delegate* unmanaged)( - _slots[582] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[582] = nativeContext.LoadFunction("SDL_PostSemaphore", "SDL3") - ) - )(sem); - - [NativeFunction("SDL3", EntryPoint = "SDL_PostSemaphore")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int PostSemaphore(SemaphoreHandle sem) => DllImport.PostSemaphore(sem); + public static MaybeBool PollEvent(Ref @event) => DllImport.PollEvent(@event); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.PremultiplyAlpha( + byte ISdl.PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] byte linear ) => ( (delegate* unmanaged< int, int, - PixelFormatEnum, + PixelFormat, void*, int, - PixelFormatEnum, + PixelFormat, void*, int, - int>)( - _slots[583] is not null and var loadedFnPtr + byte, + byte>)( + _slots[599] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[583] = nativeContext.LoadFunction("SDL_PremultiplyAlpha", "SDL3") + : _slots[599] = nativeContext.LoadFunction("SDL_PremultiplyAlpha", "SDL3") ) - )(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch); + )(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch, linear); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int PremultiplyAlpha( + public static byte PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] void* src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, void* dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] byte linear ) => DllImport.PremultiplyAlpha( width, @@ -56284,50 +66719,56 @@ int dst_pitch src_pitch, dst_format, dst, - dst_pitch + dst_pitch, + linear ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.PremultiplyAlpha( + MaybeBool ISdl.PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] MaybeBool linear ) { fixed (void* __dsl_dst = dst) fixed (void* __dsl_src = src) { - return (int) - ((ISdl)this).PremultiplyAlpha( - width, - height, - src_format, - __dsl_src, - src_pitch, - dst_format, - __dsl_dst, - dst_pitch - ); + return (MaybeBool) + (byte) + ((ISdl)this).PremultiplyAlpha( + width, + height, + src_format, + __dsl_src, + src_pitch, + dst_format, + __dsl_dst, + dst_pitch, + (byte)linear + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int PremultiplyAlpha( + public static MaybeBool PremultiplyAlpha( int width, int height, - PixelFormatEnum src_format, + PixelFormat src_format, [NativeTypeName("const void *")] Ref src, int src_pitch, - PixelFormatEnum dst_format, + PixelFormat dst_format, Ref dst, - int dst_pitch + int dst_pitch, + [NativeTypeName("bool")] MaybeBool linear ) => DllImport.PremultiplyAlpha( width, @@ -56337,16 +66778,60 @@ int dst_pitch src_pitch, dst_format, dst, - dst_pitch + dst_pitch, + linear ); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.PremultiplySurfaceAlpha(Surface* surface, [NativeTypeName("bool")] byte linear) => + ( + (delegate* unmanaged)( + _slots[600] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[600] = nativeContext.LoadFunction( + "SDL_PremultiplySurfaceAlpha", + "SDL3" + ) + ) + )(surface, linear); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplySurfaceAlpha")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte PremultiplySurfaceAlpha( + Surface* surface, + [NativeTypeName("bool")] byte linear + ) => DllImport.PremultiplySurfaceAlpha(surface, linear); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.PremultiplySurfaceAlpha( + Ref surface, + [NativeTypeName("bool")] MaybeBool linear + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool) + (byte)((ISdl)this).PremultiplySurfaceAlpha(__dsl_surface, (byte)linear); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplySurfaceAlpha")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool PremultiplySurfaceAlpha( + Ref surface, + [NativeTypeName("bool")] MaybeBool linear + ) => DllImport.PremultiplySurfaceAlpha(surface, linear); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.PumpEvents() => ( (delegate* unmanaged)( - _slots[584] is not null and var loadedFnPtr + _slots[601] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[584] = nativeContext.LoadFunction("SDL_PumpEvents", "SDL3") + : _slots[601] = nativeContext.LoadFunction("SDL_PumpEvents", "SDL3") ) )(); @@ -56355,57 +66840,60 @@ _slots[584] is not null and var loadedFnPtr public static void PumpEvents() => DllImport.PumpEvents(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.PushEvent(Event* @event) => + byte ISdl.PushEvent(Event* @event) => ( - (delegate* unmanaged)( - _slots[585] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[602] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[585] = nativeContext.LoadFunction("SDL_PushEvent", "SDL3") + : _slots[602] = nativeContext.LoadFunction("SDL_PushEvent", "SDL3") ) )(@event); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int PushEvent(Event* @event) => DllImport.PushEvent(@event); + public static byte PushEvent(Event* @event) => DllImport.PushEvent(@event); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.PushEvent(Ref @event) + MaybeBool ISdl.PushEvent(Ref @event) { fixed (Event* __dsl_event = @event) { - return (int)((ISdl)this).PushEvent(__dsl_event); + return (MaybeBool)(byte)((ISdl)this).PushEvent(__dsl_event); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int PushEvent(Ref @event) => DllImport.PushEvent(@event); + public static MaybeBool PushEvent(Ref @event) => DllImport.PushEvent(@event); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.PutAudioStreamData( + byte ISdl.PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] void* buf, int len ) => ( - (delegate* unmanaged)( - _slots[586] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[603] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[586] = nativeContext.LoadFunction("SDL_PutAudioStreamData", "SDL3") + : _slots[603] = nativeContext.LoadFunction("SDL_PutAudioStreamData", "SDL3") ) )(stream, buf, len); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int PutAudioStreamData( + public static byte PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] void* buf, int len ) => DllImport.PutAudioStreamData(stream, buf, len); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.PutAudioStreamData( + MaybeBool ISdl.PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] Ref buf, int len @@ -56413,82 +66901,27 @@ int len { fixed (void* __dsl_buf = buf) { - return (int)((ISdl)this).PutAudioStreamData(stream, __dsl_buf, len); + return (MaybeBool)(byte)((ISdl)this).PutAudioStreamData(stream, __dsl_buf, len); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int PutAudioStreamData( + public static MaybeBool PutAudioStreamData( AudioStreamHandle stream, [NativeTypeName("const void *")] Ref buf, int len ) => DllImport.PutAudioStreamData(stream, buf, len); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.QueryTexture( - TextureHandle texture, - PixelFormatEnum* format, - int* access, - int* w, - int* h - ) => - ( - (delegate* unmanaged)( - _slots[587] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[587] = nativeContext.LoadFunction("SDL_QueryTexture", "SDL3") - ) - )(texture, format, access, w, h); - - [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int QueryTexture( - TextureHandle texture, - PixelFormatEnum* format, - int* access, - int* w, - int* h - ) => DllImport.QueryTexture(texture, format, access, w, h); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.QueryTexture( - TextureHandle texture, - Ref format, - Ref access, - Ref w, - Ref h - ) - { - fixed (int* __dsl_h = h) - fixed (int* __dsl_w = w) - fixed (int* __dsl_access = access) - fixed (PixelFormatEnum* __dsl_format = format) - { - return (int) - ((ISdl)this).QueryTexture(texture, __dsl_format, __dsl_access, __dsl_w, __dsl_h); - } - } - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int QueryTexture( - TextureHandle texture, - Ref format, - Ref access, - Ref w, - Ref h - ) => DllImport.QueryTexture(texture, format, access, w, h); - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.Quit() => ( (delegate* unmanaged)( - _slots[588] is not null and var loadedFnPtr + _slots[604] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[588] = nativeContext.LoadFunction("SDL_Quit", "SDL3") + : _slots[604] = nativeContext.LoadFunction("SDL_Quit", "SDL3") ) )(); @@ -56497,41 +66930,52 @@ _slots[588] is not null and var loadedFnPtr public static void Quit() => DllImport.Quit(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.QuitSubSystem([NativeTypeName("Uint32")] uint flags) => + void ISdl.QuitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags) => ( (delegate* unmanaged)( - _slots[589] is not null and var loadedFnPtr + _slots[605] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[589] = nativeContext.LoadFunction("SDL_QuitSubSystem", "SDL3") + : _slots[605] = nativeContext.LoadFunction("SDL_QuitSubSystem", "SDL3") ) )(flags); [NativeFunction("SDL3", EntryPoint = "SDL_QuitSubSystem")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void QuitSubSystem([NativeTypeName("Uint32")] uint flags) => + public static void QuitSubSystem([NativeTypeName("SDL_InitFlags")] uint flags) => DllImport.QuitSubSystem(flags); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RaiseWindow(WindowHandle window) => + MaybeBool ISdl.RaiseWindow(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).RaiseWindowRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RaiseWindow(WindowHandle window) => DllImport.RaiseWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RaiseWindowRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[590] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[606] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[590] = nativeContext.LoadFunction("SDL_RaiseWindow", "SDL3") + : _slots[606] = nativeContext.LoadFunction("SDL_RaiseWindow", "SDL3") ) )(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RaiseWindow(WindowHandle window) => DllImport.RaiseWindow(window); + public static byte RaiseWindowRaw(WindowHandle window) => DllImport.RaiseWindowRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] nuint ISdl.ReadIO(IOStreamHandle context, void* ptr, [NativeTypeName("size_t")] nuint size) => ( (delegate* unmanaged)( - _slots[591] is not null and var loadedFnPtr + _slots[607] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[591] = nativeContext.LoadFunction("SDL_ReadIO", "SDL3") + : _slots[607] = nativeContext.LoadFunction("SDL_ReadIO", "SDL3") ) )(context, ptr, size); @@ -56564,227 +67008,268 @@ public static nuint ReadIO( ) => DllImport.ReadIO(context, ptr, size); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => + byte ISdl.ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => ( - (delegate* unmanaged)( - _slots[592] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[608] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[592] = nativeContext.LoadFunction("SDL_ReadS16BE", "SDL3") + : _slots[608] = nativeContext.LoadFunction("SDL_ReadS16BE", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => + public static byte ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => DllImport.ReadS16BE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadS16BE(IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value) + MaybeBool ISdl.ReadS16BE( + IOStreamHandle src, + [NativeTypeName("Sint16 *")] Ref value + ) { fixed (short* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadS16BE(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadS16BE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadS16BE( + public static MaybeBool ReadS16BE( IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value ) => DllImport.ReadS16BE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => + byte ISdl.ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => ( - (delegate* unmanaged)( - _slots[593] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[609] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[593] = nativeContext.LoadFunction("SDL_ReadS16LE", "SDL3") + : _slots[609] = nativeContext.LoadFunction("SDL_ReadS16LE", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => + public static byte ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] short* value) => DllImport.ReadS16LE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadS16LE(IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value) + MaybeBool ISdl.ReadS16LE( + IOStreamHandle src, + [NativeTypeName("Sint16 *")] Ref value + ) { fixed (short* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadS16LE(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadS16LE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadS16LE( + public static MaybeBool ReadS16LE( IOStreamHandle src, [NativeTypeName("Sint16 *")] Ref value ) => DllImport.ReadS16LE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => + byte ISdl.ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => ( - (delegate* unmanaged)( - _slots[594] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[610] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[594] = nativeContext.LoadFunction("SDL_ReadS32BE", "SDL3") + : _slots[610] = nativeContext.LoadFunction("SDL_ReadS32BE", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => + public static byte ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => DllImport.ReadS32BE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value) + MaybeBool ISdl.ReadS32BE(IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value) { fixed (int* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadS32BE(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadS32BE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadS32BE( + public static MaybeBool ReadS32BE( IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value ) => DllImport.ReadS32BE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => + byte ISdl.ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => ( - (delegate* unmanaged)( - _slots[595] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[611] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[595] = nativeContext.LoadFunction("SDL_ReadS32LE", "SDL3") + : _slots[611] = nativeContext.LoadFunction("SDL_ReadS32LE", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => + public static byte ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] int* value) => DllImport.ReadS32LE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value) + MaybeBool ISdl.ReadS32LE(IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value) { fixed (int* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadS32LE(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadS32LE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadS32LE( + public static MaybeBool ReadS32LE( IOStreamHandle src, [NativeTypeName("Sint32 *")] Ref value ) => DllImport.ReadS32LE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => + byte ISdl.ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => ( - (delegate* unmanaged)( - _slots[596] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[612] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[596] = nativeContext.LoadFunction("SDL_ReadS64BE", "SDL3") + : _slots[612] = nativeContext.LoadFunction("SDL_ReadS64BE", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => + public static byte ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => DllImport.ReadS64BE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value) + MaybeBool ISdl.ReadS64BE(IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value) { fixed (long* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadS64BE(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadS64BE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadS64BE( + public static MaybeBool ReadS64BE( IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value ) => DllImport.ReadS64BE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => + byte ISdl.ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => ( - (delegate* unmanaged)( - _slots[597] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[613] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[597] = nativeContext.LoadFunction("SDL_ReadS64LE", "SDL3") + : _slots[613] = nativeContext.LoadFunction("SDL_ReadS64LE", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => + public static byte ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] long* value) => DllImport.ReadS64LE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value) + MaybeBool ISdl.ReadS64LE(IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value) { fixed (long* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadS64LE(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadS64LE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadS64LE( + public static MaybeBool ReadS64LE( IOStreamHandle src, [NativeTypeName("Sint64 *")] Ref value ) => DllImport.ReadS64LE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadStorageFile( + byte ISdl.ReadS8(IOStreamHandle src, [NativeTypeName("Sint8 *")] sbyte* value) => + ( + (delegate* unmanaged)( + _slots[614] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[614] = nativeContext.LoadFunction("SDL_ReadS8", "SDL3") + ) + )(src, value); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS8")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte ReadS8(IOStreamHandle src, [NativeTypeName("Sint8 *")] sbyte* value) => + DllImport.ReadS8(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadS8(IOStreamHandle src, [NativeTypeName("Sint8 *")] Ref value) + { + fixed (sbyte* __dsl_value = value) + { + return (MaybeBool)(byte)((ISdl)this).ReadS8(src, __dsl_value); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS8")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadS8( + IOStreamHandle src, + [NativeTypeName("Sint8 *")] Ref value + ) => DllImport.ReadS8(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, void* destination, [NativeTypeName("Uint64")] ulong length ) => ( - (delegate* unmanaged)( - _slots[598] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[615] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[598] = nativeContext.LoadFunction("SDL_ReadStorageFile", "SDL3") + : _slots[615] = nativeContext.LoadFunction("SDL_ReadStorageFile", "SDL3") ) )(storage, path, destination, length); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadStorageFile( + public static byte ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, void* destination, @@ -56792,7 +67277,7 @@ public static int ReadStorageFile( ) => DllImport.ReadStorageFile(storage, path, destination, length); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadStorageFile( + MaybeBool ISdl.ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref destination, @@ -56802,15 +67287,16 @@ int ISdl.ReadStorageFile( fixed (void* __dsl_destination = destination) fixed (sbyte* __dsl_path = path) { - return (int) - ((ISdl)this).ReadStorageFile(storage, __dsl_path, __dsl_destination, length); + return (MaybeBool) + (byte)((ISdl)this).ReadStorageFile(storage, __dsl_path, __dsl_destination, length); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadStorageFile( + public static MaybeBool ReadStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, Ref destination, @@ -56818,7 +67304,7 @@ public static int ReadStorageFile( ) => DllImport.ReadStorageFile(storage, path, destination, length); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadSurfacePixel( + byte ISdl.ReadSurfacePixel( Surface* surface, int x, int y, @@ -56828,16 +67314,17 @@ int ISdl.ReadSurfacePixel( [NativeTypeName("Uint8 *")] byte* a ) => ( - (delegate* unmanaged)( - _slots[599] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[616] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[599] = nativeContext.LoadFunction("SDL_ReadSurfacePixel", "SDL3") + : _slots[616] = nativeContext.LoadFunction("SDL_ReadSurfacePixel", "SDL3") ) )(surface, x, y, r, g, b, a); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadSurfacePixel( + public static byte ReadSurfacePixel( Surface* surface, int x, int y, @@ -56848,7 +67335,7 @@ public static int ReadSurfacePixel( ) => DllImport.ReadSurfacePixel(surface, x, y, r, g, b, a); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadSurfacePixel( + MaybeBool ISdl.ReadSurfacePixel( Ref surface, int x, int y, @@ -56864,23 +67351,25 @@ int ISdl.ReadSurfacePixel( fixed (byte* __dsl_r = r) fixed (Surface* __dsl_surface = surface) { - return (int) - ((ISdl)this).ReadSurfacePixel( - __dsl_surface, - x, - y, - __dsl_r, - __dsl_g, - __dsl_b, - __dsl_a - ); + return (MaybeBool) + (byte) + ((ISdl)this).ReadSurfacePixel( + __dsl_surface, + x, + y, + __dsl_r, + __dsl_g, + __dsl_b, + __dsl_a + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadSurfacePixel( + public static MaybeBool ReadSurfacePixel( Ref surface, int x, int y, @@ -56891,245 +67380,327 @@ public static int ReadSurfacePixel( ) => DllImport.ReadSurfacePixel(surface, x, y, r, g, b, a); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadU16BE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => + byte ISdl.ReadSurfacePixelFloat( + Surface* surface, + int x, + int y, + float* r, + float* g, + float* b, + float* a + ) => ( - (delegate* unmanaged)( - _slots[600] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[617] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[617] = nativeContext.LoadFunction("SDL_ReadSurfacePixelFloat", "SDL3") + ) + )(surface, x, y, r, g, b, a); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixelFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte ReadSurfacePixelFloat( + Surface* surface, + int x, + int y, + float* r, + float* g, + float* b, + float* a + ) => DllImport.ReadSurfacePixelFloat(surface, x, y, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadSurfacePixelFloat( + Ref surface, + int x, + int y, + Ref r, + Ref g, + Ref b, + Ref a + ) + { + fixed (float* __dsl_a = a) + fixed (float* __dsl_b = b) + fixed (float* __dsl_g = g) + fixed (float* __dsl_r = r) + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool) + (byte) + ((ISdl)this).ReadSurfacePixelFloat( + __dsl_surface, + x, + y, + __dsl_r, + __dsl_g, + __dsl_b, + __dsl_a + ); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixelFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadSurfacePixelFloat( + Ref surface, + int x, + int y, + Ref r, + Ref g, + Ref b, + Ref a + ) => DllImport.ReadSurfacePixelFloat(surface, x, y, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.ReadU16BE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => + ( + (delegate* unmanaged)( + _slots[618] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[600] = nativeContext.LoadFunction("SDL_ReadU16BE", "SDL3") + : _slots[618] = nativeContext.LoadFunction("SDL_ReadU16BE", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadU16BE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => + public static byte ReadU16BE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => DllImport.ReadU16BE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadU16BE( + MaybeBool ISdl.ReadU16BE( IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value ) { fixed (ushort* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadU16BE(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadU16BE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadU16BE( + public static MaybeBool ReadU16BE( IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value ) => DllImport.ReadU16BE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadU16LE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => + byte ISdl.ReadU16LE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => ( - (delegate* unmanaged)( - _slots[601] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[619] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[601] = nativeContext.LoadFunction("SDL_ReadU16LE", "SDL3") + : _slots[619] = nativeContext.LoadFunction("SDL_ReadU16LE", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadU16LE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => + public static byte ReadU16LE(IOStreamHandle src, [NativeTypeName("Uint16 *")] ushort* value) => DllImport.ReadU16LE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadU16LE( + MaybeBool ISdl.ReadU16LE( IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value ) { fixed (ushort* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadU16LE(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadU16LE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadU16LE( + public static MaybeBool ReadU16LE( IOStreamHandle src, [NativeTypeName("Uint16 *")] Ref value ) => DllImport.ReadU16LE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => + byte ISdl.ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => ( - (delegate* unmanaged)( - _slots[602] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[620] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[602] = nativeContext.LoadFunction("SDL_ReadU32BE", "SDL3") + : _slots[620] = nativeContext.LoadFunction("SDL_ReadU32BE", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => + public static byte ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => DllImport.ReadU32BE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value) + MaybeBool ISdl.ReadU32BE(IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value) { fixed (uint* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadU32BE(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadU32BE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadU32BE( + public static MaybeBool ReadU32BE( IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value ) => DllImport.ReadU32BE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => + byte ISdl.ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => ( - (delegate* unmanaged)( - _slots[603] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[621] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[603] = nativeContext.LoadFunction("SDL_ReadU32LE", "SDL3") + : _slots[621] = nativeContext.LoadFunction("SDL_ReadU32LE", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => + public static byte ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] uint* value) => DllImport.ReadU32LE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value) + MaybeBool ISdl.ReadU32LE(IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value) { fixed (uint* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadU32LE(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadU32LE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadU32LE( + public static MaybeBool ReadU32LE( IOStreamHandle src, [NativeTypeName("Uint32 *")] Ref value ) => DllImport.ReadU32LE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => + byte ISdl.ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => ( - (delegate* unmanaged)( - _slots[604] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[622] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[604] = nativeContext.LoadFunction("SDL_ReadU64BE", "SDL3") + : _slots[622] = nativeContext.LoadFunction("SDL_ReadU64BE", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => + public static byte ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => DllImport.ReadU64BE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadU64BE(IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value) + MaybeBool ISdl.ReadU64BE( + IOStreamHandle src, + [NativeTypeName("Uint64 *")] Ref value + ) { fixed (ulong* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadU64BE(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadU64BE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadU64BE( + public static MaybeBool ReadU64BE( IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value ) => DllImport.ReadU64BE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => + byte ISdl.ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => ( - (delegate* unmanaged)( - _slots[605] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[623] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[605] = nativeContext.LoadFunction("SDL_ReadU64LE", "SDL3") + : _slots[623] = nativeContext.LoadFunction("SDL_ReadU64LE", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => + public static byte ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] ulong* value) => DllImport.ReadU64LE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadU64LE(IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value) + MaybeBool ISdl.ReadU64LE( + IOStreamHandle src, + [NativeTypeName("Uint64 *")] Ref value + ) { fixed (ulong* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadU64LE(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadU64LE(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadU64LE( + public static MaybeBool ReadU64LE( IOStreamHandle src, [NativeTypeName("Uint64 *")] Ref value ) => DllImport.ReadU64LE(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value) => + byte ISdl.ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value) => ( - (delegate* unmanaged)( - _slots[606] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[624] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[606] = nativeContext.LoadFunction("SDL_ReadU8", "SDL3") + : _slots[624] = nativeContext.LoadFunction("SDL_ReadU8", "SDL3") ) )(src, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value) => + public static byte ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] byte* value) => DllImport.ReadU8(src, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] Ref value) + MaybeBool ISdl.ReadU8(IOStreamHandle src, [NativeTypeName("Uint8 *")] Ref value) { fixed (byte* __dsl_value = value) { - return (MaybeBool)(int)((ISdl)this).ReadU8(src, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).ReadU8(src, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ReadU8( + public static MaybeBool ReadU8( IOStreamHandle src, [NativeTypeName("Uint8 *")] Ref value ) => DllImport.ReadU8(src, value); @@ -57138,9 +67709,9 @@ public static MaybeBool ReadU8( uint ISdl.RegisterEvents(int numevents) => ( (delegate* unmanaged)( - _slots[607] is not null and var loadedFnPtr + _slots[625] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[607] = nativeContext.LoadFunction("SDL_RegisterEvents", "SDL3") + : _slots[625] = nativeContext.LoadFunction("SDL_RegisterEvents", "SDL3") ) )(numevents); @@ -57150,168 +67721,299 @@ _slots[607] is not null and var loadedFnPtr public static uint RegisterEvents(int numevents) => DllImport.RegisterEvents(numevents); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReleaseCameraFrame(CameraHandle camera, Surface* frame) => + void ISdl.ReleaseCameraFrame(CameraHandle camera, Surface* frame) => ( - (delegate* unmanaged)( - _slots[608] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[626] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[608] = nativeContext.LoadFunction("SDL_ReleaseCameraFrame", "SDL3") + : _slots[626] = nativeContext.LoadFunction("SDL_ReleaseCameraFrame", "SDL3") ) )(camera, frame); [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReleaseCameraFrame(CameraHandle camera, Surface* frame) => + public static void ReleaseCameraFrame(CameraHandle camera, Surface* frame) => DllImport.ReleaseCameraFrame(camera, frame); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReleaseCameraFrame(CameraHandle camera, Ref frame) + void ISdl.ReleaseCameraFrame(CameraHandle camera, Ref frame) { fixed (Surface* __dsl_frame = frame) { - return (int)((ISdl)this).ReleaseCameraFrame(camera, __dsl_frame); + ((ISdl)this).ReleaseCameraFrame(camera, __dsl_frame); } } [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReleaseCameraFrame(CameraHandle camera, Ref frame) => + public static void ReleaseCameraFrame(CameraHandle camera, Ref frame) => DllImport.ReleaseCameraFrame(camera, frame); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ReloadGamepadMappings() => + MaybeBool ISdl.ReloadGamepadMappings() => + (MaybeBool)(byte)((ISdl)this).ReloadGamepadMappingsRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReloadGamepadMappings")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReloadGamepadMappings() => DllImport.ReloadGamepadMappings(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.ReloadGamepadMappingsRaw() => ( - (delegate* unmanaged)( - _slots[609] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[627] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[609] = nativeContext.LoadFunction("SDL_ReloadGamepadMappings", "SDL3") + : _slots[627] = nativeContext.LoadFunction("SDL_ReloadGamepadMappings", "SDL3") ) )(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ReloadGamepadMappings")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ReloadGamepadMappings() => DllImport.ReloadGamepadMappings(); + public static byte ReloadGamepadMappingsRaw() => DllImport.ReloadGamepadMappingsRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RemovePath([NativeTypeName("const char *")] sbyte* path) => + void ISdl.RemoveEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + void* userdata + ) => ( - (delegate* unmanaged)( - _slots[610] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[628] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[628] = nativeContext.LoadFunction("SDL_RemoveEventWatch", "SDL3") + ) + )(filter, userdata); + + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveEventWatch")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void RemoveEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + void* userdata + ) => DllImport.RemoveEventWatch(filter, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.RemoveEventWatch([NativeTypeName("SDL_EventFilter")] EventFilter filter, Ref userdata) + { + fixed (void* __dsl_userdata = userdata) + { + ((ISdl)this).RemoveEventWatch(filter, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveEventWatch")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void RemoveEventWatch( + [NativeTypeName("SDL_EventFilter")] EventFilter filter, + Ref userdata + ) => DllImport.RemoveEventWatch(filter, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.RemoveHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + void* userdata + ) => + ( + (delegate* unmanaged)( + _slots[629] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[610] = nativeContext.LoadFunction("SDL_RemovePath", "SDL3") + : _slots[629] = nativeContext.LoadFunction("SDL_RemoveHintCallback", "SDL3") + ) + )(name, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveHintCallback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void RemoveHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + void* userdata + ) => DllImport.RemoveHintCallback(name, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.RemoveHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_name = name) + { + ((ISdl)this).RemoveHintCallback(__dsl_name, callback, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveHintCallback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void RemoveHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] HintCallback callback, + Ref userdata + ) => DllImport.RemoveHintCallback(name, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RemovePath([NativeTypeName("const char *")] sbyte* path) => + ( + (delegate* unmanaged)( + _slots[630] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[630] = nativeContext.LoadFunction("SDL_RemovePath", "SDL3") ) )(path); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RemovePath([NativeTypeName("const char *")] sbyte* path) => + public static byte RemovePath([NativeTypeName("const char *")] sbyte* path) => DllImport.RemovePath(path); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RemovePath([NativeTypeName("const char *")] Ref path) + MaybeBool ISdl.RemovePath([NativeTypeName("const char *")] Ref path) { fixed (sbyte* __dsl_path = path) { - return (int)((ISdl)this).RemovePath(__dsl_path); + return (MaybeBool)(byte)((ISdl)this).RemovePath(__dsl_path); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RemovePath([NativeTypeName("const char *")] Ref path) => + public static MaybeBool RemovePath([NativeTypeName("const char *")] Ref path) => DllImport.RemovePath(path); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RemoveStoragePath( + byte ISdl.RemoveStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path ) => ( - (delegate* unmanaged)( - _slots[611] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[631] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[611] = nativeContext.LoadFunction("SDL_RemoveStoragePath", "SDL3") + : _slots[631] = nativeContext.LoadFunction("SDL_RemoveStoragePath", "SDL3") ) )(storage, path); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RemoveStoragePath( + public static byte RemoveStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path ) => DllImport.RemoveStoragePath(storage, path); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RemoveStoragePath( + MaybeBool ISdl.RemoveStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref path ) { fixed (sbyte* __dsl_path = path) { - return (int)((ISdl)this).RemoveStoragePath(storage, __dsl_path); + return (MaybeBool)(byte)((ISdl)this).RemoveStoragePath(storage, __dsl_path); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RemoveStoragePath( + public static MaybeBool RemoveStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref path ) => DllImport.RemoveStoragePath(storage, path); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => - (MaybeBool)(int)((ISdl)this).RemoveTimerRaw(id); + void ISdl.RemoveSurfaceAlternateImages(Surface* surface) => + ( + (delegate* unmanaged)( + _slots[632] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[632] = nativeContext.LoadFunction( + "SDL_RemoveSurfaceAlternateImages", + "SDL3" + ) + ) + )(surface); + + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveSurfaceAlternateImages")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void RemoveSurfaceAlternateImages(Surface* surface) => + DllImport.RemoveSurfaceAlternateImages(surface); - [return: NativeTypeName("SDL_bool")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.RemoveSurfaceAlternateImages(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + ((ISdl)this).RemoveSurfaceAlternateImages(__dsl_surface); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveSurfaceAlternateImages")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void RemoveSurfaceAlternateImages(Ref surface) => + DllImport.RemoveSurfaceAlternateImages(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => + (MaybeBool)(byte)((ISdl)this).RemoveTimerRaw(id); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => + public static MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => DllImport.RemoveTimer(id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => + byte ISdl.RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => ( - (delegate* unmanaged)( - _slots[612] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[633] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[612] = nativeContext.LoadFunction("SDL_RemoveTimer", "SDL3") + : _slots[633] = nativeContext.LoadFunction("SDL_RemoveTimer", "SDL3") ) )(id); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => + public static byte RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => DllImport.RemoveTimerRaw(id); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenamePath( + byte ISdl.RenamePath( [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ) => ( - (delegate* unmanaged)( - _slots[613] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[634] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[613] = nativeContext.LoadFunction("SDL_RenamePath", "SDL3") + : _slots[634] = nativeContext.LoadFunction("SDL_RenamePath", "SDL3") ) )(oldpath, newpath); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenamePath( + public static byte RenamePath( [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ) => DllImport.RenamePath(oldpath, newpath); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenamePath( + MaybeBool ISdl.RenamePath( [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath ) @@ -57319,42 +68021,44 @@ int ISdl.RenamePath( fixed (sbyte* __dsl_newpath = newpath) fixed (sbyte* __dsl_oldpath = oldpath) { - return (int)((ISdl)this).RenamePath(__dsl_oldpath, __dsl_newpath); + return (MaybeBool)(byte)((ISdl)this).RenamePath(__dsl_oldpath, __dsl_newpath); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenamePath( + public static MaybeBool RenamePath( [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath ) => DllImport.RenamePath(oldpath, newpath); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenameStoragePath( + byte ISdl.RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ) => ( - (delegate* unmanaged)( - _slots[614] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[635] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[614] = nativeContext.LoadFunction("SDL_RenameStoragePath", "SDL3") + : _slots[635] = nativeContext.LoadFunction("SDL_RenameStoragePath", "SDL3") ) )(storage, oldpath, newpath); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenameStoragePath( + public static byte RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] sbyte* oldpath, [NativeTypeName("const char *")] sbyte* newpath ) => DllImport.RenameStoragePath(storage, oldpath, newpath); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenameStoragePath( + MaybeBool ISdl.RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath @@ -57363,62 +68067,77 @@ int ISdl.RenameStoragePath( fixed (sbyte* __dsl_newpath = newpath) fixed (sbyte* __dsl_oldpath = oldpath) { - return (int)((ISdl)this).RenameStoragePath(storage, __dsl_oldpath, __dsl_newpath); + return (MaybeBool) + (byte)((ISdl)this).RenameStoragePath(storage, __dsl_oldpath, __dsl_newpath); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenameStoragePath( + public static MaybeBool RenameStoragePath( StorageHandle storage, [NativeTypeName("const char *")] Ref oldpath, [NativeTypeName("const char *")] Ref newpath ) => DllImport.RenameStoragePath(storage, oldpath, newpath); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderClear(RendererHandle renderer) => + MaybeBool ISdl.RenderClear(RendererHandle renderer) => + (MaybeBool)(byte)((ISdl)this).RenderClearRaw(renderer); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RenderClear(RendererHandle renderer) => + DllImport.RenderClear(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RenderClearRaw(RendererHandle renderer) => ( - (delegate* unmanaged)( - _slots[615] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[636] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[615] = nativeContext.LoadFunction("SDL_RenderClear", "SDL3") + : _slots[636] = nativeContext.LoadFunction("SDL_RenderClear", "SDL3") ) )(renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderClear(RendererHandle renderer) => DllImport.RenderClear(renderer); + public static byte RenderClearRaw(RendererHandle renderer) => + DllImport.RenderClearRaw(renderer); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.RenderClipEnabled(RendererHandle renderer) => - (MaybeBool)(int)((ISdl)this).RenderClipEnabledRaw(renderer); + MaybeBool ISdl.RenderClipEnabled(RendererHandle renderer) => + (MaybeBool)(byte)((ISdl)this).RenderClipEnabledRaw(renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool RenderClipEnabled(RendererHandle renderer) => + public static MaybeBool RenderClipEnabled(RendererHandle renderer) => DllImport.RenderClipEnabled(renderer); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderClipEnabledRaw(RendererHandle renderer) => + byte ISdl.RenderClipEnabledRaw(RendererHandle renderer) => ( - (delegate* unmanaged)( - _slots[616] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[637] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[616] = nativeContext.LoadFunction("SDL_RenderClipEnabled", "SDL3") + : _slots[637] = nativeContext.LoadFunction("SDL_RenderClipEnabled", "SDL3") ) )(renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderClipEnabledRaw(RendererHandle renderer) => + public static byte RenderClipEnabledRaw(RendererHandle renderer) => DllImport.RenderClipEnabledRaw(renderer); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderCoordinatesFromWindow( + byte ISdl.RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -57426,19 +68145,20 @@ int ISdl.RenderCoordinatesFromWindow( float* y ) => ( - (delegate* unmanaged)( - _slots[617] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[638] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[617] = nativeContext.LoadFunction( + : _slots[638] = nativeContext.LoadFunction( "SDL_RenderCoordinatesFromWindow", "SDL3" ) ) )(renderer, window_x, window_y, x, y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderCoordinatesFromWindow( + public static byte RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -57447,7 +68167,7 @@ public static int RenderCoordinatesFromWindow( ) => DllImport.RenderCoordinatesFromWindow(renderer, window_x, window_y, x, y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderCoordinatesFromWindow( + MaybeBool ISdl.RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -57458,21 +68178,23 @@ Ref y fixed (float* __dsl_y = y) fixed (float* __dsl_x = x) { - return (int) - ((ISdl)this).RenderCoordinatesFromWindow( - renderer, - window_x, - window_y, - __dsl_x, - __dsl_y - ); + return (MaybeBool) + (byte) + ((ISdl)this).RenderCoordinatesFromWindow( + renderer, + window_x, + window_y, + __dsl_x, + __dsl_y + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderCoordinatesFromWindow( + public static MaybeBool RenderCoordinatesFromWindow( RendererHandle renderer, float window_x, float window_y, @@ -57481,7 +68203,7 @@ Ref y ) => DllImport.RenderCoordinatesFromWindow(renderer, window_x, window_y, x, y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderCoordinatesToWindow( + byte ISdl.RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -57489,19 +68211,20 @@ int ISdl.RenderCoordinatesToWindow( float* window_y ) => ( - (delegate* unmanaged)( - _slots[618] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[639] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[618] = nativeContext.LoadFunction( + : _slots[639] = nativeContext.LoadFunction( "SDL_RenderCoordinatesToWindow", "SDL3" ) ) )(renderer, x, y, window_x, window_y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderCoordinatesToWindow( + public static byte RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -57510,7 +68233,7 @@ public static int RenderCoordinatesToWindow( ) => DllImport.RenderCoordinatesToWindow(renderer, x, y, window_x, window_y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderCoordinatesToWindow( + MaybeBool ISdl.RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -57521,21 +68244,23 @@ Ref window_y fixed (float* __dsl_window_y = window_y) fixed (float* __dsl_window_x = window_x) { - return (int) - ((ISdl)this).RenderCoordinatesToWindow( - renderer, - x, - y, - __dsl_window_x, - __dsl_window_y - ); + return (MaybeBool) + (byte) + ((ISdl)this).RenderCoordinatesToWindow( + renderer, + x, + y, + __dsl_window_x, + __dsl_window_y + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderCoordinatesToWindow( + public static MaybeBool RenderCoordinatesToWindow( RendererHandle renderer, float x, float y, @@ -57544,69 +68269,122 @@ Ref window_y ) => DllImport.RenderCoordinatesToWindow(renderer, x, y, window_x, window_y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderFillRect( + byte ISdl.RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] sbyte* str + ) => + ( + (delegate* unmanaged)( + _slots[640] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[640] = nativeContext.LoadFunction("SDL_RenderDebugText", "SDL3") + ) + )(renderer, x, y, str); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderDebugText")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] sbyte* str + ) => DllImport.RenderDebugText(renderer, x, y, str); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] Ref str + ) + { + fixed (sbyte* __dsl_str = str) + { + return (MaybeBool)(byte)((ISdl)this).RenderDebugText(renderer, x, y, __dsl_str); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderDebugText")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RenderDebugText( + RendererHandle renderer, + float x, + float y, + [NativeTypeName("const char *")] Ref str + ) => DllImport.RenderDebugText(renderer, x, y, str); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RenderFillRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect ) => ( - (delegate* unmanaged)( - _slots[619] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[641] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[619] = nativeContext.LoadFunction("SDL_RenderFillRect", "SDL3") + : _slots[641] = nativeContext.LoadFunction("SDL_RenderFillRect", "SDL3") ) )(renderer, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderFillRect( + public static byte RenderFillRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect ) => DllImport.RenderFillRect(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderFillRect( + MaybeBool ISdl.RenderFillRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ) { fixed (FRect* __dsl_rect = rect) { - return (int)((ISdl)this).RenderFillRect(renderer, __dsl_rect); + return (MaybeBool)(byte)((ISdl)this).RenderFillRect(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderFillRect( + public static MaybeBool RenderFillRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ) => DllImport.RenderFillRect(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderFillRects( + byte ISdl.RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ) => ( - (delegate* unmanaged)( - _slots[620] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[642] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[620] = nativeContext.LoadFunction("SDL_RenderFillRects", "SDL3") + : _slots[642] = nativeContext.LoadFunction("SDL_RenderFillRects", "SDL3") ) )(renderer, rects, count); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderFillRects( + public static byte RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ) => DllImport.RenderFillRects(renderer, rects, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderFillRects( + MaybeBool ISdl.RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count @@ -57614,41 +68392,44 @@ int count { fixed (FRect* __dsl_rects = rects) { - return (int)((ISdl)this).RenderFillRects(renderer, __dsl_rects, count); + return (MaybeBool) + (byte)((ISdl)this).RenderFillRects(renderer, __dsl_rects, count); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderFillRects( + public static MaybeBool RenderFillRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count ) => DllImport.RenderFillRects(renderer, rects, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderGeometry( + byte ISdl.RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, int num_vertices, [NativeTypeName("const int *")] int* indices, int num_indices ) => ( - (delegate* unmanaged)( - _slots[621] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[643] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[621] = nativeContext.LoadFunction("SDL_RenderGeometry", "SDL3") + : _slots[643] = nativeContext.LoadFunction("SDL_RenderGeometry", "SDL3") ) )(renderer, texture, vertices, num_vertices, indices, num_indices); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderGeometry( + public static byte RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, int num_vertices, [NativeTypeName("const int *")] int* indices, @@ -57656,9 +68437,9 @@ int num_indices ) => DllImport.RenderGeometry(renderer, texture, vertices, num_vertices, indices, num_indices); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderGeometry( + MaybeBool ISdl.RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_Vertex *")] Ref vertices, int num_vertices, [NativeTypeName("const int *")] Ref indices, @@ -57667,25 +68448,28 @@ int num_indices { fixed (int* __dsl_indices = indices) fixed (Vertex* __dsl_vertices = vertices) - { - return (int) - ((ISdl)this).RenderGeometry( - renderer, - texture, - __dsl_vertices, - num_vertices, - __dsl_indices, - num_indices - ); + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte) + ((ISdl)this).RenderGeometry( + renderer, + __dsl_texture, + __dsl_vertices, + num_vertices, + __dsl_indices, + num_indices + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderGeometry( + public static MaybeBool RenderGeometry( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_Vertex *")] Ref vertices, int num_vertices, [NativeTypeName("const int *")] Ref indices, @@ -57693,12 +68477,12 @@ int num_indices ) => DllImport.RenderGeometry(renderer, texture, vertices, num_vertices, indices, num_indices); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderGeometryRaw( + byte ISdl.RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const float *")] float* xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Color* color, + [NativeTypeName("const SDL_FColor *")] FColor* color, int color_stride, [NativeTypeName("const float *")] float* uv, int uv_stride, @@ -57710,10 +68494,10 @@ int size_indices ( (delegate* unmanaged< RendererHandle, - TextureHandle, + Texture*, float*, int, - Color*, + FColor*, int, float*, int, @@ -57721,10 +68505,10 @@ int size_indices void*, int, int, - int>)( - _slots[622] is not null and var loadedFnPtr + byte>)( + _slots[644] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[622] = nativeContext.LoadFunction("SDL_RenderGeometryRaw", "SDL3") + : _slots[644] = nativeContext.LoadFunction("SDL_RenderGeometryRaw", "SDL3") ) )( renderer, @@ -57741,14 +68525,15 @@ _slots[622] is not null and var loadedFnPtr size_indices ); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderGeometryRaw( + public static byte RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const float *")] float* xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Color* color, + [NativeTypeName("const SDL_FColor *")] FColor* color, int color_stride, [NativeTypeName("const float *")] float* uv, int uv_stride, @@ -57773,12 +68558,12 @@ int size_indices ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderGeometryRaw( + MaybeBool ISdl.RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const float *")] Ref xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Ref color, + [NativeTypeName("const SDL_FColor *")] Ref color, int color_stride, [NativeTypeName("const float *")] Ref uv, int uv_stride, @@ -57790,36 +68575,39 @@ int size_indices { fixed (void* __dsl_indices = indices) fixed (float* __dsl_uv = uv) - fixed (Color* __dsl_color = color) + fixed (FColor* __dsl_color = color) fixed (float* __dsl_xy = xy) - { - return (int) - ((ISdl)this).RenderGeometryRaw( - renderer, - texture, - __dsl_xy, - xy_stride, - __dsl_color, - color_stride, - __dsl_uv, - uv_stride, - num_vertices, - __dsl_indices, - num_indices, - size_indices - ); + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte) + ((ISdl)this).RenderGeometryRaw( + renderer, + __dsl_texture, + __dsl_xy, + xy_stride, + __dsl_color, + color_stride, + __dsl_uv, + uv_stride, + num_vertices, + __dsl_indices, + num_indices, + size_indices + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderGeometryRaw( + public static MaybeBool RenderGeometryRaw( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const float *")] Ref xy, int xy_stride, - [NativeTypeName("const SDL_Color *")] Ref color, + [NativeTypeName("const SDL_FColor *")] Ref color, int color_stride, [NativeTypeName("const float *")] Ref uv, int uv_stride, @@ -57844,195 +68632,72 @@ int size_indices ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderGeometryRawFloat( - RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] float* xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] FColor* color, - int color_stride, - [NativeTypeName("const float *")] float* uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] void* indices, - int num_indices, - int size_indices - ) => - ( - (delegate* unmanaged< - RendererHandle, - TextureHandle, - float*, - int, - FColor*, - int, - float*, - int, - int, - void*, - int, - int, - int>)( - _slots[623] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[623] = nativeContext.LoadFunction("SDL_RenderGeometryRawFloat", "SDL3") - ) - )( - renderer, - texture, - xy, - xy_stride, - color, - color_stride, - uv, - uv_stride, - num_vertices, - indices, - num_indices, - size_indices - ); - - [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderGeometryRawFloat( - RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] float* xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] FColor* color, - int color_stride, - [NativeTypeName("const float *")] float* uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] void* indices, - int num_indices, - int size_indices - ) => - DllImport.RenderGeometryRawFloat( - renderer, - texture, - xy, - xy_stride, - color, - color_stride, - uv, - uv_stride, - num_vertices, - indices, - num_indices, - size_indices - ); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderGeometryRawFloat( + MaybeBool ISdl.RenderLine( RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] Ref xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] Ref color, - int color_stride, - [NativeTypeName("const float *")] Ref uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] Ref indices, - int num_indices, - int size_indices - ) - { - fixed (void* __dsl_indices = indices) - fixed (float* __dsl_uv = uv) - fixed (FColor* __dsl_color = color) - fixed (float* __dsl_xy = xy) - { - return (int) - ((ISdl)this).RenderGeometryRawFloat( - renderer, - texture, - __dsl_xy, - xy_stride, - __dsl_color, - color_stride, - __dsl_uv, - uv_stride, - num_vertices, - __dsl_indices, - num_indices, - size_indices - ); - } - } + float x1, + float y1, + float x2, + float y2 + ) => (MaybeBool)(byte)((ISdl)this).RenderLineRaw(renderer, x1, y1, x2, y2); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderGeometryRawFloat( + public static MaybeBool RenderLine( RendererHandle renderer, - TextureHandle texture, - [NativeTypeName("const float *")] Ref xy, - int xy_stride, - [NativeTypeName("const SDL_FColor *")] Ref color, - int color_stride, - [NativeTypeName("const float *")] Ref uv, - int uv_stride, - int num_vertices, - [NativeTypeName("const void *")] Ref indices, - int num_indices, - int size_indices - ) => - DllImport.RenderGeometryRawFloat( - renderer, - texture, - xy, - xy_stride, - color, - color_stride, - uv, - uv_stride, - num_vertices, - indices, - num_indices, - size_indices - ); + float x1, + float y1, + float x2, + float y2 + ) => DllImport.RenderLine(renderer, x1, y1, x2, y2); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderLine(RendererHandle renderer, float x1, float y1, float x2, float y2) => + byte ISdl.RenderLineRaw(RendererHandle renderer, float x1, float y1, float x2, float y2) => ( - (delegate* unmanaged)( - _slots[624] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[645] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[624] = nativeContext.LoadFunction("SDL_RenderLine", "SDL3") + : _slots[645] = nativeContext.LoadFunction("SDL_RenderLine", "SDL3") ) )(renderer, x1, y1, x2, y2); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderLine(RendererHandle renderer, float x1, float y1, float x2, float y2) => - DllImport.RenderLine(renderer, x1, y1, x2, y2); + public static byte RenderLineRaw( + RendererHandle renderer, + float x1, + float y1, + float x2, + float y2 + ) => DllImport.RenderLineRaw(renderer, x1, y1, x2, y2); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderLines( + byte ISdl.RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ) => ( - (delegate* unmanaged)( - _slots[625] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[646] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[625] = nativeContext.LoadFunction("SDL_RenderLines", "SDL3") + : _slots[646] = nativeContext.LoadFunction("SDL_RenderLines", "SDL3") ) )(renderer, points, count); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderLines( + public static byte RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ) => DllImport.RenderLines(renderer, points, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderLines( + MaybeBool ISdl.RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count @@ -58040,58 +68705,72 @@ int count { fixed (FPoint* __dsl_points = points) { - return (int)((ISdl)this).RenderLines(renderer, __dsl_points, count); + return (MaybeBool)(byte)((ISdl)this).RenderLines(renderer, __dsl_points, count); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderLines( + public static MaybeBool RenderLines( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count ) => DllImport.RenderLines(renderer, points, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderPoint(RendererHandle renderer, float x, float y) => + MaybeBool ISdl.RenderPoint(RendererHandle renderer, float x, float y) => + (MaybeBool)(byte)((ISdl)this).RenderPointRaw(renderer, x, y); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RenderPoint(RendererHandle renderer, float x, float y) => + DllImport.RenderPoint(renderer, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RenderPointRaw(RendererHandle renderer, float x, float y) => ( - (delegate* unmanaged)( - _slots[626] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[647] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[626] = nativeContext.LoadFunction("SDL_RenderPoint", "SDL3") + : _slots[647] = nativeContext.LoadFunction("SDL_RenderPoint", "SDL3") ) )(renderer, x, y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderPoint(RendererHandle renderer, float x, float y) => - DllImport.RenderPoint(renderer, x, y); + public static byte RenderPointRaw(RendererHandle renderer, float x, float y) => + DllImport.RenderPointRaw(renderer, x, y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderPoints( + byte ISdl.RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ) => ( - (delegate* unmanaged)( - _slots[627] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[648] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[627] = nativeContext.LoadFunction("SDL_RenderPoints", "SDL3") + : _slots[648] = nativeContext.LoadFunction("SDL_RenderPoints", "SDL3") ) )(renderer, points, count); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderPoints( + public static byte RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] FPoint* points, int count ) => DllImport.RenderPoints(renderer, points, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderPoints( + MaybeBool ISdl.RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count @@ -58099,32 +68778,46 @@ int count { fixed (FPoint* __dsl_points = points) { - return (int)((ISdl)this).RenderPoints(renderer, __dsl_points, count); + return (MaybeBool)(byte)((ISdl)this).RenderPoints(renderer, __dsl_points, count); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderPoints( + public static MaybeBool RenderPoints( RendererHandle renderer, [NativeTypeName("const SDL_FPoint *")] Ref points, int count ) => DllImport.RenderPoints(renderer, points, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderPresent(RendererHandle renderer) => + MaybeBool ISdl.RenderPresent(RendererHandle renderer) => + (MaybeBool)(byte)((ISdl)this).RenderPresentRaw(renderer); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RenderPresent(RendererHandle renderer) => + DllImport.RenderPresent(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RenderPresentRaw(RendererHandle renderer) => ( - (delegate* unmanaged)( - _slots[628] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[649] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[628] = nativeContext.LoadFunction("SDL_RenderPresent", "SDL3") + : _slots[649] = nativeContext.LoadFunction("SDL_RenderPresent", "SDL3") ) )(renderer); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderPresent(RendererHandle renderer) => DllImport.RenderPresent(renderer); + public static byte RenderPresentRaw(RendererHandle renderer) => + DllImport.RenderPresentRaw(renderer); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] Surface* ISdl.RenderReadPixels( @@ -58133,9 +68826,9 @@ _slots[628] is not null and var loadedFnPtr ) => ( (delegate* unmanaged)( - _slots[629] is not null and var loadedFnPtr + _slots[650] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[629] = nativeContext.LoadFunction("SDL_RenderReadPixels", "SDL3") + : _slots[650] = nativeContext.LoadFunction("SDL_RenderReadPixels", "SDL3") ) )(renderer, rect); @@ -58167,69 +68860,72 @@ public static Ptr RenderReadPixels( ) => DllImport.RenderReadPixels(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderRect( + byte ISdl.RenderRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect ) => ( - (delegate* unmanaged)( - _slots[630] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[651] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[630] = nativeContext.LoadFunction("SDL_RenderRect", "SDL3") + : _slots[651] = nativeContext.LoadFunction("SDL_RenderRect", "SDL3") ) )(renderer, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderRect( + public static byte RenderRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect ) => DllImport.RenderRect(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderRect( + MaybeBool ISdl.RenderRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ) { fixed (FRect* __dsl_rect = rect) { - return (int)((ISdl)this).RenderRect(renderer, __dsl_rect); + return (MaybeBool)(byte)((ISdl)this).RenderRect(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderRect( + public static MaybeBool RenderRect( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rect ) => DllImport.RenderRect(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderRects( + byte ISdl.RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ) => ( - (delegate* unmanaged)( - _slots[631] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[652] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[631] = nativeContext.LoadFunction("SDL_RenderRects", "SDL3") + : _slots[652] = nativeContext.LoadFunction("SDL_RenderRects", "SDL3") ) )(renderer, rects, count); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderRects( + public static byte RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] FRect* rects, int count ) => DllImport.RenderRects(renderer, rects, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderRects( + MaybeBool ISdl.RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count @@ -58237,172 +68933,377 @@ int count { fixed (FRect* __dsl_rects = rects) { - return (int)((ISdl)this).RenderRects(renderer, __dsl_rects, count); + return (MaybeBool)(byte)((ISdl)this).RenderRects(renderer, __dsl_rects, count); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderRects( + public static MaybeBool RenderRects( RendererHandle renderer, [NativeTypeName("const SDL_FRect *")] Ref rects, int count ) => DllImport.RenderRects(renderer, rects, count); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderTexture( + byte ISdl.RenderTexture( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, [NativeTypeName("const SDL_FRect *")] FRect* dstrect ) => ( - (delegate* unmanaged)( - _slots[632] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[653] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[632] = nativeContext.LoadFunction("SDL_RenderTexture", "SDL3") + : _slots[653] = nativeContext.LoadFunction("SDL_RenderTexture", "SDL3") ) )(renderer, texture, srcrect, dstrect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderTexture( + public static byte RenderTexture( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, [NativeTypeName("const SDL_FRect *")] FRect* dstrect ) => DllImport.RenderTexture(renderer, texture, srcrect, dstrect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderTexture( + MaybeBool ISdl.RenderTexture( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, [NativeTypeName("const SDL_FRect *")] Ref dstrect ) { fixed (FRect* __dsl_dstrect = dstrect) fixed (FRect* __dsl_srcrect = srcrect) - { - return (int)((ISdl)this).RenderTexture(renderer, texture, __dsl_srcrect, __dsl_dstrect); + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte) + ((ISdl)this).RenderTexture( + renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_dstrect + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderTexture( + public static MaybeBool RenderTexture( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, [NativeTypeName("const SDL_FRect *")] Ref dstrect ) => DllImport.RenderTexture(renderer, texture, srcrect, dstrect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderTextureRotated( + byte ISdl.RenderTexture9Grid( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ) => + ( + (delegate* unmanaged< + RendererHandle, + Texture*, + FRect*, + float, + float, + float, + float, + float, + FRect*, + byte>)( + _slots[654] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[654] = nativeContext.LoadFunction("SDL_RenderTexture9Grid", "SDL3") + ) + )( + renderer, + texture, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + dstrect + ); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9Grid")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte RenderTexture9Grid( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ) => + DllImport.RenderTexture9Grid( + renderer, + texture, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + dstrect + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RenderTexture9Grid( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ) + { + fixed (FRect* __dsl_dstrect = dstrect) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte) + ((ISdl)this).RenderTexture9Grid( + renderer, + __dsl_texture, + __dsl_srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + __dsl_dstrect + ); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9Grid")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RenderTexture9Grid( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ) => + DllImport.RenderTexture9Grid( + renderer, + texture, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + dstrect + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RenderTextureRotated( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect, + double angle, + [NativeTypeName("const SDL_FPoint *")] FPoint* center, + FlipMode flip + ) => + ( + (delegate* unmanaged< + RendererHandle, + Texture*, + FRect*, + FRect*, + double, + FPoint*, + FlipMode, + byte>)( + _slots[655] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[655] = nativeContext.LoadFunction("SDL_RenderTextureRotated", "SDL3") + ) + )(renderer, texture, srcrect, dstrect, angle, center, flip); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte RenderTextureRotated( + RendererHandle renderer, + Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect, + double angle, + [NativeTypeName("const SDL_FPoint *")] FPoint* center, + FlipMode flip + ) => DllImport.RenderTextureRotated(renderer, texture, srcrect, dstrect, angle, center, flip); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RenderTextureRotated( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FRect *")] Ref dstrect, + double angle, + [NativeTypeName("const SDL_FPoint *")] Ref center, + FlipMode flip + ) + { + fixed (FPoint* __dsl_center = center) + fixed (FRect* __dsl_dstrect = dstrect) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte) + ((ISdl)this).RenderTextureRotated( + renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_dstrect, + angle, + __dsl_center, + flip + ); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RenderTextureRotated( + RendererHandle renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FRect *")] Ref dstrect, + double angle, + [NativeTypeName("const SDL_FPoint *")] Ref center, + FlipMode flip + ) => DllImport.RenderTextureRotated(renderer, texture, srcrect, dstrect, angle, center, flip); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RenderTextureTiled( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, - [NativeTypeName("const SDL_FRect *")] FRect* dstrect, - [NativeTypeName("const double")] double angle, - [NativeTypeName("const SDL_FPoint *")] FPoint* center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect ) => ( - (delegate* unmanaged< - RendererHandle, - TextureHandle, - FRect*, - FRect*, - double, - FPoint*, - FlipMode, - int>)( - _slots[633] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[656] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[633] = nativeContext.LoadFunction("SDL_RenderTextureRotated", "SDL3") + : _slots[656] = nativeContext.LoadFunction("SDL_RenderTextureTiled", "SDL3") ) - )(renderer, texture, srcrect, dstrect, angle, center, flip); + )(renderer, texture, srcrect, scale, dstrect); - [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureTiled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderTextureRotated( + public static byte RenderTextureTiled( RendererHandle renderer, - TextureHandle texture, + Texture* texture, [NativeTypeName("const SDL_FRect *")] FRect* srcrect, - [NativeTypeName("const SDL_FRect *")] FRect* dstrect, - [NativeTypeName("const double")] double angle, - [NativeTypeName("const SDL_FPoint *")] FPoint* center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip - ) => DllImport.RenderTextureRotated(renderer, texture, srcrect, dstrect, angle, center, flip); + float scale, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ) => DllImport.RenderTextureTiled(renderer, texture, srcrect, scale, dstrect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderTextureRotated( + MaybeBool ISdl.RenderTextureTiled( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, - [NativeTypeName("const SDL_FRect *")] Ref dstrect, - [NativeTypeName("const double")] double angle, - [NativeTypeName("const SDL_FPoint *")] Ref center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip + float scale, + [NativeTypeName("const SDL_FRect *")] Ref dstrect ) { - fixed (FPoint* __dsl_center = center) fixed (FRect* __dsl_dstrect = dstrect) fixed (FRect* __dsl_srcrect = srcrect) - { - return (int) - ((ISdl)this).RenderTextureRotated( - renderer, - texture, - __dsl_srcrect, - __dsl_dstrect, - angle, - __dsl_center, - flip - ); + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte) + ((ISdl)this).RenderTextureTiled( + renderer, + __dsl_texture, + __dsl_srcrect, + scale, + __dsl_dstrect + ); } } + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureTiled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderTextureRotated( + public static MaybeBool RenderTextureTiled( RendererHandle renderer, - TextureHandle texture, + Ref texture, [NativeTypeName("const SDL_FRect *")] Ref srcrect, - [NativeTypeName("const SDL_FRect *")] Ref dstrect, - [NativeTypeName("const double")] double angle, - [NativeTypeName("const SDL_FPoint *")] Ref center, - [NativeTypeName("const SDL_FlipMode")] FlipMode flip - ) => DllImport.RenderTextureRotated(renderer, texture, srcrect, dstrect, angle, center, flip); + float scale, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ) => DllImport.RenderTextureTiled(renderer, texture, srcrect, scale, dstrect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.RenderViewportSet(RendererHandle renderer) => - (MaybeBool)(int)((ISdl)this).RenderViewportSetRaw(renderer); + MaybeBool ISdl.RenderViewportSet(RendererHandle renderer) => + (MaybeBool)(byte)((ISdl)this).RenderViewportSetRaw(renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool RenderViewportSet(RendererHandle renderer) => + public static MaybeBool RenderViewportSet(RendererHandle renderer) => DllImport.RenderViewportSet(renderer); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RenderViewportSetRaw(RendererHandle renderer) => + byte ISdl.RenderViewportSetRaw(RendererHandle renderer) => ( - (delegate* unmanaged)( - _slots[634] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[657] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[634] = nativeContext.LoadFunction("SDL_RenderViewportSet", "SDL3") + : _slots[657] = nativeContext.LoadFunction("SDL_RenderViewportSet", "SDL3") ) )(renderer); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RenderViewportSetRaw(RendererHandle renderer) => + public static byte RenderViewportSetRaw(RendererHandle renderer) => DllImport.RenderViewportSetRaw(renderer); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -58414,9 +69315,9 @@ int line ) => ( (delegate* unmanaged)( - _slots[635] is not null and var loadedFnPtr + _slots[658] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[635] = nativeContext.LoadFunction("SDL_ReportAssertion", "SDL3") + : _slots[658] = nativeContext.LoadFunction("SDL_ReportAssertion", "SDL3") ) )(data, func, file, line); @@ -58460,9 +69361,9 @@ int line void ISdl.ResetAssertionReport() => ( (delegate* unmanaged)( - _slots[636] is not null and var loadedFnPtr + _slots[659] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[636] = nativeContext.LoadFunction("SDL_ResetAssertionReport", "SDL3") + : _slots[659] = nativeContext.LoadFunction("SDL_ResetAssertionReport", "SDL3") ) )(); @@ -58471,44 +69372,44 @@ _slots[636] is not null and var loadedFnPtr public static void ResetAssertionReport() => DllImport.ResetAssertionReport(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ResetHint([NativeTypeName("const char *")] sbyte* name) => + byte ISdl.ResetHint([NativeTypeName("const char *")] sbyte* name) => ( - (delegate* unmanaged)( - _slots[637] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[660] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[637] = nativeContext.LoadFunction("SDL_ResetHint", "SDL3") + : _slots[660] = nativeContext.LoadFunction("SDL_ResetHint", "SDL3") ) )(name); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ResetHint([NativeTypeName("const char *")] sbyte* name) => + public static byte ResetHint([NativeTypeName("const char *")] sbyte* name) => DllImport.ResetHint(name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ResetHint([NativeTypeName("const char *")] Ref name) + MaybeBool ISdl.ResetHint([NativeTypeName("const char *")] Ref name) { fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)((ISdl)this).ResetHint(__dsl_name); + return (MaybeBool)(byte)((ISdl)this).ResetHint(__dsl_name); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref name) => + public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref name) => DllImport.ResetHint(name); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.ResetHints() => ( (delegate* unmanaged)( - _slots[638] is not null and var loadedFnPtr + _slots[661] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[638] = nativeContext.LoadFunction("SDL_ResetHints", "SDL3") + : _slots[661] = nativeContext.LoadFunction("SDL_ResetHints", "SDL3") ) )(); @@ -58520,9 +69421,9 @@ _slots[638] is not null and var loadedFnPtr void ISdl.ResetKeyboard() => ( (delegate* unmanaged)( - _slots[639] is not null and var loadedFnPtr + _slots[662] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[639] = nativeContext.LoadFunction("SDL_ResetKeyboard", "SDL3") + : _slots[662] = nativeContext.LoadFunction("SDL_ResetKeyboard", "SDL3") ) )(); @@ -58531,120 +69432,297 @@ _slots[639] is not null and var loadedFnPtr public static void ResetKeyboard() => DllImport.ResetKeyboard(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RestoreWindow(WindowHandle window) => + void ISdl.ResetLogPriorities() => ( - (delegate* unmanaged)( - _slots[640] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[663] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[663] = nativeContext.LoadFunction("SDL_ResetLogPriorities", "SDL3") + ) + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_ResetLogPriorities")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ResetLogPriorities() => DllImport.ResetLogPriorities(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RestoreWindow(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).RestoreWindowRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RestoreWindow(WindowHandle window) => + DllImport.RestoreWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RestoreWindowRaw(WindowHandle window) => + ( + (delegate* unmanaged)( + _slots[664] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[640] = nativeContext.LoadFunction("SDL_RestoreWindow", "SDL3") + : _slots[664] = nativeContext.LoadFunction("SDL_RestoreWindow", "SDL3") ) )(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RestoreWindow(WindowHandle window) => DllImport.RestoreWindow(window); + public static byte RestoreWindowRaw(WindowHandle window) => DllImport.RestoreWindowRaw(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + (MaybeBool)(byte)((ISdl)this).ResumeAudioDeviceRaw(dev); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ResumeAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ) => DllImport.ResumeAudioDevice(dev); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + byte ISdl.ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => ( - (delegate* unmanaged)( - _slots[641] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[665] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[641] = nativeContext.LoadFunction("SDL_ResumeAudioDevice", "SDL3") + : _slots[665] = nativeContext.LoadFunction("SDL_ResumeAudioDevice", "SDL3") ) )(dev); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioDevice")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => - DllImport.ResumeAudioDevice(dev); + public static byte ResumeAudioDeviceRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + DllImport.ResumeAudioDeviceRaw(dev); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ResumeAudioStreamDevice(AudioStreamHandle stream) => + (MaybeBool)(byte)((ISdl)this).ResumeAudioStreamDeviceRaw(stream); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioStreamDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ResumeAudioStreamDevice(AudioStreamHandle stream) => + DllImport.ResumeAudioStreamDevice(stream); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ResumeHaptic(HapticHandle haptic) => + byte ISdl.ResumeAudioStreamDeviceRaw(AudioStreamHandle stream) => ( - (delegate* unmanaged)( - _slots[642] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[666] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[666] = nativeContext.LoadFunction( + "SDL_ResumeAudioStreamDevice", + "SDL3" + ) + ) + )(stream); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeAudioStreamDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte ResumeAudioStreamDeviceRaw(AudioStreamHandle stream) => + DllImport.ResumeAudioStreamDeviceRaw(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ResumeHaptic(HapticHandle haptic) => + (MaybeBool)(byte)((ISdl)this).ResumeHapticRaw(haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ResumeHaptic(HapticHandle haptic) => + DllImport.ResumeHaptic(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.ResumeHapticRaw(HapticHandle haptic) => + ( + (delegate* unmanaged)( + _slots[667] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[642] = nativeContext.LoadFunction("SDL_ResumeHaptic", "SDL3") + : _slots[667] = nativeContext.LoadFunction("SDL_ResumeHaptic", "SDL3") ) )(haptic); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ResumeHaptic(HapticHandle haptic) => DllImport.ResumeHaptic(haptic); + public static byte ResumeHapticRaw(HapticHandle haptic) => DllImport.ResumeHapticRaw(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RumbleGamepad( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + (MaybeBool) + (byte) + ((ISdl)this).RumbleGamepadRaw( + gamepad, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RumbleGamepad( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => DllImport.RumbleGamepad(gamepad, low_frequency_rumble, high_frequency_rumble, duration_ms); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RumbleGamepad( + byte ISdl.RumbleGamepadRaw( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms ) => ( - (delegate* unmanaged)( - _slots[643] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[668] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[643] = nativeContext.LoadFunction("SDL_RumbleGamepad", "SDL3") + : _slots[668] = nativeContext.LoadFunction("SDL_RumbleGamepad", "SDL3") ) )(gamepad, low_frequency_rumble, high_frequency_rumble, duration_ms); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RumbleGamepad( + public static byte RumbleGamepadRaw( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms - ) => DllImport.RumbleGamepad(gamepad, low_frequency_rumble, high_frequency_rumble, duration_ms); + ) => + DllImport.RumbleGamepadRaw( + gamepad, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RumbleGamepadTriggers( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + (MaybeBool) + (byte) + ((ISdl)this).RumbleGamepadTriggersRaw( + gamepad, + left_rumble, + right_rumble, + duration_ms + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RumbleGamepadTriggers( + GamepadHandle gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => DllImport.RumbleGamepadTriggers(gamepad, left_rumble, right_rumble, duration_ms); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RumbleGamepadTriggers( + byte ISdl.RumbleGamepadTriggersRaw( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms ) => ( - (delegate* unmanaged)( - _slots[644] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[669] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[644] = nativeContext.LoadFunction("SDL_RumbleGamepadTriggers", "SDL3") + : _slots[669] = nativeContext.LoadFunction("SDL_RumbleGamepadTriggers", "SDL3") ) )(gamepad, left_rumble, right_rumble, duration_ms); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RumbleGamepadTriggers( + public static byte RumbleGamepadTriggersRaw( GamepadHandle gamepad, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms - ) => DllImport.RumbleGamepadTriggers(gamepad, left_rumble, right_rumble, duration_ms); + ) => DllImport.RumbleGamepadTriggersRaw(gamepad, left_rumble, right_rumble, duration_ms); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RumbleJoystick( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + (MaybeBool) + (byte) + ((ISdl)this).RumbleJoystickRaw( + joystick, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RumbleJoystick( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + DllImport.RumbleJoystick( + joystick, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RumbleJoystick( + byte ISdl.RumbleJoystickRaw( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms ) => ( - (delegate* unmanaged)( - _slots[645] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[670] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[645] = nativeContext.LoadFunction("SDL_RumbleJoystick", "SDL3") + : _slots[670] = nativeContext.LoadFunction("SDL_RumbleJoystick", "SDL3") ) )(joystick, low_frequency_rumble, high_frequency_rumble, duration_ms); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RumbleJoystick( + public static byte RumbleJoystickRaw( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms ) => - DllImport.RumbleJoystick( + DllImport.RumbleJoystickRaw( joystick, low_frequency_rumble, high_frequency_rumble, @@ -58652,187 +69730,282 @@ public static int RumbleJoystick( ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RumbleJoystickTriggers( + MaybeBool ISdl.RumbleJoystickTriggers( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + (MaybeBool) + (byte) + ((ISdl)this).RumbleJoystickTriggersRaw( + joystick, + left_rumble, + right_rumble, + duration_ms + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RumbleJoystickTriggers( + JoystickHandle joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => DllImport.RumbleJoystickTriggers(joystick, left_rumble, right_rumble, duration_ms); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RumbleJoystickTriggersRaw( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms ) => ( - (delegate* unmanaged)( - _slots[646] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[671] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[646] = nativeContext.LoadFunction("SDL_RumbleJoystickTriggers", "SDL3") + : _slots[671] = nativeContext.LoadFunction("SDL_RumbleJoystickTriggers", "SDL3") ) )(joystick, left_rumble, right_rumble, duration_ms); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RumbleJoystickTriggers( + public static byte RumbleJoystickTriggersRaw( JoystickHandle joystick, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms - ) => DllImport.RumbleJoystickTriggers(joystick, left_rumble, right_rumble, duration_ms); + ) => DllImport.RumbleJoystickTriggersRaw(joystick, left_rumble, right_rumble, duration_ms); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RunHapticEffect( + HapticHandle haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) => (MaybeBool)(byte)((ISdl)this).RunHapticEffectRaw(haptic, effect, iterations); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RunHapticEffect( + HapticHandle haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) => DllImport.RunHapticEffect(haptic, effect, iterations); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.RunHapticEffect( + byte ISdl.RunHapticEffectRaw( HapticHandle haptic, int effect, [NativeTypeName("Uint32")] uint iterations ) => ( - (delegate* unmanaged)( - _slots[647] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[672] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[647] = nativeContext.LoadFunction("SDL_RunHapticEffect", "SDL3") + : _slots[672] = nativeContext.LoadFunction("SDL_RunHapticEffect", "SDL3") ) )(haptic, effect, iterations); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int RunHapticEffect( + public static byte RunHapticEffectRaw( HapticHandle haptic, int effect, [NativeTypeName("Uint32")] uint iterations - ) => DllImport.RunHapticEffect(haptic, effect, iterations); + ) => DllImport.RunHapticEffectRaw(haptic, effect, iterations); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file) => + byte ISdl.SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file) => ( - (delegate* unmanaged)( - _slots[648] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[673] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[648] = nativeContext.LoadFunction("SDL_SaveBMP", "SDL3") + : _slots[673] = nativeContext.LoadFunction("SDL_SaveBMP", "SDL3") ) )(surface, file); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file) => + public static byte SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file) => DllImport.SaveBMP(surface, file); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SaveBMP(Ref surface, [NativeTypeName("const char *")] Ref file) + MaybeBool ISdl.SaveBMP( + Ref surface, + [NativeTypeName("const char *")] Ref file + ) { fixed (sbyte* __dsl_file = file) fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).SaveBMP(__dsl_surface, __dsl_file); + return (MaybeBool)(byte)((ISdl)this).SaveBMP(__dsl_surface, __dsl_file); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SaveBMP( + public static MaybeBool SaveBMP( Ref surface, [NativeTypeName("const char *")] Ref file ) => DllImport.SaveBMP(surface, file); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SaveBMPIO( + byte ISdl.SaveBMPIO( Surface* surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ) => ( - (delegate* unmanaged)( - _slots[649] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[674] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[649] = nativeContext.LoadFunction("SDL_SaveBMP_IO", "SDL3") + : _slots[674] = nativeContext.LoadFunction("SDL_SaveBMP_IO", "SDL3") ) )(surface, dst, closeio); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SaveBMPIO( + public static byte SaveBMPIO( Surface* surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] int closeio + [NativeTypeName("bool")] byte closeio ) => DllImport.SaveBMPIO(surface, dst, closeio); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SaveBMPIO( + MaybeBool ISdl.SaveBMPIO( Ref surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) { fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).SaveBMPIO(__dsl_surface, dst, (int)closeio); + return (MaybeBool)(byte)((ISdl)this).SaveBMPIO(__dsl_surface, dst, (byte)closeio); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SaveBMPIO( + public static MaybeBool SaveBMPIO( Ref surface, IOStreamHandle dst, - [NativeTypeName("SDL_bool")] MaybeBool closeio + [NativeTypeName("bool")] MaybeBool closeio ) => DllImport.SaveBMPIO(surface, dst, closeio); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ScreenKeyboardShown(WindowHandle window) => - (MaybeBool)(int)((ISdl)this).ScreenKeyboardShownRaw(window); + Surface* ISdl.ScaleSurface(Surface* surface, int width, int height, ScaleMode scaleMode) => + ( + (delegate* unmanaged)( + _slots[675] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[675] = nativeContext.LoadFunction("SDL_ScaleSurface", "SDL3") + ) + )(surface, width, height, scaleMode); + + [NativeFunction("SDL3", EntryPoint = "SDL_ScaleSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* ScaleSurface( + Surface* surface, + int width, + int height, + ScaleMode scaleMode + ) => DllImport.ScaleSurface(surface, width, height, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.ScaleSurface(Ref surface, int width, int height, ScaleMode scaleMode) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)((ISdl)this).ScaleSurface(__dsl_surface, width, height, scaleMode); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScaleSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr ScaleSurface( + Ref surface, + int width, + int height, + ScaleMode scaleMode + ) => DllImport.ScaleSurface(surface, width, height, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ScreenKeyboardShown(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).ScreenKeyboardShownRaw(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ScreenKeyboardShown(WindowHandle window) => + public static MaybeBool ScreenKeyboardShown(WindowHandle window) => DllImport.ScreenKeyboardShown(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ScreenKeyboardShownRaw(WindowHandle window) => + byte ISdl.ScreenKeyboardShownRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[650] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[676] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[650] = nativeContext.LoadFunction("SDL_ScreenKeyboardShown", "SDL3") + : _slots[676] = nativeContext.LoadFunction("SDL_ScreenKeyboardShown", "SDL3") ) )(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ScreenKeyboardShownRaw(WindowHandle window) => + public static byte ScreenKeyboardShownRaw(WindowHandle window) => DllImport.ScreenKeyboardShownRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.ScreenSaverEnabled() => - (MaybeBool)(int)((ISdl)this).ScreenSaverEnabledRaw(); + MaybeBool ISdl.ScreenSaverEnabled() => + (MaybeBool)(byte)((ISdl)this).ScreenSaverEnabledRaw(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool ScreenSaverEnabled() => DllImport.ScreenSaverEnabled(); + public static MaybeBool ScreenSaverEnabled() => DllImport.ScreenSaverEnabled(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ScreenSaverEnabledRaw() => + byte ISdl.ScreenSaverEnabledRaw() => ( - (delegate* unmanaged)( - _slots[651] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[677] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[651] = nativeContext.LoadFunction("SDL_ScreenSaverEnabled", "SDL3") + : _slots[677] = nativeContext.LoadFunction("SDL_ScreenSaverEnabled", "SDL3") ) )(); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ScreenSaverEnabledRaw() => DllImport.ScreenSaverEnabledRaw(); + public static byte ScreenSaverEnabledRaw() => DllImport.ScreenSaverEnabledRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - long ISdl.SeekIO(IOStreamHandle context, [NativeTypeName("Sint64")] long offset, int whence) => + long ISdl.SeekIO( + IOStreamHandle context, + [NativeTypeName("Sint64")] long offset, + IOWhence whence + ) => ( - (delegate* unmanaged)( - _slots[652] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[678] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[652] = nativeContext.LoadFunction("SDL_SeekIO", "SDL3") + : _slots[678] = nativeContext.LoadFunction("SDL_SeekIO", "SDL3") ) )(context, offset, whence); @@ -58842,33 +70015,34 @@ _slots[652] is not null and var loadedFnPtr public static long SeekIO( IOStreamHandle context, [NativeTypeName("Sint64")] long offset, - int whence + IOWhence whence ) => DllImport.SeekIO(context, offset, whence); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SendGamepadEffect( + byte ISdl.SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] void* data, int size ) => ( - (delegate* unmanaged)( - _slots[653] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[679] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[653] = nativeContext.LoadFunction("SDL_SendGamepadEffect", "SDL3") + : _slots[679] = nativeContext.LoadFunction("SDL_SendGamepadEffect", "SDL3") ) )(gamepad, data, size); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SendGamepadEffect( + public static byte SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] void* data, int size ) => DllImport.SendGamepadEffect(gamepad, data, size); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SendGamepadEffect( + MaybeBool ISdl.SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] Ref data, int size @@ -58876,43 +70050,45 @@ int size { fixed (void* __dsl_data = data) { - return (int)((ISdl)this).SendGamepadEffect(gamepad, __dsl_data, size); + return (MaybeBool)(byte)((ISdl)this).SendGamepadEffect(gamepad, __dsl_data, size); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SendGamepadEffect( + public static MaybeBool SendGamepadEffect( GamepadHandle gamepad, [NativeTypeName("const void *")] Ref data, int size ) => DllImport.SendGamepadEffect(gamepad, data, size); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SendJoystickEffect( + byte ISdl.SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] void* data, int size ) => ( - (delegate* unmanaged)( - _slots[654] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[680] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[654] = nativeContext.LoadFunction("SDL_SendJoystickEffect", "SDL3") + : _slots[680] = nativeContext.LoadFunction("SDL_SendJoystickEffect", "SDL3") ) )(joystick, data, size); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SendJoystickEffect( + public static byte SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] void* data, int size ) => DllImport.SendJoystickEffect(joystick, data, size); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SendJoystickEffect( + MaybeBool ISdl.SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] Ref data, int size @@ -58920,19 +70096,186 @@ int size { fixed (void* __dsl_data = data) { - return (int)((ISdl)this).SendJoystickEffect(joystick, __dsl_data, size); + return (MaybeBool) + (byte)((ISdl)this).SendJoystickEffect(joystick, __dsl_data, size); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SendJoystickEffect( + public static MaybeBool SendJoystickEffect( JoystickHandle joystick, [NativeTypeName("const void *")] Ref data, int size ) => DllImport.SendJoystickEffect(joystick, data, size); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] float* data, + int num_values + ) => + ( + (delegate* unmanaged)( + _slots[681] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[681] = nativeContext.LoadFunction( + "SDL_SendJoystickVirtualSensorData", + "SDL3" + ) + ) + )(joystick, type, sensor_timestamp, data, num_values); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickVirtualSensorData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] float* data, + int num_values + ) => + DllImport.SendJoystickVirtualSensorData(joystick, type, sensor_timestamp, data, num_values); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] Ref data, + int num_values + ) + { + fixed (float* __dsl_data = data) + { + return (MaybeBool) + (byte) + ((ISdl)this).SendJoystickVirtualSensorData( + joystick, + type, + sensor_timestamp, + __dsl_data, + num_values + ); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickVirtualSensorData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SendJoystickVirtualSensorData( + JoystickHandle joystick, + SensorType type, + [NativeTypeName("Uint64")] ulong sensor_timestamp, + [NativeTypeName("const float *")] Ref data, + int num_values + ) => + DllImport.SendJoystickVirtualSensorData(joystick, type, sensor_timestamp, data, num_values); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetAppMetadata( + [NativeTypeName("const char *")] sbyte* appname, + [NativeTypeName("const char *")] sbyte* appversion, + [NativeTypeName("const char *")] sbyte* appidentifier + ) => + ( + (delegate* unmanaged)( + _slots[682] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[682] = nativeContext.LoadFunction("SDL_SetAppMetadata", "SDL3") + ) + )(appname, appversion, appidentifier); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadata")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetAppMetadata( + [NativeTypeName("const char *")] sbyte* appname, + [NativeTypeName("const char *")] sbyte* appversion, + [NativeTypeName("const char *")] sbyte* appidentifier + ) => DllImport.SetAppMetadata(appname, appversion, appidentifier); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetAppMetadata( + [NativeTypeName("const char *")] Ref appname, + [NativeTypeName("const char *")] Ref appversion, + [NativeTypeName("const char *")] Ref appidentifier + ) + { + fixed (sbyte* __dsl_appidentifier = appidentifier) + fixed (sbyte* __dsl_appversion = appversion) + fixed (sbyte* __dsl_appname = appname) + { + return (MaybeBool) + (byte) + ((ISdl)this).SetAppMetadata( + __dsl_appname, + __dsl_appversion, + __dsl_appidentifier + ); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadata")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetAppMetadata( + [NativeTypeName("const char *")] Ref appname, + [NativeTypeName("const char *")] Ref appversion, + [NativeTypeName("const char *")] Ref appidentifier + ) => DllImport.SetAppMetadata(appname, appversion, appidentifier); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetAppMetadataProperty( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ) => + ( + (delegate* unmanaged)( + _slots[683] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[683] = nativeContext.LoadFunction("SDL_SetAppMetadataProperty", "SDL3") + ) + )(name, value); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadataProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetAppMetadataProperty( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ) => DllImport.SetAppMetadataProperty(name, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetAppMetadataProperty( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ) + { + fixed (sbyte* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool) + (byte)((ISdl)this).SetAppMetadataProperty(__dsl_name, __dsl_value); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAppMetadataProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetAppMetadataProperty( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ) => DllImport.SetAppMetadataProperty(name, value); + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.SetAssertionHandler( [NativeTypeName("SDL_AssertionHandler")] AssertionHandler handler, @@ -58940,9 +70283,9 @@ void ISdl.SetAssertionHandler( ) => ( (delegate* unmanaged)( - _slots[655] is not null and var loadedFnPtr + _slots[684] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[655] = nativeContext.LoadFunction("SDL_SetAssertionHandler", "SDL3") + : _slots[684] = nativeContext.LoadFunction("SDL_SetAssertionHandler", "SDL3") ) )(handler, userdata); @@ -58974,32 +70317,155 @@ Ref userdata ) => DllImport.SetAssertionHandler(handler, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetAudioPostmixCallback( + int ISdl.SetAtomicInt(AtomicInt* a, int v) => + ( + (delegate* unmanaged)( + _slots[685] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[685] = nativeContext.LoadFunction("SDL_SetAtomicInt", "SDL3") + ) + )(a, v); + + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicInt")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetAtomicInt(AtomicInt* a, int v) => DllImport.SetAtomicInt(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetAtomicInt(Ref a, int v) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)((ISdl)this).SetAtomicInt(__dsl_a, v); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicInt")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetAtomicInt(Ref a, int v) => DllImport.SetAtomicInt(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.SetAtomicPointer(void** a, void* v) => + ( + (delegate* unmanaged)( + _slots[686] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[686] = nativeContext.LoadFunction("SDL_SetAtomicPointer", "SDL3") + ) + )(a, v); + + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicPointer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* SetAtomicPointer(void** a, void* v) => DllImport.SetAtomicPointer(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.SetAtomicPointer(Ref2D a, Ref v) + { + fixed (void* __dsl_v = v) + fixed (void** __dsl_a = a) + { + return (void*)((ISdl)this).SetAtomicPointer(__dsl_a, __dsl_v); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicPointer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr SetAtomicPointer(Ref2D a, Ref v) => DllImport.SetAtomicPointer(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.SetAtomicU32(AtomicU32* a, [NativeTypeName("Uint32")] uint v) => + ( + (delegate* unmanaged)( + _slots[687] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[687] = nativeContext.LoadFunction("SDL_SetAtomicU32", "SDL3") + ) + )(a, v); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicU32")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint SetAtomicU32(AtomicU32* a, [NativeTypeName("Uint32")] uint v) => + DllImport.SetAtomicU32(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.SetAtomicU32(Ref a, [NativeTypeName("Uint32")] uint v) + { + fixed (AtomicU32* __dsl_a = a) + { + return (uint)((ISdl)this).SetAtomicU32(__dsl_a, v); + } + } + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAtomicU32")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint SetAtomicU32(Ref a, [NativeTypeName("Uint32")] uint v) => + DllImport.SetAtomicU32(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetAudioDeviceGain( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + float gain + ) => (MaybeBool)(byte)((ISdl)this).SetAudioDeviceGainRaw(devid, gain); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioDeviceGain")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetAudioDeviceGain( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + float gain + ) => DllImport.SetAudioDeviceGain(devid, gain); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetAudioDeviceGainRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid, float gain) => + ( + (delegate* unmanaged)( + _slots[688] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[688] = nativeContext.LoadFunction("SDL_SetAudioDeviceGain", "SDL3") + ) + )(devid, gain); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioDeviceGain")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetAudioDeviceGainRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + float gain + ) => DllImport.SetAudioDeviceGainRaw(devid, gain); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, void* userdata ) => ( - (delegate* unmanaged)( - _slots[656] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[689] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[656] = nativeContext.LoadFunction( + : _slots[689] = nativeContext.LoadFunction( "SDL_SetAudioPostmixCallback", "SDL3" ) ) )(devid, callback, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetAudioPostmixCallback( + public static byte SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, void* userdata ) => DllImport.SetAudioPostmixCallback(devid, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetAudioPostmixCallback( + MaybeBool ISdl.SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, Ref userdata @@ -59007,43 +70473,46 @@ Ref userdata { fixed (void* __dsl_userdata = userdata) { - return (int)((ISdl)this).SetAudioPostmixCallback(devid, callback, __dsl_userdata); + return (MaybeBool) + (byte)((ISdl)this).SetAudioPostmixCallback(devid, callback, __dsl_userdata); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetAudioPostmixCallback( + public static MaybeBool SetAudioPostmixCallback( [NativeTypeName("SDL_AudioDeviceID")] uint devid, [NativeTypeName("SDL_AudioPostmixCallback")] AudioPostmixCallback callback, Ref userdata ) => DllImport.SetAudioPostmixCallback(devid, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetAudioStreamFormat( + byte ISdl.SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec ) => ( - (delegate* unmanaged)( - _slots[657] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[690] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[657] = nativeContext.LoadFunction("SDL_SetAudioStreamFormat", "SDL3") + : _slots[690] = nativeContext.LoadFunction("SDL_SetAudioStreamFormat", "SDL3") ) )(stream, src_spec, dst_spec); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetAudioStreamFormat( + public static byte SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec ) => DllImport.SetAudioStreamFormat(stream, src_spec, dst_spec); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetAudioStreamFormat( + MaybeBool ISdl.SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec @@ -59052,64 +70521,108 @@ int ISdl.SetAudioStreamFormat( fixed (AudioSpec* __dsl_dst_spec = dst_spec) fixed (AudioSpec* __dsl_src_spec = src_spec) { - return (int)((ISdl)this).SetAudioStreamFormat(stream, __dsl_src_spec, __dsl_dst_spec); + return (MaybeBool) + (byte)((ISdl)this).SetAudioStreamFormat(stream, __dsl_src_spec, __dsl_dst_spec); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetAudioStreamFormat( + public static MaybeBool SetAudioStreamFormat( AudioStreamHandle stream, [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec ) => DllImport.SetAudioStreamFormat(stream, src_spec, dst_spec); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetAudioStreamFrequencyRatio(AudioStreamHandle stream, float ratio) => + MaybeBool ISdl.SetAudioStreamFrequencyRatio(AudioStreamHandle stream, float ratio) => + (MaybeBool)(byte)((ISdl)this).SetAudioStreamFrequencyRatioRaw(stream, ratio); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetAudioStreamFrequencyRatio( + AudioStreamHandle stream, + float ratio + ) => DllImport.SetAudioStreamFrequencyRatio(stream, ratio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetAudioStreamFrequencyRatioRaw(AudioStreamHandle stream, float ratio) => ( - (delegate* unmanaged)( - _slots[658] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[691] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[658] = nativeContext.LoadFunction( + : _slots[691] = nativeContext.LoadFunction( "SDL_SetAudioStreamFrequencyRatio", "SDL3" ) ) )(stream, ratio); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetAudioStreamFrequencyRatio(AudioStreamHandle stream, float ratio) => - DllImport.SetAudioStreamFrequencyRatio(stream, ratio); + public static byte SetAudioStreamFrequencyRatioRaw(AudioStreamHandle stream, float ratio) => + DllImport.SetAudioStreamFrequencyRatioRaw(stream, ratio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetAudioStreamGain(AudioStreamHandle stream, float gain) => + (MaybeBool)(byte)((ISdl)this).SetAudioStreamGainRaw(stream, gain); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGain")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetAudioStreamGain(AudioStreamHandle stream, float gain) => + DllImport.SetAudioStreamGain(stream, gain); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetAudioStreamGainRaw(AudioStreamHandle stream, float gain) => + ( + (delegate* unmanaged)( + _slots[692] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[692] = nativeContext.LoadFunction("SDL_SetAudioStreamGain", "SDL3") + ) + )(stream, gain); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGain")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetAudioStreamGainRaw(AudioStreamHandle stream, float gain) => + DllImport.SetAudioStreamGainRaw(stream, gain); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetAudioStreamGetCallback( + byte ISdl.SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ) => ( - (delegate* unmanaged)( - _slots[659] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[693] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[659] = nativeContext.LoadFunction( + : _slots[693] = nativeContext.LoadFunction( "SDL_SetAudioStreamGetCallback", "SDL3" ) ) )(stream, callback, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetAudioStreamGetCallback( + public static byte SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ) => DllImport.SetAudioStreamGetCallback(stream, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetAudioStreamGetCallback( + MaybeBool ISdl.SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata @@ -59117,46 +70630,149 @@ Ref userdata { fixed (void* __dsl_userdata = userdata) { - return (int)((ISdl)this).SetAudioStreamGetCallback(stream, callback, __dsl_userdata); + return (MaybeBool) + (byte)((ISdl)this).SetAudioStreamGetCallback(stream, callback, __dsl_userdata); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetAudioStreamGetCallback( + public static MaybeBool SetAudioStreamGetCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata ) => DllImport.SetAudioStreamGetCallback(stream, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetAudioStreamPutCallback( + byte ISdl.SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ) => + ( + (delegate* unmanaged)( + _slots[694] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[694] = nativeContext.LoadFunction( + "SDL_SetAudioStreamInputChannelMap", + "SDL3" + ) + ) + )(stream, chmap, count); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamInputChannelMap")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ) => DllImport.SetAudioStreamInputChannelMap(stream, chmap, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ) + { + fixed (int* __dsl_chmap = chmap) + { + return (MaybeBool) + (byte)((ISdl)this).SetAudioStreamInputChannelMap(stream, __dsl_chmap, count); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamInputChannelMap")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetAudioStreamInputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ) => DllImport.SetAudioStreamInputChannelMap(stream, chmap, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ) => + ( + (delegate* unmanaged)( + _slots[695] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[695] = nativeContext.LoadFunction( + "SDL_SetAudioStreamOutputChannelMap", + "SDL3" + ) + ) + )(stream, chmap, count); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamOutputChannelMap")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] int* chmap, + int count + ) => DllImport.SetAudioStreamOutputChannelMap(stream, chmap, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ) + { + fixed (int* __dsl_chmap = chmap) + { + return (MaybeBool) + (byte)((ISdl)this).SetAudioStreamOutputChannelMap(stream, __dsl_chmap, count); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamOutputChannelMap")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetAudioStreamOutputChannelMap( + AudioStreamHandle stream, + [NativeTypeName("const int *")] Ref chmap, + int count + ) => DllImport.SetAudioStreamOutputChannelMap(stream, chmap, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ) => ( - (delegate* unmanaged)( - _slots[660] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[696] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[660] = nativeContext.LoadFunction( + : _slots[696] = nativeContext.LoadFunction( "SDL_SetAudioStreamPutCallback", "SDL3" ) ) )(stream, callback, userdata); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetAudioStreamPutCallback( + public static byte SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, void* userdata ) => DllImport.SetAudioStreamPutCallback(stream, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetAudioStreamPutCallback( + MaybeBool ISdl.SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata @@ -59164,65 +70780,70 @@ Ref userdata { fixed (void* __dsl_userdata = userdata) { - return (int)((ISdl)this).SetAudioStreamPutCallback(stream, callback, __dsl_userdata); + return (MaybeBool) + (byte)((ISdl)this).SetAudioStreamPutCallback(stream, callback, __dsl_userdata); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetAudioStreamPutCallback( + public static MaybeBool SetAudioStreamPutCallback( AudioStreamHandle stream, [NativeTypeName("SDL_AudioStreamCallback")] AudioStreamCallback callback, Ref userdata ) => DllImport.SetAudioStreamPutCallback(stream, callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetBooleanProperty( + byte ISdl.SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int value + [NativeTypeName("bool")] byte value ) => ( - (delegate* unmanaged)( - _slots[661] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[697] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[661] = nativeContext.LoadFunction("SDL_SetBooleanProperty", "SDL3") + : _slots[697] = nativeContext.LoadFunction("SDL_SetBooleanProperty", "SDL3") ) )(props, name, value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetBooleanProperty( + public static byte SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, - [NativeTypeName("SDL_bool")] int value + [NativeTypeName("bool")] byte value ) => DllImport.SetBooleanProperty(props, name, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetBooleanProperty( + MaybeBool ISdl.SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool value + [NativeTypeName("bool")] MaybeBool value ) { fixed (sbyte* __dsl_name = name) { - return (int)((ISdl)this).SetBooleanProperty(props, __dsl_name, (int)value); + return (MaybeBool) + (byte)((ISdl)this).SetBooleanProperty(props, __dsl_name, (byte)value); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetBooleanProperty( + public static MaybeBool SetBooleanProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, - [NativeTypeName("SDL_bool")] MaybeBool value + [NativeTypeName("bool")] MaybeBool value ) => DllImport.SetBooleanProperty(props, name, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetClipboardData( + byte ISdl.SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, void* userdata, @@ -59236,16 +70857,17 @@ int ISdl.SetClipboardData( void*, sbyte**, nuint, - int>)( - _slots[662] is not null and var loadedFnPtr + byte>)( + _slots[698] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[662] = nativeContext.LoadFunction("SDL_SetClipboardData", "SDL3") + : _slots[698] = nativeContext.LoadFunction("SDL_SetClipboardData", "SDL3") ) )(callback, cleanup, userdata, mime_types, num_mime_types); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetClipboardData( + public static byte SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, void* userdata, @@ -59254,7 +70876,7 @@ public static int SetClipboardData( ) => DllImport.SetClipboardData(callback, cleanup, userdata, mime_types, num_mime_types); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetClipboardData( + MaybeBool ISdl.SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, Ref userdata, @@ -59265,21 +70887,23 @@ int ISdl.SetClipboardData( fixed (sbyte** __dsl_mime_types = mime_types) fixed (void* __dsl_userdata = userdata) { - return (int) - ((ISdl)this).SetClipboardData( - callback, - cleanup, - __dsl_userdata, - __dsl_mime_types, - num_mime_types - ); + return (MaybeBool) + (byte) + ((ISdl)this).SetClipboardData( + callback, + cleanup, + __dsl_userdata, + __dsl_mime_types, + num_mime_types + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetClipboardData( + public static MaybeBool SetClipboardData( [NativeTypeName("SDL_ClipboardDataCallback")] ClipboardDataCallback callback, [NativeTypeName("SDL_ClipboardCleanupCallback")] ClipboardCleanupCallback cleanup, Ref userdata, @@ -59288,59 +70912,146 @@ public static int SetClipboardData( ) => DllImport.SetClipboardData(callback, cleanup, userdata, mime_types, num_mime_types); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetClipboardText([NativeTypeName("const char *")] sbyte* text) => + byte ISdl.SetClipboardText([NativeTypeName("const char *")] sbyte* text) => ( - (delegate* unmanaged)( - _slots[663] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[699] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[663] = nativeContext.LoadFunction("SDL_SetClipboardText", "SDL3") + : _slots[699] = nativeContext.LoadFunction("SDL_SetClipboardText", "SDL3") ) )(text); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetClipboardText([NativeTypeName("const char *")] sbyte* text) => + public static byte SetClipboardText([NativeTypeName("const char *")] sbyte* text) => DllImport.SetClipboardText(text); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetClipboardText([NativeTypeName("const char *")] Ref text) + MaybeBool ISdl.SetClipboardText([NativeTypeName("const char *")] Ref text) { fixed (sbyte* __dsl_text = text) { - return (int)((ISdl)this).SetClipboardText(__dsl_text); + return (MaybeBool)(byte)((ISdl)this).SetClipboardText(__dsl_text); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetClipboardText([NativeTypeName("const char *")] Ref text) => - DllImport.SetClipboardText(text); + public static MaybeBool SetClipboardText( + [NativeTypeName("const char *")] Ref text + ) => DllImport.SetClipboardText(text); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetCurrentThreadPriority(ThreadPriority priority) => + (MaybeBool)(byte)((ISdl)this).SetCurrentThreadPriorityRaw(priority); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCurrentThreadPriority")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetCurrentThreadPriority(ThreadPriority priority) => + DllImport.SetCurrentThreadPriority(priority); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetCursor(CursorHandle cursor) => + byte ISdl.SetCurrentThreadPriorityRaw(ThreadPriority priority) => ( - (delegate* unmanaged)( - _slots[664] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[700] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[700] = nativeContext.LoadFunction( + "SDL_SetCurrentThreadPriority", + "SDL3" + ) + ) + )(priority); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCurrentThreadPriority")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetCurrentThreadPriorityRaw(ThreadPriority priority) => + DllImport.SetCurrentThreadPriorityRaw(priority); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetCursor(CursorHandle cursor) => + (MaybeBool)(byte)((ISdl)this).SetCursorRaw(cursor); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetCursor(CursorHandle cursor) => DllImport.SetCursor(cursor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetCursorRaw(CursorHandle cursor) => + ( + (delegate* unmanaged)( + _slots[701] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[664] = nativeContext.LoadFunction("SDL_SetCursor", "SDL3") + : _slots[701] = nativeContext.LoadFunction("SDL_SetCursor", "SDL3") ) )(cursor); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetCursor(CursorHandle cursor) => DllImport.SetCursor(cursor); + public static byte SetCursorRaw(CursorHandle cursor) => DllImport.SetCursorRaw(cursor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetErrorV( + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ) => + ( + (delegate* unmanaged)( + _slots[702] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[702] = nativeContext.LoadFunction("SDL_SetErrorV", "SDL3") + ) + )(fmt, ap); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetErrorV")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetErrorV( + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ) => DllImport.SetErrorV(fmt, ap); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetErrorV( + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) + { + fixed (sbyte* __dsl_ap = ap) + fixed (sbyte* __dsl_fmt = fmt) + { + return (MaybeBool)(byte)((ISdl)this).SetErrorV(__dsl_fmt, __dsl_ap); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetErrorV")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetErrorV( + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) => DllImport.SetErrorV(fmt, ap); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ) => ( - (delegate* unmanaged)( - _slots[665] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[703] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[665] = nativeContext.LoadFunction("SDL_SetEventEnabled", "SDL3") + : _slots[703] = nativeContext.LoadFunction("SDL_SetEventEnabled", "SDL3") ) )(type, enabled); @@ -59348,21 +71059,21 @@ _slots[665] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ) => DllImport.SetEventEnabled(type, enabled); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] MaybeBool enabled - ) => ((ISdl)this).SetEventEnabled(type, (int)enabled); + [NativeTypeName("bool")] MaybeBool enabled + ) => ((ISdl)this).SetEventEnabled(type, (byte)enabled); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void SetEventEnabled( [NativeTypeName("Uint32")] uint type, - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ) => DllImport.SetEventEnabled(type, enabled); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -59372,9 +71083,9 @@ void ISdl.SetEventFilter( ) => ( (delegate* unmanaged)( - _slots[666] is not null and var loadedFnPtr + _slots[704] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[666] = nativeContext.LoadFunction("SDL_SetEventFilter", "SDL3") + : _slots[704] = nativeContext.LoadFunction("SDL_SetEventFilter", "SDL3") ) )(filter, userdata); @@ -59403,29 +71114,30 @@ Ref userdata ) => DllImport.SetEventFilter(filter, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetFloatProperty( + byte ISdl.SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, float value ) => ( - (delegate* unmanaged)( - _slots[667] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[705] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[667] = nativeContext.LoadFunction("SDL_SetFloatProperty", "SDL3") + : _slots[705] = nativeContext.LoadFunction("SDL_SetFloatProperty", "SDL3") ) )(props, name, value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetFloatProperty( + public static byte SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, float value ) => DllImport.SetFloatProperty(props, name, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetFloatProperty( + MaybeBool ISdl.SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, float value @@ -59433,26 +71145,27 @@ float value { fixed (sbyte* __dsl_name = name) { - return (int)((ISdl)this).SetFloatProperty(props, __dsl_name, value); + return (MaybeBool)(byte)((ISdl)this).SetFloatProperty(props, __dsl_name, value); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetFloatProperty( + public static MaybeBool SetFloatProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, float value ) => DllImport.SetFloatProperty(props, name, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + void ISdl.SetGamepadEventsEnabled([NativeTypeName("bool")] byte enabled) => ( - (delegate* unmanaged)( - _slots[668] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[706] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[668] = nativeContext.LoadFunction( + : _slots[706] = nativeContext.LoadFunction( "SDL_SetGamepadEventsEnabled", "SDL3" ) @@ -59461,193 +71174,253 @@ _slots[668] is not null and var loadedFnPtr [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + public static void SetGamepadEventsEnabled([NativeTypeName("bool")] byte enabled) => DllImport.SetGamepadEventsEnabled(enabled); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] MaybeBool enabled) => - ((ISdl)this).SetGamepadEventsEnabled((int)enabled); + void ISdl.SetGamepadEventsEnabled([NativeTypeName("bool")] MaybeBool enabled) => + ((ISdl)this).SetGamepadEventsEnabled((byte)enabled); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void SetGamepadEventsEnabled( - [NativeTypeName("SDL_bool")] MaybeBool enabled - ) => DllImport.SetGamepadEventsEnabled(enabled); + public static void SetGamepadEventsEnabled([NativeTypeName("bool")] MaybeBool enabled) => + DllImport.SetGamepadEventsEnabled(enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetGamepadLED( + GamepadHandle gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => (MaybeBool)(byte)((ISdl)this).SetGamepadLEDRaw(gamepad, red, green, blue); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetGamepadLED( + GamepadHandle gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => DllImport.SetGamepadLED(gamepad, red, green, blue); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetGamepadLED( + byte ISdl.SetGamepadLEDRaw( GamepadHandle gamepad, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue ) => ( - (delegate* unmanaged)( - _slots[669] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[707] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[669] = nativeContext.LoadFunction("SDL_SetGamepadLED", "SDL3") + : _slots[707] = nativeContext.LoadFunction("SDL_SetGamepadLED", "SDL3") ) )(gamepad, red, green, blue); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetGamepadLED( + public static byte SetGamepadLEDRaw( GamepadHandle gamepad, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue - ) => DllImport.SetGamepadLED(gamepad, red, green, blue); + ) => DllImport.SetGamepadLEDRaw(gamepad, red, green, blue); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetGamepadMapping( + byte ISdl.SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] sbyte* mapping ) => ( - (delegate* unmanaged)( - _slots[670] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[708] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[670] = nativeContext.LoadFunction("SDL_SetGamepadMapping", "SDL3") + : _slots[708] = nativeContext.LoadFunction("SDL_SetGamepadMapping", "SDL3") ) )(instance_id, mapping); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetGamepadMapping( + public static byte SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] sbyte* mapping ) => DllImport.SetGamepadMapping(instance_id, mapping); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetGamepadMapping( + MaybeBool ISdl.SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] Ref mapping ) { fixed (sbyte* __dsl_mapping = mapping) { - return (int)((ISdl)this).SetGamepadMapping(instance_id, __dsl_mapping); + return (MaybeBool) + (byte)((ISdl)this).SetGamepadMapping(instance_id, __dsl_mapping); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetGamepadMapping( + public static MaybeBool SetGamepadMapping( [NativeTypeName("SDL_JoystickID")] uint instance_id, [NativeTypeName("const char *")] Ref mapping ) => DllImport.SetGamepadMapping(instance_id, mapping); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetGamepadPlayerIndex(GamepadHandle gamepad, int player_index) => + MaybeBool ISdl.SetGamepadPlayerIndex(GamepadHandle gamepad, int player_index) => + (MaybeBool)(byte)((ISdl)this).SetGamepadPlayerIndexRaw(gamepad, player_index); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetGamepadPlayerIndex(GamepadHandle gamepad, int player_index) => + DllImport.SetGamepadPlayerIndex(gamepad, player_index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetGamepadPlayerIndexRaw(GamepadHandle gamepad, int player_index) => ( - (delegate* unmanaged)( - _slots[671] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[709] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[671] = nativeContext.LoadFunction("SDL_SetGamepadPlayerIndex", "SDL3") + : _slots[709] = nativeContext.LoadFunction("SDL_SetGamepadPlayerIndex", "SDL3") ) )(gamepad, player_index); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetGamepadPlayerIndex(GamepadHandle gamepad, int player_index) => - DllImport.SetGamepadPlayerIndex(gamepad, player_index); + public static byte SetGamepadPlayerIndexRaw(GamepadHandle gamepad, int player_index) => + DllImport.SetGamepadPlayerIndexRaw(gamepad, player_index); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetGamepadSensorEnabled( + byte ISdl.SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ) => ( - (delegate* unmanaged)( - _slots[672] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[710] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[672] = nativeContext.LoadFunction( + : _slots[710] = nativeContext.LoadFunction( "SDL_SetGamepadSensorEnabled", "SDL3" ) ) )(gamepad, type, enabled); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetGamepadSensorEnabled( + public static byte SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] int enabled + [NativeTypeName("bool")] byte enabled ) => DllImport.SetGamepadSensorEnabled(gamepad, type, enabled); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetGamepadSensorEnabled( + MaybeBool ISdl.SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] MaybeBool enabled - ) => (int)((ISdl)this).SetGamepadSensorEnabled(gamepad, type, (int)enabled); + [NativeTypeName("bool")] MaybeBool enabled + ) => (MaybeBool)(byte)((ISdl)this).SetGamepadSensorEnabled(gamepad, type, (byte)enabled); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetGamepadSensorEnabled( + public static MaybeBool SetGamepadSensorEnabled( GamepadHandle gamepad, SensorType type, - [NativeTypeName("SDL_bool")] MaybeBool enabled + [NativeTypeName("bool")] MaybeBool enabled ) => DllImport.SetGamepadSensorEnabled(gamepad, type, enabled); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetHapticAutocenter(HapticHandle haptic, int autocenter) => + MaybeBool ISdl.SetHapticAutocenter(HapticHandle haptic, int autocenter) => + (MaybeBool)(byte)((ISdl)this).SetHapticAutocenterRaw(haptic, autocenter); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetHapticAutocenter(HapticHandle haptic, int autocenter) => + DllImport.SetHapticAutocenter(haptic, autocenter); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetHapticAutocenterRaw(HapticHandle haptic, int autocenter) => ( - (delegate* unmanaged)( - _slots[673] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[711] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[673] = nativeContext.LoadFunction("SDL_SetHapticAutocenter", "SDL3") + : _slots[711] = nativeContext.LoadFunction("SDL_SetHapticAutocenter", "SDL3") ) )(haptic, autocenter); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetHapticAutocenter(HapticHandle haptic, int autocenter) => - DllImport.SetHapticAutocenter(haptic, autocenter); + public static byte SetHapticAutocenterRaw(HapticHandle haptic, int autocenter) => + DllImport.SetHapticAutocenterRaw(haptic, autocenter); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetHapticGain(HapticHandle haptic, int gain) => + MaybeBool ISdl.SetHapticGain(HapticHandle haptic, int gain) => + (MaybeBool)(byte)((ISdl)this).SetHapticGainRaw(haptic, gain); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetHapticGain(HapticHandle haptic, int gain) => + DllImport.SetHapticGain(haptic, gain); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetHapticGainRaw(HapticHandle haptic, int gain) => ( - (delegate* unmanaged)( - _slots[674] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[712] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[674] = nativeContext.LoadFunction("SDL_SetHapticGain", "SDL3") + : _slots[712] = nativeContext.LoadFunction("SDL_SetHapticGain", "SDL3") ) )(haptic, gain); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetHapticGain(HapticHandle haptic, int gain) => - DllImport.SetHapticGain(haptic, gain); + public static byte SetHapticGainRaw(HapticHandle haptic, int gain) => + DllImport.SetHapticGainRaw(haptic, gain); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetHint( + byte ISdl.SetHint( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ) => ( - (delegate* unmanaged)( - _slots[675] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[713] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[675] = nativeContext.LoadFunction("SDL_SetHint", "SDL3") + : _slots[713] = nativeContext.LoadFunction("SDL_SetHint", "SDL3") ) )(name, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetHint( + public static byte SetHint( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ) => DllImport.SetHint(name, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.SetHint( + MaybeBool ISdl.SetHint( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value ) @@ -59655,44 +71428,44 @@ MaybeBool ISdl.SetHint( fixed (sbyte* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (MaybeBool)(int)((ISdl)this).SetHint(__dsl_name, __dsl_value); + return (MaybeBool)(byte)((ISdl)this).SetHint(__dsl_name, __dsl_value); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool SetHint( + public static MaybeBool SetHint( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value ) => DllImport.SetHint(name, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetHintWithPriority( + byte ISdl.SetHintWithPriority( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value, HintPriority priority ) => ( - (delegate* unmanaged)( - _slots[676] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[714] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[676] = nativeContext.LoadFunction("SDL_SetHintWithPriority", "SDL3") + : _slots[714] = nativeContext.LoadFunction("SDL_SetHintWithPriority", "SDL3") ) )(name, value, priority); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetHintWithPriority( + public static byte SetHintWithPriority( [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value, HintPriority priority ) => DllImport.SetHintWithPriority(name, value, priority); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.SetHintWithPriority( + MaybeBool ISdl.SetHintWithPriority( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value, HintPriority priority @@ -59701,28 +71474,65 @@ HintPriority priority fixed (sbyte* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (MaybeBool) - (int)((ISdl)this).SetHintWithPriority(__dsl_name, __dsl_value, priority); + return (MaybeBool) + (byte)((ISdl)this).SetHintWithPriority(__dsl_name, __dsl_value, priority); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool SetHintWithPriority( + public static MaybeBool SetHintWithPriority( [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value, HintPriority priority ) => DllImport.SetHintWithPriority(name, value, priority); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + void ISdl.SetInitialized(InitState* state, [NativeTypeName("bool")] byte initialized) => ( - (delegate* unmanaged)( - _slots[677] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[715] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[715] = nativeContext.LoadFunction("SDL_SetInitialized", "SDL3") + ) + )(state, initialized); + + [NativeFunction("SDL3", EntryPoint = "SDL_SetInitialized")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetInitialized( + InitState* state, + [NativeTypeName("bool")] byte initialized + ) => DllImport.SetInitialized(state, initialized); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetInitialized( + Ref state, + [NativeTypeName("bool")] MaybeBool initialized + ) + { + fixed (InitState* __dsl_state = state) + { + ((ISdl)this).SetInitialized(__dsl_state, (byte)initialized); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetInitialized")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetInitialized( + Ref state, + [NativeTypeName("bool")] MaybeBool initialized + ) => DllImport.SetInitialized(state, initialized); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetJoystickEventsEnabled([NativeTypeName("bool")] byte enabled) => + ( + (delegate* unmanaged)( + _slots[716] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[677] = nativeContext.LoadFunction( + : _slots[716] = nativeContext.LoadFunction( "SDL_SetJoystickEventsEnabled", "SDL3" ) @@ -59731,127 +71541,328 @@ _slots[677] is not null and var loadedFnPtr [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + public static void SetJoystickEventsEnabled([NativeTypeName("bool")] byte enabled) => DllImport.SetJoystickEventsEnabled(enabled); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] MaybeBool enabled) => - ((ISdl)this).SetJoystickEventsEnabled((int)enabled); + void ISdl.SetJoystickEventsEnabled([NativeTypeName("bool")] MaybeBool enabled) => + ((ISdl)this).SetJoystickEventsEnabled((byte)enabled); [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void SetJoystickEventsEnabled( - [NativeTypeName("SDL_bool")] MaybeBool enabled - ) => DllImport.SetJoystickEventsEnabled(enabled); + public static void SetJoystickEventsEnabled([NativeTypeName("bool")] MaybeBool enabled) => + DllImport.SetJoystickEventsEnabled(enabled); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetJoystickLED( + MaybeBool ISdl.SetJoystickLED( + JoystickHandle joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => (MaybeBool)(byte)((ISdl)this).SetJoystickLEDRaw(joystick, red, green, blue); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetJoystickLED( + JoystickHandle joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => DllImport.SetJoystickLED(joystick, red, green, blue); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetJoystickLEDRaw( JoystickHandle joystick, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue ) => ( - (delegate* unmanaged)( - _slots[678] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[717] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[678] = nativeContext.LoadFunction("SDL_SetJoystickLED", "SDL3") + : _slots[717] = nativeContext.LoadFunction("SDL_SetJoystickLED", "SDL3") ) )(joystick, red, green, blue); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetJoystickLED( + public static byte SetJoystickLEDRaw( JoystickHandle joystick, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue - ) => DllImport.SetJoystickLED(joystick, red, green, blue); + ) => DllImport.SetJoystickLEDRaw(joystick, red, green, blue); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetJoystickPlayerIndex(JoystickHandle joystick, int player_index) => + MaybeBool ISdl.SetJoystickPlayerIndex(JoystickHandle joystick, int player_index) => + (MaybeBool)(byte)((ISdl)this).SetJoystickPlayerIndexRaw(joystick, player_index); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetJoystickPlayerIndex( + JoystickHandle joystick, + int player_index + ) => DllImport.SetJoystickPlayerIndex(joystick, player_index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetJoystickPlayerIndexRaw(JoystickHandle joystick, int player_index) => ( - (delegate* unmanaged)( - _slots[679] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[718] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[679] = nativeContext.LoadFunction("SDL_SetJoystickPlayerIndex", "SDL3") + : _slots[718] = nativeContext.LoadFunction("SDL_SetJoystickPlayerIndex", "SDL3") ) )(joystick, player_index); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetJoystickPlayerIndex(JoystickHandle joystick, int player_index) => - DllImport.SetJoystickPlayerIndex(joystick, player_index); + public static byte SetJoystickPlayerIndexRaw(JoystickHandle joystick, int player_index) => + DllImport.SetJoystickPlayerIndexRaw(joystick, player_index); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetJoystickVirtualAxis( + MaybeBool ISdl.SetJoystickVirtualAxis( + JoystickHandle joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) => (MaybeBool)(byte)((ISdl)this).SetJoystickVirtualAxisRaw(joystick, axis, value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetJoystickVirtualAxis( + JoystickHandle joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) => DllImport.SetJoystickVirtualAxis(joystick, axis, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetJoystickVirtualAxisRaw( JoystickHandle joystick, int axis, [NativeTypeName("Sint16")] short value ) => ( - (delegate* unmanaged)( - _slots[680] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[719] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[680] = nativeContext.LoadFunction("SDL_SetJoystickVirtualAxis", "SDL3") + : _slots[719] = nativeContext.LoadFunction("SDL_SetJoystickVirtualAxis", "SDL3") ) )(joystick, axis, value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetJoystickVirtualAxis( + public static byte SetJoystickVirtualAxisRaw( JoystickHandle joystick, int axis, [NativeTypeName("Sint16")] short value - ) => DllImport.SetJoystickVirtualAxis(joystick, axis, value); + ) => DllImport.SetJoystickVirtualAxisRaw(joystick, axis, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetJoystickVirtualBall( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ) => (MaybeBool)(byte)((ISdl)this).SetJoystickVirtualBallRaw(joystick, ball, xrel, yrel); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualBall")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetJoystickVirtualBall( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ) => DllImport.SetJoystickVirtualBall(joystick, ball, xrel, yrel); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetJoystickVirtualButton( + byte ISdl.SetJoystickVirtualBallRaw( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ) => + ( + (delegate* unmanaged)( + _slots[720] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[720] = nativeContext.LoadFunction("SDL_SetJoystickVirtualBall", "SDL3") + ) + )(joystick, ball, xrel, yrel); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualBall")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetJoystickVirtualBallRaw( + JoystickHandle joystick, + int ball, + [NativeTypeName("Sint16")] short xrel, + [NativeTypeName("Sint16")] short yrel + ) => DllImport.SetJoystickVirtualBallRaw(joystick, ball, xrel, yrel); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetJoystickVirtualButton( JoystickHandle joystick, int button, - [NativeTypeName("Uint8")] byte value + [NativeTypeName("bool")] byte down ) => ( - (delegate* unmanaged)( - _slots[681] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[721] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[681] = nativeContext.LoadFunction( + : _slots[721] = nativeContext.LoadFunction( "SDL_SetJoystickVirtualButton", "SDL3" ) ) - )(joystick, button, value); + )(joystick, button, down); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetJoystickVirtualButton( + JoystickHandle joystick, + int button, + [NativeTypeName("bool")] byte down + ) => DllImport.SetJoystickVirtualButton(joystick, button, down); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetJoystickVirtualButton( + JoystickHandle joystick, + int button, + [NativeTypeName("bool")] MaybeBool down + ) => (MaybeBool)(byte)((ISdl)this).SetJoystickVirtualButton(joystick, button, (byte)down); + + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetJoystickVirtualButton( + public static MaybeBool SetJoystickVirtualButton( JoystickHandle joystick, int button, + [NativeTypeName("bool")] MaybeBool down + ) => DllImport.SetJoystickVirtualButton(joystick, button, down); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetJoystickVirtualHat( + JoystickHandle joystick, + int hat, [NativeTypeName("Uint8")] byte value - ) => DllImport.SetJoystickVirtualButton(joystick, button, value); + ) => (MaybeBool)(byte)((ISdl)this).SetJoystickVirtualHatRaw(joystick, hat, value); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetJoystickVirtualHat( + public static MaybeBool SetJoystickVirtualHat( + JoystickHandle joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) => DllImport.SetJoystickVirtualHat(joystick, hat, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetJoystickVirtualHatRaw( JoystickHandle joystick, int hat, [NativeTypeName("Uint8")] byte value ) => ( - (delegate* unmanaged)( - _slots[682] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[722] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[682] = nativeContext.LoadFunction("SDL_SetJoystickVirtualHat", "SDL3") + : _slots[722] = nativeContext.LoadFunction("SDL_SetJoystickVirtualHat", "SDL3") ) )(joystick, hat, value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetJoystickVirtualHat( + public static byte SetJoystickVirtualHatRaw( JoystickHandle joystick, int hat, [NativeTypeName("Uint8")] byte value - ) => DllImport.SetJoystickVirtualHat(joystick, hat, value); + ) => DllImport.SetJoystickVirtualHatRaw(joystick, hat, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] byte down, + float x, + float y, + float pressure + ) => + ( + (delegate* unmanaged)( + _slots[723] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[723] = nativeContext.LoadFunction( + "SDL_SetJoystickVirtualTouchpad", + "SDL3" + ) + ) + )(joystick, touchpad, finger, down, x, y, pressure); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualTouchpad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] byte down, + float x, + float y, + float pressure + ) => DllImport.SetJoystickVirtualTouchpad(joystick, touchpad, finger, down, x, y, pressure); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] MaybeBool down, + float x, + float y, + float pressure + ) => + (MaybeBool) + (byte) + ((ISdl)this).SetJoystickVirtualTouchpad( + joystick, + touchpad, + finger, + (byte)down, + x, + y, + pressure + ); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualTouchpad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetJoystickVirtualTouchpad( + JoystickHandle joystick, + int touchpad, + int finger, + [NativeTypeName("bool")] MaybeBool down, + float x, + float y, + float pressure + ) => DllImport.SetJoystickVirtualTouchpad(joystick, touchpad, finger, down, x, y, pressure); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.SetLogOutputFunction( @@ -59860,9 +71871,9 @@ void ISdl.SetLogOutputFunction( ) => ( (delegate* unmanaged)( - _slots[683] is not null and var loadedFnPtr + _slots[724] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[683] = nativeContext.LoadFunction("SDL_SetLogOutputFunction", "SDL3") + : _slots[724] = nativeContext.LoadFunction("SDL_SetLogOutputFunction", "SDL3") ) )(callback, userdata); @@ -59894,43 +71905,117 @@ Ref userdata ) => DllImport.SetLogOutputFunction(callback, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.SetModState(Keymod modstate) => + void ISdl.SetLogPriorities(LogPriority priority) => ( - (delegate* unmanaged)( - _slots[684] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[725] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[725] = nativeContext.LoadFunction("SDL_SetLogPriorities", "SDL3") + ) + )(priority); + + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorities")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetLogPriorities(LogPriority priority) => + DllImport.SetLogPriorities(priority); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetLogPriority(int category, LogPriority priority) => + ( + (delegate* unmanaged)( + _slots[726] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[726] = nativeContext.LoadFunction("SDL_SetLogPriority", "SDL3") + ) + )(category, priority); + + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriority")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetLogPriority(int category, LogPriority priority) => + DllImport.SetLogPriority(category, priority); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] sbyte* prefix + ) => + ( + (delegate* unmanaged)( + _slots[727] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[727] = nativeContext.LoadFunction("SDL_SetLogPriorityPrefix", "SDL3") + ) + )(priority, prefix); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorityPrefix")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] sbyte* prefix + ) => DllImport.SetLogPriorityPrefix(priority, prefix); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] Ref prefix + ) + { + fixed (sbyte* __dsl_prefix = prefix) + { + return (MaybeBool)(byte)((ISdl)this).SetLogPriorityPrefix(priority, __dsl_prefix); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogPriorityPrefix")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetLogPriorityPrefix( + LogPriority priority, + [NativeTypeName("const char *")] Ref prefix + ) => DllImport.SetLogPriorityPrefix(priority, prefix); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetModState([NativeTypeName("SDL_Keymod")] ushort modstate) => + ( + (delegate* unmanaged)( + _slots[728] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[684] = nativeContext.LoadFunction("SDL_SetModState", "SDL3") + : _slots[728] = nativeContext.LoadFunction("SDL_SetModState", "SDL3") ) )(modstate); [NativeFunction("SDL3", EntryPoint = "SDL_SetModState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void SetModState(Keymod modstate) => DllImport.SetModState(modstate); + public static void SetModState([NativeTypeName("SDL_Keymod")] ushort modstate) => + DllImport.SetModState(modstate); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetNumberProperty( + byte ISdl.SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("Sint64")] long value ) => ( - (delegate* unmanaged)( - _slots[685] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[729] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[685] = nativeContext.LoadFunction("SDL_SetNumberProperty", "SDL3") + : _slots[729] = nativeContext.LoadFunction("SDL_SetNumberProperty", "SDL3") ) )(props, name, value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetNumberProperty( + public static byte SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("Sint64")] long value ) => DllImport.SetNumberProperty(props, name, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetNumberProperty( + MaybeBool ISdl.SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("Sint64")] long value @@ -59938,37 +72023,39 @@ int ISdl.SetNumberProperty( { fixed (sbyte* __dsl_name = name) { - return (int)((ISdl)this).SetNumberProperty(props, __dsl_name, value); + return (MaybeBool)(byte)((ISdl)this).SetNumberProperty(props, __dsl_name, value); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetNumberProperty( + public static MaybeBool SetNumberProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("Sint64")] long value ) => DllImport.SetNumberProperty(props, name, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetPaletteColors( + byte ISdl.SetPaletteColors( Palette* palette, [NativeTypeName("const SDL_Color *")] Color* colors, int firstcolor, int ncolors ) => ( - (delegate* unmanaged)( - _slots[686] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[730] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[686] = nativeContext.LoadFunction("SDL_SetPaletteColors", "SDL3") + : _slots[730] = nativeContext.LoadFunction("SDL_SetPaletteColors", "SDL3") ) )(palette, colors, firstcolor, ncolors); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetPaletteColors( + public static byte SetPaletteColors( Palette* palette, [NativeTypeName("const SDL_Color *")] Color* colors, int firstcolor, @@ -59976,7 +72063,7 @@ int ncolors ) => DllImport.SetPaletteColors(palette, colors, firstcolor, ncolors); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetPaletteColors( + MaybeBool ISdl.SetPaletteColors( Ref palette, [NativeTypeName("const SDL_Color *")] Ref colors, int firstcolor, @@ -59986,15 +72073,17 @@ int ncolors fixed (Color* __dsl_colors = colors) fixed (Palette* __dsl_palette = palette) { - return (int) - ((ISdl)this).SetPaletteColors(__dsl_palette, __dsl_colors, firstcolor, ncolors); + return (MaybeBool) + (byte) + ((ISdl)this).SetPaletteColors(__dsl_palette, __dsl_colors, firstcolor, ncolors); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetPaletteColors( + public static MaybeBool SetPaletteColors( Ref palette, [NativeTypeName("const SDL_Color *")] Ref colors, int firstcolor, @@ -60002,93 +72091,30 @@ int ncolors ) => DllImport.SetPaletteColors(palette, colors, firstcolor, ncolors); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetPixelFormatPalette(PixelFormat* format, Palette* palette) => - ( - (delegate* unmanaged)( - _slots[687] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[687] = nativeContext.LoadFunction("SDL_SetPixelFormatPalette", "SDL3") - ) - )(format, palette); - - [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetPixelFormatPalette(PixelFormat* format, Palette* palette) => - DllImport.SetPixelFormatPalette(format, palette); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetPixelFormatPalette(Ref format, Ref palette) - { - fixed (Palette* __dsl_palette = palette) - fixed (PixelFormat* __dsl_format = format) - { - return (int)((ISdl)this).SetPixelFormatPalette(__dsl_format, __dsl_palette); - } - } - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetPixelFormatPalette(Ref format, Ref palette) => - DllImport.SetPixelFormatPalette(format, palette); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text) => - ( - (delegate* unmanaged)( - _slots[688] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[688] = nativeContext.LoadFunction( - "SDL_SetPrimarySelectionText", - "SDL3" - ) - ) - )(text); - - [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text) => - DllImport.SetPrimarySelectionText(text); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetPrimarySelectionText([NativeTypeName("const char *")] Ref text) - { - fixed (sbyte* __dsl_text = text) - { - return (int)((ISdl)this).SetPrimarySelectionText(__dsl_text); - } - } - - [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetPrimarySelectionText([NativeTypeName("const char *")] Ref text) => - DllImport.SetPrimarySelectionText(text); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetProperty( + byte ISdl.SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value ) => ( - (delegate* unmanaged)( - _slots[689] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[731] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[689] = nativeContext.LoadFunction("SDL_SetProperty", "SDL3") + : _slots[731] = nativeContext.LoadFunction("SDL_SetPointerProperty", "SDL3") ) )(props, name, value); - [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetProperty( + public static byte SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value - ) => DllImport.SetProperty(props, name, value); + ) => DllImport.SetPointerProperty(props, name, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetProperty( + MaybeBool ISdl.SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value @@ -60097,51 +72123,57 @@ Ref value fixed (void* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (int)((ISdl)this).SetProperty(props, __dsl_name, __dsl_value); + return (MaybeBool) + (byte)((ISdl)this).SetPointerProperty(props, __dsl_name, __dsl_value); } } + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetProperty( + public static MaybeBool SetPointerProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value - ) => DllImport.SetProperty(props, name, value); + ) => DllImport.SetPointerProperty(props, name, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetPropertyWithCleanup( + byte ISdl.SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, void* userdata ) => ( - (delegate* unmanaged)( - _slots[690] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[732] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[690] = nativeContext.LoadFunction("SDL_SetPropertyWithCleanup", "SDL3") + : _slots[732] = nativeContext.LoadFunction( + "SDL_SetPointerPropertyWithCleanup", + "SDL3" + ) ) )(props, name, value, cleanup, userdata); - [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerPropertyWithCleanup")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetPropertyWithCleanup( + public static byte SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, void* value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, void* userdata - ) => DllImport.SetPropertyWithCleanup(props, name, value, cleanup, userdata); + ) => DllImport.SetPointerPropertyWithCleanup(props, name, value, cleanup, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetPropertyWithCleanup( + MaybeBool ISdl.SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, Ref userdata ) { @@ -60149,142 +72181,185 @@ Ref userdata fixed (void* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (int) - ((ISdl)this).SetPropertyWithCleanup( - props, - __dsl_name, - __dsl_value, - cleanup, - __dsl_userdata - ); + return (MaybeBool) + (byte) + ((ISdl)this).SetPointerPropertyWithCleanup( + props, + __dsl_name, + __dsl_value, + cleanup, + __dsl_userdata + ); } } + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPointerPropertyWithCleanup")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetPropertyWithCleanup( + public static MaybeBool SetPointerPropertyWithCleanup( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, Ref value, - [NativeTypeName("void (*)(void *, void *)")] SetPropertyWithCleanupCleanup cleanup, + [NativeTypeName("SDL_CleanupPropertyCallback")] CleanupPropertyCallback cleanup, Ref userdata - ) => DllImport.SetPropertyWithCleanup(props, name, value, cleanup, userdata); + ) => DllImport.SetPointerPropertyWithCleanup(props, name, value, cleanup, userdata); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled) => + byte ISdl.SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text) => ( - (delegate* unmanaged)( - _slots[691] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[733] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[691] = nativeContext.LoadFunction("SDL_SetRelativeMouseMode", "SDL3") + : _slots[733] = nativeContext.LoadFunction( + "SDL_SetPrimarySelectionText", + "SDL3" + ) ) - )(enabled); + )(text); - [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled) => - DllImport.SetRelativeMouseMode(enabled); + public static byte SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text) => + DllImport.SetPrimarySelectionText(text); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRelativeMouseMode([NativeTypeName("SDL_bool")] MaybeBool enabled) => - (int)((ISdl)this).SetRelativeMouseMode((int)enabled); + MaybeBool ISdl.SetPrimarySelectionText([NativeTypeName("const char *")] Ref text) + { + fixed (sbyte* __dsl_text = text) + { + return (MaybeBool)(byte)((ISdl)this).SetPrimarySelectionText(__dsl_text); + } + } + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRelativeMouseMode([NativeTypeName("SDL_bool")] MaybeBool enabled) => - DllImport.SetRelativeMouseMode(enabled); + public static MaybeBool SetPrimarySelectionText( + [NativeTypeName("const char *")] Ref text + ) => DllImport.SetPrimarySelectionText(text); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRenderClipRect( + byte ISdl.SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => ( - (delegate* unmanaged)( - _slots[692] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[734] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[692] = nativeContext.LoadFunction("SDL_SetRenderClipRect", "SDL3") + : _slots[734] = nativeContext.LoadFunction("SDL_SetRenderClipRect", "SDL3") ) )(renderer, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRenderClipRect( + public static byte SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => DllImport.SetRenderClipRect(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRenderClipRect( + MaybeBool ISdl.SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)((ISdl)this).SetRenderClipRect(renderer, __dsl_rect); + return (MaybeBool)(byte)((ISdl)this).SetRenderClipRect(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRenderClipRect( + public static MaybeBool SetRenderClipRect( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ) => DllImport.SetRenderClipRect(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRenderColorScale(RendererHandle renderer, float scale) => + MaybeBool ISdl.SetRenderColorScale(RendererHandle renderer, float scale) => + (MaybeBool)(byte)((ISdl)this).SetRenderColorScaleRaw(renderer, scale); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetRenderColorScale(RendererHandle renderer, float scale) => + DllImport.SetRenderColorScale(renderer, scale); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetRenderColorScaleRaw(RendererHandle renderer, float scale) => ( - (delegate* unmanaged)( - _slots[693] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[735] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[693] = nativeContext.LoadFunction("SDL_SetRenderColorScale", "SDL3") + : _slots[735] = nativeContext.LoadFunction("SDL_SetRenderColorScale", "SDL3") ) )(renderer, scale); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRenderColorScale(RendererHandle renderer, float scale) => - DllImport.SetRenderColorScale(renderer, scale); + public static byte SetRenderColorScaleRaw(RendererHandle renderer, float scale) => + DllImport.SetRenderColorScaleRaw(renderer, scale); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => (MaybeBool)(byte)((ISdl)this).SetRenderDrawBlendModeRaw(renderer, blendMode); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetRenderDrawBlendMode( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => DllImport.SetRenderDrawBlendMode(renderer, blendMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRenderDrawBlendMode(RendererHandle renderer, BlendMode blendMode) => + byte ISdl.SetRenderDrawBlendModeRaw( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => ( - (delegate* unmanaged)( - _slots[694] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[736] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[694] = nativeContext.LoadFunction("SDL_SetRenderDrawBlendMode", "SDL3") + : _slots[736] = nativeContext.LoadFunction("SDL_SetRenderDrawBlendMode", "SDL3") ) )(renderer, blendMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRenderDrawBlendMode(RendererHandle renderer, BlendMode blendMode) => - DllImport.SetRenderDrawBlendMode(renderer, blendMode); + public static byte SetRenderDrawBlendModeRaw( + RendererHandle renderer, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => DllImport.SetRenderDrawBlendModeRaw(renderer, blendMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRenderDrawColor( + MaybeBool ISdl.SetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b, [NativeTypeName("Uint8")] byte a - ) => - ( - (delegate* unmanaged)( - _slots[695] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[695] = nativeContext.LoadFunction("SDL_SetRenderDrawColor", "SDL3") - ) - )(renderer, r, g, b, a); + ) => (MaybeBool)(byte)((ISdl)this).SetRenderDrawColorRaw(renderer, r, g, b, a); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRenderDrawColor( + public static MaybeBool SetRenderDrawColor( RendererHandle renderer, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, @@ -60293,172 +72368,325 @@ public static int SetRenderDrawColor( ) => DllImport.SetRenderDrawColor(renderer, r, g, b, a); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRenderDrawColorFloat(RendererHandle renderer, float r, float g, float b, float a) => + MaybeBool ISdl.SetRenderDrawColorFloat( + RendererHandle renderer, + float r, + float g, + float b, + float a + ) => (MaybeBool)(byte)((ISdl)this).SetRenderDrawColorFloatRaw(renderer, r, g, b, a); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetRenderDrawColorFloat( + RendererHandle renderer, + float r, + float g, + float b, + float a + ) => DllImport.SetRenderDrawColorFloat(renderer, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetRenderDrawColorFloatRaw( + RendererHandle renderer, + float r, + float g, + float b, + float a + ) => ( - (delegate* unmanaged)( - _slots[696] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[738] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[696] = nativeContext.LoadFunction( + : _slots[738] = nativeContext.LoadFunction( "SDL_SetRenderDrawColorFloat", "SDL3" ) ) )(renderer, r, g, b, a); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRenderDrawColorFloat( + public static byte SetRenderDrawColorFloatRaw( RendererHandle renderer, float r, float g, float b, float a - ) => DllImport.SetRenderDrawColorFloat(renderer, r, g, b, a); + ) => DllImport.SetRenderDrawColorFloatRaw(renderer, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetRenderDrawColorRaw( + RendererHandle renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => + ( + (delegate* unmanaged)( + _slots[737] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[737] = nativeContext.LoadFunction("SDL_SetRenderDrawColor", "SDL3") + ) + )(renderer, r, g, b, a); + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRenderLogicalPresentation( + public static byte SetRenderDrawColorRaw( + RendererHandle renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => DllImport.SetRenderDrawColorRaw(renderer, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetRenderLogicalPresentation( RendererHandle renderer, int w, int h, - RendererLogicalPresentation mode, - ScaleMode scale_mode + RendererLogicalPresentation mode + ) => (MaybeBool)(byte)((ISdl)this).SetRenderLogicalPresentationRaw(renderer, w, h, mode); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetRenderLogicalPresentation( + RendererHandle renderer, + int w, + int h, + RendererLogicalPresentation mode + ) => DllImport.SetRenderLogicalPresentation(renderer, w, h, mode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetRenderLogicalPresentationRaw( + RendererHandle renderer, + int w, + int h, + RendererLogicalPresentation mode ) => ( - (delegate* unmanaged< - RendererHandle, - int, - int, - RendererLogicalPresentation, - ScaleMode, - int>)( - _slots[697] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[739] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[697] = nativeContext.LoadFunction( + : _slots[739] = nativeContext.LoadFunction( "SDL_SetRenderLogicalPresentation", "SDL3" ) ) - )(renderer, w, h, mode, scale_mode); + )(renderer, w, h, mode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRenderLogicalPresentation( + public static byte SetRenderLogicalPresentationRaw( RendererHandle renderer, int w, int h, - RendererLogicalPresentation mode, - ScaleMode scale_mode - ) => DllImport.SetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + RendererLogicalPresentation mode + ) => DllImport.SetRenderLogicalPresentationRaw(renderer, w, h, mode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetRenderScale(RendererHandle renderer, float scaleX, float scaleY) => + (MaybeBool)(byte)((ISdl)this).SetRenderScaleRaw(renderer, scaleX, scaleY); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetRenderScale( + RendererHandle renderer, + float scaleX, + float scaleY + ) => DllImport.SetRenderScale(renderer, scaleX, scaleY); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRenderScale(RendererHandle renderer, float scaleX, float scaleY) => + byte ISdl.SetRenderScaleRaw(RendererHandle renderer, float scaleX, float scaleY) => ( - (delegate* unmanaged)( - _slots[698] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[740] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[698] = nativeContext.LoadFunction("SDL_SetRenderScale", "SDL3") + : _slots[740] = nativeContext.LoadFunction("SDL_SetRenderScale", "SDL3") ) )(renderer, scaleX, scaleY); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRenderScale(RendererHandle renderer, float scaleX, float scaleY) => - DllImport.SetRenderScale(renderer, scaleX, scaleY); + public static byte SetRenderScaleRaw(RendererHandle renderer, float scaleX, float scaleY) => + DllImport.SetRenderScaleRaw(renderer, scaleX, scaleY); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRenderTarget(RendererHandle renderer, TextureHandle texture) => + byte ISdl.SetRenderTarget(RendererHandle renderer, Texture* texture) => ( - (delegate* unmanaged)( - _slots[699] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[741] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[699] = nativeContext.LoadFunction("SDL_SetRenderTarget", "SDL3") + : _slots[741] = nativeContext.LoadFunction("SDL_SetRenderTarget", "SDL3") ) )(renderer, texture); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRenderTarget(RendererHandle renderer, TextureHandle texture) => + public static byte SetRenderTarget(RendererHandle renderer, Texture* texture) => DllImport.SetRenderTarget(renderer, texture); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRenderViewport( + MaybeBool ISdl.SetRenderTarget(RendererHandle renderer, Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)((ISdl)this).SetRenderTarget(renderer, __dsl_texture); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetRenderTarget(RendererHandle renderer, Ref texture) => + DllImport.SetRenderTarget(renderer, texture); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => ( - (delegate* unmanaged)( - _slots[700] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[742] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[700] = nativeContext.LoadFunction("SDL_SetRenderViewport", "SDL3") + : _slots[742] = nativeContext.LoadFunction("SDL_SetRenderViewport", "SDL3") ) )(renderer, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRenderViewport( + public static byte SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => DllImport.SetRenderViewport(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRenderViewport( + MaybeBool ISdl.SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)((ISdl)this).SetRenderViewport(renderer, __dsl_rect); + return (MaybeBool)(byte)((ISdl)this).SetRenderViewport(renderer, __dsl_rect); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRenderViewport( + public static MaybeBool SetRenderViewport( RendererHandle renderer, [NativeTypeName("const SDL_Rect *")] Ref rect ) => DllImport.SetRenderViewport(renderer, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetRenderVSync(RendererHandle renderer, int vsync) => + MaybeBool ISdl.SetRenderVSync(RendererHandle renderer, int vsync) => + (MaybeBool)(byte)((ISdl)this).SetRenderVSyncRaw(renderer, vsync); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetRenderVSync(RendererHandle renderer, int vsync) => + DllImport.SetRenderVSync(renderer, vsync); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetRenderVSyncRaw(RendererHandle renderer, int vsync) => ( - (delegate* unmanaged)( - _slots[701] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[743] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[701] = nativeContext.LoadFunction("SDL_SetRenderVSync", "SDL3") + : _slots[743] = nativeContext.LoadFunction("SDL_SetRenderVSync", "SDL3") ) )(renderer, vsync); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetRenderVSync(RendererHandle renderer, int vsync) => - DllImport.SetRenderVSync(renderer, vsync); + public static byte SetRenderVSyncRaw(RendererHandle renderer, int vsync) => + DllImport.SetRenderVSyncRaw(renderer, vsync); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetStringProperty( + byte ISdl.SetScancodeName(Scancode scancode, [NativeTypeName("const char *")] sbyte* name) => + ( + (delegate* unmanaged)( + _slots[744] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[744] = nativeContext.LoadFunction("SDL_SetScancodeName", "SDL3") + ) + )(scancode, name); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetScancodeName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetScancodeName( + Scancode scancode, + [NativeTypeName("const char *")] sbyte* name + ) => DllImport.SetScancodeName(scancode, name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetScancodeName( + Scancode scancode, + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(byte)((ISdl)this).SetScancodeName(scancode, __dsl_name); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetScancodeName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetScancodeName( + Scancode scancode, + [NativeTypeName("const char *")] Ref name + ) => DllImport.SetScancodeName(scancode, name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetStringProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ) => ( - (delegate* unmanaged)( - _slots[702] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[745] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[702] = nativeContext.LoadFunction("SDL_SetStringProperty", "SDL3") + : _slots[745] = nativeContext.LoadFunction("SDL_SetStringProperty", "SDL3") ) )(props, name, value); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetStringProperty( + public static byte SetStringProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] sbyte* name, [NativeTypeName("const char *")] sbyte* value ) => DllImport.SetStringProperty(props, name, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetStringProperty( + MaybeBool ISdl.SetStringProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value @@ -60467,104 +72695,124 @@ int ISdl.SetStringProperty( fixed (sbyte* __dsl_value = value) fixed (sbyte* __dsl_name = name) { - return (int)((ISdl)this).SetStringProperty(props, __dsl_name, __dsl_value); + return (MaybeBool) + (byte)((ISdl)this).SetStringProperty(props, __dsl_name, __dsl_value); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetStringProperty( + public static MaybeBool SetStringProperty( [NativeTypeName("SDL_PropertiesID")] uint props, [NativeTypeName("const char *")] Ref name, [NativeTypeName("const char *")] Ref value ) => DllImport.SetStringProperty(props, name, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8")] byte alpha) => + byte ISdl.SetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8")] byte alpha) => ( - (delegate* unmanaged)( - _slots[703] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[746] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[703] = nativeContext.LoadFunction("SDL_SetSurfaceAlphaMod", "SDL3") + : _slots[746] = nativeContext.LoadFunction("SDL_SetSurfaceAlphaMod", "SDL3") ) )(surface, alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8")] byte alpha) => + public static byte SetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8")] byte alpha) => DllImport.SetSurfaceAlphaMod(surface, alpha); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceAlphaMod(Ref surface, [NativeTypeName("Uint8")] byte alpha) + MaybeBool ISdl.SetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8")] byte alpha + ) { fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).SetSurfaceAlphaMod(__dsl_surface, alpha); + return (MaybeBool)(byte)((ISdl)this).SetSurfaceAlphaMod(__dsl_surface, alpha); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceAlphaMod( + public static MaybeBool SetSurfaceAlphaMod( Ref surface, [NativeTypeName("Uint8")] byte alpha ) => DllImport.SetSurfaceAlphaMod(surface, alpha); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceBlendMode(Surface* surface, BlendMode blendMode) => + byte ISdl.SetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => ( - (delegate* unmanaged)( - _slots[704] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[747] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[704] = nativeContext.LoadFunction("SDL_SetSurfaceBlendMode", "SDL3") + : _slots[747] = nativeContext.LoadFunction("SDL_SetSurfaceBlendMode", "SDL3") ) )(surface, blendMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceBlendMode(Surface* surface, BlendMode blendMode) => - DllImport.SetSurfaceBlendMode(surface, blendMode); + public static byte SetSurfaceBlendMode( + Surface* surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => DllImport.SetSurfaceBlendMode(surface, blendMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceBlendMode(Ref surface, BlendMode blendMode) + MaybeBool ISdl.SetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) { fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).SetSurfaceBlendMode(__dsl_surface, blendMode); + return (MaybeBool) + (byte)((ISdl)this).SetSurfaceBlendMode(__dsl_surface, blendMode); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceBlendMode(Ref surface, BlendMode blendMode) => - DllImport.SetSurfaceBlendMode(surface, blendMode); + public static MaybeBool SetSurfaceBlendMode( + Ref surface, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => DllImport.SetSurfaceBlendMode(surface, blendMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceClipRect( + byte ISdl.SetSurfaceClipRect( Surface* surface, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => ( - (delegate* unmanaged)( - _slots[705] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[748] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[705] = nativeContext.LoadFunction("SDL_SetSurfaceClipRect", "SDL3") + : _slots[748] = nativeContext.LoadFunction("SDL_SetSurfaceClipRect", "SDL3") ) )(surface, rect); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceClipRect( + public static byte SetSurfaceClipRect( Surface* surface, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => DllImport.SetSurfaceClipRect(surface, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.SetSurfaceClipRect( + MaybeBool ISdl.SetSurfaceClipRect( Ref surface, [NativeTypeName("const SDL_Rect *")] Ref rect ) @@ -60572,73 +72820,86 @@ MaybeBool ISdl.SetSurfaceClipRect( fixed (Rect* __dsl_rect = rect) fixed (Surface* __dsl_surface = surface) { - return (MaybeBool)(int)((ISdl)this).SetSurfaceClipRect(__dsl_surface, __dsl_rect); + return (MaybeBool) + (byte)((ISdl)this).SetSurfaceClipRect(__dsl_surface, __dsl_rect); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool SetSurfaceClipRect( + public static MaybeBool SetSurfaceClipRect( Ref surface, [NativeTypeName("const SDL_Rect *")] Ref rect ) => DllImport.SetSurfaceClipRect(surface, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceColorKey(Surface* surface, int flag, [NativeTypeName("Uint32")] uint key) => + byte ISdl.SetSurfaceColorKey( + Surface* surface, + [NativeTypeName("bool")] byte enabled, + [NativeTypeName("Uint32")] uint key + ) => ( - (delegate* unmanaged)( - _slots[706] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[749] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[706] = nativeContext.LoadFunction("SDL_SetSurfaceColorKey", "SDL3") + : _slots[749] = nativeContext.LoadFunction("SDL_SetSurfaceColorKey", "SDL3") ) - )(surface, flag, key); + )(surface, enabled, key); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceColorKey( + public static byte SetSurfaceColorKey( Surface* surface, - int flag, + [NativeTypeName("bool")] byte enabled, [NativeTypeName("Uint32")] uint key - ) => DllImport.SetSurfaceColorKey(surface, flag, key); + ) => DllImport.SetSurfaceColorKey(surface, enabled, key); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceColorKey(Ref surface, int flag, [NativeTypeName("Uint32")] uint key) + MaybeBool ISdl.SetSurfaceColorKey( + Ref surface, + [NativeTypeName("bool")] MaybeBool enabled, + [NativeTypeName("Uint32")] uint key + ) { fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).SetSurfaceColorKey(__dsl_surface, flag, key); + return (MaybeBool) + (byte)((ISdl)this).SetSurfaceColorKey(__dsl_surface, (byte)enabled, key); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceColorKey( + public static MaybeBool SetSurfaceColorKey( Ref surface, - int flag, + [NativeTypeName("bool")] MaybeBool enabled, [NativeTypeName("Uint32")] uint key - ) => DllImport.SetSurfaceColorKey(surface, flag, key); + ) => DllImport.SetSurfaceColorKey(surface, enabled, key); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceColorMod( + byte ISdl.SetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ) => ( - (delegate* unmanaged)( - _slots[707] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[750] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[707] = nativeContext.LoadFunction("SDL_SetSurfaceColorMod", "SDL3") + : _slots[750] = nativeContext.LoadFunction("SDL_SetSurfaceColorMod", "SDL3") ) )(surface, r, g, b); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceColorMod( + public static byte SetSurfaceColorMod( Surface* surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, @@ -60646,7 +72907,7 @@ public static int SetSurfaceColorMod( ) => DllImport.SetSurfaceColorMod(surface, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceColorMod( + MaybeBool ISdl.SetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, @@ -60655,14 +72916,15 @@ int ISdl.SetSurfaceColorMod( { fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).SetSurfaceColorMod(__dsl_surface, r, g, b); + return (MaybeBool)(byte)((ISdl)this).SetSurfaceColorMod(__dsl_surface, r, g, b); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceColorMod( + public static MaybeBool SetSurfaceColorMod( Ref surface, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, @@ -60670,486 +72932,682 @@ public static int SetSurfaceColorMod( ) => DllImport.SetSurfaceColorMod(surface, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => + byte ISdl.SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => ( - (delegate* unmanaged)( - _slots[708] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[751] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[708] = nativeContext.LoadFunction("SDL_SetSurfaceColorspace", "SDL3") + : _slots[751] = nativeContext.LoadFunction("SDL_SetSurfaceColorspace", "SDL3") ) )(surface, colorspace); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => + public static byte SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => DllImport.SetSurfaceColorspace(surface, colorspace); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceColorspace(Ref surface, Colorspace colorspace) + MaybeBool ISdl.SetSurfaceColorspace(Ref surface, Colorspace colorspace) { fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).SetSurfaceColorspace(__dsl_surface, colorspace); + return (MaybeBool) + (byte)((ISdl)this).SetSurfaceColorspace(__dsl_surface, colorspace); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceColorspace(Ref surface, Colorspace colorspace) => - DllImport.SetSurfaceColorspace(surface, colorspace); + public static MaybeBool SetSurfaceColorspace( + Ref surface, + Colorspace colorspace + ) => DllImport.SetSurfaceColorspace(surface, colorspace); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfacePalette(Surface* surface, Palette* palette) => + byte ISdl.SetSurfacePalette(Surface* surface, Palette* palette) => ( - (delegate* unmanaged)( - _slots[709] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[752] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[709] = nativeContext.LoadFunction("SDL_SetSurfacePalette", "SDL3") + : _slots[752] = nativeContext.LoadFunction("SDL_SetSurfacePalette", "SDL3") ) )(surface, palette); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfacePalette(Surface* surface, Palette* palette) => + public static byte SetSurfacePalette(Surface* surface, Palette* palette) => DllImport.SetSurfacePalette(surface, palette); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfacePalette(Ref surface, Ref palette) + MaybeBool ISdl.SetSurfacePalette(Ref surface, Ref palette) { fixed (Palette* __dsl_palette = palette) fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).SetSurfacePalette(__dsl_surface, __dsl_palette); + return (MaybeBool) + (byte)((ISdl)this).SetSurfacePalette(__dsl_surface, __dsl_palette); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfacePalette(Ref surface, Ref palette) => + public static MaybeBool SetSurfacePalette(Ref surface, Ref palette) => DllImport.SetSurfacePalette(surface, palette); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceRLE(Surface* surface, int flag) => + byte ISdl.SetSurfaceRLE(Surface* surface, [NativeTypeName("bool")] byte enabled) => ( - (delegate* unmanaged)( - _slots[710] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[753] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[710] = nativeContext.LoadFunction("SDL_SetSurfaceRLE", "SDL3") + : _slots[753] = nativeContext.LoadFunction("SDL_SetSurfaceRLE", "SDL3") ) - )(surface, flag); + )(surface, enabled); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceRLE(Surface* surface, int flag) => - DllImport.SetSurfaceRLE(surface, flag); + public static byte SetSurfaceRLE(Surface* surface, [NativeTypeName("bool")] byte enabled) => + DllImport.SetSurfaceRLE(surface, enabled); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetSurfaceRLE(Ref surface, int flag) + MaybeBool ISdl.SetSurfaceRLE( + Ref surface, + [NativeTypeName("bool")] MaybeBool enabled + ) { fixed (Surface* __dsl_surface = surface) { - return (int)((ISdl)this).SetSurfaceRLE(__dsl_surface, flag); + return (MaybeBool)(byte)((ISdl)this).SetSurfaceRLE(__dsl_surface, (byte)enabled); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetSurfaceRLE(Ref surface, int flag) => - DllImport.SetSurfaceRLE(surface, flag); + public static MaybeBool SetSurfaceRLE( + Ref surface, + [NativeTypeName("bool")] MaybeBool enabled + ) => DllImport.SetSurfaceRLE(surface, enabled); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => + byte ISdl.SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int cursor + ) => ( - (delegate* unmanaged)( - _slots[711] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[754] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[711] = nativeContext.LoadFunction("SDL_SetTextInputRect", "SDL3") + : _slots[754] = nativeContext.LoadFunction("SDL_SetTextInputArea", "SDL3") ) - )(rect); + )(window, rect, cursor); - [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputArea")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => - DllImport.SetTextInputRect(rect); + public static byte SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int cursor + ) => DllImport.SetTextInputArea(window, rect, cursor); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect) + MaybeBool ISdl.SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Ref rect, + int cursor + ) { fixed (Rect* __dsl_rect = rect) { - return (int)((ISdl)this).SetTextInputRect(__dsl_rect); + return (MaybeBool)(byte)((ISdl)this).SetTextInputArea(window, __dsl_rect, cursor); } } + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputArea")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect) => - DllImport.SetTextInputRect(rect); + public static MaybeBool SetTextInputArea( + WindowHandle window, + [NativeTypeName("const SDL_Rect *")] Ref rect, + int cursor + ) => DllImport.SetTextInputArea(window, rect, cursor); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetTextureAlphaMod(TextureHandle texture, [NativeTypeName("Uint8")] byte alpha) => + byte ISdl.SetTextureAlphaMod(Texture* texture, [NativeTypeName("Uint8")] byte alpha) => ( - (delegate* unmanaged)( - _slots[712] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[755] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[712] = nativeContext.LoadFunction("SDL_SetTextureAlphaMod", "SDL3") + : _slots[755] = nativeContext.LoadFunction("SDL_SetTextureAlphaMod", "SDL3") ) )(texture, alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetTextureAlphaMod( - TextureHandle texture, + public static byte SetTextureAlphaMod(Texture* texture, [NativeTypeName("Uint8")] byte alpha) => + DllImport.SetTextureAlphaMod(texture, alpha); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8")] byte alpha + ) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)((ISdl)this).SetTextureAlphaMod(__dsl_texture, alpha); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetTextureAlphaMod( + Ref texture, [NativeTypeName("Uint8")] byte alpha ) => DllImport.SetTextureAlphaMod(texture, alpha); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetTextureAlphaModFloat(TextureHandle texture, float alpha) => + byte ISdl.SetTextureAlphaModFloat(Texture* texture, float alpha) => ( - (delegate* unmanaged)( - _slots[713] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[756] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[713] = nativeContext.LoadFunction( + : _slots[756] = nativeContext.LoadFunction( "SDL_SetTextureAlphaModFloat", "SDL3" ) ) )(texture, alpha); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetTextureAlphaModFloat(TextureHandle texture, float alpha) => + public static byte SetTextureAlphaModFloat(Texture* texture, float alpha) => DllImport.SetTextureAlphaModFloat(texture, alpha); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetTextureBlendMode(TextureHandle texture, BlendMode blendMode) => + MaybeBool ISdl.SetTextureAlphaModFloat(Ref texture, float alpha) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)((ISdl)this).SetTextureAlphaModFloat(__dsl_texture, alpha); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetTextureAlphaModFloat(Ref texture, float alpha) => + DllImport.SetTextureAlphaModFloat(texture, alpha); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => ( - (delegate* unmanaged)( - _slots[714] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[757] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[714] = nativeContext.LoadFunction("SDL_SetTextureBlendMode", "SDL3") + : _slots[757] = nativeContext.LoadFunction("SDL_SetTextureBlendMode", "SDL3") ) )(texture, blendMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetTextureBlendMode(TextureHandle texture, BlendMode blendMode) => - DllImport.SetTextureBlendMode(texture, blendMode); + public static byte SetTextureBlendMode( + Texture* texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => DllImport.SetTextureBlendMode(texture, blendMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetTextureColorMod( - TextureHandle texture, + MaybeBool ISdl.SetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)((ISdl)this).SetTextureBlendMode(__dsl_texture, blendMode); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetTextureBlendMode( + Ref texture, + [NativeTypeName("SDL_BlendMode")] BlendMode blendMode + ) => DllImport.SetTextureBlendMode(texture, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetTextureColorMod( + Texture* texture, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ) => ( - (delegate* unmanaged)( - _slots[715] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[758] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[715] = nativeContext.LoadFunction("SDL_SetTextureColorMod", "SDL3") + : _slots[758] = nativeContext.LoadFunction("SDL_SetTextureColorMod", "SDL3") ) )(texture, r, g, b); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetTextureColorMod( - TextureHandle texture, + public static byte SetTextureColorMod( + Texture* texture, [NativeTypeName("Uint8")] byte r, [NativeTypeName("Uint8")] byte g, [NativeTypeName("Uint8")] byte b ) => DllImport.SetTextureColorMod(texture, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetTextureColorModFloat(TextureHandle texture, float r, float g, float b) => + MaybeBool ISdl.SetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)((ISdl)this).SetTextureColorMod(__dsl_texture, r, g, b); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => DllImport.SetTextureColorMod(texture, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetTextureColorModFloat(Texture* texture, float r, float g, float b) => ( - (delegate* unmanaged)( - _slots[716] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[759] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[716] = nativeContext.LoadFunction( + : _slots[759] = nativeContext.LoadFunction( "SDL_SetTextureColorModFloat", "SDL3" ) ) )(texture, r, g, b); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetTextureColorModFloat(TextureHandle texture, float r, float g, float b) => + public static byte SetTextureColorModFloat(Texture* texture, float r, float g, float b) => DllImport.SetTextureColorModFloat(texture, r, g, b); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetTextureScaleMode(TextureHandle texture, ScaleMode scaleMode) => + MaybeBool ISdl.SetTextureColorModFloat(Ref texture, float r, float g, float b) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)((ISdl)this).SetTextureColorModFloat(__dsl_texture, r, g, b); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetTextureColorModFloat( + Ref texture, + float r, + float g, + float b + ) => DllImport.SetTextureColorModFloat(texture, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetTextureScaleMode(Texture* texture, ScaleMode scaleMode) => ( - (delegate* unmanaged)( - _slots[717] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[760] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[717] = nativeContext.LoadFunction("SDL_SetTextureScaleMode", "SDL3") + : _slots[760] = nativeContext.LoadFunction("SDL_SetTextureScaleMode", "SDL3") ) )(texture, scaleMode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetTextureScaleMode(TextureHandle texture, ScaleMode scaleMode) => + public static byte SetTextureScaleMode(Texture* texture, ScaleMode scaleMode) => DllImport.SetTextureScaleMode(texture, scaleMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetThreadPriority(ThreadPriority priority) => - ( - (delegate* unmanaged)( - _slots[718] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[718] = nativeContext.LoadFunction("SDL_SetThreadPriority", "SDL3") - ) - )(priority); + MaybeBool ISdl.SetTextureScaleMode(Ref texture, ScaleMode scaleMode) + { + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)((ISdl)this).SetTextureScaleMode(__dsl_texture, scaleMode); + } + } - [NativeFunction("SDL3", EntryPoint = "SDL_SetThreadPriority")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetThreadPriority(ThreadPriority priority) => - DllImport.SetThreadPriority(priority); + public static MaybeBool SetTextureScaleMode(Ref texture, ScaleMode scaleMode) => + DllImport.SetTextureScaleMode(texture, scaleMode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + byte ISdl.SetTLS( + [NativeTypeName("SDL_TLSID *")] AtomicInt* id, [NativeTypeName("const void *")] void* value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ) => ( - (delegate* unmanaged)( - _slots[719] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[761] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[719] = nativeContext.LoadFunction("SDL_SetTLS", "SDL3") + : _slots[761] = nativeContext.LoadFunction("SDL_SetTLS", "SDL3") ) )(id, value, destructor); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + public static byte SetTLS( + [NativeTypeName("SDL_TLSID *")] AtomicInt* id, [NativeTypeName("const void *")] void* value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ) => DllImport.SetTLS(id, value, destructor); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + MaybeBool ISdl.SetTLS( + [NativeTypeName("SDL_TLSID *")] Ref id, [NativeTypeName("const void *")] Ref value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ) { fixed (void* __dsl_value = value) + fixed (AtomicInt* __dsl_id = id) { - return (int)((ISdl)this).SetTLS(id, __dsl_value, destructor); + return (MaybeBool)(byte)((ISdl)this).SetTLS(__dsl_id, __dsl_value, destructor); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetTLS( - [NativeTypeName("SDL_TLSID")] uint id, + public static MaybeBool SetTLS( + [NativeTypeName("SDL_TLSID *")] Ref id, [NativeTypeName("const void *")] Ref value, - [NativeTypeName("void (*)(void *)")] ClipboardCleanupCallback destructor + [NativeTypeName("SDL_TLSDestructorCallback")] TLSDestructorCallback destructor ) => DllImport.SetTLS(id, value, destructor); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowAlwaysOnTop(WindowHandle window, [NativeTypeName("SDL_bool")] int on_top) => + byte ISdl.SetWindowAlwaysOnTop(WindowHandle window, [NativeTypeName("bool")] byte on_top) => ( - (delegate* unmanaged)( - _slots[720] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[762] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[720] = nativeContext.LoadFunction("SDL_SetWindowAlwaysOnTop", "SDL3") + : _slots[762] = nativeContext.LoadFunction("SDL_SetWindowAlwaysOnTop", "SDL3") ) )(window, on_top); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowAlwaysOnTop( + public static byte SetWindowAlwaysOnTop( WindowHandle window, - [NativeTypeName("SDL_bool")] int on_top + [NativeTypeName("bool")] byte on_top ) => DllImport.SetWindowAlwaysOnTop(window, on_top); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowAlwaysOnTop( + MaybeBool ISdl.SetWindowAlwaysOnTop( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool on_top - ) => (int)((ISdl)this).SetWindowAlwaysOnTop(window, (int)on_top); + [NativeTypeName("bool")] MaybeBool on_top + ) => (MaybeBool)(byte)((ISdl)this).SetWindowAlwaysOnTop(window, (byte)on_top); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowAlwaysOnTop( + public static MaybeBool SetWindowAlwaysOnTop( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool on_top + [NativeTypeName("bool")] MaybeBool on_top ) => DllImport.SetWindowAlwaysOnTop(window, on_top); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowBordered(WindowHandle window, [NativeTypeName("SDL_bool")] int bordered) => + MaybeBool ISdl.SetWindowAspectRatio( + WindowHandle window, + float min_aspect, + float max_aspect + ) => + (MaybeBool)(byte)((ISdl)this).SetWindowAspectRatioRaw(window, min_aspect, max_aspect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAspectRatio")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetWindowAspectRatio( + WindowHandle window, + float min_aspect, + float max_aspect + ) => DllImport.SetWindowAspectRatio(window, min_aspect, max_aspect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowAspectRatioRaw(WindowHandle window, float min_aspect, float max_aspect) => ( - (delegate* unmanaged)( - _slots[721] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[763] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[763] = nativeContext.LoadFunction("SDL_SetWindowAspectRatio", "SDL3") + ) + )(window, min_aspect, max_aspect); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAspectRatio")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetWindowAspectRatioRaw( + WindowHandle window, + float min_aspect, + float max_aspect + ) => DllImport.SetWindowAspectRatioRaw(window, min_aspect, max_aspect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowBordered(WindowHandle window, [NativeTypeName("bool")] byte bordered) => + ( + (delegate* unmanaged)( + _slots[764] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[721] = nativeContext.LoadFunction("SDL_SetWindowBordered", "SDL3") + : _slots[764] = nativeContext.LoadFunction("SDL_SetWindowBordered", "SDL3") ) )(window, bordered); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowBordered( + public static byte SetWindowBordered( WindowHandle window, - [NativeTypeName("SDL_bool")] int bordered + [NativeTypeName("bool")] byte bordered ) => DllImport.SetWindowBordered(window, bordered); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowBordered( + MaybeBool ISdl.SetWindowBordered( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool bordered - ) => (int)((ISdl)this).SetWindowBordered(window, (int)bordered); + [NativeTypeName("bool")] MaybeBool bordered + ) => (MaybeBool)(byte)((ISdl)this).SetWindowBordered(window, (byte)bordered); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowBordered( + public static MaybeBool SetWindowBordered( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool bordered + [NativeTypeName("bool")] MaybeBool bordered ) => DllImport.SetWindowBordered(window, bordered); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowFocusable(WindowHandle window, [NativeTypeName("SDL_bool")] int focusable) => + byte ISdl.SetWindowFocusable(WindowHandle window, [NativeTypeName("bool")] byte focusable) => ( - (delegate* unmanaged)( - _slots[722] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[765] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[722] = nativeContext.LoadFunction("SDL_SetWindowFocusable", "SDL3") + : _slots[765] = nativeContext.LoadFunction("SDL_SetWindowFocusable", "SDL3") ) )(window, focusable); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowFocusable( + public static byte SetWindowFocusable( WindowHandle window, - [NativeTypeName("SDL_bool")] int focusable + [NativeTypeName("bool")] byte focusable ) => DllImport.SetWindowFocusable(window, focusable); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowFocusable( + MaybeBool ISdl.SetWindowFocusable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool focusable - ) => (int)((ISdl)this).SetWindowFocusable(window, (int)focusable); + [NativeTypeName("bool")] MaybeBool focusable + ) => (MaybeBool)(byte)((ISdl)this).SetWindowFocusable(window, (byte)focusable); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowFocusable( + public static MaybeBool SetWindowFocusable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool focusable + [NativeTypeName("bool")] MaybeBool focusable ) => DllImport.SetWindowFocusable(window, focusable); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowFullscreen( - WindowHandle window, - [NativeTypeName("SDL_bool")] int fullscreen - ) => + byte ISdl.SetWindowFullscreen(WindowHandle window, [NativeTypeName("bool")] byte fullscreen) => ( - (delegate* unmanaged)( - _slots[723] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[766] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[723] = nativeContext.LoadFunction("SDL_SetWindowFullscreen", "SDL3") + : _slots[766] = nativeContext.LoadFunction("SDL_SetWindowFullscreen", "SDL3") ) )(window, fullscreen); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowFullscreen( + public static byte SetWindowFullscreen( WindowHandle window, - [NativeTypeName("SDL_bool")] int fullscreen + [NativeTypeName("bool")] byte fullscreen ) => DllImport.SetWindowFullscreen(window, fullscreen); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowFullscreen( + MaybeBool ISdl.SetWindowFullscreen( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool fullscreen - ) => (int)((ISdl)this).SetWindowFullscreen(window, (int)fullscreen); + [NativeTypeName("bool")] MaybeBool fullscreen + ) => (MaybeBool)(byte)((ISdl)this).SetWindowFullscreen(window, (byte)fullscreen); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowFullscreen( + public static MaybeBool SetWindowFullscreen( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool fullscreen + [NativeTypeName("bool")] MaybeBool fullscreen ) => DllImport.SetWindowFullscreen(window, fullscreen); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowFullscreenMode( + byte ISdl.SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode ) => ( - (delegate* unmanaged)( - _slots[724] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[767] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[724] = nativeContext.LoadFunction( + : _slots[767] = nativeContext.LoadFunction( "SDL_SetWindowFullscreenMode", "SDL3" ) ) )(window, mode); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowFullscreenMode( + public static byte SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode ) => DllImport.SetWindowFullscreenMode(window, mode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowFullscreenMode( + MaybeBool ISdl.SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] Ref mode ) { fixed (DisplayMode* __dsl_mode = mode) { - return (int)((ISdl)this).SetWindowFullscreenMode(window, __dsl_mode); + return (MaybeBool)(byte)((ISdl)this).SetWindowFullscreenMode(window, __dsl_mode); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowFullscreenMode( + public static MaybeBool SetWindowFullscreenMode( WindowHandle window, [NativeTypeName("const SDL_DisplayMode *")] Ref mode ) => DllImport.SetWindowFullscreenMode(window, mode); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowHitTest( + byte ISdl.SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, void* callback_data ) => ( - (delegate* unmanaged)( - _slots[725] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[768] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[725] = nativeContext.LoadFunction("SDL_SetWindowHitTest", "SDL3") + : _slots[768] = nativeContext.LoadFunction("SDL_SetWindowHitTest", "SDL3") ) )(window, callback, callback_data); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowHitTest( + public static byte SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, void* callback_data ) => DllImport.SetWindowHitTest(window, callback, callback_data); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowHitTest( + MaybeBool ISdl.SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, Ref callback_data @@ -61157,387 +73615,631 @@ Ref callback_data { fixed (void* __dsl_callback_data = callback_data) { - return (int)((ISdl)this).SetWindowHitTest(window, callback, __dsl_callback_data); + return (MaybeBool) + (byte)((ISdl)this).SetWindowHitTest(window, callback, __dsl_callback_data); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowHitTest( + public static MaybeBool SetWindowHitTest( WindowHandle window, [NativeTypeName("SDL_HitTest")] HitTest callback, Ref callback_data ) => DllImport.SetWindowHitTest(window, callback, callback_data); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowIcon(WindowHandle window, Surface* icon) => + byte ISdl.SetWindowIcon(WindowHandle window, Surface* icon) => ( - (delegate* unmanaged)( - _slots[726] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[769] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[726] = nativeContext.LoadFunction("SDL_SetWindowIcon", "SDL3") + : _slots[769] = nativeContext.LoadFunction("SDL_SetWindowIcon", "SDL3") ) )(window, icon); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowIcon(WindowHandle window, Surface* icon) => + public static byte SetWindowIcon(WindowHandle window, Surface* icon) => DllImport.SetWindowIcon(window, icon); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowIcon(WindowHandle window, Ref icon) + MaybeBool ISdl.SetWindowIcon(WindowHandle window, Ref icon) { fixed (Surface* __dsl_icon = icon) { - return (int)((ISdl)this).SetWindowIcon(window, __dsl_icon); + return (MaybeBool)(byte)((ISdl)this).SetWindowIcon(window, __dsl_icon); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowIcon(WindowHandle window, Ref icon) => + public static MaybeBool SetWindowIcon(WindowHandle window, Ref icon) => DllImport.SetWindowIcon(window, icon); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowInputFocus(WindowHandle window) => - ( - (delegate* unmanaged)( - _slots[727] is not null and var loadedFnPtr - ? loadedFnPtr - : _slots[727] = nativeContext.LoadFunction("SDL_SetWindowInputFocus", "SDL3") - ) - )(window); - - [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowInputFocus")] - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowInputFocus(WindowHandle window) => - DllImport.SetWindowInputFocus(window); - - [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowKeyboardGrab(WindowHandle window, [NativeTypeName("SDL_bool")] int grabbed) => + byte ISdl.SetWindowKeyboardGrab(WindowHandle window, [NativeTypeName("bool")] byte grabbed) => ( - (delegate* unmanaged)( - _slots[728] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[770] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[728] = nativeContext.LoadFunction("SDL_SetWindowKeyboardGrab", "SDL3") + : _slots[770] = nativeContext.LoadFunction("SDL_SetWindowKeyboardGrab", "SDL3") ) )(window, grabbed); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowKeyboardGrab( + public static byte SetWindowKeyboardGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] int grabbed + [NativeTypeName("bool")] byte grabbed ) => DllImport.SetWindowKeyboardGrab(window, grabbed); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowKeyboardGrab( + MaybeBool ISdl.SetWindowKeyboardGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed - ) => (int)((ISdl)this).SetWindowKeyboardGrab(window, (int)grabbed); + [NativeTypeName("bool")] MaybeBool grabbed + ) => (MaybeBool)(byte)((ISdl)this).SetWindowKeyboardGrab(window, (byte)grabbed); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowKeyboardGrab( + public static MaybeBool SetWindowKeyboardGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed + [NativeTypeName("bool")] MaybeBool grabbed ) => DllImport.SetWindowKeyboardGrab(window, grabbed); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowMaximumSize(WindowHandle window, int max_w, int max_h) => + MaybeBool ISdl.SetWindowMaximumSize(WindowHandle window, int max_w, int max_h) => + (MaybeBool)(byte)((ISdl)this).SetWindowMaximumSizeRaw(window, max_w, max_h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetWindowMaximumSize(WindowHandle window, int max_w, int max_h) => + DllImport.SetWindowMaximumSize(window, max_w, max_h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowMaximumSizeRaw(WindowHandle window, int max_w, int max_h) => ( - (delegate* unmanaged)( - _slots[729] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[771] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[729] = nativeContext.LoadFunction("SDL_SetWindowMaximumSize", "SDL3") + : _slots[771] = nativeContext.LoadFunction("SDL_SetWindowMaximumSize", "SDL3") ) )(window, max_w, max_h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowMaximumSize(WindowHandle window, int max_w, int max_h) => - DllImport.SetWindowMaximumSize(window, max_w, max_h); + public static byte SetWindowMaximumSizeRaw(WindowHandle window, int max_w, int max_h) => + DllImport.SetWindowMaximumSizeRaw(window, max_w, max_h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowMinimumSize(WindowHandle window, int min_w, int min_h) => + MaybeBool ISdl.SetWindowMinimumSize(WindowHandle window, int min_w, int min_h) => + (MaybeBool)(byte)((ISdl)this).SetWindowMinimumSizeRaw(window, min_w, min_h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetWindowMinimumSize(WindowHandle window, int min_w, int min_h) => + DllImport.SetWindowMinimumSize(window, min_w, min_h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowMinimumSizeRaw(WindowHandle window, int min_w, int min_h) => ( - (delegate* unmanaged)( - _slots[730] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[772] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[730] = nativeContext.LoadFunction("SDL_SetWindowMinimumSize", "SDL3") + : _slots[772] = nativeContext.LoadFunction("SDL_SetWindowMinimumSize", "SDL3") ) )(window, min_w, min_h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowMinimumSize(WindowHandle window, int min_w, int min_h) => - DllImport.SetWindowMinimumSize(window, min_w, min_h); + public static byte SetWindowMinimumSizeRaw(WindowHandle window, int min_w, int min_h) => + DllImport.SetWindowMinimumSizeRaw(window, min_w, min_h); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowModalFor(WindowHandle modal_window, WindowHandle parent_window) => + byte ISdl.SetWindowModal(WindowHandle window, [NativeTypeName("bool")] byte modal) => ( - (delegate* unmanaged)( - _slots[731] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[773] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[731] = nativeContext.LoadFunction("SDL_SetWindowModalFor", "SDL3") + : _slots[773] = nativeContext.LoadFunction("SDL_SetWindowModal", "SDL3") ) - )(modal_window, parent_window); + )(window, modal); - [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModalFor")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModal")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowModalFor(WindowHandle modal_window, WindowHandle parent_window) => - DllImport.SetWindowModalFor(modal_window, parent_window); + public static byte SetWindowModal(WindowHandle window, [NativeTypeName("bool")] byte modal) => + DllImport.SetWindowModal(window, modal); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowMouseGrab(WindowHandle window, [NativeTypeName("SDL_bool")] int grabbed) => + MaybeBool ISdl.SetWindowModal( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool modal + ) => (MaybeBool)(byte)((ISdl)this).SetWindowModal(window, (byte)modal); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModal")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetWindowModal( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool modal + ) => DllImport.SetWindowModal(window, modal); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowMouseGrab(WindowHandle window, [NativeTypeName("bool")] byte grabbed) => ( - (delegate* unmanaged)( - _slots[732] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[774] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[732] = nativeContext.LoadFunction("SDL_SetWindowMouseGrab", "SDL3") + : _slots[774] = nativeContext.LoadFunction("SDL_SetWindowMouseGrab", "SDL3") ) )(window, grabbed); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowMouseGrab( + public static byte SetWindowMouseGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] int grabbed + [NativeTypeName("bool")] byte grabbed ) => DllImport.SetWindowMouseGrab(window, grabbed); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowMouseGrab( + MaybeBool ISdl.SetWindowMouseGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed - ) => (int)((ISdl)this).SetWindowMouseGrab(window, (int)grabbed); + [NativeTypeName("bool")] MaybeBool grabbed + ) => (MaybeBool)(byte)((ISdl)this).SetWindowMouseGrab(window, (byte)grabbed); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowMouseGrab( + public static MaybeBool SetWindowMouseGrab( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool grabbed + [NativeTypeName("bool")] MaybeBool grabbed ) => DllImport.SetWindowMouseGrab(window, grabbed); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowMouseRect( + byte ISdl.SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => ( - (delegate* unmanaged)( - _slots[733] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[775] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[733] = nativeContext.LoadFunction("SDL_SetWindowMouseRect", "SDL3") + : _slots[775] = nativeContext.LoadFunction("SDL_SetWindowMouseRect", "SDL3") ) )(window, rect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowMouseRect( + public static byte SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rect ) => DllImport.SetWindowMouseRect(window, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowMouseRect( + MaybeBool ISdl.SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rect ) { fixed (Rect* __dsl_rect = rect) { - return (int)((ISdl)this).SetWindowMouseRect(window, __dsl_rect); + return (MaybeBool)(byte)((ISdl)this).SetWindowMouseRect(window, __dsl_rect); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowMouseRect( + public static MaybeBool SetWindowMouseRect( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rect ) => DllImport.SetWindowMouseRect(window, rect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowOpacity(WindowHandle window, float opacity) => + MaybeBool ISdl.SetWindowOpacity(WindowHandle window, float opacity) => + (MaybeBool)(byte)((ISdl)this).SetWindowOpacityRaw(window, opacity); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetWindowOpacity(WindowHandle window, float opacity) => + DllImport.SetWindowOpacity(window, opacity); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowOpacityRaw(WindowHandle window, float opacity) => ( - (delegate* unmanaged)( - _slots[734] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[776] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[734] = nativeContext.LoadFunction("SDL_SetWindowOpacity", "SDL3") + : _slots[776] = nativeContext.LoadFunction("SDL_SetWindowOpacity", "SDL3") ) )(window, opacity); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowOpacity(WindowHandle window, float opacity) => - DllImport.SetWindowOpacity(window, opacity); + public static byte SetWindowOpacityRaw(WindowHandle window, float opacity) => + DllImport.SetWindowOpacityRaw(window, opacity); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetWindowParent(WindowHandle window, WindowHandle parent) => + (MaybeBool)(byte)((ISdl)this).SetWindowParentRaw(window, parent); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowParent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetWindowParent(WindowHandle window, WindowHandle parent) => + DllImport.SetWindowParent(window, parent); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowPosition(WindowHandle window, int x, int y) => + byte ISdl.SetWindowParentRaw(WindowHandle window, WindowHandle parent) => ( - (delegate* unmanaged)( - _slots[735] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[777] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[735] = nativeContext.LoadFunction("SDL_SetWindowPosition", "SDL3") + : _slots[777] = nativeContext.LoadFunction("SDL_SetWindowParent", "SDL3") ) - )(window, x, y); + )(window, parent); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowParent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetWindowParentRaw(WindowHandle window, WindowHandle parent) => + DllImport.SetWindowParentRaw(window, parent); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetWindowPosition(WindowHandle window, int x, int y) => + (MaybeBool)(byte)((ISdl)this).SetWindowPositionRaw(window, x, y); + [return: NativeTypeName("bool")] + [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowPosition(WindowHandle window, int x, int y) => + public static MaybeBool SetWindowPosition(WindowHandle window, int x, int y) => DllImport.SetWindowPosition(window, x, y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowResizable(WindowHandle window, [NativeTypeName("SDL_bool")] int resizable) => + byte ISdl.SetWindowPositionRaw(WindowHandle window, int x, int y) => ( - (delegate* unmanaged)( - _slots[736] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[778] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[778] = nativeContext.LoadFunction("SDL_SetWindowPosition", "SDL3") + ) + )(window, x, y); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetWindowPositionRaw(WindowHandle window, int x, int y) => + DllImport.SetWindowPositionRaw(window, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowRelativeMouseMode( + WindowHandle window, + [NativeTypeName("bool")] byte enabled + ) => + ( + (delegate* unmanaged)( + _slots[779] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[736] = nativeContext.LoadFunction("SDL_SetWindowResizable", "SDL3") + : _slots[779] = nativeContext.LoadFunction( + "SDL_SetWindowRelativeMouseMode", + "SDL3" + ) + ) + )(window, enabled); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetWindowRelativeMouseMode( + WindowHandle window, + [NativeTypeName("bool")] byte enabled + ) => DllImport.SetWindowRelativeMouseMode(window, enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetWindowRelativeMouseMode( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool enabled + ) => (MaybeBool)(byte)((ISdl)this).SetWindowRelativeMouseMode(window, (byte)enabled); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetWindowRelativeMouseMode( + WindowHandle window, + [NativeTypeName("bool")] MaybeBool enabled + ) => DllImport.SetWindowRelativeMouseMode(window, enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowResizable(WindowHandle window, [NativeTypeName("bool")] byte resizable) => + ( + (delegate* unmanaged)( + _slots[780] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[780] = nativeContext.LoadFunction("SDL_SetWindowResizable", "SDL3") ) )(window, resizable); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowResizable( + public static byte SetWindowResizable( WindowHandle window, - [NativeTypeName("SDL_bool")] int resizable + [NativeTypeName("bool")] byte resizable ) => DllImport.SetWindowResizable(window, resizable); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowResizable( + MaybeBool ISdl.SetWindowResizable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool resizable - ) => (int)((ISdl)this).SetWindowResizable(window, (int)resizable); + [NativeTypeName("bool")] MaybeBool resizable + ) => (MaybeBool)(byte)((ISdl)this).SetWindowResizable(window, (byte)resizable); + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowResizable( + public static MaybeBool SetWindowResizable( WindowHandle window, - [NativeTypeName("SDL_bool")] MaybeBool resizable + [NativeTypeName("bool")] MaybeBool resizable ) => DllImport.SetWindowResizable(window, resizable); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowShape(WindowHandle window, Surface* shape) => + byte ISdl.SetWindowShape(WindowHandle window, Surface* shape) => ( - (delegate* unmanaged)( - _slots[737] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[781] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[737] = nativeContext.LoadFunction("SDL_SetWindowShape", "SDL3") + : _slots[781] = nativeContext.LoadFunction("SDL_SetWindowShape", "SDL3") ) )(window, shape); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowShape(WindowHandle window, Surface* shape) => + public static byte SetWindowShape(WindowHandle window, Surface* shape) => DllImport.SetWindowShape(window, shape); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowShape(WindowHandle window, Ref shape) + MaybeBool ISdl.SetWindowShape(WindowHandle window, Ref shape) { fixed (Surface* __dsl_shape = shape) { - return (int)((ISdl)this).SetWindowShape(window, __dsl_shape); + return (MaybeBool)(byte)((ISdl)this).SetWindowShape(window, __dsl_shape); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowShape(WindowHandle window, Ref shape) => + public static MaybeBool SetWindowShape(WindowHandle window, Ref shape) => DllImport.SetWindowShape(window, shape); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowSize(WindowHandle window, int w, int h) => + MaybeBool ISdl.SetWindowSize(WindowHandle window, int w, int h) => + (MaybeBool)(byte)((ISdl)this).SetWindowSizeRaw(window, w, h); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetWindowSize(WindowHandle window, int w, int h) => + DllImport.SetWindowSize(window, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowSizeRaw(WindowHandle window, int w, int h) => ( - (delegate* unmanaged)( - _slots[738] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[782] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[738] = nativeContext.LoadFunction("SDL_SetWindowSize", "SDL3") + : _slots[782] = nativeContext.LoadFunction("SDL_SetWindowSize", "SDL3") ) )(window, w, h); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowSize(WindowHandle window, int w, int h) => - DllImport.SetWindowSize(window, w, h); + public static byte SetWindowSizeRaw(WindowHandle window, int w, int h) => + DllImport.SetWindowSizeRaw(window, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetWindowSurfaceVSync(WindowHandle window, int vsync) => + (MaybeBool)(byte)((ISdl)this).SetWindowSurfaceVSyncRaw(window, vsync); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSurfaceVSync")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetWindowSurfaceVSync(WindowHandle window, int vsync) => + DllImport.SetWindowSurfaceVSync(window, vsync); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowTitle(WindowHandle window, [NativeTypeName("const char *")] sbyte* title) => + byte ISdl.SetWindowSurfaceVSyncRaw(WindowHandle window, int vsync) => ( - (delegate* unmanaged)( - _slots[739] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[783] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[739] = nativeContext.LoadFunction("SDL_SetWindowTitle", "SDL3") + : _slots[783] = nativeContext.LoadFunction("SDL_SetWindowSurfaceVSync", "SDL3") + ) + )(window, vsync); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSurfaceVSync")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetWindowSurfaceVSyncRaw(WindowHandle window, int vsync) => + DllImport.SetWindowSurfaceVSyncRaw(window, vsync); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowTitle(WindowHandle window, [NativeTypeName("const char *")] sbyte* title) => + ( + (delegate* unmanaged)( + _slots[784] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[784] = nativeContext.LoadFunction("SDL_SetWindowTitle", "SDL3") ) )(window, title); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowTitle( + public static byte SetWindowTitle( WindowHandle window, [NativeTypeName("const char *")] sbyte* title ) => DllImport.SetWindowTitle(window, title); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SetWindowTitle(WindowHandle window, [NativeTypeName("const char *")] Ref title) + MaybeBool ISdl.SetWindowTitle( + WindowHandle window, + [NativeTypeName("const char *")] Ref title + ) { fixed (sbyte* __dsl_title = title) { - return (int)((ISdl)this).SetWindowTitle(window, __dsl_title); + return (MaybeBool)(byte)((ISdl)this).SetWindowTitle(window, __dsl_title); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SetWindowTitle( + public static MaybeBool SetWindowTitle( WindowHandle window, [NativeTypeName("const char *")] Ref title ) => DllImport.SetWindowTitle(window, title); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ShowCursor() => + byte ISdl.ShouldInit(InitState* state) => ( - (delegate* unmanaged)( - _slots[740] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[785] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[785] = nativeContext.LoadFunction("SDL_ShouldInit", "SDL3") + ) + )(state); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldInit")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte ShouldInit(InitState* state) => DllImport.ShouldInit(state); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ShouldInit(Ref state) + { + fixed (InitState* __dsl_state = state) + { + return (MaybeBool)(byte)((ISdl)this).ShouldInit(__dsl_state); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldInit")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ShouldInit(Ref state) => DllImport.ShouldInit(state); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.ShouldQuit(InitState* state) => + ( + (delegate* unmanaged)( + _slots[786] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[786] = nativeContext.LoadFunction("SDL_ShouldQuit", "SDL3") + ) + )(state); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldQuit")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte ShouldQuit(InitState* state) => DllImport.ShouldQuit(state); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ShouldQuit(Ref state) + { + fixed (InitState* __dsl_state = state) + { + return (MaybeBool)(byte)((ISdl)this).ShouldQuit(__dsl_state); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShouldQuit")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ShouldQuit(Ref state) => DllImport.ShouldQuit(state); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ShowCursor() => (MaybeBool)(byte)((ISdl)this).ShowCursorRaw(); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ShowCursor() => DllImport.ShowCursor(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.ShowCursorRaw() => + ( + (delegate* unmanaged)( + _slots[787] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[740] = nativeContext.LoadFunction("SDL_ShowCursor", "SDL3") + : _slots[787] = nativeContext.LoadFunction("SDL_ShowCursor", "SDL3") ) )(); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowCursor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ShowCursor() => DllImport.ShowCursor(); + public static byte ShowCursorRaw() => DllImport.ShowCursorRaw(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ShowMessageBox( + byte ISdl.ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, int* buttonid ) => ( - (delegate* unmanaged)( - _slots[741] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[788] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[741] = nativeContext.LoadFunction("SDL_ShowMessageBox", "SDL3") + : _slots[788] = nativeContext.LoadFunction("SDL_ShowMessageBox", "SDL3") ) )(messageboxdata, buttonid); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ShowMessageBox( + public static byte ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, int* buttonid ) => DllImport.ShowMessageBox(messageboxdata, buttonid); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ShowMessageBox( + MaybeBool ISdl.ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, Ref buttonid ) @@ -61545,14 +74247,16 @@ Ref buttonid fixed (int* __dsl_buttonid = buttonid) fixed (MessageBoxData* __dsl_messageboxdata = messageboxdata) { - return (int)((ISdl)this).ShowMessageBox(__dsl_messageboxdata, __dsl_buttonid); + return (MaybeBool) + (byte)((ISdl)this).ShowMessageBox(__dsl_messageboxdata, __dsl_buttonid); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ShowMessageBox( + public static MaybeBool ShowMessageBox( [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, Ref buttonid ) => DllImport.ShowMessageBox(messageboxdata, buttonid); @@ -61563,8 +74267,9 @@ void ISdl.ShowOpenFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ) => ( (delegate* unmanaged< @@ -61572,14 +74277,15 @@ void ISdl.ShowOpenFileDialog( void*, WindowHandle, DialogFileFilter*, - sbyte*, int, + sbyte*, + byte, void>)( - _slots[742] is not null and var loadedFnPtr + _slots[789] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[742] = nativeContext.LoadFunction("SDL_ShowOpenFileDialog", "SDL3") + : _slots[789] = nativeContext.LoadFunction("SDL_ShowOpenFileDialog", "SDL3") ) - )(callback, userdata, window, filters, default_location, allow_many); + )(callback, userdata, window, filters, nfilters, default_location, allow_many); [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFileDialog")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -61588,14 +74294,16 @@ public static void ShowOpenFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ) => DllImport.ShowOpenFileDialog( callback, userdata, window, filters, + nfilters, default_location, allow_many ); @@ -61606,8 +74314,9 @@ void ISdl.ShowOpenFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ) { fixed (sbyte* __dsl_default_location = default_location) @@ -61619,8 +74328,9 @@ void ISdl.ShowOpenFileDialog( __dsl_userdata, window, __dsl_filters, + nfilters, __dsl_default_location, - (int)allow_many + (byte)allow_many ); } } @@ -61633,14 +74343,16 @@ public static void ShowOpenFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ) => DllImport.ShowOpenFileDialog( callback, userdata, window, filters, + nfilters, default_location, allow_many ); @@ -61651,13 +74363,13 @@ void ISdl.ShowOpenFolderDialog( void* userdata, WindowHandle window, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ) => ( - (delegate* unmanaged)( - _slots[743] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[790] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[743] = nativeContext.LoadFunction("SDL_ShowOpenFolderDialog", "SDL3") + : _slots[790] = nativeContext.LoadFunction("SDL_ShowOpenFolderDialog", "SDL3") ) )(callback, userdata, window, default_location, allow_many); @@ -61668,7 +74380,7 @@ public static void ShowOpenFolderDialog( void* userdata, WindowHandle window, [NativeTypeName("const char *")] sbyte* default_location, - [NativeTypeName("SDL_bool")] int allow_many + [NativeTypeName("bool")] byte allow_many ) => DllImport.ShowOpenFolderDialog(callback, userdata, window, default_location, allow_many); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -61677,7 +74389,7 @@ void ISdl.ShowOpenFolderDialog( Ref userdata, WindowHandle window, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ) { fixed (sbyte* __dsl_default_location = default_location) @@ -61688,7 +74400,7 @@ void ISdl.ShowOpenFolderDialog( __dsl_userdata, window, __dsl_default_location, - (int)allow_many + (byte)allow_many ); } } @@ -61701,7 +74413,7 @@ public static void ShowOpenFolderDialog( Ref userdata, WindowHandle window, [NativeTypeName("const char *")] Ref default_location, - [NativeTypeName("SDL_bool")] MaybeBool allow_many + [NativeTypeName("bool")] MaybeBool allow_many ) => DllImport.ShowOpenFolderDialog(callback, userdata, window, default_location, allow_many); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -61710,6 +74422,7 @@ void ISdl.ShowSaveFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location ) => ( @@ -61718,13 +74431,14 @@ void ISdl.ShowSaveFileDialog( void*, WindowHandle, DialogFileFilter*, + int, sbyte*, void>)( - _slots[744] is not null and var loadedFnPtr + _slots[791] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[744] = nativeContext.LoadFunction("SDL_ShowSaveFileDialog", "SDL3") + : _slots[791] = nativeContext.LoadFunction("SDL_ShowSaveFileDialog", "SDL3") ) - )(callback, userdata, window, filters, default_location); + )(callback, userdata, window, filters, nfilters, default_location); [NativeFunction("SDL3", EntryPoint = "SDL_ShowSaveFileDialog")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -61733,8 +74447,17 @@ public static void ShowSaveFileDialog( void* userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + int nfilters, [NativeTypeName("const char *")] sbyte* default_location - ) => DllImport.ShowSaveFileDialog(callback, userdata, window, filters, default_location); + ) => + DllImport.ShowSaveFileDialog( + callback, + userdata, + window, + filters, + nfilters, + default_location + ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.ShowSaveFileDialog( @@ -61742,6 +74465,7 @@ void ISdl.ShowSaveFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location ) { @@ -61754,6 +74478,7 @@ void ISdl.ShowSaveFileDialog( __dsl_userdata, window, __dsl_filters, + nfilters, __dsl_default_location ); } @@ -61767,36 +74492,46 @@ public static void ShowSaveFileDialog( Ref userdata, WindowHandle window, [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + int nfilters, [NativeTypeName("const char *")] Ref default_location - ) => DllImport.ShowSaveFileDialog(callback, userdata, window, filters, default_location); + ) => + DllImport.ShowSaveFileDialog( + callback, + userdata, + window, + filters, + nfilters, + default_location + ); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + byte ISdl.ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] sbyte* title, [NativeTypeName("const char *")] sbyte* message, WindowHandle window ) => ( - (delegate* unmanaged)( - _slots[745] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[792] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[745] = nativeContext.LoadFunction("SDL_ShowSimpleMessageBox", "SDL3") + : _slots[792] = nativeContext.LoadFunction("SDL_ShowSimpleMessageBox", "SDL3") ) )(flags, title, message, window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + public static byte ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] sbyte* title, [NativeTypeName("const char *")] sbyte* message, WindowHandle window ) => DllImport.ShowSimpleMessageBox(flags, title, message, window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + MaybeBool ISdl.ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] Ref title, [NativeTypeName("const char *")] Ref message, WindowHandle window @@ -61805,321 +74540,461 @@ WindowHandle window fixed (sbyte* __dsl_message = message) fixed (sbyte* __dsl_title = title) { - return (int) - ((ISdl)this).ShowSimpleMessageBox(flags, __dsl_title, __dsl_message, window); + return (MaybeBool) + (byte)((ISdl)this).ShowSimpleMessageBox(flags, __dsl_title, __dsl_message, window); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ShowSimpleMessageBox( - [NativeTypeName("Uint32")] uint flags, + public static MaybeBool ShowSimpleMessageBox( + [NativeTypeName("SDL_MessageBoxFlags")] uint flags, [NativeTypeName("const char *")] Ref title, [NativeTypeName("const char *")] Ref message, WindowHandle window ) => DllImport.ShowSimpleMessageBox(flags, title, message, window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ShowWindow(WindowHandle window) => + MaybeBool ISdl.ShowWindow(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).ShowWindowRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ShowWindow(WindowHandle window) => DllImport.ShowWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.ShowWindowRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[746] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[793] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[746] = nativeContext.LoadFunction("SDL_ShowWindow", "SDL3") + : _slots[793] = nativeContext.LoadFunction("SDL_ShowWindow", "SDL3") ) )(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ShowWindow(WindowHandle window) => DllImport.ShowWindow(window); + public static byte ShowWindowRaw(WindowHandle window) => DllImport.ShowWindowRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.ShowWindowSystemMenu(WindowHandle window, int x, int y) => + MaybeBool ISdl.ShowWindowSystemMenu(WindowHandle window, int x, int y) => + (MaybeBool)(byte)((ISdl)this).ShowWindowSystemMenuRaw(window, x, y); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ShowWindowSystemMenu(WindowHandle window, int x, int y) => + DllImport.ShowWindowSystemMenu(window, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.ShowWindowSystemMenuRaw(WindowHandle window, int x, int y) => ( - (delegate* unmanaged)( - _slots[747] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[794] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[747] = nativeContext.LoadFunction("SDL_ShowWindowSystemMenu", "SDL3") + : _slots[794] = nativeContext.LoadFunction("SDL_ShowWindowSystemMenu", "SDL3") ) )(window, x, y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int ShowWindowSystemMenu(WindowHandle window, int x, int y) => - DllImport.ShowWindowSystemMenu(window, x, y); + public static byte ShowWindowSystemMenuRaw(WindowHandle window, int x, int y) => + DllImport.ShowWindowSystemMenuRaw(window, x, y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SignalCondition(ConditionHandle cond) => + void ISdl.SignalCondition(ConditionHandle cond) => ( - (delegate* unmanaged)( - _slots[748] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[795] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[748] = nativeContext.LoadFunction("SDL_SignalCondition", "SDL3") + : _slots[795] = nativeContext.LoadFunction("SDL_SignalCondition", "SDL3") ) )(cond); [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SignalCondition(ConditionHandle cond) => DllImport.SignalCondition(cond); + public static void SignalCondition(ConditionHandle cond) => DllImport.SignalCondition(cond); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - nuint ISdl.SimdGetAlignment() => + void ISdl.SignalSemaphore(SemaphoreHandle sem) => ( - (delegate* unmanaged)( - _slots[749] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[796] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[749] = nativeContext.LoadFunction("SDL_SIMDGetAlignment", "SDL3") + : _slots[796] = nativeContext.LoadFunction("SDL_SignalSemaphore", "SDL3") ) - )(); + )(sem); - [return: NativeTypeName("size_t")] - [NativeFunction("SDL3", EntryPoint = "SDL_SIMDGetAlignment")] + [NativeFunction("SDL3", EntryPoint = "SDL_SignalSemaphore")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static nuint SimdGetAlignment() => DllImport.SimdGetAlignment(); + public static void SignalSemaphore(SemaphoreHandle sem) => DllImport.SignalSemaphore(sem); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SoftStretch( - Surface* src, - [NativeTypeName("const SDL_Rect *")] Rect* srcrect, - Surface* dst, - [NativeTypeName("const SDL_Rect *")] Rect* dstrect, - ScaleMode scaleMode - ) => + MaybeBool ISdl.StartTextInput(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).StartTextInputRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool StartTextInput(WindowHandle window) => + DllImport.StartTextInput(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.StartTextInputRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[750] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[797] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[750] = nativeContext.LoadFunction("SDL_SoftStretch", "SDL3") + : _slots[797] = nativeContext.LoadFunction("SDL_StartTextInput", "SDL3") ) - )(src, srcrect, dst, dstrect, scaleMode); + )(window); - [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SoftStretch( - Surface* src, - [NativeTypeName("const SDL_Rect *")] Rect* srcrect, - Surface* dst, - [NativeTypeName("const SDL_Rect *")] Rect* dstrect, - ScaleMode scaleMode - ) => DllImport.SoftStretch(src, srcrect, dst, dstrect, scaleMode); + public static byte StartTextInputRaw(WindowHandle window) => + DllImport.StartTextInputRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SoftStretch( - Ref src, - [NativeTypeName("const SDL_Rect *")] Ref srcrect, - Ref dst, - [NativeTypeName("const SDL_Rect *")] Ref dstrect, - ScaleMode scaleMode - ) - { - fixed (Rect* __dsl_dstrect = dstrect) - fixed (Surface* __dsl_dst = dst) - fixed (Rect* __dsl_srcrect = srcrect) - fixed (Surface* __dsl_src = src) - { - return (int) - ((ISdl)this).SoftStretch( - __dsl_src, - __dsl_srcrect, - __dsl_dst, - __dsl_dstrect, - scaleMode - ); - } - } + MaybeBool ISdl.StartTextInputWithProperties( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => (MaybeBool)(byte)((ISdl)this).StartTextInputWithPropertiesRaw(window, props); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInputWithProperties")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SoftStretch( - Ref src, - [NativeTypeName("const SDL_Rect *")] Ref srcrect, - Ref dst, - [NativeTypeName("const SDL_Rect *")] Ref dstrect, - ScaleMode scaleMode - ) => DllImport.SoftStretch(src, srcrect, dst, dstrect, scaleMode); + public static MaybeBool StartTextInputWithProperties( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.StartTextInputWithProperties(window, props); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.StartTextInput() => + byte ISdl.StartTextInputWithPropertiesRaw( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => ( - (delegate* unmanaged)( - _slots[751] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[798] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[751] = nativeContext.LoadFunction("SDL_StartTextInput", "SDL3") + : _slots[798] = nativeContext.LoadFunction( + "SDL_StartTextInputWithProperties", + "SDL3" + ) ) - )(); + )(window, props); - [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInput")] + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_StartTextInputWithProperties")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void StartTextInput() => DllImport.StartTextInput(); + public static byte StartTextInputWithPropertiesRaw( + WindowHandle window, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.StartTextInputWithPropertiesRaw(window, props); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.StopHapticEffect(HapticHandle haptic, int effect) => + MaybeBool ISdl.StopHapticEffect(HapticHandle haptic, int effect) => + (MaybeBool)(byte)((ISdl)this).StopHapticEffectRaw(haptic, effect); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool StopHapticEffect(HapticHandle haptic, int effect) => + DllImport.StopHapticEffect(haptic, effect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.StopHapticEffectRaw(HapticHandle haptic, int effect) => ( - (delegate* unmanaged)( - _slots[752] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[799] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[752] = nativeContext.LoadFunction("SDL_StopHapticEffect", "SDL3") + : _slots[799] = nativeContext.LoadFunction("SDL_StopHapticEffect", "SDL3") ) )(haptic, effect); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int StopHapticEffect(HapticHandle haptic, int effect) => - DllImport.StopHapticEffect(haptic, effect); + public static byte StopHapticEffectRaw(HapticHandle haptic, int effect) => + DllImport.StopHapticEffectRaw(haptic, effect); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.StopHapticEffects(HapticHandle haptic) => + MaybeBool ISdl.StopHapticEffects(HapticHandle haptic) => + (MaybeBool)(byte)((ISdl)this).StopHapticEffectsRaw(haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool StopHapticEffects(HapticHandle haptic) => + DllImport.StopHapticEffects(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.StopHapticEffectsRaw(HapticHandle haptic) => ( - (delegate* unmanaged)( - _slots[753] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[800] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[753] = nativeContext.LoadFunction("SDL_StopHapticEffects", "SDL3") + : _slots[800] = nativeContext.LoadFunction("SDL_StopHapticEffects", "SDL3") ) )(haptic); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int StopHapticEffects(HapticHandle haptic) => DllImport.StopHapticEffects(haptic); + public static byte StopHapticEffectsRaw(HapticHandle haptic) => + DllImport.StopHapticEffectsRaw(haptic); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.StopHapticRumble(HapticHandle haptic) => + MaybeBool ISdl.StopHapticRumble(HapticHandle haptic) => + (MaybeBool)(byte)((ISdl)this).StopHapticRumbleRaw(haptic); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool StopHapticRumble(HapticHandle haptic) => + DllImport.StopHapticRumble(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.StopHapticRumbleRaw(HapticHandle haptic) => ( - (delegate* unmanaged)( - _slots[754] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[801] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[754] = nativeContext.LoadFunction("SDL_StopHapticRumble", "SDL3") + : _slots[801] = nativeContext.LoadFunction("SDL_StopHapticRumble", "SDL3") ) )(haptic); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int StopHapticRumble(HapticHandle haptic) => DllImport.StopHapticRumble(haptic); + public static byte StopHapticRumbleRaw(HapticHandle haptic) => + DllImport.StopHapticRumbleRaw(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.StopTextInput(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).StopTextInputRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopTextInput")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool StopTextInput(WindowHandle window) => + DllImport.StopTextInput(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.StopTextInput() => + byte ISdl.StopTextInputRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[755] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[802] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[755] = nativeContext.LoadFunction("SDL_StopTextInput", "SDL3") + : _slots[802] = nativeContext.LoadFunction("SDL_StopTextInput", "SDL3") ) - )(); + )(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StopTextInput")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void StopTextInput() => DllImport.StopTextInput(); + public static byte StopTextInputRaw(WindowHandle window) => DllImport.StopTextInputRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.StorageReady(StorageHandle storage) => - (MaybeBool)(int)((ISdl)this).StorageReadyRaw(storage); + MaybeBool ISdl.StorageReady(StorageHandle storage) => + (MaybeBool)(byte)((ISdl)this).StorageReadyRaw(storage); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool StorageReady(StorageHandle storage) => + public static MaybeBool StorageReady(StorageHandle storage) => DllImport.StorageReady(storage); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.StorageReadyRaw(StorageHandle storage) => + byte ISdl.StorageReadyRaw(StorageHandle storage) => ( - (delegate* unmanaged)( - _slots[756] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[803] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[756] = nativeContext.LoadFunction("SDL_StorageReady", "SDL3") + : _slots[803] = nativeContext.LoadFunction("SDL_StorageReady", "SDL3") ) )(storage); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int StorageReadyRaw(StorageHandle storage) => DllImport.StorageReadyRaw(storage); + public static byte StorageReadyRaw(StorageHandle storage) => DllImport.StorageReadyRaw(storage); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SurfaceHasColorKey(Surface* surface) => + Guid ISdl.StringToGuid([NativeTypeName("const char *")] sbyte* pchGUID) => ( - (delegate* unmanaged)( - _slots[757] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[804] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[804] = nativeContext.LoadFunction("SDL_StringToGUID", "SDL3") + ) + )(pchGUID); + + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Guid StringToGuid([NativeTypeName("const char *")] sbyte* pchGUID) => + DllImport.StringToGuid(pchGUID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Guid ISdl.StringToGuid([NativeTypeName("const char *")] Ref pchGUID) + { + fixed (sbyte* __dsl_pchGUID = pchGUID) + { + return (Guid)((ISdl)this).StringToGuid(__dsl_pchGUID); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StringToGUID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Guid StringToGuid([NativeTypeName("const char *")] Ref pchGUID) => + DllImport.StringToGuid(pchGUID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SurfaceHasAlternateImages(Surface* surface) => + ( + (delegate* unmanaged)( + _slots[805] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[805] = nativeContext.LoadFunction( + "SDL_SurfaceHasAlternateImages", + "SDL3" + ) + ) + )(surface); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasAlternateImages")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SurfaceHasAlternateImages(Surface* surface) => + DllImport.SurfaceHasAlternateImages(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SurfaceHasAlternateImages(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)((ISdl)this).SurfaceHasAlternateImages(__dsl_surface); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasAlternateImages")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SurfaceHasAlternateImages(Ref surface) => + DllImport.SurfaceHasAlternateImages(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SurfaceHasColorKey(Surface* surface) => + ( + (delegate* unmanaged)( + _slots[806] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[757] = nativeContext.LoadFunction("SDL_SurfaceHasColorKey", "SDL3") + : _slots[806] = nativeContext.LoadFunction("SDL_SurfaceHasColorKey", "SDL3") ) )(surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SurfaceHasColorKey(Surface* surface) => DllImport.SurfaceHasColorKey(surface); + public static byte SurfaceHasColorKey(Surface* surface) => + DllImport.SurfaceHasColorKey(surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.SurfaceHasColorKey(Ref surface) + MaybeBool ISdl.SurfaceHasColorKey(Ref surface) { fixed (Surface* __dsl_surface = surface) { - return (MaybeBool)(int)((ISdl)this).SurfaceHasColorKey(__dsl_surface); + return (MaybeBool)(byte)((ISdl)this).SurfaceHasColorKey(__dsl_surface); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool SurfaceHasColorKey(Ref surface) => + public static MaybeBool SurfaceHasColorKey(Ref surface) => DllImport.SurfaceHasColorKey(surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SurfaceHasRLE(Surface* surface) => + byte ISdl.SurfaceHasRLE(Surface* surface) => ( - (delegate* unmanaged)( - _slots[758] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[807] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[758] = nativeContext.LoadFunction("SDL_SurfaceHasRLE", "SDL3") + : _slots[807] = nativeContext.LoadFunction("SDL_SurfaceHasRLE", "SDL3") ) )(surface); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SurfaceHasRLE(Surface* surface) => DllImport.SurfaceHasRLE(surface); + public static byte SurfaceHasRLE(Surface* surface) => DllImport.SurfaceHasRLE(surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.SurfaceHasRLE(Ref surface) + MaybeBool ISdl.SurfaceHasRLE(Ref surface) { fixed (Surface* __dsl_surface = surface) { - return (MaybeBool)(int)((ISdl)this).SurfaceHasRLE(__dsl_surface); + return (MaybeBool)(byte)((ISdl)this).SurfaceHasRLE(__dsl_surface); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool SurfaceHasRLE(Ref surface) => + public static MaybeBool SurfaceHasRLE(Ref surface) => DllImport.SurfaceHasRLE(surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.SyncWindow(WindowHandle window) => + MaybeBool ISdl.SyncWindow(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).SyncWindowRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SyncWindow(WindowHandle window) => DllImport.SyncWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SyncWindowRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[759] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[808] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[759] = nativeContext.LoadFunction("SDL_SyncWindow", "SDL3") + : _slots[808] = nativeContext.LoadFunction("SDL_SyncWindow", "SDL3") ) )(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int SyncWindow(WindowHandle window) => DllImport.SyncWindow(window); + public static byte SyncWindowRaw(WindowHandle window) => DllImport.SyncWindowRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] long ISdl.TellIO(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[760] is not null and var loadedFnPtr + _slots[809] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[760] = nativeContext.LoadFunction("SDL_TellIO", "SDL3") + : _slots[809] = nativeContext.LoadFunction("SDL_TellIO", "SDL3") ) )(context); @@ -62129,28 +75004,31 @@ _slots[760] is not null and var loadedFnPtr public static long TellIO(IOStreamHandle context) => DllImport.TellIO(context); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.TextInputActive() => (MaybeBool)(int)((ISdl)this).TextInputActiveRaw(); + MaybeBool ISdl.TextInputActive(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).TextInputActiveRaw(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool TextInputActive() => DllImport.TextInputActive(); + public static MaybeBool TextInputActive(WindowHandle window) => + DllImport.TextInputActive(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.TextInputActiveRaw() => + byte ISdl.TextInputActiveRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[761] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[810] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[761] = nativeContext.LoadFunction("SDL_TextInputActive", "SDL3") + : _slots[810] = nativeContext.LoadFunction("SDL_TextInputActive", "SDL3") ) - )(); + )(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int TextInputActiveRaw() => DllImport.TextInputActiveRaw(); + public static byte TextInputActiveRaw(WindowHandle window) => + DllImport.TextInputActiveRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] long ISdl.TimeFromWindows( @@ -62159,9 +75037,9 @@ long ISdl.TimeFromWindows( ) => ( (delegate* unmanaged)( - _slots[762] is not null and var loadedFnPtr + _slots[811] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[762] = nativeContext.LoadFunction("SDL_TimeFromWindows", "SDL3") + : _slots[811] = nativeContext.LoadFunction("SDL_TimeFromWindows", "SDL3") ) )(dwLowDateTime, dwHighDateTime); @@ -62174,47 +75052,50 @@ public static long TimeFromWindows( ) => DllImport.TimeFromWindows(dwLowDateTime, dwHighDateTime); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.TimeToDateTime( + byte ISdl.TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, DateTime* dt, - [NativeTypeName("SDL_bool")] int localTime + [NativeTypeName("bool")] byte localTime ) => ( - (delegate* unmanaged)( - _slots[763] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[812] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[763] = nativeContext.LoadFunction("SDL_TimeToDateTime", "SDL3") + : _slots[812] = nativeContext.LoadFunction("SDL_TimeToDateTime", "SDL3") ) )(ticks, dt, localTime); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int TimeToDateTime( + public static byte TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, DateTime* dt, - [NativeTypeName("SDL_bool")] int localTime + [NativeTypeName("bool")] byte localTime ) => DllImport.TimeToDateTime(ticks, dt, localTime); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.TimeToDateTime( + MaybeBool ISdl.TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, Ref dt, - [NativeTypeName("SDL_bool")] MaybeBool localTime + [NativeTypeName("bool")] MaybeBool localTime ) { fixed (DateTime* __dsl_dt = dt) { - return (int)((ISdl)this).TimeToDateTime(ticks, __dsl_dt, (int)localTime); + return (MaybeBool) + (byte)((ISdl)this).TimeToDateTime(ticks, __dsl_dt, (byte)localTime); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int TimeToDateTime( + public static MaybeBool TimeToDateTime( [NativeTypeName("SDL_Time")] long ticks, Ref dt, - [NativeTypeName("SDL_bool")] MaybeBool localTime + [NativeTypeName("bool")] MaybeBool localTime ) => DllImport.TimeToDateTime(ticks, dt, localTime); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -62225,9 +75106,9 @@ void ISdl.TimeToWindows( ) => ( (delegate* unmanaged)( - _slots[764] is not null and var loadedFnPtr + _slots[813] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[764] = nativeContext.LoadFunction("SDL_TimeToWindows", "SDL3") + : _slots[813] = nativeContext.LoadFunction("SDL_TimeToWindows", "SDL3") ) )(ticks, dwLowDateTime, dwHighDateTime); @@ -62263,109 +75144,157 @@ public static void TimeToWindows( ) => DllImport.TimeToWindows(ticks, dwLowDateTime, dwHighDateTime); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.TryLockMutex(MutexHandle mutex) => + MaybeBool ISdl.TryLockMutex(MutexHandle mutex) => + (MaybeBool)(byte)((ISdl)this).TryLockMutexRaw(mutex); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool TryLockMutex(MutexHandle mutex) => DllImport.TryLockMutex(mutex); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.TryLockMutexRaw(MutexHandle mutex) => ( - (delegate* unmanaged)( - _slots[765] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[814] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[765] = nativeContext.LoadFunction("SDL_TryLockMutex", "SDL3") + : _slots[814] = nativeContext.LoadFunction("SDL_TryLockMutex", "SDL3") ) )(mutex); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int TryLockMutex(MutexHandle mutex) => DllImport.TryLockMutex(mutex); + public static byte TryLockMutexRaw(MutexHandle mutex) => DllImport.TryLockMutexRaw(mutex); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.TryLockRWLockForReading(RWLockHandle rwlock) => + MaybeBool ISdl.TryLockRWLockForReading(RWLockHandle rwlock) => + (MaybeBool)(byte)((ISdl)this).TryLockRWLockForReadingRaw(rwlock); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool TryLockRWLockForReading(RWLockHandle rwlock) => + DllImport.TryLockRWLockForReading(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.TryLockRWLockForReadingRaw(RWLockHandle rwlock) => ( - (delegate* unmanaged)( - _slots[766] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[815] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[766] = nativeContext.LoadFunction( + : _slots[815] = nativeContext.LoadFunction( "SDL_TryLockRWLockForReading", "SDL3" ) ) )(rwlock); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int TryLockRWLockForReading(RWLockHandle rwlock) => - DllImport.TryLockRWLockForReading(rwlock); + public static byte TryLockRWLockForReadingRaw(RWLockHandle rwlock) => + DllImport.TryLockRWLockForReadingRaw(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.TryLockRWLockForWriting(RWLockHandle rwlock) => + (MaybeBool)(byte)((ISdl)this).TryLockRWLockForWritingRaw(rwlock); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool TryLockRWLockForWriting(RWLockHandle rwlock) => + DllImport.TryLockRWLockForWriting(rwlock); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.TryLockRWLockForWriting(RWLockHandle rwlock) => + byte ISdl.TryLockRWLockForWritingRaw(RWLockHandle rwlock) => ( - (delegate* unmanaged)( - _slots[767] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[816] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[767] = nativeContext.LoadFunction( + : _slots[816] = nativeContext.LoadFunction( "SDL_TryLockRWLockForWriting", "SDL3" ) ) )(rwlock); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int TryLockRWLockForWriting(RWLockHandle rwlock) => - DllImport.TryLockRWLockForWriting(rwlock); + public static byte TryLockRWLockForWritingRaw(RWLockHandle rwlock) => + DllImport.TryLockRWLockForWritingRaw(rwlock); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + byte ISdl.TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => ( - (delegate* unmanaged)( - _slots[768] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[817] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[768] = nativeContext.LoadFunction("SDL_TryLockSpinlock", "SDL3") + : _slots[817] = nativeContext.LoadFunction("SDL_TryLockSpinlock", "SDL3") ) )(@lock); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + public static byte TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => DllImport.TryLockSpinlock(@lock); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) + MaybeBool ISdl.TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) { fixed (int* __dsl_lock = @lock) { - return (MaybeBool)(int)((ISdl)this).TryLockSpinlock(__dsl_lock); + return (MaybeBool)(byte)((ISdl)this).TryLockSpinlock(__dsl_lock); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool TryLockSpinlock( + public static MaybeBool TryLockSpinlock( [NativeTypeName("SDL_SpinLock *")] Ref @lock ) => DllImport.TryLockSpinlock(@lock); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.TryWaitSemaphore(SemaphoreHandle sem) => + MaybeBool ISdl.TryWaitSemaphore(SemaphoreHandle sem) => + (MaybeBool)(byte)((ISdl)this).TryWaitSemaphoreRaw(sem); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool TryWaitSemaphore(SemaphoreHandle sem) => + DllImport.TryWaitSemaphore(sem); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.TryWaitSemaphoreRaw(SemaphoreHandle sem) => ( - (delegate* unmanaged)( - _slots[769] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[818] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[769] = nativeContext.LoadFunction("SDL_TryWaitSemaphore", "SDL3") + : _slots[818] = nativeContext.LoadFunction("SDL_TryWaitSemaphore", "SDL3") ) )(sem); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int TryWaitSemaphore(SemaphoreHandle sem) => DllImport.TryWaitSemaphore(sem); + public static byte TryWaitSemaphoreRaw(SemaphoreHandle sem) => + DllImport.TryWaitSemaphoreRaw(sem); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnbindAudioStream(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[770] is not null and var loadedFnPtr + _slots[819] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[770] = nativeContext.LoadFunction("SDL_UnbindAudioStream", "SDL3") + : _slots[819] = nativeContext.LoadFunction("SDL_UnbindAudioStream", "SDL3") ) )(stream); @@ -62378,9 +75307,9 @@ public static void UnbindAudioStream(AudioStreamHandle stream) => void ISdl.UnbindAudioStreams(AudioStreamHandle* streams, int num_streams) => ( (delegate* unmanaged)( - _slots[771] is not null and var loadedFnPtr + _slots[820] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[771] = nativeContext.LoadFunction("SDL_UnbindAudioStreams", "SDL3") + : _slots[820] = nativeContext.LoadFunction("SDL_UnbindAudioStreams", "SDL3") ) )(streams, num_streams); @@ -62405,55 +75334,53 @@ public static void UnbindAudioStreams(Ref streams, int num_st DllImport.UnbindAudioStreams(streams, num_streams); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.UnloadObject(void* handle) => + void ISdl.UnloadObject(SharedObjectHandle handle) => ( - (delegate* unmanaged)( - _slots[772] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[821] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[772] = nativeContext.LoadFunction("SDL_UnloadObject", "SDL3") + : _slots[821] = nativeContext.LoadFunction("SDL_UnloadObject", "SDL3") ) )(handle); [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void UnloadObject(void* handle) => DllImport.UnloadObject(handle); + public static void UnloadObject(SharedObjectHandle handle) => DllImport.UnloadObject(handle); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.UnloadObject(Ref handle) - { - fixed (void* __dsl_handle = handle) - { - ((ISdl)this).UnloadObject(__dsl_handle); - } - } + MaybeBool ISdl.UnlockAudioStream(AudioStreamHandle stream) => + (MaybeBool)(byte)((ISdl)this).UnlockAudioStreamRaw(stream); + [return: NativeTypeName("bool")] [Transformed] - [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void UnloadObject(Ref handle) => DllImport.UnloadObject(handle); + public static MaybeBool UnlockAudioStream(AudioStreamHandle stream) => + DllImport.UnlockAudioStream(stream); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.UnlockAudioStream(AudioStreamHandle stream) => + byte ISdl.UnlockAudioStreamRaw(AudioStreamHandle stream) => ( - (delegate* unmanaged)( - _slots[773] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[822] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[773] = nativeContext.LoadFunction("SDL_UnlockAudioStream", "SDL3") + : _slots[822] = nativeContext.LoadFunction("SDL_UnlockAudioStream", "SDL3") ) )(stream); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int UnlockAudioStream(AudioStreamHandle stream) => - DllImport.UnlockAudioStream(stream); + public static byte UnlockAudioStreamRaw(AudioStreamHandle stream) => + DllImport.UnlockAudioStreamRaw(stream); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UnlockJoysticks() => ( (delegate* unmanaged)( - _slots[774] is not null and var loadedFnPtr + _slots[823] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[774] = nativeContext.LoadFunction("SDL_UnlockJoysticks", "SDL3") + : _slots[823] = nativeContext.LoadFunction("SDL_UnlockJoysticks", "SDL3") ) )(); @@ -62465,9 +75392,9 @@ _slots[774] is not null and var loadedFnPtr void ISdl.UnlockMutex(MutexHandle mutex) => ( (delegate* unmanaged)( - _slots[775] is not null and var loadedFnPtr + _slots[824] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[775] = nativeContext.LoadFunction("SDL_UnlockMutex", "SDL3") + : _slots[824] = nativeContext.LoadFunction("SDL_UnlockMutex", "SDL3") ) )(mutex); @@ -62479,9 +75406,9 @@ _slots[775] is not null and var loadedFnPtr void ISdl.UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => ( (delegate* unmanaged)( - _slots[776] is not null and var loadedFnPtr + _slots[825] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[776] = nativeContext.LoadFunction("SDL_UnlockProperties", "SDL3") + : _slots[825] = nativeContext.LoadFunction("SDL_UnlockProperties", "SDL3") ) )(props); @@ -62494,9 +75421,9 @@ public static void UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint pr void ISdl.UnlockRWLock(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[777] is not null and var loadedFnPtr + _slots[826] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[777] = nativeContext.LoadFunction("SDL_UnlockRWLock", "SDL3") + : _slots[826] = nativeContext.LoadFunction("SDL_UnlockRWLock", "SDL3") ) )(rwlock); @@ -62508,9 +75435,9 @@ _slots[777] is not null and var loadedFnPtr void ISdl.UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => ( (delegate* unmanaged)( - _slots[778] is not null and var loadedFnPtr + _slots[827] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[778] = nativeContext.LoadFunction("SDL_UnlockSpinlock", "SDL3") + : _slots[827] = nativeContext.LoadFunction("SDL_UnlockSpinlock", "SDL3") ) )(@lock); @@ -62538,9 +75465,9 @@ public static void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @l void ISdl.UnlockSurface(Surface* surface) => ( (delegate* unmanaged)( - _slots[779] is not null and var loadedFnPtr + _slots[828] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[779] = nativeContext.LoadFunction("SDL_UnlockSurface", "SDL3") + : _slots[828] = nativeContext.LoadFunction("SDL_UnlockSurface", "SDL3") ) )(surface); @@ -62563,26 +75490,40 @@ void ISdl.UnlockSurface(Ref surface) public static void UnlockSurface(Ref surface) => DllImport.UnlockSurface(surface); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - void ISdl.UnlockTexture(TextureHandle texture) => + void ISdl.UnlockTexture(Texture* texture) => ( - (delegate* unmanaged)( - _slots[780] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[829] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[780] = nativeContext.LoadFunction("SDL_UnlockTexture", "SDL3") + : _slots[829] = nativeContext.LoadFunction("SDL_UnlockTexture", "SDL3") ) )(texture); [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static void UnlockTexture(TextureHandle texture) => DllImport.UnlockTexture(texture); + public static void UnlockTexture(Texture* texture) => DllImport.UnlockTexture(texture); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockTexture(Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + ((ISdl)this).UnlockTexture(__dsl_texture); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnlockTexture(Ref texture) => DllImport.UnlockTexture(texture); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.UpdateGamepads() => ( (delegate* unmanaged)( - _slots[781] is not null and var loadedFnPtr + _slots[830] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[781] = nativeContext.LoadFunction("SDL_UpdateGamepads", "SDL3") + : _slots[830] = nativeContext.LoadFunction("SDL_UpdateGamepads", "SDL3") ) )(); @@ -62591,29 +75532,30 @@ _slots[781] is not null and var loadedFnPtr public static void UpdateGamepads() => DllImport.UpdateGamepads(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.UpdateHapticEffect( + byte ISdl.UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data ) => ( - (delegate* unmanaged)( - _slots[782] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[831] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[782] = nativeContext.LoadFunction("SDL_UpdateHapticEffect", "SDL3") + : _slots[831] = nativeContext.LoadFunction("SDL_UpdateHapticEffect", "SDL3") ) )(haptic, effect, data); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int UpdateHapticEffect( + public static byte UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data ) => DllImport.UpdateHapticEffect(haptic, effect, data); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.UpdateHapticEffect( + MaybeBool ISdl.UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] Ref data @@ -62621,14 +75563,16 @@ int ISdl.UpdateHapticEffect( { fixed (HapticEffect* __dsl_data = data) { - return (int)((ISdl)this).UpdateHapticEffect(haptic, effect, __dsl_data); + return (MaybeBool) + (byte)((ISdl)this).UpdateHapticEffect(haptic, effect, __dsl_data); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int UpdateHapticEffect( + public static MaybeBool UpdateHapticEffect( HapticHandle haptic, int effect, [NativeTypeName("const SDL_HapticEffect *")] Ref data @@ -62638,9 +75582,9 @@ public static int UpdateHapticEffect( void ISdl.UpdateJoysticks() => ( (delegate* unmanaged)( - _slots[783] is not null and var loadedFnPtr + _slots[832] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[783] = nativeContext.LoadFunction("SDL_UpdateJoysticks", "SDL3") + : _slots[832] = nativeContext.LoadFunction("SDL_UpdateJoysticks", "SDL3") ) )(); @@ -62649,8 +75593,8 @@ _slots[783] is not null and var loadedFnPtr public static void UpdateJoysticks() => DllImport.UpdateJoysticks(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.UpdateNVTexture( - TextureHandle texture, + byte ISdl.UpdateNVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -62658,17 +75602,18 @@ int ISdl.UpdateNVTexture( int UVpitch ) => ( - (delegate* unmanaged)( - _slots[784] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[833] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[784] = nativeContext.LoadFunction("SDL_UpdateNVTexture", "SDL3") + : _slots[833] = nativeContext.LoadFunction("SDL_UpdateNVTexture", "SDL3") ) )(texture, rect, Yplane, Ypitch, UVplane, UVpitch); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int UpdateNVTexture( - TextureHandle texture, + public static byte UpdateNVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -62677,8 +75622,8 @@ int UVpitch ) => DllImport.UpdateNVTexture(texture, rect, Yplane, Ypitch, UVplane, UVpitch); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.UpdateNVTexture( - TextureHandle texture, + MaybeBool ISdl.UpdateNVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -62689,24 +75634,27 @@ int UVpitch fixed (byte* __dsl_UVplane = UVplane) fixed (byte* __dsl_Yplane = Yplane) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int) - ((ISdl)this).UpdateNVTexture( - texture, - __dsl_rect, - __dsl_Yplane, - Ypitch, - __dsl_UVplane, - UVpitch - ); + return (MaybeBool) + (byte) + ((ISdl)this).UpdateNVTexture( + __dsl_texture, + __dsl_rect, + __dsl_Yplane, + Ypitch, + __dsl_UVplane, + UVpitch + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int UpdateNVTexture( - TextureHandle texture, + public static MaybeBool UpdateNVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -62718,9 +75666,9 @@ int UVpitch void ISdl.UpdateSensors() => ( (delegate* unmanaged)( - _slots[785] is not null and var loadedFnPtr + _slots[834] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[785] = nativeContext.LoadFunction("SDL_UpdateSensors", "SDL3") + : _slots[834] = nativeContext.LoadFunction("SDL_UpdateSensors", "SDL3") ) )(); @@ -62729,32 +75677,33 @@ _slots[785] is not null and var loadedFnPtr public static void UpdateSensors() => DllImport.UpdateSensors(); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.UpdateTexture( - TextureHandle texture, + byte ISdl.UpdateTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const void *")] void* pixels, int pitch ) => ( - (delegate* unmanaged)( - _slots[786] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[835] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[786] = nativeContext.LoadFunction("SDL_UpdateTexture", "SDL3") + : _slots[835] = nativeContext.LoadFunction("SDL_UpdateTexture", "SDL3") ) )(texture, rect, pixels, pitch); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int UpdateTexture( - TextureHandle texture, + public static byte UpdateTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const void *")] void* pixels, int pitch ) => DllImport.UpdateTexture(texture, rect, pixels, pitch); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.UpdateTexture( - TextureHandle texture, + MaybeBool ISdl.UpdateTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const void *")] Ref pixels, int pitch @@ -62762,63 +75711,79 @@ int pitch { fixed (void* __dsl_pixels = pixels) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int)((ISdl)this).UpdateTexture(texture, __dsl_rect, __dsl_pixels, pitch); + return (MaybeBool) + (byte)((ISdl)this).UpdateTexture(__dsl_texture, __dsl_rect, __dsl_pixels, pitch); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int UpdateTexture( - TextureHandle texture, + public static MaybeBool UpdateTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const void *")] Ref pixels, int pitch ) => DllImport.UpdateTexture(texture, rect, pixels, pitch); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.UpdateWindowSurface(WindowHandle window) => + MaybeBool ISdl.UpdateWindowSurface(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).UpdateWindowSurfaceRaw(window); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool UpdateWindowSurface(WindowHandle window) => + DllImport.UpdateWindowSurface(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.UpdateWindowSurfaceRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[787] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[836] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[787] = nativeContext.LoadFunction("SDL_UpdateWindowSurface", "SDL3") + : _slots[836] = nativeContext.LoadFunction("SDL_UpdateWindowSurface", "SDL3") ) )(window); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int UpdateWindowSurface(WindowHandle window) => - DllImport.UpdateWindowSurface(window); + public static byte UpdateWindowSurfaceRaw(WindowHandle window) => + DllImport.UpdateWindowSurfaceRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.UpdateWindowSurfaceRects( + byte ISdl.UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rects, int numrects ) => ( - (delegate* unmanaged)( - _slots[788] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[837] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[788] = nativeContext.LoadFunction( + : _slots[837] = nativeContext.LoadFunction( "SDL_UpdateWindowSurfaceRects", "SDL3" ) ) )(window, rects, numrects); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int UpdateWindowSurfaceRects( + public static byte UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Rect* rects, int numrects ) => DllImport.UpdateWindowSurfaceRects(window, rects, numrects); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.UpdateWindowSurfaceRects( + MaybeBool ISdl.UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rects, int numrects @@ -62826,22 +75791,24 @@ int numrects { fixed (Rect* __dsl_rects = rects) { - return (int)((ISdl)this).UpdateWindowSurfaceRects(window, __dsl_rects, numrects); + return (MaybeBool) + (byte)((ISdl)this).UpdateWindowSurfaceRects(window, __dsl_rects, numrects); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int UpdateWindowSurfaceRects( + public static MaybeBool UpdateWindowSurfaceRects( WindowHandle window, [NativeTypeName("const SDL_Rect *")] Ref rects, int numrects ) => DllImport.UpdateWindowSurfaceRects(window, rects, numrects); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.UpdateYUVTexture( - TextureHandle texture, + byte ISdl.UpdateYUVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -62851,17 +75818,18 @@ int ISdl.UpdateYUVTexture( int Vpitch ) => ( - (delegate* unmanaged)( - _slots[789] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[838] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[789] = nativeContext.LoadFunction("SDL_UpdateYUVTexture", "SDL3") + : _slots[838] = nativeContext.LoadFunction("SDL_UpdateYUVTexture", "SDL3") ) )(texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int UpdateYUVTexture( - TextureHandle texture, + public static byte UpdateYUVTexture( + Texture* texture, [NativeTypeName("const SDL_Rect *")] Rect* rect, [NativeTypeName("const Uint8 *")] byte* Yplane, int Ypitch, @@ -62872,8 +75840,8 @@ int Vpitch ) => DllImport.UpdateYUVTexture(texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.UpdateYUVTexture( - TextureHandle texture, + MaybeBool ISdl.UpdateYUVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -62887,26 +75855,29 @@ int Vpitch fixed (byte* __dsl_Uplane = Uplane) fixed (byte* __dsl_Yplane = Yplane) fixed (Rect* __dsl_rect = rect) + fixed (Texture* __dsl_texture = texture) { - return (int) - ((ISdl)this).UpdateYUVTexture( - texture, - __dsl_rect, - __dsl_Yplane, - Ypitch, - __dsl_Uplane, - Upitch, - __dsl_Vplane, - Vpitch - ); + return (MaybeBool) + (byte) + ((ISdl)this).UpdateYUVTexture( + __dsl_texture, + __dsl_rect, + __dsl_Yplane, + Ypitch, + __dsl_Uplane, + Upitch, + __dsl_Vplane, + Vpitch + ); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int UpdateYUVTexture( - TextureHandle texture, + public static MaybeBool UpdateYUVTexture( + Ref texture, [NativeTypeName("const SDL_Rect *")] Ref rect, [NativeTypeName("const Uint8 *")] Ref Yplane, int Ypitch, @@ -62917,147 +75888,184 @@ int Vpitch ) => DllImport.UpdateYUVTexture(texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WaitCondition(ConditionHandle cond, MutexHandle mutex) => + void ISdl.WaitCondition(ConditionHandle cond, MutexHandle mutex) => ( - (delegate* unmanaged)( - _slots[790] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[839] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[790] = nativeContext.LoadFunction("SDL_WaitCondition", "SDL3") + : _slots[839] = nativeContext.LoadFunction("SDL_WaitCondition", "SDL3") ) )(cond, mutex); [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WaitCondition(ConditionHandle cond, MutexHandle mutex) => + public static void WaitCondition(ConditionHandle cond, MutexHandle mutex) => DllImport.WaitCondition(cond, mutex); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WaitConditionTimeout( + MaybeBool ISdl.WaitConditionTimeout( + ConditionHandle cond, + MutexHandle mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) => (MaybeBool)(byte)((ISdl)this).WaitConditionTimeoutRaw(cond, mutex, timeoutMS); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WaitConditionTimeout( + ConditionHandle cond, + MutexHandle mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) => DllImport.WaitConditionTimeout(cond, mutex, timeoutMS); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.WaitConditionTimeoutRaw( ConditionHandle cond, MutexHandle mutex, [NativeTypeName("Sint32")] int timeoutMS ) => ( - (delegate* unmanaged)( - _slots[791] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[840] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[791] = nativeContext.LoadFunction("SDL_WaitConditionTimeout", "SDL3") + : _slots[840] = nativeContext.LoadFunction("SDL_WaitConditionTimeout", "SDL3") ) )(cond, mutex, timeoutMS); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WaitConditionTimeout( + public static byte WaitConditionTimeoutRaw( ConditionHandle cond, MutexHandle mutex, [NativeTypeName("Sint32")] int timeoutMS - ) => DllImport.WaitConditionTimeout(cond, mutex, timeoutMS); + ) => DllImport.WaitConditionTimeoutRaw(cond, mutex, timeoutMS); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WaitEvent(Event* @event) => + byte ISdl.WaitEvent(Event* @event) => ( - (delegate* unmanaged)( - _slots[792] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[841] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[792] = nativeContext.LoadFunction("SDL_WaitEvent", "SDL3") + : _slots[841] = nativeContext.LoadFunction("SDL_WaitEvent", "SDL3") ) )(@event); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WaitEvent(Event* @event) => DllImport.WaitEvent(@event); + public static byte WaitEvent(Event* @event) => DllImport.WaitEvent(@event); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WaitEvent(Ref @event) + MaybeBool ISdl.WaitEvent(Ref @event) { fixed (Event* __dsl_event = @event) { - return (MaybeBool)(int)((ISdl)this).WaitEvent(__dsl_event); + return (MaybeBool)(byte)((ISdl)this).WaitEvent(__dsl_event); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WaitEvent(Ref @event) => DllImport.WaitEvent(@event); + public static MaybeBool WaitEvent(Ref @event) => DllImport.WaitEvent(@event); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS) => + byte ISdl.WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS) => ( - (delegate* unmanaged)( - _slots[793] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[842] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[793] = nativeContext.LoadFunction("SDL_WaitEventTimeout", "SDL3") + : _slots[842] = nativeContext.LoadFunction("SDL_WaitEventTimeout", "SDL3") ) )(@event, timeoutMS); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS) => + public static byte WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS) => DllImport.WaitEventTimeout(@event, timeoutMS); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WaitEventTimeout( + MaybeBool ISdl.WaitEventTimeout( Ref @event, [NativeTypeName("Sint32")] int timeoutMS ) { fixed (Event* __dsl_event = @event) { - return (MaybeBool)(int)((ISdl)this).WaitEventTimeout(__dsl_event, timeoutMS); + return (MaybeBool)(byte)((ISdl)this).WaitEventTimeout(__dsl_event, timeoutMS); } } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WaitEventTimeout( + public static MaybeBool WaitEventTimeout( Ref @event, [NativeTypeName("Sint32")] int timeoutMS ) => DllImport.WaitEventTimeout(@event, timeoutMS); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WaitSemaphore(SemaphoreHandle sem) => + void ISdl.WaitSemaphore(SemaphoreHandle sem) => ( - (delegate* unmanaged)( - _slots[794] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[843] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[794] = nativeContext.LoadFunction("SDL_WaitSemaphore", "SDL3") + : _slots[843] = nativeContext.LoadFunction("SDL_WaitSemaphore", "SDL3") ) )(sem); [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphore")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WaitSemaphore(SemaphoreHandle sem) => DllImport.WaitSemaphore(sem); + public static void WaitSemaphore(SemaphoreHandle sem) => DllImport.WaitSemaphore(sem); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WaitSemaphoreTimeout( + SemaphoreHandle sem, + [NativeTypeName("Sint32")] int timeoutMS + ) => (MaybeBool)(byte)((ISdl)this).WaitSemaphoreTimeoutRaw(sem, timeoutMS); + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WaitSemaphoreTimeout(SemaphoreHandle sem, [NativeTypeName("Sint32")] int timeoutMS) => + public static MaybeBool WaitSemaphoreTimeout( + SemaphoreHandle sem, + [NativeTypeName("Sint32")] int timeoutMS + ) => DllImport.WaitSemaphoreTimeout(sem, timeoutMS); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.WaitSemaphoreTimeoutRaw( + SemaphoreHandle sem, + [NativeTypeName("Sint32")] int timeoutMS + ) => ( - (delegate* unmanaged)( - _slots[795] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[844] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[795] = nativeContext.LoadFunction("SDL_WaitSemaphoreTimeout", "SDL3") + : _slots[844] = nativeContext.LoadFunction("SDL_WaitSemaphoreTimeout", "SDL3") ) )(sem, timeoutMS); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WaitSemaphoreTimeout( + public static byte WaitSemaphoreTimeoutRaw( SemaphoreHandle sem, [NativeTypeName("Sint32")] int timeoutMS - ) => DllImport.WaitSemaphoreTimeout(sem, timeoutMS); + ) => DllImport.WaitSemaphoreTimeoutRaw(sem, timeoutMS); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.WaitThread(ThreadHandle thread, int* status) => ( (delegate* unmanaged)( - _slots[796] is not null and var loadedFnPtr + _slots[845] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[796] = nativeContext.LoadFunction("SDL_WaitThread", "SDL3") + : _slots[845] = nativeContext.LoadFunction("SDL_WaitThread", "SDL3") ) )(thread, status); @@ -63082,26 +76090,38 @@ public static void WaitThread(ThreadHandle thread, Ref status) => DllImport.WaitThread(thread, status); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WarpMouseGlobal(float x, float y) => + MaybeBool ISdl.WarpMouseGlobal(float x, float y) => + (MaybeBool)(byte)((ISdl)this).WarpMouseGlobalRaw(x, y); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseGlobal")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WarpMouseGlobal(float x, float y) => + DllImport.WarpMouseGlobal(x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.WarpMouseGlobalRaw(float x, float y) => ( - (delegate* unmanaged)( - _slots[797] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[846] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[797] = nativeContext.LoadFunction("SDL_WarpMouseGlobal", "SDL3") + : _slots[846] = nativeContext.LoadFunction("SDL_WarpMouseGlobal", "SDL3") ) )(x, y); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseGlobal")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WarpMouseGlobal(float x, float y) => DllImport.WarpMouseGlobal(x, y); + public static byte WarpMouseGlobalRaw(float x, float y) => DllImport.WarpMouseGlobalRaw(x, y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.WarpMouseInWindow(WindowHandle window, float x, float y) => ( (delegate* unmanaged)( - _slots[798] is not null and var loadedFnPtr + _slots[847] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[798] = nativeContext.LoadFunction("SDL_WarpMouseInWindow", "SDL3") + : _slots[847] = nativeContext.LoadFunction("SDL_WarpMouseInWindow", "SDL3") ) )(window, x, y); @@ -63111,45 +76131,46 @@ public static void WarpMouseInWindow(WindowHandle window, float x, float y) => DllImport.WarpMouseInWindow(window, x, y); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - uint ISdl.WasInit([NativeTypeName("Uint32")] uint flags) => + uint ISdl.WasInit([NativeTypeName("SDL_InitFlags")] uint flags) => ( (delegate* unmanaged)( - _slots[799] is not null and var loadedFnPtr + _slots[848] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[799] = nativeContext.LoadFunction("SDL_WasInit", "SDL3") + : _slots[848] = nativeContext.LoadFunction("SDL_WasInit", "SDL3") ) )(flags); - [return: NativeTypeName("Uint32")] + [return: NativeTypeName("SDL_InitFlags")] [NativeFunction("SDL3", EntryPoint = "SDL_WasInit")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static uint WasInit([NativeTypeName("Uint32")] uint flags) => DllImport.WasInit(flags); + public static uint WasInit([NativeTypeName("SDL_InitFlags")] uint flags) => + DllImport.WasInit(flags); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WindowHasSurface(WindowHandle window) => - (MaybeBool)(int)((ISdl)this).WindowHasSurfaceRaw(window); + MaybeBool ISdl.WindowHasSurface(WindowHandle window) => + (MaybeBool)(byte)((ISdl)this).WindowHasSurfaceRaw(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WindowHasSurface(WindowHandle window) => + public static MaybeBool WindowHasSurface(WindowHandle window) => DllImport.WindowHasSurface(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WindowHasSurfaceRaw(WindowHandle window) => + byte ISdl.WindowHasSurfaceRaw(WindowHandle window) => ( - (delegate* unmanaged)( - _slots[800] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[849] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[800] = nativeContext.LoadFunction("SDL_WindowHasSurface", "SDL3") + : _slots[849] = nativeContext.LoadFunction("SDL_WindowHasSurface", "SDL3") ) )(window); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WindowHasSurfaceRaw(WindowHandle window) => + public static byte WindowHasSurfaceRaw(WindowHandle window) => DllImport.WindowHasSurfaceRaw(window); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -63160,9 +76181,9 @@ nuint ISdl.WriteIO( ) => ( (delegate* unmanaged)( - _slots[801] is not null and var loadedFnPtr + _slots[850] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[801] = nativeContext.LoadFunction("SDL_WriteIO", "SDL3") + : _slots[850] = nativeContext.LoadFunction("SDL_WriteIO", "SDL3") ) )(context, ptr, size); @@ -63199,197 +76220,227 @@ public static nuint WriteIO( ) => DllImport.WriteIO(context, ptr, size); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteS16BE(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => - (MaybeBool)(int)((ISdl)this).WriteS16BERaw(dst, value); + MaybeBool ISdl.WriteS16BE(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => + (MaybeBool)(byte)((ISdl)this).WriteS16BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteS16BE( + public static MaybeBool WriteS16BE( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ) => DllImport.WriteS16BE(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteS16BERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => + byte ISdl.WriteS16BERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => ( - (delegate* unmanaged)( - _slots[802] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[851] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[802] = nativeContext.LoadFunction("SDL_WriteS16BE", "SDL3") + : _slots[851] = nativeContext.LoadFunction("SDL_WriteS16BE", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteS16BERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => + public static byte WriteS16BERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => DllImport.WriteS16BERaw(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteS16LE(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => - (MaybeBool)(int)((ISdl)this).WriteS16LERaw(dst, value); + MaybeBool ISdl.WriteS16LE(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => + (MaybeBool)(byte)((ISdl)this).WriteS16LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteS16LE( + public static MaybeBool WriteS16LE( IOStreamHandle dst, [NativeTypeName("Sint16")] short value ) => DllImport.WriteS16LE(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteS16LERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => + byte ISdl.WriteS16LERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => ( - (delegate* unmanaged)( - _slots[803] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[852] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[803] = nativeContext.LoadFunction("SDL_WriteS16LE", "SDL3") + : _slots[852] = nativeContext.LoadFunction("SDL_WriteS16LE", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteS16LERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => + public static byte WriteS16LERaw(IOStreamHandle dst, [NativeTypeName("Sint16")] short value) => DllImport.WriteS16LERaw(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteS32BE(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => - (MaybeBool)(int)((ISdl)this).WriteS32BERaw(dst, value); + MaybeBool ISdl.WriteS32BE(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => + (MaybeBool)(byte)((ISdl)this).WriteS32BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteS32BE( + public static MaybeBool WriteS32BE( IOStreamHandle dst, [NativeTypeName("Sint32")] int value ) => DllImport.WriteS32BE(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteS32BERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => + byte ISdl.WriteS32BERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => ( - (delegate* unmanaged)( - _slots[804] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[853] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[804] = nativeContext.LoadFunction("SDL_WriteS32BE", "SDL3") + : _slots[853] = nativeContext.LoadFunction("SDL_WriteS32BE", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteS32BERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => + public static byte WriteS32BERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => DllImport.WriteS32BERaw(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteS32LE(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => - (MaybeBool)(int)((ISdl)this).WriteS32LERaw(dst, value); + MaybeBool ISdl.WriteS32LE(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => + (MaybeBool)(byte)((ISdl)this).WriteS32LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteS32LE( + public static MaybeBool WriteS32LE( IOStreamHandle dst, [NativeTypeName("Sint32")] int value ) => DllImport.WriteS32LE(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteS32LERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => + byte ISdl.WriteS32LERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => ( - (delegate* unmanaged)( - _slots[805] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[854] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[805] = nativeContext.LoadFunction("SDL_WriteS32LE", "SDL3") + : _slots[854] = nativeContext.LoadFunction("SDL_WriteS32LE", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteS32LERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => + public static byte WriteS32LERaw(IOStreamHandle dst, [NativeTypeName("Sint32")] int value) => DllImport.WriteS32LERaw(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteS64BE(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => - (MaybeBool)(int)((ISdl)this).WriteS64BERaw(dst, value); + MaybeBool ISdl.WriteS64BE(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => + (MaybeBool)(byte)((ISdl)this).WriteS64BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteS64BE( + public static MaybeBool WriteS64BE( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ) => DllImport.WriteS64BE(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteS64BERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => + byte ISdl.WriteS64BERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => ( - (delegate* unmanaged)( - _slots[806] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[855] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[806] = nativeContext.LoadFunction("SDL_WriteS64BE", "SDL3") + : _slots[855] = nativeContext.LoadFunction("SDL_WriteS64BE", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteS64BERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => + public static byte WriteS64BERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => DllImport.WriteS64BERaw(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteS64LE(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => - (MaybeBool)(int)((ISdl)this).WriteS64LERaw(dst, value); + MaybeBool ISdl.WriteS64LE(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => + (MaybeBool)(byte)((ISdl)this).WriteS64LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteS64LE( + public static MaybeBool WriteS64LE( IOStreamHandle dst, [NativeTypeName("Sint64")] long value ) => DllImport.WriteS64LE(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteS64LERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => + byte ISdl.WriteS64LERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => ( - (delegate* unmanaged)( - _slots[807] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[856] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[807] = nativeContext.LoadFunction("SDL_WriteS64LE", "SDL3") + : _slots[856] = nativeContext.LoadFunction("SDL_WriteS64LE", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteS64LERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => + public static byte WriteS64LERaw(IOStreamHandle dst, [NativeTypeName("Sint64")] long value) => DllImport.WriteS64LERaw(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteStorageFile( + MaybeBool ISdl.WriteS8(IOStreamHandle dst, [NativeTypeName("Sint8")] sbyte value) => + (MaybeBool)(byte)((ISdl)this).WriteS8Raw(dst, value); + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS8")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteS8( + IOStreamHandle dst, + [NativeTypeName("Sint8")] sbyte value + ) => DllImport.WriteS8(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.WriteS8Raw(IOStreamHandle dst, [NativeTypeName("Sint8")] sbyte value) => + ( + (delegate* unmanaged)( + _slots[857] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[857] = nativeContext.LoadFunction("SDL_WriteS8", "SDL3") + ) + )(dst, value); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS8")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte WriteS8Raw(IOStreamHandle dst, [NativeTypeName("Sint8")] sbyte value) => + DllImport.WriteS8Raw(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const void *")] void* source, [NativeTypeName("Uint64")] ulong length ) => ( - (delegate* unmanaged)( - _slots[808] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[858] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[808] = nativeContext.LoadFunction("SDL_WriteStorageFile", "SDL3") + : _slots[858] = nativeContext.LoadFunction("SDL_WriteStorageFile", "SDL3") ) )(storage, path, source, length); + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteStorageFile( + public static byte WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const void *")] void* source, @@ -63397,7 +76448,7 @@ public static int WriteStorageFile( ) => DllImport.WriteStorageFile(storage, path, source, length); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteStorageFile( + MaybeBool ISdl.WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const void *")] Ref source, @@ -63407,14 +76458,16 @@ int ISdl.WriteStorageFile( fixed (void* __dsl_source = source) fixed (sbyte* __dsl_path = path) { - return (int)((ISdl)this).WriteStorageFile(storage, __dsl_path, __dsl_source, length); + return (MaybeBool) + (byte)((ISdl)this).WriteStorageFile(storage, __dsl_path, __dsl_source, length); } } + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteStorageFile( + public static MaybeBool WriteStorageFile( StorageHandle storage, [NativeTypeName("const char *")] Ref path, [NativeTypeName("const void *")] Ref source, @@ -63422,205 +76475,331 @@ public static int WriteStorageFile( ) => DllImport.WriteStorageFile(storage, path, source, length); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteU16BE(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => - (MaybeBool)(int)((ISdl)this).WriteU16BERaw(dst, value); + byte ISdl.WriteSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => + ( + (delegate* unmanaged)( + _slots[859] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[859] = nativeContext.LoadFunction("SDL_WriteSurfacePixel", "SDL3") + ) + )(surface, x, y, r, g, b, a); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixel")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte WriteSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => DllImport.WriteSurfacePixel(surface, x, y, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool) + (byte)((ISdl)this).WriteSurfacePixel(__dsl_surface, x, y, r, g, b, a); + } + } + + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixel")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => DllImport.WriteSurfacePixel(surface, x, y, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.WriteSurfacePixelFloat( + Surface* surface, + int x, + int y, + float r, + float g, + float b, + float a + ) => + ( + (delegate* unmanaged)( + _slots[860] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[860] = nativeContext.LoadFunction("SDL_WriteSurfacePixelFloat", "SDL3") + ) + )(surface, x, y, r, g, b, a); + + [return: NativeTypeName("bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixelFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte WriteSurfacePixelFloat( + Surface* surface, + int x, + int y, + float r, + float g, + float b, + float a + ) => DllImport.WriteSurfacePixelFloat(surface, x, y, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteSurfacePixelFloat( + Ref surface, + int x, + int y, + float r, + float g, + float b, + float a + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool) + (byte)((ISdl)this).WriteSurfacePixelFloat(__dsl_surface, x, y, r, g, b, a); + } + } - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteSurfacePixelFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteSurfacePixelFloat( + Ref surface, + int x, + int y, + float r, + float g, + float b, + float a + ) => DllImport.WriteSurfacePixelFloat(surface, x, y, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteU16BE(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => + (MaybeBool)(byte)((ISdl)this).WriteU16BERaw(dst, value); + + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteU16BE( + public static MaybeBool WriteU16BE( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ) => DllImport.WriteU16BE(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteU16BERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => + byte ISdl.WriteU16BERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => ( - (delegate* unmanaged)( - _slots[809] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[861] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[809] = nativeContext.LoadFunction("SDL_WriteU16BE", "SDL3") + : _slots[861] = nativeContext.LoadFunction("SDL_WriteU16BE", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteU16BERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => + public static byte WriteU16BERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => DllImport.WriteU16BERaw(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteU16LE(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => - (MaybeBool)(int)((ISdl)this).WriteU16LERaw(dst, value); + MaybeBool ISdl.WriteU16LE(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => + (MaybeBool)(byte)((ISdl)this).WriteU16LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteU16LE( + public static MaybeBool WriteU16LE( IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value ) => DllImport.WriteU16LE(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteU16LERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => + byte ISdl.WriteU16LERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => ( - (delegate* unmanaged)( - _slots[810] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[862] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[810] = nativeContext.LoadFunction("SDL_WriteU16LE", "SDL3") + : _slots[862] = nativeContext.LoadFunction("SDL_WriteU16LE", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteU16LERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => + public static byte WriteU16LERaw(IOStreamHandle dst, [NativeTypeName("Uint16")] ushort value) => DllImport.WriteU16LERaw(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteU32BE(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => - (MaybeBool)(int)((ISdl)this).WriteU32BERaw(dst, value); + MaybeBool ISdl.WriteU32BE(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => + (MaybeBool)(byte)((ISdl)this).WriteU32BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteU32BE( + public static MaybeBool WriteU32BE( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ) => DllImport.WriteU32BE(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteU32BERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => + byte ISdl.WriteU32BERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => ( - (delegate* unmanaged)( - _slots[811] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[863] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[811] = nativeContext.LoadFunction("SDL_WriteU32BE", "SDL3") + : _slots[863] = nativeContext.LoadFunction("SDL_WriteU32BE", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteU32BERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => + public static byte WriteU32BERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => DllImport.WriteU32BERaw(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteU32LE(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => - (MaybeBool)(int)((ISdl)this).WriteU32LERaw(dst, value); + MaybeBool ISdl.WriteU32LE(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => + (MaybeBool)(byte)((ISdl)this).WriteU32LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteU32LE( + public static MaybeBool WriteU32LE( IOStreamHandle dst, [NativeTypeName("Uint32")] uint value ) => DllImport.WriteU32LE(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteU32LERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => + byte ISdl.WriteU32LERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => ( - (delegate* unmanaged)( - _slots[812] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[864] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[812] = nativeContext.LoadFunction("SDL_WriteU32LE", "SDL3") + : _slots[864] = nativeContext.LoadFunction("SDL_WriteU32LE", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteU32LERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => + public static byte WriteU32LERaw(IOStreamHandle dst, [NativeTypeName("Uint32")] uint value) => DllImport.WriteU32LERaw(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteU64BE(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => - (MaybeBool)(int)((ISdl)this).WriteU64BERaw(dst, value); + MaybeBool ISdl.WriteU64BE(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => + (MaybeBool)(byte)((ISdl)this).WriteU64BERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteU64BE( + public static MaybeBool WriteU64BE( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ) => DllImport.WriteU64BE(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteU64BERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => + byte ISdl.WriteU64BERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => ( - (delegate* unmanaged)( - _slots[813] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[865] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[813] = nativeContext.LoadFunction("SDL_WriteU64BE", "SDL3") + : _slots[865] = nativeContext.LoadFunction("SDL_WriteU64BE", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteU64BERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => + public static byte WriteU64BERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => DllImport.WriteU64BERaw(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteU64LE(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => - (MaybeBool)(int)((ISdl)this).WriteU64LERaw(dst, value); + MaybeBool ISdl.WriteU64LE(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => + (MaybeBool)(byte)((ISdl)this).WriteU64LERaw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteU64LE( + public static MaybeBool WriteU64LE( IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value ) => DllImport.WriteU64LE(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteU64LERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => + byte ISdl.WriteU64LERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => ( - (delegate* unmanaged)( - _slots[814] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[866] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[814] = nativeContext.LoadFunction("SDL_WriteU64LE", "SDL3") + : _slots[866] = nativeContext.LoadFunction("SDL_WriteU64LE", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteU64LERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => + public static byte WriteU64LERaw(IOStreamHandle dst, [NativeTypeName("Uint64")] ulong value) => DllImport.WriteU64LERaw(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - MaybeBool ISdl.WriteU8(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => - (MaybeBool)(int)((ISdl)this).WriteU8Raw(dst, value); + MaybeBool ISdl.WriteU8(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => + (MaybeBool)(byte)((ISdl)this).WriteU8Raw(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [Transformed] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static MaybeBool WriteU8( + public static MaybeBool WriteU8( IOStreamHandle dst, [NativeTypeName("Uint8")] byte value ) => DllImport.WriteU8(dst, value); [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => + byte ISdl.WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => ( - (delegate* unmanaged)( - _slots[815] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[867] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[815] = nativeContext.LoadFunction("SDL_WriteU8", "SDL3") + : _slots[867] = nativeContext.LoadFunction("SDL_WriteU8", "SDL3") ) )(dst, value); - [return: NativeTypeName("SDL_bool")] + [return: NativeTypeName("bool")] [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => + public static byte WriteU8Raw(IOStreamHandle dst, [NativeTypeName("Uint8")] byte value) => DllImport.WriteU8Raw(dst, value); } diff --git a/sources/SDL/SDL/SDL3/SetPropertyWithCleanupCleanupDelegate.gen.cs b/sources/SDL/SDL/SDL3/SetPropertyWithCleanupCleanupDelegate.gen.cs deleted file mode 100644 index bd65d70261..0000000000 --- a/sources/SDL/SDL/SDL3/SetPropertyWithCleanupCleanupDelegate.gen.cs +++ /dev/null @@ -1,11 +0,0 @@ -// 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; - -public unsafe delegate void SetPropertyWithCleanupCleanupDelegate(void* arg0, void* arg1); diff --git a/sources/SDL/SDL/SDL3/StorageInterface.gen.cs b/sources/SDL/SDL/SDL3/StorageInterface.gen.cs index 26daa84341..5158456caf 100644 --- a/sources/SDL/SDL/SDL3/StorageInterface.gen.cs +++ b/sources/SDL/SDL/SDL3/StorageInterface.gen.cs @@ -9,32 +9,38 @@ namespace Silk.NET.SDL; public unsafe partial struct StorageInterface { - [NativeTypeName("int (*)(void *)")] - public ThreadFunction Close; + [NativeTypeName("Uint32")] + public uint Version; - [NativeTypeName("SDL_bool (*)(void *)")] - public ThreadFunction Ready; + [NativeTypeName("bool (*)(void *)")] + public StorageInterfaceClose Close; - [NativeTypeName("int (*)(void *, const char *, SDL_EnumerateDirectoryCallback, void *)")] + [NativeTypeName("bool (*)(void *)")] + public StorageInterfaceReady Ready; + + [NativeTypeName("bool (*)(void *, const char *, SDL_EnumerateDirectoryCallback, void *)")] public StorageInterfaceEnumerate Enumerate; - [NativeTypeName("int (*)(void *, const char *, SDL_PathInfo *)")] + [NativeTypeName("bool (*)(void *, const char *, SDL_PathInfo *)")] public StorageInterfaceInfo Info; - [NativeTypeName("int (*)(void *, const char *, void *, Uint64)")] - public StorageInterfaceFunction1 ReadFile; + [NativeTypeName("bool (*)(void *, const char *, void *, Uint64)")] + public StorageInterfaceReadFile ReadFile; + + [NativeTypeName("bool (*)(void *, const char *, const void *, Uint64)")] + public StorageInterfaceWriteFile WriteFile; - [NativeTypeName("int (*)(void *, const char *, const void *, Uint64)")] - public StorageInterfaceFunction1 WriteFile; + [NativeTypeName("bool (*)(void *, const char *)")] + public StorageInterfaceMkdir Mkdir; - [NativeTypeName("int (*)(void *, const char *)")] - public StorageInterfaceFunction2 Mkdir; + [NativeTypeName("bool (*)(void *, const char *)")] + public StorageInterfaceRemove Remove; - [NativeTypeName("int (*)(void *, const char *)")] - public StorageInterfaceFunction2 Remove; + [NativeTypeName("bool (*)(void *, const char *, const char *)")] + public StorageInterfaceRename Rename; - [NativeTypeName("int (*)(void *, const char *, const char *)")] - public EnumerateDirectoryCallback Rename; + [NativeTypeName("bool (*)(void *, const char *, const char *)")] + public StorageInterfaceCopy Copy; [NativeTypeName("Uint64 (*)(void *)")] public StorageInterfaceSpaceRemaining SpaceRemaining; diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceClose.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceClose.gen.cs new file mode 100644 index 0000000000..bd3aafb144 --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceClose.gen.cs @@ -0,0 +1,29 @@ +// 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; + +[Transformed] +public readonly unsafe struct StorageInterfaceClose : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => (delegate* unmanaged)Pointer; + + public StorageInterfaceClose(delegate* unmanaged ptr) => Pointer = ptr; + + public StorageInterfaceClose(StorageInterfaceCloseDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator StorageInterfaceClose(delegate* unmanaged pfn) => + new(pfn); + + public static implicit operator delegate* unmanaged(StorageInterfaceClose pfn) => + (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceCloseDelegate.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceCloseDelegate.gen.cs new file mode 100644 index 0000000000..13d31649c4 --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceCloseDelegate.gen.cs @@ -0,0 +1,12 @@ +// 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; + +[Transformed] +public unsafe delegate byte StorageInterfaceCloseDelegate(void* arg0); diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceCopy.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceCopy.gen.cs new file mode 100644 index 0000000000..8f3a542c45 --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceCopy.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; + +[Transformed] +public readonly unsafe struct StorageInterfaceCopy : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; + + public StorageInterfaceCopy(delegate* unmanaged ptr) => + Pointer = ptr; + + public StorageInterfaceCopy(StorageInterfaceCopyDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator StorageInterfaceCopy( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + StorageInterfaceCopy pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceCopyDelegate.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceCopyDelegate.gen.cs new file mode 100644 index 0000000000..97cc4dcc17 --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceCopyDelegate.gen.cs @@ -0,0 +1,12 @@ +// 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; + +[Transformed] +public unsafe delegate byte StorageInterfaceCopyDelegate(void* arg0, sbyte* arg1, sbyte* arg2); diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceEnumerate.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceEnumerate.gen.cs index e37e4f749e..be96e7f6ab 100644 --- a/sources/SDL/SDL/SDL3/StorageInterfaceEnumerate.gen.cs +++ b/sources/SDL/SDL/SDL3/StorageInterfaceEnumerate.gen.cs @@ -8,14 +8,15 @@ namespace Silk.NET.SDL; +[Transformed] public readonly unsafe struct StorageInterfaceEnumerate : IDisposable { private readonly void* Pointer; - public delegate* unmanaged Handle => - (delegate* unmanaged)Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; public StorageInterfaceEnumerate( - delegate* unmanaged ptr + delegate* unmanaged ptr ) => Pointer = ptr; public StorageInterfaceEnumerate(StorageInterfaceEnumerateDelegate proc) => @@ -24,7 +25,7 @@ public StorageInterfaceEnumerate(StorageInterfaceEnumerateDelegate proc) => public void Dispose() => SilkMarshal.Free(Pointer); public static implicit operator StorageInterfaceEnumerate( - delegate* unmanaged pfn + delegate* unmanaged pfn ) => new(pfn); public static implicit operator delegate* unmanaged< @@ -32,6 +33,6 @@ public static implicit operator delegate* unmanaged< sbyte*, EnumerateDirectoryCallback, void*, - int>(StorageInterfaceEnumerate pfn) => - (delegate* unmanaged)pfn.Pointer; + byte>(StorageInterfaceEnumerate pfn) => + (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceEnumerateDelegate.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceEnumerateDelegate.gen.cs index 3dd7a47807..4d801192eb 100644 --- a/sources/SDL/SDL/SDL3/StorageInterfaceEnumerateDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/StorageInterfaceEnumerateDelegate.gen.cs @@ -8,7 +8,8 @@ namespace Silk.NET.SDL; -public unsafe delegate int StorageInterfaceEnumerateDelegate( +[Transformed] +public unsafe delegate byte StorageInterfaceEnumerateDelegate( void* arg0, sbyte* arg1, EnumerateDirectoryCallback arg2, diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceInfo.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceInfo.gen.cs index a5d723ccd9..f0da941e81 100644 --- a/sources/SDL/SDL/SDL3/StorageInterfaceInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/StorageInterfaceInfo.gen.cs @@ -8,13 +8,14 @@ namespace Silk.NET.SDL; +[Transformed] public readonly unsafe struct StorageInterfaceInfo : IDisposable { private readonly void* Pointer; - public delegate* unmanaged Handle => - (delegate* unmanaged)Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; - public StorageInterfaceInfo(delegate* unmanaged ptr) => + public StorageInterfaceInfo(delegate* unmanaged ptr) => Pointer = ptr; public StorageInterfaceInfo(StorageInterfaceInfoDelegate proc) => @@ -23,10 +24,10 @@ public StorageInterfaceInfo(StorageInterfaceInfoDelegate proc) => public void Dispose() => SilkMarshal.Free(Pointer); public static implicit operator StorageInterfaceInfo( - delegate* unmanaged pfn + delegate* unmanaged pfn ) => new(pfn); - public static implicit operator delegate* unmanaged( + public static implicit operator delegate* unmanaged( StorageInterfaceInfo pfn - ) => (delegate* unmanaged)pfn.Pointer; + ) => (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceInfoDelegate.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceInfoDelegate.gen.cs index f319c4c22c..b1f3ed5b84 100644 --- a/sources/SDL/SDL/SDL3/StorageInterfaceInfoDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/StorageInterfaceInfoDelegate.gen.cs @@ -8,4 +8,5 @@ namespace Silk.NET.SDL; -public unsafe delegate int StorageInterfaceInfoDelegate(void* arg0, sbyte* arg1, PathInfo* arg2); +[Transformed] +public unsafe delegate byte StorageInterfaceInfoDelegate(void* arg0, sbyte* arg1, PathInfo* arg2); diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceFunction2.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceMkdir.gen.cs similarity index 52% rename from sources/SDL/SDL/SDL3/StorageInterfaceFunction2.gen.cs rename to sources/SDL/SDL/SDL3/StorageInterfaceMkdir.gen.cs index 5492c4a787..6bda07570a 100644 --- a/sources/SDL/SDL/SDL3/StorageInterfaceFunction2.gen.cs +++ b/sources/SDL/SDL/SDL3/StorageInterfaceMkdir.gen.cs @@ -9,24 +9,24 @@ namespace Silk.NET.SDL; [Transformed] -public readonly unsafe struct StorageInterfaceFunction2 : IDisposable +public readonly unsafe struct StorageInterfaceMkdir : IDisposable { private readonly void* Pointer; - public delegate* unmanaged Handle => - (delegate* unmanaged)Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; - public StorageInterfaceFunction2(delegate* unmanaged ptr) => Pointer = ptr; + public StorageInterfaceMkdir(delegate* unmanaged ptr) => Pointer = ptr; - public StorageInterfaceFunction2(StorageInterfaceFunction2Delegate proc) => + public StorageInterfaceMkdir(StorageInterfaceMkdirDelegate proc) => Pointer = SilkMarshal.DelegateToPtr(proc); public void Dispose() => SilkMarshal.Free(Pointer); - public static implicit operator StorageInterfaceFunction2( - delegate* unmanaged pfn + public static implicit operator StorageInterfaceMkdir( + delegate* unmanaged pfn ) => new(pfn); - public static implicit operator delegate* unmanaged( - StorageInterfaceFunction2 pfn - ) => (delegate* unmanaged)pfn.Pointer; + public static implicit operator delegate* unmanaged( + StorageInterfaceMkdir pfn + ) => (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceMkdirDelegate.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceMkdirDelegate.gen.cs new file mode 100644 index 0000000000..912318503a --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceMkdirDelegate.gen.cs @@ -0,0 +1,12 @@ +// 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; + +[Transformed] +public unsafe delegate byte StorageInterfaceMkdirDelegate(void* arg0, sbyte* arg1); diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceReadFile.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceReadFile.gen.cs new file mode 100644 index 0000000000..6ed93c6215 --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceReadFile.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; + +[Transformed] +public readonly unsafe struct StorageInterfaceReadFile : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; + + public StorageInterfaceReadFile(delegate* unmanaged ptr) => + Pointer = ptr; + + public StorageInterfaceReadFile(StorageInterfaceReadFileDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator StorageInterfaceReadFile( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + StorageInterfaceReadFile pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceFunction1Delegate.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceReadFileDelegate.gen.cs similarity index 88% rename from sources/SDL/SDL/SDL3/StorageInterfaceFunction1Delegate.gen.cs rename to sources/SDL/SDL/SDL3/StorageInterfaceReadFileDelegate.gen.cs index 69ce4be852..240bede637 100644 --- a/sources/SDL/SDL/SDL3/StorageInterfaceFunction1Delegate.gen.cs +++ b/sources/SDL/SDL/SDL3/StorageInterfaceReadFileDelegate.gen.cs @@ -9,7 +9,7 @@ namespace Silk.NET.SDL; [Transformed] -public unsafe delegate int StorageInterfaceFunction1Delegate( +public unsafe delegate byte StorageInterfaceReadFileDelegate( void* arg0, sbyte* arg1, void* arg2, diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceReady.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceReady.gen.cs new file mode 100644 index 0000000000..0eef8f4c22 --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceReady.gen.cs @@ -0,0 +1,29 @@ +// 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; + +[Transformed] +public readonly unsafe struct StorageInterfaceReady : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => (delegate* unmanaged)Pointer; + + public StorageInterfaceReady(delegate* unmanaged ptr) => Pointer = ptr; + + public StorageInterfaceReady(StorageInterfaceReadyDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator StorageInterfaceReady(delegate* unmanaged pfn) => + new(pfn); + + public static implicit operator delegate* unmanaged(StorageInterfaceReady pfn) => + (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceReadyDelegate.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceReadyDelegate.gen.cs new file mode 100644 index 0000000000..35a60049f2 --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceReadyDelegate.gen.cs @@ -0,0 +1,12 @@ +// 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; + +[Transformed] +public unsafe delegate byte StorageInterfaceReadyDelegate(void* arg0); diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceRemove.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceRemove.gen.cs new file mode 100644 index 0000000000..dcbd148706 --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceRemove.gen.cs @@ -0,0 +1,32 @@ +// 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; + +[Transformed] +public readonly unsafe struct StorageInterfaceRemove : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; + + public StorageInterfaceRemove(delegate* unmanaged ptr) => Pointer = ptr; + + public StorageInterfaceRemove(StorageInterfaceRemoveDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator StorageInterfaceRemove( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + StorageInterfaceRemove pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceRemoveDelegate.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceRemoveDelegate.gen.cs new file mode 100644 index 0000000000..c6b3866e0b --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceRemoveDelegate.gen.cs @@ -0,0 +1,12 @@ +// 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; + +[Transformed] +public unsafe delegate byte StorageInterfaceRemoveDelegate(void* arg0, sbyte* arg1); diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceRename.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceRename.gen.cs new file mode 100644 index 0000000000..bd425cc0c6 --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceRename.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; + +[Transformed] +public readonly unsafe struct StorageInterfaceRename : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; + + public StorageInterfaceRename(delegate* unmanaged ptr) => + Pointer = ptr; + + public StorageInterfaceRename(StorageInterfaceRenameDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator StorageInterfaceRename( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + StorageInterfaceRename pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceRenameDelegate.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceRenameDelegate.gen.cs new file mode 100644 index 0000000000..24a8e0a0ff --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceRenameDelegate.gen.cs @@ -0,0 +1,12 @@ +// 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; + +[Transformed] +public unsafe delegate byte StorageInterfaceRenameDelegate(void* arg0, sbyte* arg1, sbyte* arg2); diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceSpaceRemaining.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceSpaceRemaining.gen.cs index a74549a33a..0aa0906351 100644 --- a/sources/SDL/SDL/SDL3/StorageInterfaceSpaceRemaining.gen.cs +++ b/sources/SDL/SDL/SDL3/StorageInterfaceSpaceRemaining.gen.cs @@ -8,6 +8,7 @@ namespace Silk.NET.SDL; +[Transformed] public readonly unsafe struct StorageInterfaceSpaceRemaining : IDisposable { private readonly void* Pointer; diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceSpaceRemainingDelegate.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceSpaceRemainingDelegate.gen.cs index b0eaf2f9af..17db76dba6 100644 --- a/sources/SDL/SDL/SDL3/StorageInterfaceSpaceRemainingDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/StorageInterfaceSpaceRemainingDelegate.gen.cs @@ -8,4 +8,5 @@ namespace Silk.NET.SDL; +[Transformed] public unsafe delegate ulong StorageInterfaceSpaceRemainingDelegate(void* arg0); diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceFunction1.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceWriteFile.gen.cs similarity index 51% rename from sources/SDL/SDL/SDL3/StorageInterfaceFunction1.gen.cs rename to sources/SDL/SDL/SDL3/StorageInterfaceWriteFile.gen.cs index ce15133919..62c7d04398 100644 --- a/sources/SDL/SDL/SDL3/StorageInterfaceFunction1.gen.cs +++ b/sources/SDL/SDL/SDL3/StorageInterfaceWriteFile.gen.cs @@ -9,25 +9,25 @@ namespace Silk.NET.SDL; [Transformed] -public readonly unsafe struct StorageInterfaceFunction1 : IDisposable +public readonly unsafe struct StorageInterfaceWriteFile : IDisposable { private readonly void* Pointer; - public delegate* unmanaged Handle => - (delegate* unmanaged)Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; - public StorageInterfaceFunction1(delegate* unmanaged ptr) => + public StorageInterfaceWriteFile(delegate* unmanaged ptr) => Pointer = ptr; - public StorageInterfaceFunction1(StorageInterfaceFunction1Delegate proc) => + public StorageInterfaceWriteFile(StorageInterfaceWriteFileDelegate proc) => Pointer = SilkMarshal.DelegateToPtr(proc); public void Dispose() => SilkMarshal.Free(Pointer); - public static implicit operator StorageInterfaceFunction1( - delegate* unmanaged pfn + public static implicit operator StorageInterfaceWriteFile( + delegate* unmanaged pfn ) => new(pfn); - public static implicit operator delegate* unmanaged( - StorageInterfaceFunction1 pfn - ) => (delegate* unmanaged)pfn.Pointer; + public static implicit operator delegate* unmanaged( + StorageInterfaceWriteFile pfn + ) => (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/StorageInterfaceWriteFileDelegate.gen.cs b/sources/SDL/SDL/SDL3/StorageInterfaceWriteFileDelegate.gen.cs new file mode 100644 index 0000000000..38a0d60039 --- /dev/null +++ b/sources/SDL/SDL/SDL3/StorageInterfaceWriteFileDelegate.gen.cs @@ -0,0 +1,17 @@ +// 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; + +[Transformed] +public unsafe delegate byte StorageInterfaceWriteFileDelegate( + void* arg0, + sbyte* arg1, + void* arg2, + ulong arg3 +); diff --git a/sources/SDL/SDL/SDL3/Surface.gen.cs b/sources/SDL/SDL/SDL3/Surface.gen.cs index 20f6d6405b..b2f01c0f2d 100644 --- a/sources/SDL/SDL/SDL3/Surface.gen.cs +++ b/sources/SDL/SDL/SDL3/Surface.gen.cs @@ -10,17 +10,13 @@ namespace Silk.NET.SDL; public unsafe partial struct Surface { - [NativeTypeName("Uint32")] + [NativeTypeName("SDL_SurfaceFlags")] public uint Flags; - public PixelFormat* Format; + public PixelFormat Format; public int W; public int H; public int Pitch; public void* Pixels; - public void* Reserved; - public int Locked; - public void* ListBlitmap; - public Rect ClipRect; - public BlitMapHandle Map; public int Refcount; + public void* Reserved; } diff --git a/sources/SDL/SDL/SDL3/SystemCursor.gen.cs b/sources/SDL/SDL/SDL3/SystemCursor.gen.cs index 6ac18766b2..b570743ffb 100644 --- a/sources/SDL/SDL/SDL3/SystemCursor.gen.cs +++ b/sources/SDL/SDL/SDL3/SystemCursor.gen.cs @@ -10,25 +10,25 @@ namespace Silk.NET.SDL; [NativeTypeName("unsigned int")] public enum SystemCursor : uint { - SystemCursorArrow, - SystemCursorIbeam, - SystemCursorWait, - SystemCursorCrosshair, - SystemCursorWaitarrow, - SystemCursorSizenwse, - SystemCursorSizenesw, - SystemCursorSizewe, - SystemCursorSizens, - SystemCursorSizeall, - SystemCursorNo, - SystemCursorHand, - SystemCursorWindowTopleft, - SystemCursorWindowTop, - SystemCursorWindowTopright, - SystemCursorWindowRight, - SystemCursorWindowBottomright, - SystemCursorWindowBottom, - SystemCursorWindowBottomleft, - SystemCursorWindowLeft, - NumSystemCursors, + Default, + Text, + Wait, + Crosshair, + Progress, + NwseResize, + NeswResize, + EwResize, + NsResize, + Move, + NotAllowed, + Pointer, + NwResize, + NResize, + NeResize, + EResize, + SeResize, + SResize, + SwResize, + WResize, + Count, } diff --git a/sources/SDL/SDL/SDL3/TLSDestructorCallback.gen.cs b/sources/SDL/SDL/SDL3/TLSDestructorCallback.gen.cs new file mode 100644 index 0000000000..e079ca7dae --- /dev/null +++ b/sources/SDL/SDL/SDL3/TLSDestructorCallback.gen.cs @@ -0,0 +1,28 @@ +// 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; + +public readonly unsafe struct TLSDestructorCallback : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => (delegate* unmanaged)Pointer; + + public TLSDestructorCallback(delegate* unmanaged ptr) => Pointer = ptr; + + public TLSDestructorCallback(TLSDestructorCallbackDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator TLSDestructorCallback(delegate* unmanaged pfn) => + new(pfn); + + public static implicit operator delegate* unmanaged(TLSDestructorCallback pfn) => + (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/PenTipEventAxes.gen.cs b/sources/SDL/SDL/SDL3/TLSDestructorCallbackDelegate.gen.cs similarity index 83% rename from sources/SDL/SDL/SDL3/PenTipEventAxes.gen.cs rename to sources/SDL/SDL/SDL3/TLSDestructorCallbackDelegate.gen.cs index aeb241051c..0604896b60 100644 --- a/sources/SDL/SDL/SDL3/PenTipEventAxes.gen.cs +++ b/sources/SDL/SDL/SDL3/TLSDestructorCallbackDelegate.gen.cs @@ -8,8 +8,4 @@ namespace Silk.NET.SDL; -[InlineArray(6)] -public partial struct PenTipEventAxes -{ - public float E0; -} +public unsafe delegate void TLSDestructorCallbackDelegate(void* arg0); diff --git a/sources/SDL/SDL/SDL3/TextEditingCandidatesEvent.gen.cs b/sources/SDL/SDL/SDL3/TextEditingCandidatesEvent.gen.cs new file mode 100644 index 0000000000..5bba7294dc --- /dev/null +++ b/sources/SDL/SDL/SDL3/TextEditingCandidatesEvent.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.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +public unsafe partial struct TextEditingCandidatesEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; + + [NativeTypeName("const char *const *")] + public sbyte** Candidates; + + [NativeTypeName("Sint32")] + public int NumCandidates; + + [NativeTypeName("Sint32")] + public int SelectedCandidate; + + [NativeTypeName("bool")] + public byte Horizontal; + + [NativeTypeName("Uint8")] + public byte Padding1; + + [NativeTypeName("Uint8")] + public byte Padding2; + + [NativeTypeName("Uint8")] + public byte Padding3; +} diff --git a/sources/SDL/SDL/SDL3/TextEditingEvent.gen.cs b/sources/SDL/SDL/SDL3/TextEditingEvent.gen.cs index 667e86c614..0af8c19fcc 100644 --- a/sources/SDL/SDL/SDL3/TextEditingEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/TextEditingEvent.gen.cs @@ -20,7 +20,7 @@ public unsafe partial struct TextEditingEvent [NativeTypeName("SDL_WindowID")] public uint WindowID; - [NativeTypeName("char *")] + [NativeTypeName("const char *")] public sbyte* Text; [NativeTypeName("Sint32")] diff --git a/sources/SDL/SDL/SDL3/TextInputEvent.gen.cs b/sources/SDL/SDL/SDL3/TextInputEvent.gen.cs index 3fdcdee197..189d6a9a68 100644 --- a/sources/SDL/SDL/SDL3/TextInputEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/TextInputEvent.gen.cs @@ -2,8 +2,6 @@ // 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; - namespace Silk.NET.SDL; public unsafe partial struct TextInputEvent @@ -19,6 +17,6 @@ public unsafe partial struct TextInputEvent [NativeTypeName("SDL_WindowID")] public uint WindowID; - [NativeTypeName("char *")] + [NativeTypeName("const char *")] public sbyte* Text; } diff --git a/sources/SDL/SDL/SDL3/GLcontextFlag.gen.cs b/sources/SDL/SDL/SDL3/TextInputType.gen.cs similarity index 66% rename from sources/SDL/SDL/SDL3/GLcontextFlag.gen.cs rename to sources/SDL/SDL/SDL3/TextInputType.gen.cs index 5cfa039146..ebc372d284 100644 --- a/sources/SDL/SDL/SDL3/GLcontextFlag.gen.cs +++ b/sources/SDL/SDL/SDL3/TextInputType.gen.cs @@ -2,16 +2,22 @@ // 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; [NativeTypeName("unsigned int")] -public enum GLcontextFlag : uint +public enum TextInputType : uint { - DebugFlag = 0x0001, - ForwardCompatibleFlag = 0x0002, - RobustAccessFlag = 0x0004, - ResetIsolationFlag = 0x0008, + Text, + TextName, + TextEmail, + TextUsername, + TextPasswordHidden, + TextPasswordVisible, + Number, + NumberPasswordHidden, + NumberPasswordVisible, } diff --git a/sources/SDL/SDL/SDL3/Texture.gen.cs b/sources/SDL/SDL/SDL3/Texture.gen.cs new file mode 100644 index 0000000000..6f71831923 --- /dev/null +++ b/sources/SDL/SDL/SDL3/Texture.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.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +public partial struct Texture +{ + public PixelFormat Format; + public int W; + public int H; + public int Refcount; +} diff --git a/sources/SDL/SDL/SDL3/TimerCallback.gen.cs b/sources/SDL/SDL/SDL3/TimerCallback.gen.cs index 2a41a822c1..6cdd7bc296 100644 --- a/sources/SDL/SDL/SDL3/TimerCallback.gen.cs +++ b/sources/SDL/SDL/SDL3/TimerCallback.gen.cs @@ -11,18 +11,20 @@ namespace Silk.NET.SDL; public readonly unsafe struct TimerCallback : IDisposable { private readonly void* Pointer; - public delegate* unmanaged Handle => - (delegate* unmanaged)Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; - public TimerCallback(delegate* unmanaged ptr) => Pointer = ptr; + public TimerCallback(delegate* unmanaged ptr) => Pointer = ptr; public TimerCallback(TimerCallbackDelegate proc) => Pointer = SilkMarshal.DelegateToPtr(proc); public void Dispose() => SilkMarshal.Free(Pointer); - public static implicit operator TimerCallback(delegate* unmanaged pfn) => - new(pfn); + public static implicit operator TimerCallback( + delegate* unmanaged pfn + ) => new(pfn); - public static implicit operator delegate* unmanaged(TimerCallback pfn) => - (delegate* unmanaged)pfn.Pointer; + public static implicit operator delegate* unmanaged( + TimerCallback pfn + ) => (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/TimerCallbackDelegate.gen.cs b/sources/SDL/SDL/SDL3/TimerCallbackDelegate.gen.cs index 31600a3c91..b68bffd6d5 100644 --- a/sources/SDL/SDL/SDL3/TimerCallbackDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/TimerCallbackDelegate.gen.cs @@ -8,4 +8,4 @@ namespace Silk.NET.SDL; -public unsafe delegate uint TimerCallbackDelegate(uint arg0, void* arg1); +public unsafe delegate uint TimerCallbackDelegate(void* arg0, uint arg1, uint arg2); diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDesc.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDesc.gen.cs index 5a0d3763da..70041f1a91 100644 --- a/sources/SDL/SDL/SDL3/VirtualJoystickDesc.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDesc.gen.cs @@ -9,9 +9,21 @@ namespace Silk.NET.SDL; public unsafe partial struct VirtualJoystickDesc { + [NativeTypeName("Uint32")] + public uint Version; + [NativeTypeName("Uint16")] public ushort Type; + [NativeTypeName("Uint16")] + public ushort Padding; + + [NativeTypeName("Uint16")] + public ushort VendorId; + + [NativeTypeName("Uint16")] + public ushort ProductId; + [NativeTypeName("Uint16")] public ushort Naxes; @@ -19,16 +31,19 @@ public unsafe partial struct VirtualJoystickDesc public ushort Nbuttons; [NativeTypeName("Uint16")] - public ushort Nhats; + public ushort Nballs; [NativeTypeName("Uint16")] - public ushort VendorId; + public ushort Nhats; [NativeTypeName("Uint16")] - public ushort ProductId; + public ushort Ntouchpads; [NativeTypeName("Uint16")] - public ushort Padding; + public ushort Nsensors; + + [NativeTypeName("Uint16[2]")] + public VirtualJoystickDescPadding2 Padding2; [NativeTypeName("Uint32")] public uint ButtonMask; @@ -38,23 +53,35 @@ public unsafe partial struct VirtualJoystickDesc [NativeTypeName("const char *")] public sbyte* Name; + + [NativeTypeName("const SDL_VirtualJoystickTouchpadDesc *")] + public VirtualJoystickTouchpadDesc* Touchpads; + + [NativeTypeName("const SDL_VirtualJoystickSensorDesc *")] + public VirtualJoystickSensorDesc* Sensors; public void* Userdata; [NativeTypeName("void (*)(void *)")] - public ClipboardCleanupCallback Update; + public VirtualJoystickDescUpdate Update; [NativeTypeName("void (*)(void *, int)")] public VirtualJoystickDescSetPlayerIndex SetPlayerIndex; - [NativeTypeName("int (*)(void *, Uint16, Uint16)")] - public VirtualJoystickDescFunction1 Rumble; + [NativeTypeName("bool (*)(void *, Uint16, Uint16)")] + public VirtualJoystickDescRumble Rumble; - [NativeTypeName("int (*)(void *, Uint16, Uint16)")] - public VirtualJoystickDescFunction1 RumbleTriggers; + [NativeTypeName("bool (*)(void *, Uint16, Uint16)")] + public VirtualJoystickDescRumbleTriggers RumbleTriggers; - [NativeTypeName("int (*)(void *, Uint8, Uint8, Uint8)")] + [NativeTypeName("bool (*)(void *, Uint8, Uint8, Uint8)")] public VirtualJoystickDescSetLED SetLED; - [NativeTypeName("int (*)(void *, const void *, int)")] + [NativeTypeName("bool (*)(void *, const void *, int)")] public VirtualJoystickDescSendEffect SendEffect; + + [NativeTypeName("bool (*)(void *, bool)")] + public VirtualJoystickDescSetSensorsEnabled SetSensorsEnabled; + + [NativeTypeName("void (*)(void *)")] + public VirtualJoystickDescCleanup Cleanup; } diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescCleanup.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescCleanup.gen.cs new file mode 100644 index 0000000000..5a3d75ba3e --- /dev/null +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescCleanup.gen.cs @@ -0,0 +1,29 @@ +// 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; + +[Transformed] +public readonly unsafe struct VirtualJoystickDescCleanup : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => (delegate* unmanaged)Pointer; + + public VirtualJoystickDescCleanup(delegate* unmanaged ptr) => Pointer = ptr; + + public VirtualJoystickDescCleanup(VirtualJoystickDescCleanupDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator VirtualJoystickDescCleanup( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + VirtualJoystickDescCleanup pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescCleanupDelegate.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescCleanupDelegate.gen.cs new file mode 100644 index 0000000000..2e8842f423 --- /dev/null +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescCleanupDelegate.gen.cs @@ -0,0 +1,10 @@ +// 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; + +[Transformed] +public unsafe delegate void VirtualJoystickDescCleanupDelegate(void* arg0); diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescFunction1.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescFunction1.gen.cs deleted file mode 100644 index 906baed2bd..0000000000 --- a/sources/SDL/SDL/SDL3/VirtualJoystickDescFunction1.gen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// 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; - -[Transformed] -public readonly unsafe struct VirtualJoystickDescFunction1 : IDisposable -{ - private readonly void* Pointer; - public delegate* unmanaged Handle => - (delegate* unmanaged)Pointer; - - public VirtualJoystickDescFunction1(delegate* unmanaged ptr) => - Pointer = ptr; - - public VirtualJoystickDescFunction1(VirtualJoystickDescFunction1Delegate proc) => - Pointer = SilkMarshal.DelegateToPtr(proc); - - public void Dispose() => SilkMarshal.Free(Pointer); - - public static implicit operator VirtualJoystickDescFunction1( - delegate* unmanaged pfn - ) => new(pfn); - - public static implicit operator delegate* unmanaged( - VirtualJoystickDescFunction1 pfn - ) => (delegate* unmanaged)pfn.Pointer; -} diff --git a/sources/SDL/SDL/SDL3/PenButtonEventAxes.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescPadding2.gen.cs similarity index 82% rename from sources/SDL/SDL/SDL3/PenButtonEventAxes.gen.cs rename to sources/SDL/SDL/SDL3/VirtualJoystickDescPadding2.gen.cs index f155c2e3b5..dd3ef52250 100644 --- a/sources/SDL/SDL/SDL3/PenButtonEventAxes.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescPadding2.gen.cs @@ -8,8 +8,8 @@ namespace Silk.NET.SDL; -[InlineArray(6)] -public partial struct PenButtonEventAxes +[InlineArray(2)] +public partial struct VirtualJoystickDescPadding2 { - public float E0; + public ushort E0; } diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescRumble.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescRumble.gen.cs new file mode 100644 index 0000000000..3ac0aee8d5 --- /dev/null +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescRumble.gen.cs @@ -0,0 +1,31 @@ +// 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; + +[Transformed] +public readonly unsafe struct VirtualJoystickDescRumble : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; + + public VirtualJoystickDescRumble(delegate* unmanaged ptr) => + Pointer = ptr; + + public VirtualJoystickDescRumble(VirtualJoystickDescRumbleDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator VirtualJoystickDescRumble( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + VirtualJoystickDescRumble pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescRumbleDelegate.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescRumbleDelegate.gen.cs new file mode 100644 index 0000000000..9af735086e --- /dev/null +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescRumbleDelegate.gen.cs @@ -0,0 +1,10 @@ +// 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; + +[Transformed] +public unsafe delegate byte VirtualJoystickDescRumbleDelegate(void* arg0, ushort arg1, ushort arg2); diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescRumbleTriggers.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescRumbleTriggers.gen.cs new file mode 100644 index 0000000000..69ce49dee8 --- /dev/null +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescRumbleTriggers.gen.cs @@ -0,0 +1,32 @@ +// 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; + +[Transformed] +public readonly unsafe struct VirtualJoystickDescRumbleTriggers : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; + + public VirtualJoystickDescRumbleTriggers( + delegate* unmanaged ptr + ) => Pointer = ptr; + + public VirtualJoystickDescRumbleTriggers(VirtualJoystickDescRumbleTriggersDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator VirtualJoystickDescRumbleTriggers( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + VirtualJoystickDescRumbleTriggers pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescFunction1Delegate.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescRumbleTriggersDelegate.gen.cs similarity index 83% rename from sources/SDL/SDL/SDL3/VirtualJoystickDescFunction1Delegate.gen.cs rename to sources/SDL/SDL/SDL3/VirtualJoystickDescRumbleTriggersDelegate.gen.cs index 38215ce68a..1ef9de748d 100644 --- a/sources/SDL/SDL/SDL3/VirtualJoystickDescFunction1Delegate.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescRumbleTriggersDelegate.gen.cs @@ -6,10 +6,8 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -namespace Silk.NET.SDL; - [Transformed] -public unsafe delegate int VirtualJoystickDescFunction1Delegate( +public unsafe delegate byte VirtualJoystickDescRumbleTriggersDelegate( void* arg0, ushort arg1, ushort arg2 diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescSendEffect.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescSendEffect.gen.cs index c0e67d1157..6247f7066f 100644 --- a/sources/SDL/SDL/SDL3/VirtualJoystickDescSendEffect.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescSendEffect.gen.cs @@ -6,15 +6,14 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -namespace Silk.NET.SDL; - +[Transformed] public readonly unsafe struct VirtualJoystickDescSendEffect : IDisposable { private readonly void* Pointer; - public delegate* unmanaged Handle => - (delegate* unmanaged)Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; - public VirtualJoystickDescSendEffect(delegate* unmanaged ptr) => + public VirtualJoystickDescSendEffect(delegate* unmanaged ptr) => Pointer = ptr; public VirtualJoystickDescSendEffect(VirtualJoystickDescSendEffectDelegate proc) => @@ -23,10 +22,10 @@ public VirtualJoystickDescSendEffect(VirtualJoystickDescSendEffectDelegate proc) public void Dispose() => SilkMarshal.Free(Pointer); public static implicit operator VirtualJoystickDescSendEffect( - delegate* unmanaged pfn + delegate* unmanaged pfn ) => new(pfn); - public static implicit operator delegate* unmanaged( + public static implicit operator delegate* unmanaged( VirtualJoystickDescSendEffect pfn - ) => (delegate* unmanaged)pfn.Pointer; + ) => (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescSendEffectDelegate.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescSendEffectDelegate.gen.cs index 96c76a27d6..46fdcfb28f 100644 --- a/sources/SDL/SDL/SDL3/VirtualJoystickDescSendEffectDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescSendEffectDelegate.gen.cs @@ -6,6 +6,5 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -namespace Silk.NET.SDL; - -public unsafe delegate int VirtualJoystickDescSendEffectDelegate(void* arg0, void* arg1, int arg2); +[Transformed] +public unsafe delegate byte VirtualJoystickDescSendEffectDelegate(void* arg0, void* arg1, int arg2); diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescSetLED.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescSetLED.gen.cs index 6246140e5c..3204088100 100644 --- a/sources/SDL/SDL/SDL3/VirtualJoystickDescSetLED.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescSetLED.gen.cs @@ -6,15 +6,14 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -namespace Silk.NET.SDL; - +[Transformed] public readonly unsafe struct VirtualJoystickDescSetLED : IDisposable { private readonly void* Pointer; - public delegate* unmanaged Handle => - (delegate* unmanaged)Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; - public VirtualJoystickDescSetLED(delegate* unmanaged ptr) => + public VirtualJoystickDescSetLED(delegate* unmanaged ptr) => Pointer = ptr; public VirtualJoystickDescSetLED(VirtualJoystickDescSetLEDDelegate proc) => @@ -23,10 +22,10 @@ public VirtualJoystickDescSetLED(VirtualJoystickDescSetLEDDelegate proc) => public void Dispose() => SilkMarshal.Free(Pointer); public static implicit operator VirtualJoystickDescSetLED( - delegate* unmanaged pfn + delegate* unmanaged pfn ) => new(pfn); - public static implicit operator delegate* unmanaged( + public static implicit operator delegate* unmanaged( VirtualJoystickDescSetLED pfn - ) => (delegate* unmanaged)pfn.Pointer; + ) => (delegate* unmanaged)pfn.Pointer; } diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescSetLEDDelegate.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescSetLEDDelegate.gen.cs index 81f9005850..d9f9a38c25 100644 --- a/sources/SDL/SDL/SDL3/VirtualJoystickDescSetLEDDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescSetLEDDelegate.gen.cs @@ -6,9 +6,8 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -namespace Silk.NET.SDL; - -public unsafe delegate int VirtualJoystickDescSetLEDDelegate( +[Transformed] +public unsafe delegate byte VirtualJoystickDescSetLEDDelegate( void* arg0, byte arg1, byte arg2, diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescSetPlayerIndex.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescSetPlayerIndex.gen.cs index d3cc0822e2..93aa751835 100644 --- a/sources/SDL/SDL/SDL3/VirtualJoystickDescSetPlayerIndex.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescSetPlayerIndex.gen.cs @@ -6,8 +6,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -namespace Silk.NET.SDL; - +[Transformed] public readonly unsafe struct VirtualJoystickDescSetPlayerIndex : IDisposable { private readonly void* Pointer; diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescSetPlayerIndexDelegate.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescSetPlayerIndexDelegate.gen.cs index e3b23072f4..d99388af18 100644 --- a/sources/SDL/SDL/SDL3/VirtualJoystickDescSetPlayerIndexDelegate.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescSetPlayerIndexDelegate.gen.cs @@ -6,6 +6,5 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -namespace Silk.NET.SDL; - +[Transformed] public unsafe delegate void VirtualJoystickDescSetPlayerIndexDelegate(void* arg0, int arg1); diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescSetSensorsEnabled.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescSetSensorsEnabled.gen.cs new file mode 100644 index 0000000000..1ec2b6b49f --- /dev/null +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescSetSensorsEnabled.gen.cs @@ -0,0 +1,32 @@ +// 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; + +[Transformed] +public readonly unsafe struct VirtualJoystickDescSetSensorsEnabled : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; + + public VirtualJoystickDescSetSensorsEnabled(delegate* unmanaged ptr) => + Pointer = ptr; + + public VirtualJoystickDescSetSensorsEnabled( + VirtualJoystickDescSetSensorsEnabledDelegate proc + ) => Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator VirtualJoystickDescSetSensorsEnabled( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + VirtualJoystickDescSetSensorsEnabled pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescSetSensorsEnabledDelegate.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescSetSensorsEnabledDelegate.gen.cs new file mode 100644 index 0000000000..7bc6e711be --- /dev/null +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescSetSensorsEnabledDelegate.gen.cs @@ -0,0 +1,10 @@ +// 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; + +[Transformed] +public unsafe delegate byte VirtualJoystickDescSetSensorsEnabledDelegate(void* arg0, byte arg1); diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescUpdate.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescUpdate.gen.cs new file mode 100644 index 0000000000..b703be9338 --- /dev/null +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescUpdate.gen.cs @@ -0,0 +1,29 @@ +// 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; + +[Transformed] +public readonly unsafe struct VirtualJoystickDescUpdate : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => (delegate* unmanaged)Pointer; + + public VirtualJoystickDescUpdate(delegate* unmanaged ptr) => Pointer = ptr; + + public VirtualJoystickDescUpdate(VirtualJoystickDescUpdateDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator VirtualJoystickDescUpdate( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + VirtualJoystickDescUpdate pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDescUpdateDelegate.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDescUpdateDelegate.gen.cs new file mode 100644 index 0000000000..7125b29546 --- /dev/null +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDescUpdateDelegate.gen.cs @@ -0,0 +1,10 @@ +// 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; + +[Transformed] +public unsafe delegate void VirtualJoystickDescUpdateDelegate(void* arg0); diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickSensorDesc.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickSensorDesc.gen.cs new file mode 100644 index 0000000000..a371b786c4 --- /dev/null +++ b/sources/SDL/SDL/SDL3/VirtualJoystickSensorDesc.gen.cs @@ -0,0 +1,14 @@ +// 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; + +public partial struct VirtualJoystickSensorDesc +{ + public SensorType Type; + public float Rate; +} diff --git a/sources/SDL/SDL/SDL3/Keysym.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickTouchpadDesc.gen.cs similarity index 67% rename from sources/SDL/SDL/SDL3/Keysym.gen.cs rename to sources/SDL/SDL/SDL3/VirtualJoystickTouchpadDesc.gen.cs index ac82cce969..1b9c60e074 100644 --- a/sources/SDL/SDL/SDL3/Keysym.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickTouchpadDesc.gen.cs @@ -2,22 +2,16 @@ // 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; -public partial struct Keysym +public partial struct VirtualJoystickTouchpadDesc { - public Scancode Scancode; - - [NativeTypeName("SDL_Keycode")] - public int Sym; - [NativeTypeName("Uint16")] - public ushort Mod; + public ushort Nfingers; - [NativeTypeName("Uint32")] - public uint Unused; + [NativeTypeName("Uint16[3]")] + public VirtualJoystickTouchpadDescPadding Padding; } diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickTouchpadDescPadding.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickTouchpadDescPadding.gen.cs new file mode 100644 index 0000000000..4cc8a5af64 --- /dev/null +++ b/sources/SDL/SDL/SDL3/VirtualJoystickTouchpadDescPadding.gen.cs @@ -0,0 +1,15 @@ +// 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; + +[InlineArray(3)] +public partial struct VirtualJoystickTouchpadDescPadding +{ + public ushort E0; +} diff --git a/sources/SDL/SDL/Sdl.gen.cs b/sources/SDL/SDL/Sdl.gen.cs index 0cec60e1a2..d4104e359f 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*[816]; + private readonly unsafe void*[] _slots = new void*[868]; public static ISdl Instance { get; } = new StaticWrapper(); public static ISdl Create() => Instance; diff --git a/sources/SDL/SDL/SdlContext.cs b/sources/SDL/SDL/SdlContext.cs index 54a927cc26..47d4e095d8 100644 --- a/sources/SDL/SDL/SdlContext.cs +++ b/sources/SDL/SDL/SdlContext.cs @@ -17,7 +17,7 @@ public class SdlContext : IGLContext /// If an error occurs when creating the context. public SdlContext( WindowHandle window, - Span> attributes, + Span> attributes, ISdl? sdl = null ) { @@ -46,7 +46,7 @@ public SdlContext( /// The context attributes. /// The SDL interface to use. /// If an error occurs when creating the context. - public SdlContext(WindowHandle window, ISdl sdl, params KeyValuePair[] attributes) + public SdlContext(WindowHandle window, ISdl sdl, params KeyValuePair[] attributes) : this(window, attributes, sdl) { } /// @@ -55,7 +55,7 @@ public SdlContext(WindowHandle window, ISdl sdl, params KeyValuePairThe window to associate the context with. /// The context attributes. /// If an error occurs when creating the context. - public SdlContext(WindowHandle window, params KeyValuePair[] attributes) + public SdlContext(WindowHandle window, params KeyValuePair[] attributes) : this(window, attributes, Sdl.Instance) { } /// @@ -64,7 +64,7 @@ public SdlContext(WindowHandle window, params KeyValuePair[] attrib /// The window handle. /// The context handle. /// The SDL interface to use. Defaults to . - public SdlContext(WindowHandle window, Ptr context, ISdl? sdl = null) => + public SdlContext(WindowHandle window, GLContextStateHandle context, ISdl? sdl = null) => (Window, Context, Api) = (window, context, sdl ?? Sdl.Instance); /// @@ -75,7 +75,7 @@ public SdlContext(WindowHandle window, Ptr context, ISdl? sdl = null) => /// /// The context handle. /// - public Ptr Context { get; } + public GLContextStateHandle Context { get; } /// /// The API interface in use. @@ -83,7 +83,7 @@ public SdlContext(WindowHandle window, Ptr context, ISdl? sdl = null) => public ISdl Api { get; } /// - public void Dispose() => Expect(Api.GLDeleteContext((Ref)Context), "dispose OpenGL context"); + public void Dispose() => Expect(Api.GLDestroyContext(Context), "dispose OpenGL context"); /// public unsafe void* LoadFunction(string functionName, string libraryNameHint) @@ -106,11 +106,10 @@ public void SwapInterval(int interval) => public void SwapBuffers() => Expect(Api.GLSwapWindow(Window), "swap buffers"); /// - public void MakeCurrent() => - Expect(Api.GLMakeCurrent(Window, (Ref)Context), "make context current"); + public void MakeCurrent() => Expect(Api.GLMakeCurrent(Window, Context), "make context current"); /// - public void Clear() => Expect(Api.GLMakeCurrent(Window, (Ref)nullptr), "clear current context"); + public void Clear() => Expect(Api.GLMakeCurrent(Window, nullptr), "clear current context"); private void Expect(int ec, string action) { @@ -122,12 +121,10 @@ private void Expect(int ec, string action) var err = (string)Api.GetError(); Api.ClearError(); - Throw(action, err, ec); + Throw(action, err); return; - static void Throw(string act, string err, int ec) => - throw new SdlException( - $"Failed to {act} with error code {(Errorcode)ec} ({ec}): {err}" - ); + static void Throw(string act, string err) => + throw new SdlException($"Failed to {act}: {err}"); } } diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContext.cs b/sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContext.cs index 3727985750..8ae16a9b57 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContext.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContext.cs @@ -110,7 +110,7 @@ public async Task InitializeAsync() // Wipe the slate clean. The generator should only be able to see generated code. // TODO maybe one day we'll lift this restriction? I couldn't think of a reason not to have it, but there's also not many to have it. - _srcProject = _srcProject.RemoveDocuments([.. _srcProject.DocumentIds]); + SourceProject = _srcProject.RemoveDocuments([.. _srcProject.DocumentIds]); solution = _srcProject.Solution; if (_cfg.TestProject is not null) { @@ -120,7 +120,7 @@ public async Task InitializeAsync() .FirstOrDefault(x => Path.GetFullPath(x.FilePath!, ConfigurationDirectory) == testProjectFile ); - _testProject = _testProject?.RemoveDocuments([.. _testProject.DocumentIds]); + TestProject = _testProject?.RemoveDocuments([.. _testProject.DocumentIds]); solution = _testProject?.Solution ?? solution; } } diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/ModUtils.cs b/sources/SilkTouch/SilkTouch/Mods/Common/ModUtils.cs index 7348234840..47aa13d3a0 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Common/ModUtils.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Common/ModUtils.cs @@ -10,6 +10,7 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; +using Silk.NET.SilkTouch.Naming; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace Silk.NET.SilkTouch.Mods; @@ -302,7 +303,7 @@ public static IEnumerable Members(this ISymbol sym) => IAssemblySymbol assemblySymbol => assemblySymbol.Modules, IModuleSymbol moduleSymbol => [moduleSymbol.GlobalNamespace], INamespaceOrTypeSymbol namespaceOrTypeSymbol => namespaceOrTypeSymbol.GetMembers(), - _ => [] + _ => [], }; private static IEnumerable Descendants(this ISymbol sym) => @@ -629,7 +630,7 @@ out _ ) ) ) - .WithNameEquals(NameEquals("EntryPoint")) + .WithNameEquals(NameEquals("EntryPoint")), } ) ) @@ -668,6 +669,44 @@ out _ .OfType() .FirstOrDefault(); + /// + /// Gets the native element type name indicated by the given attributes. + /// + /// The attributes. + /// The expected number of indirection levels, for validation. + /// The value if a valid type name was found, null otherwise. + public static string? GetNativeElementTypeName( + this IEnumerable attrs, + out int indirectionLevels + ) + { + var nativeTypeName = attrs.GetNativeTypeName().AsSpan(); + if (nativeTypeName.Length == 0) + { + indirectionLevels = -1; + return null; + } + + // Trim off the const. + if (nativeTypeName.StartsWith("const ")) + { + nativeTypeName = nativeTypeName["const ".Length..]; + } + + // Isolate the type name to just the type name. + indirectionLevels = nativeTypeName.Count('*'); + if (nativeTypeName.IndexOf('*') is not -1 and var idx) + { + nativeTypeName = nativeTypeName[..idx]; + } + + // Hopefully given the above, after we've removed any whitespace there may be we *should* just have the enum. + nativeTypeName = nativeTypeName.Trim(); + return nativeTypeName.ContainsAnyExcept(NameUtils.IdentifierChars) + ? null + : nativeTypeName.ToString(); + } + /// /// Gets a native type name for a parameter. /// @@ -708,8 +747,9 @@ or SyntaxKind.ByteKeyword public static IEnumerable MemberIdentifiers(this MemberDeclarationSyntax syn) => syn switch { - BaseFieldDeclarationSyntax fld - => fld.Declaration.Variables.Select(x => x.Identifier.ToString()), + BaseFieldDeclarationSyntax fld => fld.Declaration.Variables.Select(x => + x.Identifier.ToString() + ), MethodDeclarationSyntax meth => [meth.Identifier.ToString()], BaseNamespaceDeclarationSyntax nsd => [nsd.Name.ToString()], EventDeclarationSyntax ev => [ev.Identifier.ToString()], @@ -717,7 +757,7 @@ BaseFieldDeclarationSyntax fld BaseTypeDeclarationSyntax typ => [typ.Identifier.ToString()], DelegateDeclarationSyntax del => [del.Identifier.ToString()], EnumMemberDeclarationSyntax em => [em.Identifier.ToString()], - _ => [] + _ => [], }; /// diff --git a/sources/SilkTouch/SilkTouch/Mods/ExtractNestedTyping.cs b/sources/SilkTouch/SilkTouch/Mods/ExtractNestedTyping.cs index db3058e7ed..fc5a8f5fb2 100644 --- a/sources/SilkTouch/SilkTouch/Mods/ExtractNestedTyping.cs +++ b/sources/SilkTouch/SilkTouch/Mods/ExtractNestedTyping.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; +using System.Buffers; using System.Collections.Generic; using System.Diagnostics; using System.Linq; @@ -30,17 +31,28 @@ namespace Silk.NET.SilkTouch.Mods; /// structures. /// /// +/// +/// +/// Enums identified by their s where there are constants declared with a matching +/// prefix. This accounts for the below pattern seen frequently pre-C99: +/// +/// typedef unsigned int MyEnum; +/// #define MY_ENUM_HELLO 0 +/// extern MyEnum GetMyEnum(); +/// +/// +/// /// Fixed buffers and anonymous structures contained within structures. /// /// -public partial class ExtractNestedTyping : Mod +public partial class ExtractNestedTyping(ILogger logger) : Mod { /// public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { await base.ExecuteAsync(ctx, ct); - var fnPtrWalker = new FunctionPointerWalker(); - var rewriter = new Rewriter(); + var walker = new Walker(); + var rewriter = new Rewriter(logger); // First pass to discover the types to extract. foreach (var doc in ctx.SourceProject?.Documents ?? []) @@ -51,66 +63,16 @@ public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = continue; } - fnPtrWalker.File = fname; - fnPtrWalker.Visit(node); + walker.File = fname; + walker.Visit(node); } // Second pass to modify existing files as per our discovery. - rewriter.FunctionPointerTypes = fnPtrWalker.GetFunctionPointerTypes(); + // rewriter.FunctionPointerTypes = walker.GetFunctionPointerTypes(); + var (enums, constants) = walker.GetExtractedEnums(); + rewriter.ConstantsToRemove = constants; + rewriter.ExtractedEnums = enums.Keys; var proj = ctx.SourceProject; - foreach ( - var (structDecl, delegateDecl, fileDirs, namespaces, isUnique) in rewriter - .FunctionPointerTypes - .Values - ) - { - if (!isUnique) - { - continue; - } - - var ns = NameUtils.FindCommonPrefix(namespaces, true, false, true); - var dir = NameUtils.FindCommonPrefix(fileDirs, true, false, true).TrimEnd('/'); - proj = proj - ?.AddDocument( - $"{structDecl.Identifier}.gen.cs", - CompilationUnit() - .WithMembers( - ns is { Length: > 0 } - ? SingletonList( - FileScopedNamespaceDeclaration( - ModUtils.NamespaceIntoIdentifierName(ns.TrimEnd('.')) - ) - .WithMembers( - SingletonList(structDecl) - ) - ) - : SingletonList(structDecl) - ) - .NormalizeWhitespace(), - filePath: proj.FullPath($"{dir}/{structDecl.Identifier}.gen.cs") - ) - .Project.AddDocument( - $"{delegateDecl.Identifier}.gen.cs", - CompilationUnit() - .WithMembers( - ns is { Length: > 0 } - ? SingletonList( - FileScopedNamespaceDeclaration( - ModUtils.NamespaceIntoIdentifierName(ns.TrimEnd('.')) - ) - .WithMembers( - SingletonList(delegateDecl) - ) - ) - : SingletonList(delegateDecl) - ) - .NormalizeWhitespace(), - filePath: proj.FullPath($"{dir}/{delegateDecl.Identifier}.gen.cs") - ) - .Project; - } - foreach (var docId in ctx.SourceProject?.DocumentIds ?? []) { var doc = @@ -120,6 +82,8 @@ public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = { continue; } + + rewriter.File = fname; proj = doc.WithSyntaxRoot( rewriter.Visit(node)?.NormalizeWhitespace() ?? throw new InvalidOperationException("Rewriter returned null") @@ -148,14 +112,125 @@ rewriter.Namespace is not null ).Project; } + rewriter.File = null; rewriter.Namespace = null; rewriter.ExtractedNestedStructs.Clear(); } + foreach ( + var (typeDecl, identifier, fileDirs, namespaces) in rewriter + .FunctionPointerTypes.Values //.Where(x => x.IsUnique) + .SelectMany(x => + (IEnumerable<( + MemberDeclarationSyntax, + string, + HashSet, + HashSet + )>) + [ + ( + x.Delegate, + x.Delegate.Identifier.ToString(), + x.ReferencingFileDirs, + x.ReferencingNamespaces + ), + ( + x.Pfn, + x.Pfn.Identifier.ToString(), + x.ReferencingFileDirs, + x.ReferencingNamespaces + ), + ] + ) + .Concat( + enums.Select(x => + ( + (MemberDeclarationSyntax)x.Value.Item1, + x.Value.Item1.Identifier.ToString(), + x.Value.Item2, + x.Value.Item3 + ) + ) + ) + ) + { + var ns = NameUtils.FindCommonPrefix(namespaces, true, false, true); + var dir = NameUtils.FindCommonPrefix(fileDirs, true, false, true).TrimEnd('/'); + proj = proj + ?.AddDocument( + $"{identifier}.gen.cs", + CompilationUnit() + .WithMembers( + ns is { Length: > 0 } + ? SingletonList( + FileScopedNamespaceDeclaration( + ModUtils.NamespaceIntoIdentifierName(ns.TrimEnd('.')) + ) + .WithMembers(SingletonList(typeDecl)) + ) + : SingletonList(typeDecl) + ) + .NormalizeWhitespace(), + filePath: proj.FullPath($"{dir}/{identifier}.gen.cs") + ) + .Project; + } + ctx.SourceProject = proj; } - partial class Rewriter : CSharpSyntaxRewriter + private static ReadOnlySpan GetNativeTypeNameForPredefinedType( + PredefinedTypeSyntax node, + Dictionary, HashSet)?>? numericTypeNames = null + ) + { + // Walk up to the parameter or method. We only allow primitive integer types right now. + var current = node.Parent; + var indirectionLevels = 0; + while (current is PointerTypeSyntax) + { + indirectionLevels++; + current = current.Parent; + } + + var attrs = current switch + { + MethodDeclarationSyntax meth => meth.AttributeLists, + ParameterSyntax param => param.AttributeLists, + _ => default, + }; + + if (attrs.Count == 0) + { + return default; + } + + var ret = attrs.GetNativeElementTypeName(out var readIndirectionLevels); + + // Ensure that the indirection levels indicated by the type name is the same as we've encountered when walking + // up the type. If this isn't, this indicates that the native type name is a typedef to a pointer and shouldn't + // be something that is mapped into an enum. + if (ret is null || readIndirectionLevels == indirectionLevels) + { + return ret; + } + + InvalidateIfSeen(numericTypeNames, ret); + return null; + } + + private static void InvalidateIfSeen( + Dictionary, HashSet)?>? numericTypeNames, + string nativeTypeName + ) + { + if (numericTypeNames?.ContainsKey(nativeTypeName) ?? false) + { + numericTypeNames[nativeTypeName] = null; + } + } + + partial class Rewriter(ILogger logger) : CSharpSyntaxRewriter { private Dictionary _typeRenames = []; @@ -167,12 +242,16 @@ public Dictionary< StructDeclarationSyntax Pfn, DelegateDeclarationSyntax Delegate, HashSet ReferencingFileDirs, - HashSet ReferencingNamespaces, - bool IsUnique + HashSet ReferencingNamespaces ) - >? FunctionPointerTypes { get; set; } + > FunctionPointerTypes { get; set; } = []; + + public IReadOnlyCollection? ConstantsToRemove { get; set; } + + public IReadOnlyCollection? ExtractedEnums { get; set; } public string? Namespace { get; set; } + public string? File { get; set; } public override SyntaxNode? VisitIdentifierName(IdentifierNameSyntax node) => base.VisitIdentifierName( @@ -189,6 +268,32 @@ is not null : node ); + public override SyntaxNode? VisitPredefinedType(PredefinedTypeSyntax node) + { + var nativeTypeName = GetNativeTypeNameForPredefinedType(node).ToString(); + if (ExtractedEnums?.Contains(nativeTypeName) ?? false) + { + return IdentifierName(nativeTypeName).WithTriviaFrom(node); + } + + return base.VisitPredefinedType(node); + } + + public override SyntaxNode? VisitFieldDeclaration(FieldDeclarationSyntax node) + { + var ret = base.VisitFieldDeclaration(node) as FieldDeclarationSyntax; + return ret?.Declaration.Variables.Count == 0 ? null : ret; + } + + public override SyntaxNode? VisitVariableDeclarator(VariableDeclaratorSyntax node) + { + if (ConstantsToRemove?.Contains(node.Identifier.ToString()) ?? false) + { + return null; + } + return base.VisitVariableDeclarator(node); + } + public override SyntaxNode? VisitStructDeclaration(StructDeclarationSyntax node) { // Extract nested structs. @@ -237,41 +342,404 @@ is not { } key return ret; } + private string? _typeNameFromOuterFunctionPointer; + private string? _fallbackFromOuterFunctionPointer; + public override SyntaxNode? VisitFunctionPointerType(FunctionPointerTypeSyntax node) { - node = base.VisitFunctionPointerType(node) as FunctionPointerTypeSyntax ?? node; - var discrim = ModUtils.DiscrimStr( - null, - null, - null, - node.ParameterList.Parameters, - null // <-- technically this is the last parameter, but we don't really care here. we're just trying to match signatures. + // Walk up the type. We expect only pointers above us, but we could encounter a function pointer type in + // which case we just ignore all this as we should already have a _currentNativeTypeName. Anything else and + // we don't have enough context for a fallback. + var current = node.Parent; + var indirectionLevels = 0; + while (current is PointerTypeSyntax) + { + indirectionLevels++; + current = current.Parent; + } + + // As above, get the native type name if we can and also get a fallback name based on context. + var (currentNativeTypeName, fallback) = current switch + { + MethodDeclarationSyntax meth => ( + meth.AttributeLists.GetNativeTypeName(SyntaxKind.ReturnKeyword), + $"{meth.Identifier}_r" + ), + ParameterSyntax { Parent.Parent: MethodDeclarationSyntax meth } param => ( + param.AttributeLists.GetNativeTypeName(), + $"{meth.Identifier}_{param.Identifier}" + ), + VariableDeclarationSyntax + { + Parent: FieldDeclarationSyntax { Parent: BaseTypeDeclarationSyntax type } fld + } vardec => ( + fld.AttributeLists.GetNativeTypeName(), + $"{type.Identifier}_{vardec.Variables[0].Identifier}" + ), + _ => (null, null), + }; + + if ((current as ParameterSyntax)?.Identifier.ToString() == "handler") + { + Debugger.Break(); + } + + // If the native type name is actually the function pointer signature (i.e. not through a typedef) then we + // should pass the native type name down when recursing. + fallback = _fallbackFromOuterFunctionPointer ?? fallback; + currentNativeTypeName = + (_typeNameFromOuterFunctionPointer ?? currentNativeTypeName)?.Trim() ?? fallback; + string[]? recursiveTypeNames = null; + if (currentNativeTypeName.AsSpan().ContainsAnyExcept(NameUtils.IdentifierChars)) + { + var match = FunctionPointerNativeTypeNameRegex().Match(currentNativeTypeName!); + if (match.Success) + { + currentNativeTypeName = fallback; + + // NOTE: We expect the groups to be as follows: + // 0 = everything + // 1 = return type + // 2 = indirection levels + 1 + // 3 = comma separated parameter types + recursiveTypeNames = new string[ + 1 + + (match.Groups[3].Value.Length > 0 ? 1 : 0) + + match.Groups[3].Value.AsSpan().Count(',') + ]; + if (match.Groups[2].Value.AsSpan().Count('*') != indirectionLevels + 1) + { + logger.LogWarning( + "Unable to deal with function pointer usage at {} - mismatch of indirection " + + "levels: {} for {}", + node.GetLocation().GetLineSpan(), + node, + currentNativeTypeName + ); + return node; + } + + recursiveTypeNames[^1] = match.Groups[1].Value; + var @params = match + .Groups[3] + .Value.Split( + ',', + StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries + ); + for (var i = 0; i < @params.Length; i++) + { + recursiveTypeNames[i] = @params[i]; + } + } + else + { + // Maybe it's a pointer type? + var idSpan = currentNativeTypeName.AsSpan(); + if (idSpan.StartsWith("const ")) + { + idSpan = idSpan["const ".Length..]; + } + + // If the indirection levels match (and the only other non-identifier characters are whitespace) + // then we can use the identifier as the native name. + idSpan = idSpan.Trim(); + var badStart = idSpan.IndexOfAnyExcept(NameUtils.IdentifierChars); + var bad = idSpan[badStart..]; + currentNativeTypeName = + badStart == -1 + || ( + bad.Count('*') == indirectionLevels + && bad.Count(' ') == bad.Length - indirectionLevels + ) + ? idSpan[..badStart].ToString() + : fallback; + } + } + + if (currentNativeTypeName is null) + { + logger.LogWarning( + "Unable to deal with function pointer usage at {} - terminated at {}: {}", + node.GetLocation().GetLineSpan(), + current?.GetType().Name ?? "null", + current + ); + return node; + } + + // Assert that our state is valid given the tests we've done above before recursing. + Debug.Assert( + _fallbackFromOuterFunctionPointer is not null + == node.Ancestors().OfType().Any() + ); + + // Ensure that we've recursively generated and fixed up any function pointers contained within this function + // pointer. + var ns = node.NamespaceFromSyntaxNode(); + node = node.WithParameterList( + node.ParameterList.WithParameters( + SeparatedList( + node.ParameterList.Parameters.Select( + (x, i) => + { + var typeNameBefore = _typeNameFromOuterFunctionPointer; + var fallbackBefore = _fallbackFromOuterFunctionPointer; + _typeNameFromOuterFunctionPointer = recursiveTypeNames?[i]; + _fallbackFromOuterFunctionPointer = + $"{currentNativeTypeName}_p{i}"; + var ret = base.Visit(x); + _typeNameFromOuterFunctionPointer = typeNameBefore; + _fallbackFromOuterFunctionPointer = fallbackBefore; + return ret; + } + ) + .OfType() + ) + ) ); - return FunctionPointerTypes?.TryGetValue(discrim, out var v) ?? false - ? IdentifierName(v.Pfn.Identifier.ToString()) - : node; + // Generate the types if we haven't already. + if (!FunctionPointerTypes.TryGetValue(currentNativeTypeName, out var pfnInfo)) + { + var (pfn, @delegate) = CreateFunctionPointerTypes( + currentNativeTypeName, + $"{currentNativeTypeName}Delegate", + currentNativeTypeName == fallback + ? SingletonList( + AttributeList( + SingletonSeparatedList(Attribute(IdentifierName("Transformed"))) + ) + ) + : default, + node + ); + FunctionPointerTypes[currentNativeTypeName] = pfnInfo = (pfn, @delegate, [], []); + } + + // Ensure this visitation is used to determine the namespace/location. + pfnInfo.ReferencingNamespaces.Add(ns); + if (File?[..File.LastIndexOf('/')] is { } dir) + { + pfnInfo.ReferencingFileDirs.Add(dir); + } + + return IdentifierName(currentNativeTypeName); } [GeneratedRegex("^_([a-zA-Z0-9_]*)_e__(Union|Struct|FixedBuffer)$")] private partial Regex GeneratedNestedTypeRegex(); + + [GeneratedRegex( + @"^((?:[A-Za-z0-9\s\*_]|\[[0-9]*\])+)\((\*)+\)\(((?:(?:[A-Za-z0-9\s\*_]|\[[0-9]*\])+,?)*)\)" + )] + private partial Regex FunctionPointerNativeTypeNameRegex(); } - class FunctionPointerWalker : CSharpSyntaxRewriter + class Walker : CSharpSyntaxRewriter { - private Dictionary< + private readonly Dictionary< string, ( - FunctionPointerTypeSyntax Pfn, - List Names, + SyntaxKind Type, HashSet ReferencingFileDirs, - HashSet ReferencingNamespaces, - List<(string ParentSymbol, string Symbol, int? SymbolIndex)>? UsageHints - ) - > _fnPtrs = new(); + HashSet ReferencingNamespaces + )? + > _numericTypeNames = new(); + private readonly Dictionary _constants = []; + public string? File { get; set; } - public ILogger? Logger { get; set; } + public override SyntaxNode? VisitPredefinedType(PredefinedTypeSyntax node) + { + var nativeTypeName = GetNativeTypeNameForPredefinedType(node).ToString(); + if (nativeTypeName.Length > 0) + { + // Detect type discrepancies. + var thisType = node.Keyword.Kind(); + if (!_numericTypeNames.TryGetValue(nativeTypeName, out var numericTypeName)) + { + _numericTypeNames[nativeTypeName] = numericTypeName = (thisType, [], []); + } + + if ( + thisType + is not ( + SyntaxKind.ByteKeyword + or SyntaxKind.SByteKeyword + or SyntaxKind.ShortKeyword + or SyntaxKind.UShortKeyword + or SyntaxKind.IntKeyword + or SyntaxKind.UIntKeyword + or SyntaxKind.LongKeyword + or SyntaxKind.ULongKeyword + ) + || thisType != numericTypeName?.Type + ) + { + _numericTypeNames[nativeTypeName] = numericTypeName = null; + } + + if (numericTypeName is { } theTypeDetails) + { + theTypeDetails.ReferencingNamespaces.Add(node.NamespaceFromSyntaxNode()); + if (File?[..File.LastIndexOf('/')] is { } dir) + { + theTypeDetails.ReferencingFileDirs.Add(dir); + } + } + } + return base.VisitPredefinedType(node); + } + + private readonly NameTrimmer _nameTrimmer = new(); + + // This code can probably be better. + public ( + Dictionary< + string, + (EnumDeclarationSyntax, HashSet, HashSet) + > ExtractedEnums, + HashSet ExtractedConstants + ) GetExtractedEnums() + { + var ineligibleConstants = new HashSet(); + var extractedConstants = new HashSet(); + var extractedEnums = new Dictionary< + string, + (EnumDeclarationSyntax, HashSet, HashSet) + >(_numericTypeNames.Count); + + // Try and find constants for each of the enums we've found. + // We do this in descending length order to ensure that we find the longest match for constant names to enum + // names. + foreach ( + var (enumName, enumType) in _numericTypeNames.OrderByDescending(x => x.Key.Length) + ) + { + var enumTrimmingName = _nameTrimmer.GetTrimmingName(null, enumName, true); + (EnumDeclarationSyntax, HashSet, HashSet)? extractedEnum = enumType + is { } theType + ? ( + EnumDeclaration(enumName) + .AddBaseListTypes(SimpleBaseType(PredefinedType(Token(theType.Type)))) + .AddModifiers(Token(SyntaxKind.PublicKeyword)), + theType.ReferencingFileDirs, + theType.ReferencingNamespaces + ) + : null; + + // Look through all of the constants and see whether they start with our enum name. + foreach (var (constant, value) in _constants) + { + // We want to account for PascalCase vs SCREAMING_SNAKE_CASE differences (for example) so we do + // four passes (for each combination of the original name vs trimming name, the latter of which + // taking casing into account). It is possible that this could be expanded, but this should be done + // carefully to ensure we don't light up prematurely. + var nextConst = false; + var trimmingName = _nameTrimmer.GetTrimmingName(null, constant, false); + foreach (var enumCandidate in (IEnumerable)[enumName, enumTrimmingName]) + { + foreach ( + var constCandidate in (IEnumerable)[constant, trimmingName] + ) + { + // Make sure the constant name starts with the enum name, and that there is clearly a word + // gap after the enum name in the constant name e.g. API_BlendOp doesn't pull in + // API_BLEND_OPAQUE but it does pull in API_BLEND_OP_ADD (or API_BLENDOP_ADD). + // I wouldn't feel safe relaxing this right now, despite there being obvious use cases. + // Perhaps as a future improvement we can try to walk back the enum's trimming name, check + // that there are no other enums that conflict with that shorter trimming name, and then try + // to widen the scope. So for example, if we have found nothing for API_BlendOp then we'd + // just try API_Blend (provided there's no API_BlendFactor, API_Blend, or any other + // conflicts) which would then sweep up API_BLEND_OPAQUE. We'd then keep the original enum + // names to stay in-keeping with the native API. TODO investigate this + if ( + !constCandidate.StartsWith( + enumCandidate, + StringComparison.OrdinalIgnoreCase + ) + || ( + constCandidate[enumCandidate.Length] != '_' + && char.IsUpper(constCandidate[enumCandidate.Length - 1]) + == char.IsUpper(constCandidate[enumCandidate.Length]) + ) + ) + { + continue; + } + + // We don't generate enums that have had inconsistent usage (e.g. int vs short vs long) but + // if we are able to map constants into those enums, we still want to ensure we don't go and + // map it to a less relevant enum as a result. So we add the constant to a separate HashSet, + // with which we remove the constant from the _constants dictionary but don't return it to + // the Rewriter, ensuring it is not removed (at is has not been mapped to an eligible enum). + (enumType is null ? ineligibleConstants : extractedConstants).Add( + constant + ); + nextConst = true; + if (extractedEnum is not { } theExtractedEnum) + { + break; + } + + theExtractedEnum.Item1 = theExtractedEnum.Item1.AddMembers( + EnumMemberDeclaration(constant) + .WithEqualsValue(EqualsValueClause(value)) + ); + extractedEnum = theExtractedEnum; + break; + } + + if (nextConst) + { + break; + } + } + } + + // Remove the constants that we've mapped into enums + foreach ( + var constant in (IEnumerable) + [.. ineligibleConstants, .. extractedConstants] + ) + { + _constants.Remove(constant); + } + + ineligibleConstants.Clear(); + if (extractedEnum is { Item1.Members.Count: > 0 }) + { + extractedEnums[enumName] = extractedEnum.Value; + } + } + + return (extractedEnums, extractedConstants); + } + + public override SyntaxNode? VisitFieldDeclaration(FieldDeclarationSyntax node) + { + if (node.Modifiers.Any(SyntaxKind.ConstKeyword)) + { + foreach (var vardec in node.Declaration.Variables) + { + if (vardec.Initializer is null) + { + continue; + } + + _constants.Add(vardec.Identifier.ToString(), vardec.Initializer.Value); + } + } + return base.VisitFieldDeclaration(node); + } + + public override SyntaxNode? VisitEnumDeclaration(EnumDeclarationSyntax node) + { + InvalidateIfSeen(_numericTypeNames, node.Identifier.ToString()); + return base.VisitEnumDeclaration(node); + } + + /* public override SyntaxNode VisitFunctionPointerType(FunctionPointerTypeSyntax node) { var ogNode = node; @@ -280,12 +748,10 @@ public override SyntaxNode VisitFunctionPointerType(FunctionPointerTypeSyntax no ogNode.Ancestors().FirstOrDefault(x => x is not TypeSyntax) is var first && first is MethodDeclarationSyntax meth ? meth.GetNativeReturnTypeName() - : first is ParameterSyntax param - ? param.GetNativeTypeName() - : first - is VariableDeclarationSyntax { Parent: FieldDeclarationSyntax field } - ? field.AttributeLists.GetNativeTypeName() - : null; + : first is ParameterSyntax param ? param.GetNativeTypeName() + : first is VariableDeclarationSyntax { Parent: FieldDeclarationSyntax field } + ? field.AttributeLists.GetNativeTypeName() + : null; var idSpan = identifier is not null ? identifier.AsSpan() : default; if (idSpan.StartsWith("const ")) { @@ -326,28 +792,30 @@ public override SyntaxNode VisitFunctionPointerType(FunctionPointerTypeSyntax no (string, string, int?)? addUsage = declarator switch { ParameterSyntax { Parent.Parent: MethodDeclarationSyntax useMeth } psyn - when useMeth.AttributeLists.GetNativeFunctionInfo(out _, out var ep, out _) - => ( - ep ?? useMeth.Identifier.ToString(), - psyn.Identifier.ToString(), - useMeth.ParameterList.Parameters.IndexOf(psyn) - ), + when useMeth.AttributeLists.GetNativeFunctionInfo( + out _, + out var ep, + out _ + ) => ( + ep ?? useMeth.Identifier.ToString(), + psyn.Identifier.ToString(), + useMeth.ParameterList.Parameters.IndexOf(psyn) + ), VariableDeclarationSyntax { Parent: FieldDeclarationSyntax { Parent: BaseTypeDeclarationSyntax tdecl }, Variables.Count: 1 - } vardec - => ( - tdecl.Identifier.ToString(), - vardec.Variables[0].Identifier.ToString(), - tdecl - .DescendantNodes() - .OfType() - .Select((x, i) => (x.Declaration, i)) - .First(x => x.Declaration == vardec) - .i - ), - _ => null + } vardec => ( + tdecl.Identifier.ToString(), + vardec.Variables[0].Identifier.ToString(), + tdecl + .DescendantNodes() + .OfType() + .Select((x, i) => (x.Declaration, i)) + .First(x => x.Declaration == vardec) + .i + ), + _ => null, }; if (addUsage is { } v) @@ -546,208 +1014,6 @@ var referencedIden in info.Pfn.DescendantNodes().OfType() ) : default; - // Ported from https://github.com/dotnet/Silk.NET/blob/d30cc43b/src/Core/Silk.NET.BuildTools/Bind/StructWriter.cs#L744-L774 - var pfn = StructDeclaration(newName) - .WithModifiers( - TokenList( - Token(SyntaxKind.PublicKeyword), - Token(SyntaxKind.UnsafeKeyword), - Token(SyntaxKind.ReadOnlyKeyword) - ) - ) - .WithBaseList( - BaseList( - SingletonSeparatedList( - SimpleBaseType(IdentifierName("IDisposable")) - ) - ) - ) - .WithAttributeLists(attrLists) - .WithMembers( - List( - [ - FieldDeclaration( - VariableDeclaration( - PointerType(PredefinedType(Token(SyntaxKind.VoidKeyword))), - SingletonSeparatedList(VariableDeclarator("_pointer")) - ) - ) - .WithModifiers( - TokenList( - Token(SyntaxKind.PrivateKeyword), - Token(SyntaxKind.ReadOnlyKeyword) - ) - ), - PropertyDeclaration(rawPfn, "Handle") - .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) - .WithExpressionBody( - ArrowExpressionClause( - CastExpression(rawPfn, IdentifierName("_pointer")) - ) - ) - .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), - ConstructorDeclaration(newName) - .WithParameterList( - ParameterList( - SingletonSeparatedList( - Parameter(Identifier("ptr")).WithType(rawPfn) - ) - ) - ) - .WithExpressionBody( - ArrowExpressionClause( - AssignmentExpression( - SyntaxKind.SimpleAssignmentExpression, - IdentifierName("_pointer"), - IdentifierName("ptr") - ) - ) - ) - .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) - .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), - ConstructorDeclaration(newName) - .WithParameterList( - ParameterList( - SingletonSeparatedList( - Parameter(Identifier("proc")) - .WithType(IdentifierName(delegateName)) - ) - ) - ) - .WithExpressionBody( - ArrowExpressionClause( - AssignmentExpression( - SyntaxKind.SimpleAssignmentExpression, - IdentifierName("_pointer"), - InvocationExpression( - MemberAccessExpression( - SyntaxKind.SimpleMemberAccessExpression, - IdentifierName("SilkMarshal"), - IdentifierName("DelegateToPtr") - ), - ArgumentList( - SingletonSeparatedList( - Argument(IdentifierName("proc")) - ) - ) - ) - ) - ) - ) - .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) - .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), - MethodDeclaration( - PredefinedType(Token(SyntaxKind.VoidKeyword)), - "Dispose" - ) - .WithExpressionBody( - ArrowExpressionClause( - InvocationExpression( - MemberAccessExpression( - SyntaxKind.SimpleMemberAccessExpression, - IdentifierName("SilkMarshal"), - IdentifierName("Free") - ), - ArgumentList( - SingletonSeparatedList( - Argument(IdentifierName("_pointer")) - ) - ) - ) - ) - ) - .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) - .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), - ConversionOperatorDeclaration( - Token(SyntaxKind.ImplicitKeyword), - IdentifierName(newName) - ) - .WithParameterList( - ParameterList( - SingletonSeparatedList( - Parameter(Identifier("pfn")).WithType(rawPfn) - ) - ) - ) - .WithModifiers( - TokenList( - Token(SyntaxKind.PublicKeyword), - Token(SyntaxKind.StaticKeyword) - ) - ) - .WithExpressionBody( - ArrowExpressionClause( - ImplicitObjectCreationExpression( - ArgumentList( - SingletonSeparatedList( - Argument(IdentifierName("pfn")) - ) - ), - null - ) - ) - ) - .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), - ConversionOperatorDeclaration(Token(SyntaxKind.ImplicitKeyword), rawPfn) - .WithParameterList( - ParameterList( - SingletonSeparatedList( - Parameter(Identifier("pfn")) - .WithType(IdentifierName(newName)) - ) - ) - ) - .WithModifiers( - TokenList( - Token(SyntaxKind.PublicKeyword), - Token(SyntaxKind.StaticKeyword) - ) - ) - .WithExpressionBody( - ArrowExpressionClause( - CastExpression( - rawPfn, - MemberAccessExpression( - SyntaxKind.SimpleMemberAccessExpression, - IdentifierName("pfn"), - IdentifierName("_pointer") - ) - ) - ) - ) - .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) - // TODO invoke method? - ] - ) - ); - - var @delegate = DelegateDeclaration( - rawPfn.ParameterList.Parameters.Last().Type, - Identifier(delegateName) - ) - .WithModifiers( - TokenList(Token(SyntaxKind.PublicKeyword), Token(SyntaxKind.UnsafeKeyword)) - ) - .WithAttributeLists(attrLists) - .WithParameterList( - ParameterList( - SeparatedList( - rawPfn - .ParameterList.Parameters.SkipLast(1) - .Select( - (y, i) => - Parameter( - y.AttributeLists, - y.Modifiers, - y.Type, - Identifier($"arg{i}"), - null - ) - ) - ) - ) - ); - dst[discrim] = ( pfn, @delegate, @@ -808,38 +1074,248 @@ bool IsUnique ArrayTypeSyntax at => $"{ForType(at.ElementType, dest)}v", AliasQualifiedNameSyntax aq => ForType(aq.Name, dest), FunctionPointerTypeSyntax fn => GetGeneratedPfnName(fn, dest, false).Pfn, - GenericNameSyntax gn - => $"{gn.Identifier}T{gn.TypeArgumentList.Arguments.Count}", + GenericNameSyntax gn => + $"{gn.Identifier}T{gn.TypeArgumentList.Arguments.Count}", IdentifierNameSyntax id - when dest.TryGetValue(id.Identifier.ToString(), out var v) - => v.Pfn.Identifier.ToString(), + when dest.TryGetValue(id.Identifier.ToString(), out var v) => + v.Pfn.Identifier.ToString(), IdentifierNameSyntax id => id.Identifier.ToString(), QualifiedNameSyntax qn => qn.Right.Identifier.ToString(), SimpleNameSyntax sn => sn.Identifier.ToString(), NullableTypeSyntax nt => ForType(nt.ElementType, dest), PointerTypeSyntax pt => $"{ForType(pt.ElementType, dest)}v", - PredefinedTypeSyntax pt - => pt.Keyword.Kind() switch - { - SyntaxKind.VoidKeyword => "V", - SyntaxKind.IntKeyword => "i", - SyntaxKind.UIntKeyword => "ui", - SyntaxKind.LongKeyword => "i64", - SyntaxKind.ULongKeyword => "ui64", - SyntaxKind.ShortKeyword => "s", - SyntaxKind.UShortKeyword => "us", - SyntaxKind.FloatKeyword => "f", - SyntaxKind.DoubleKeyword => "d", - SyntaxKind.BoolKeyword or SyntaxKind.SByteKeyword => "b", - SyntaxKind.ByteKeyword => "ub", - _ => pt.ToString() - }, + PredefinedTypeSyntax pt => pt.Keyword.Kind() switch + { + SyntaxKind.VoidKeyword => "V", + SyntaxKind.IntKeyword => "i", + SyntaxKind.UIntKeyword => "ui", + SyntaxKind.LongKeyword => "i64", + SyntaxKind.ULongKeyword => "ui64", + SyntaxKind.ShortKeyword => "s", + SyntaxKind.UShortKeyword => "us", + SyntaxKind.FloatKeyword => "f", + SyntaxKind.DoubleKeyword => "d", + SyntaxKind.BoolKeyword or SyntaxKind.SByteKeyword => "b", + SyntaxKind.ByteKeyword => "ub", + _ => pt.ToString(), + }, RefTypeSyntax rt => $"{ForType(rt.Type, dest)}v", ScopedTypeSyntax st => ForType(st.Type, dest), - TupleTypeSyntax tt - => string.Join(' ', tt.Elements.Select(x => ForType(x.Type, dest))), - _ => throw new ArgumentOutOfRangeException(nameof(type)) + TupleTypeSyntax tt => string.Join( + ' ', + tt.Elements.Select(x => ForType(x.Type, dest)) + ), + _ => throw new ArgumentOutOfRangeException(nameof(type)), }; - } + }*/ + } + + private static ( + StructDeclarationSyntax Pfn, + DelegateDeclarationSyntax Delegate + ) CreateFunctionPointerTypes( + string pfnName, + string delegateName, + SyntaxList attrLists, + FunctionPointerTypeSyntax rawPfn + ) + { + // Ported from https://github.com/dotnet/Silk.NET/blob/d30cc43b/src/Core/Silk.NET.BuildTools/Bind/StructWriter.cs#L744-L774 + var pfn = StructDeclaration(pfnName) + .WithModifiers( + TokenList( + Token(SyntaxKind.PublicKeyword), + Token(SyntaxKind.UnsafeKeyword), + Token(SyntaxKind.ReadOnlyKeyword) + ) + ) + .WithBaseList( + BaseList( + SingletonSeparatedList( + SimpleBaseType(IdentifierName("IDisposable")) + ) + ) + ) + .WithAttributeLists(attrLists) + .WithMembers( + List( + [ + FieldDeclaration( + VariableDeclaration( + PointerType(PredefinedType(Token(SyntaxKind.VoidKeyword))), + SingletonSeparatedList(VariableDeclarator("_pointer")) + ) + ) + .WithModifiers( + TokenList( + Token(SyntaxKind.PrivateKeyword), + Token(SyntaxKind.ReadOnlyKeyword) + ) + ), + PropertyDeclaration(rawPfn, "Handle") + .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) + .WithExpressionBody( + ArrowExpressionClause( + CastExpression(rawPfn, IdentifierName("_pointer")) + ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), + ConstructorDeclaration(pfnName) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("ptr")).WithType(rawPfn) + ) + ) + ) + .WithExpressionBody( + ArrowExpressionClause( + AssignmentExpression( + SyntaxKind.SimpleAssignmentExpression, + IdentifierName("_pointer"), + IdentifierName("ptr") + ) + ) + ) + .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), + ConstructorDeclaration(pfnName) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("proc")) + .WithType(IdentifierName(delegateName)) + ) + ) + ) + .WithExpressionBody( + ArrowExpressionClause( + AssignmentExpression( + SyntaxKind.SimpleAssignmentExpression, + IdentifierName("_pointer"), + InvocationExpression( + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("SilkMarshal"), + IdentifierName("DelegateToPtr") + ), + ArgumentList( + SingletonSeparatedList( + Argument(IdentifierName("proc")) + ) + ) + ) + ) + ) + ) + .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), + MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)), "Dispose") + .WithExpressionBody( + ArrowExpressionClause( + InvocationExpression( + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("SilkMarshal"), + IdentifierName("Free") + ), + ArgumentList( + SingletonSeparatedList( + Argument(IdentifierName("_pointer")) + ) + ) + ) + ) + ) + .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), + ConversionOperatorDeclaration( + Token(SyntaxKind.ImplicitKeyword), + IdentifierName(pfnName) + ) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("pfn")).WithType(rawPfn) + ) + ) + ) + .WithModifiers( + TokenList( + Token(SyntaxKind.PublicKeyword), + Token(SyntaxKind.StaticKeyword) + ) + ) + .WithExpressionBody( + ArrowExpressionClause( + ImplicitObjectCreationExpression( + ArgumentList( + SingletonSeparatedList(Argument(IdentifierName("pfn"))) + ), + null + ) + ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), + ConversionOperatorDeclaration(Token(SyntaxKind.ImplicitKeyword), rawPfn) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("pfn")) + .WithType(IdentifierName(pfnName)) + ) + ) + ) + .WithModifiers( + TokenList( + Token(SyntaxKind.PublicKeyword), + Token(SyntaxKind.StaticKeyword) + ) + ) + .WithExpressionBody( + ArrowExpressionClause( + CastExpression( + rawPfn, + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("pfn"), + IdentifierName("_pointer") + ) + ) + ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), + // TODO invoke method? + ] + ) + ); + + var @delegate = DelegateDeclaration( + rawPfn.ParameterList.Parameters.Last().Type, + Identifier(delegateName) + ) + .WithModifiers( + TokenList(Token(SyntaxKind.PublicKeyword), Token(SyntaxKind.UnsafeKeyword)) + ) + .WithAttributeLists(attrLists) + .WithParameterList( + ParameterList( + SeparatedList( + rawPfn + .ParameterList.Parameters.SkipLast(1) + .Select( + (y, i) => + Parameter( + y.AttributeLists, + y.Modifiers, + y.Type, + Identifier($"arg{i}"), + null + ) + ) + ) + ) + ); + return (pfn, @delegate); } } diff --git a/sources/SilkTouch/SilkTouch/Mods/Transformation/BoolTransformer.cs b/sources/SilkTouch/SilkTouch/Mods/Transformation/BoolTransformer.cs index f621765981..8519678e15 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Transformation/BoolTransformer.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Transformation/BoolTransformer.cs @@ -27,14 +27,11 @@ Action next var cfg = options.Get(ctx.JobKey); string? retBoolScheme = null; TypeSyntax? newRetType = null; + var retNative = current.GetNativeReturnTypeName() ?? current.ReturnType.ToString(); if ( (current.ReturnType.IsInteger() && cfg.IntReturnsMaybeBool) - || ( - cfg.BoolTypes?.TryGetValue( - current.GetNativeReturnTypeName() ?? current.ReturnType.ToString(), - out retBoolScheme - ) ?? false - ) + || (cfg.BoolTypes?.TryGetValue(retNative, out retBoolScheme) ?? false) + || (retNative == "bool" && current.ReturnType.ToString().Trim() != "bool") // stdbool.h, hopefully... ) { current = current.WithReturnType( @@ -60,13 +57,14 @@ out retBoolScheme for (var i = 0; i < current.ParameterList.Parameters.Count; i++) { var param = current.ParameterList.Parameters[i]; + var paramNative = param.GetNativeTypeName() ?? param.Type?.ToString(); + string? paramBoolScheme = null; if ( - param.Type is not null + paramNative is not null + && param.Type is not null && ( - cfg.BoolTypes?.TryGetValue( - param.GetNativeTypeName() ?? param.Type.ToString(), - out var paramBoolScheme - ) ?? false + (cfg.BoolTypes?.TryGetValue(paramNative, out paramBoolScheme) ?? false) + || (paramNative == "bool" && param.Type.ToString().Trim() != "bool") // stdbool.h, hopefully... ) ) { diff --git a/sources/SilkTouch/SilkTouch/Naming/NameTrimmer.cs b/sources/SilkTouch/SilkTouch/Naming/NameTrimmer.cs index 0624cb1588..f0c0a50e59 100644 --- a/sources/SilkTouch/SilkTouch/Naming/NameTrimmer.cs +++ b/sources/SilkTouch/SilkTouch/Naming/NameTrimmer.cs @@ -214,27 +214,27 @@ bool naive container is not null && (prefixOverrides?.TryGetValue(container, out var @override) ?? false) ? @override - : names.Count == 1 && !string.IsNullOrWhiteSpace(containerTrimmingName) - ? NameUtils.FindCommonPrefix( - [ - names.Keys.First(x => !(nonDeterminant?.Contains(x) ?? false)), - containerTrimmingName - ], - true, - false, - naive - ) - : NameUtils.FindCommonPrefix( - localNames - .Where(x => !(nonDeterminant?.Contains(x.Value.Key) ?? false)) - .Select(x => x.Key) - .ToList(), - // If naive mode is on and we're trimming type names, allow full matches (method class is - // probably the prefix) - naive && container is null, - false, - naive - ); + : names.Count == 1 && !string.IsNullOrWhiteSpace(containerTrimmingName) + ? NameUtils.FindCommonPrefix( + [ + names.Keys.First(x => !(nonDeterminant?.Contains(x) ?? false)), + containerTrimmingName, + ], + true, + false, + naive + ) + : NameUtils.FindCommonPrefix( + localNames + .Where(x => !(nonDeterminant?.Contains(x.Value.Key) ?? false)) + .Select(x => x.Key) + .ToList(), + // If naive mode is on and we're trimming type names, allow full matches (method class is + // probably the prefix) + naive && container is null, + false, + naive + ); // If any of the children's trimming name is shorter than the prefix length, if ( @@ -289,7 +289,7 @@ container is not null /// Whether the name passed into is the container name. /// The global prefix hint. /// The trimming name. - protected virtual string GetTrimmingName( + public virtual string GetTrimmingName( Dictionary? prefixOverrides, string name, bool isContainer, diff --git a/sources/SilkTouch/SilkTouch/Naming/NameTrimmer217.cs b/sources/SilkTouch/SilkTouch/Naming/NameTrimmer217.cs index 04e99aba9d..87287fea40 100644 --- a/sources/SilkTouch/SilkTouch/Naming/NameTrimmer217.cs +++ b/sources/SilkTouch/SilkTouch/Naming/NameTrimmer217.cs @@ -20,7 +20,7 @@ public class NameTrimmer217 : NameTrimmer protected override bool HasNaivePass => false; /// - protected override string GetTrimmingName( + public override string GetTrimmingName( Dictionary? prefixOverrides, string name, bool isContainer, diff --git a/tests/SDL/SDL/SDL3/SDL_AtomicU32Tests.gen.cs b/tests/SDL/SDL/SDL3/SDL_AtomicU32Tests.gen.cs new file mode 100644 index 0000000000..cd22ac40d5 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_AtomicU32Tests.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_AtomicU32Tests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(AtomicU32))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(AtomicU32).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(AtomicU32), Is.EqualTo(4)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL_CameraSpecTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_CameraSpecTests.gen.cs index 88a5b1d178..d30ed0fb88 100644 --- a/tests/SDL/SDL/SDL3/SDL_CameraSpecTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_CameraSpecTests.gen.cs @@ -31,6 +31,6 @@ public static void IsLayoutSequentialTest() [Test] public static void SizeOfTest() { - Assert.That(sizeof(CameraSpec), Is.EqualTo(20)); + Assert.That(sizeof(CameraSpec), Is.EqualTo(24)); } } diff --git a/tests/SDL/SDL/SDL3/SDL_ClipboardEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_ClipboardEventTests.gen.cs index 234956cca0..65c919f1e6 100644 --- a/tests/SDL/SDL/SDL3/SDL_ClipboardEventTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_ClipboardEventTests.gen.cs @@ -31,6 +31,6 @@ public static void IsLayoutSequentialTest() [Test] public static void SizeOfTest() { - Assert.That(sizeof(ClipboardEvent), Is.EqualTo(16)); + Assert.That(sizeof(ClipboardEvent), Is.EqualTo(32)); } } diff --git a/tests/SDL/SDL/SDL3/SDL_DisplayEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_DisplayEventTests.gen.cs index f07b82f5bf..ed81379ab9 100644 --- a/tests/SDL/SDL/SDL3/SDL_DisplayEventTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_DisplayEventTests.gen.cs @@ -31,6 +31,6 @@ public static void IsLayoutSequentialTest() [Test] public static void SizeOfTest() { - Assert.That(sizeof(DisplayEvent), Is.EqualTo(24)); + Assert.That(sizeof(DisplayEvent), Is.EqualTo(32)); } } diff --git a/tests/SDL/SDL/SDL3/SDL_DisplayModeTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_DisplayModeTests.gen.cs index fee0dabc33..77a2667b4d 100644 --- a/tests/SDL/SDL/SDL3/SDL_DisplayModeTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_DisplayModeTests.gen.cs @@ -34,11 +34,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.That(sizeof(DisplayMode), Is.EqualTo(32)); + Assert.That(sizeof(DisplayMode), Is.EqualTo(40)); } else { - Assert.That(sizeof(DisplayMode), Is.EqualTo(28)); + Assert.That(sizeof(DisplayMode), Is.EqualTo(36)); } } } diff --git a/tests/SDL/SDL/SDL3/SDL_IOStreamInterfaceTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_IOStreamInterfaceTests.gen.cs index 0ac24fe626..1047652c2e 100644 --- a/tests/SDL/SDL/SDL3/SDL_IOStreamInterfaceTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_IOStreamInterfaceTests.gen.cs @@ -34,11 +34,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.That(sizeof(IOStreamInterface), Is.EqualTo(40)); + Assert.That(sizeof(IOStreamInterface), Is.EqualTo(56)); } else { - Assert.That(sizeof(IOStreamInterface), Is.EqualTo(20)); + Assert.That(sizeof(IOStreamInterface), Is.EqualTo(28)); } } } diff --git a/tests/SDL/SDL/SDL3/SDL_InitStateTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_InitStateTests.gen.cs new file mode 100644 index 0000000000..0b0d4b393b --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_InitStateTests.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_InitStateTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(InitState))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(InitState).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(InitState), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL_KeyboardEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_KeyboardEventTests.gen.cs index b7d36516c7..d171cd717b 100644 --- a/tests/SDL/SDL/SDL3/SDL_KeyboardEventTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_KeyboardEventTests.gen.cs @@ -31,6 +31,6 @@ public static void IsLayoutSequentialTest() [Test] public static void SizeOfTest() { - Assert.That(sizeof(KeyboardEvent), Is.EqualTo(48)); + Assert.That(sizeof(KeyboardEvent), Is.EqualTo(40)); } } diff --git a/tests/SDL/SDL/SDL3/SDL_KeysymTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_KeysymTests.gen.cs deleted file mode 100644 index d36abe2a6b..0000000000 --- a/tests/SDL/SDL/SDL3/SDL_KeysymTests.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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_KeysymTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Keysym))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(Keysym).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(Keysym), Is.EqualTo(16)); - } -} diff --git a/tests/SDL/SDL/SDL3/SDL_RendererInfoTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_PenAxisEventTests.gen.cs similarity index 50% rename from tests/SDL/SDL/SDL3/SDL_RendererInfoTests.gen.cs rename to tests/SDL/SDL/SDL3/SDL_PenAxisEventTests.gen.cs index 7615e57f76..d3de90da6f 100644 --- a/tests/SDL/SDL/SDL3/SDL_RendererInfoTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_PenAxisEventTests.gen.cs @@ -2,43 +2,35 @@ // 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_RendererInfoTests +/// Provides validation of the struct. +public static unsafe partial class SDL_PenAxisEventTests { - /// Validates that the struct is blittable. + /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(RendererInfo))); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(PenAxisEvent))); } - /// Validates that the struct has the right . + /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.That(typeof(RendererInfo).IsLayoutSequential, Is.True); + Assert.That(typeof(PenAxisEvent).IsLayoutSequential, Is.True); } - /// Validates that the struct has the correct size. + /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(RendererInfo), Is.EqualTo(88)); - } - else - { - Assert.That(sizeof(RendererInfo), Is.EqualTo(84)); - } + Assert.That(sizeof(PenAxisEvent), Is.EqualTo(48)); } } diff --git a/tests/SDL/SDL/SDL3/SDL_PenButtonEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_PenButtonEventTests.gen.cs index d19b6b7a32..8187a3b86f 100644 --- a/tests/SDL/SDL/SDL3/SDL_PenButtonEventTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_PenButtonEventTests.gen.cs @@ -31,6 +31,6 @@ public static void IsLayoutSequentialTest() [Test] public static void SizeOfTest() { - Assert.That(sizeof(PenButtonEvent), Is.EqualTo(64)); + Assert.That(sizeof(PenButtonEvent), Is.EqualTo(40)); } } diff --git a/tests/SDL/SDL/SDL3/SDL_PenCapabilityInfoTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_PenCapabilityInfoTests.gen.cs deleted file mode 100644 index 29cb5f4d76..0000000000 --- a/tests/SDL/SDL/SDL3/SDL_PenCapabilityInfoTests.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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_PenCapabilityInfoTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(PenCapabilityInfo))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(PenCapabilityInfo).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(PenCapabilityInfo), Is.EqualTo(12)); - } -} diff --git a/tests/SDL/SDL/SDL3/SDL_PenMotionEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_PenMotionEventTests.gen.cs index 3b8db4f604..bc8c3a491e 100644 --- a/tests/SDL/SDL/SDL3/SDL_PenMotionEventTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_PenMotionEventTests.gen.cs @@ -31,6 +31,6 @@ public static void IsLayoutSequentialTest() [Test] public static void SizeOfTest() { - Assert.That(sizeof(PenMotionEvent), Is.EqualTo(64)); + Assert.That(sizeof(PenMotionEvent), Is.EqualTo(40)); } } diff --git a/tests/SDL/SDL/SDL3/SDL_PenProximityEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_PenProximityEventTests.gen.cs new file mode 100644 index 0000000000..7fc9d5579a --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_PenProximityEventTests.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_PenProximityEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(PenProximityEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(PenProximityEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(PenProximityEvent), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL_PenTipEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_PenTipEventTests.gen.cs deleted file mode 100644 index 0d2f725cd0..0000000000 --- a/tests/SDL/SDL/SDL3/SDL_PenTipEventTests.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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_PenTipEventTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(PenTipEvent))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(PenTipEvent).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(PenTipEvent), Is.EqualTo(64)); - } -} diff --git a/tests/SDL/SDL/SDL3/SDL_PenTouchEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_PenTouchEventTests.gen.cs new file mode 100644 index 0000000000..9624a9e6d9 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_PenTouchEventTests.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_PenTouchEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(PenTouchEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(PenTouchEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(PenTouchEvent), Is.EqualTo(40)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL_PixelFormatDetailsTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_PixelFormatDetailsTests.gen.cs new file mode 100644 index 0000000000..f801dbb04b --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_PixelFormatDetailsTests.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_PixelFormatDetailsTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(PixelFormatDetails))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(PixelFormatDetails).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(PixelFormatDetails), Is.EqualTo(32)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL_PixelFormatTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_PixelFormatTests.gen.cs deleted file mode 100644 index bcbfc1bb28..0000000000 --- a/tests/SDL/SDL/SDL3/SDL_PixelFormatTests.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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_PixelFormatTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(PixelFormat))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(PixelFormat).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(PixelFormat), Is.EqualTo(56)); - } - else - { - Assert.That(sizeof(PixelFormat), Is.EqualTo(44)); - } - } -} diff --git a/tests/SDL/SDL/SDL3/SDL_StorageInterfaceTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_StorageInterfaceTests.gen.cs index 1da5f632dc..bbde095fcf 100644 --- a/tests/SDL/SDL/SDL3/SDL_StorageInterfaceTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_StorageInterfaceTests.gen.cs @@ -34,11 +34,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.That(sizeof(StorageInterface), Is.EqualTo(80)); + Assert.That(sizeof(StorageInterface), Is.EqualTo(96)); } else { - Assert.That(sizeof(StorageInterface), Is.EqualTo(40)); + Assert.That(sizeof(StorageInterface), Is.EqualTo(48)); } } } diff --git a/tests/SDL/SDL/SDL3/SDL_SurfaceTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_SurfaceTests.gen.cs index 229a4557fb..e80955e146 100644 --- a/tests/SDL/SDL/SDL3/SDL_SurfaceTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_SurfaceTests.gen.cs @@ -34,11 +34,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.That(sizeof(Surface), Is.EqualTo(96)); + Assert.That(sizeof(Surface), Is.EqualTo(48)); } else { - Assert.That(sizeof(Surface), Is.EqualTo(60)); + Assert.That(sizeof(Surface), Is.EqualTo(32)); } } } diff --git a/tests/SDL/SDL/SDL3/SDL_TextEditingCandidatesEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_TextEditingCandidatesEventTests.gen.cs new file mode 100644 index 0000000000..0781120c87 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_TextEditingCandidatesEventTests.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_TextEditingCandidatesEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That( + Marshal.SizeOf(), + Is.EqualTo(sizeof(TextEditingCandidatesEvent)) + ); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(TextEditingCandidatesEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(TextEditingCandidatesEvent), Is.EqualTo(48)); + } + else + { + Assert.That(sizeof(TextEditingCandidatesEvent), Is.EqualTo(40)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL_VersionTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_TextureTests.gen.cs similarity index 59% rename from tests/SDL/SDL/SDL3/SDL_VersionTests.gen.cs rename to tests/SDL/SDL/SDL3/SDL_TextureTests.gen.cs index 02837dce58..2eb20d5332 100644 --- a/tests/SDL/SDL/SDL3/SDL_VersionTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_TextureTests.gen.cs @@ -7,30 +7,30 @@ namespace Silk.NET.SDL.UnitTests; -/// Provides validation of the struct. -public static unsafe partial class SDL_VersionTests +/// Provides validation of the struct. +public static unsafe partial class SDL_TextureTests { - /// Validates that the struct is blittable. + /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Version))); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Texture))); } - /// Validates that the struct has the right . + /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.That(typeof(Version).IsLayoutSequential, Is.True); + Assert.That(typeof(Texture).IsLayoutSequential, Is.True); } - /// Validates that the struct has the correct size. + /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() { - Assert.That(sizeof(Version), Is.EqualTo(3)); + Assert.That(sizeof(Texture), Is.EqualTo(16)); } } diff --git a/tests/SDL/SDL/SDL3/SDL_VirtualJoystickDescTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_VirtualJoystickDescTests.gen.cs index a3d17eec5a..a8e7c043f9 100644 --- a/tests/SDL/SDL/SDL3/SDL_VirtualJoystickDescTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_VirtualJoystickDescTests.gen.cs @@ -34,11 +34,11 @@ public static void SizeOfTest() { if (Environment.Is64BitProcess) { - Assert.That(sizeof(VirtualJoystickDesc), Is.EqualTo(88)); + Assert.That(sizeof(VirtualJoystickDesc), Is.EqualTo(136)); } else { - Assert.That(sizeof(VirtualJoystickDesc), Is.EqualTo(56)); + Assert.That(sizeof(VirtualJoystickDesc), Is.EqualTo(84)); } } } diff --git a/tests/SDL/SDL/SDL3/SDL_VirtualJoystickSensorDescTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_VirtualJoystickSensorDescTests.gen.cs new file mode 100644 index 0000000000..5ccc437b9f --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_VirtualJoystickSensorDescTests.gen.cs @@ -0,0 +1,39 @@ +// 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_VirtualJoystickSensorDescTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That( + Marshal.SizeOf(), + Is.EqualTo(sizeof(VirtualJoystickSensorDesc)) + ); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(VirtualJoystickSensorDesc).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(VirtualJoystickSensorDesc), Is.EqualTo(8)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL_VirtualJoystickTouchpadDescTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_VirtualJoystickTouchpadDescTests.gen.cs new file mode 100644 index 0000000000..462749c722 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_VirtualJoystickTouchpadDescTests.gen.cs @@ -0,0 +1,39 @@ +// 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_VirtualJoystickTouchpadDescTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That( + Marshal.SizeOf(), + Is.EqualTo(sizeof(VirtualJoystickTouchpadDesc)) + ); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(VirtualJoystickTouchpadDesc).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(VirtualJoystickTouchpadDesc), Is.EqualTo(8)); + } +} From 202b315243b921a4eb7594cab6a6107f124f02af Mon Sep 17 00:00:00 2001 From: Dylan Perks Date: Thu, 21 Nov 2024 16:16:19 +0000 Subject: [PATCH 7/8] Update ClangSharp (with no changes!!!!1111!1!!!111 :tada:) --- eng/silktouch/sdl/SDL3/generate.rsp | 2 + .../SilkTouch/Clang/ResponseFileHandler.cs | 700 +++++++++--------- .../SilkTouch/Silk.NET.SilkTouch.csproj | 2 +- 3 files changed, 341 insertions(+), 363 deletions(-) diff --git a/eng/silktouch/sdl/SDL3/generate.rsp b/eng/silktouch/sdl/SDL3/generate.rsp index 264138a3bb..1503cdd39c 100644 --- a/eng/silktouch/sdl/SDL3/generate.rsp +++ b/eng/silktouch/sdl/SDL3/generate.rsp @@ -7,6 +7,8 @@ SDL_SIZE_MAX SDL_memcpy SDL_memmove SDL_memset +SDL_BeginThreadFunction +SDL_EndThreadFunction --file sdl-SDL.h --methodClassName diff --git a/sources/SilkTouch/SilkTouch/Clang/ResponseFileHandler.cs b/sources/SilkTouch/SilkTouch/Clang/ResponseFileHandler.cs index 46ea904c14..4a35d510b5 100644 --- a/sources/SilkTouch/SilkTouch/Clang/ResponseFileHandler.cs +++ b/sources/SilkTouch/SilkTouch/Clang/ResponseFileHandler.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.CommandLine; using System.CommandLine.Parsing; +using System.Diagnostics.CodeAnalysis; using System.IO; using System.IO.Hashing; using System.Linq; @@ -17,256 +18,124 @@ namespace Silk.NET.SilkTouch.Clang; /// /// Reads a response file (rsp) containing ClangSharpPInvokeGenerator command line arguments. /// -public class ResponseFileHandler +[SuppressMessage("ReSharper", "InconsistentNaming")] +public class ResponseFileHandler(ILogger logger) { - private static readonly RootCommand _rootCommand; - - private static readonly Option _versionOption; - private static readonly Option _additionalOption; - private static readonly Option _configOption; - private static readonly Option _defineMacros; - private static readonly Option _excludedNames; - private static readonly Option _files; - private static readonly Option _fileDirectory; - private static readonly Option _headerFile; - private static readonly Option _includedNames; - private static readonly Option _includeDirectories; - private static readonly Option _language; - private static readonly Option _libraryPath; - private static readonly Option _methodClassName; - private static readonly Option _methodPrefixToStrip; - private static readonly Option _nativeTypeNamesToStrip; - private static readonly Option _namespaceName; - private static readonly Option _outputLocation; - private static readonly Option _outputMode; - private static readonly Option _remappedNameValuePairs; - private static readonly Option _std; - private static readonly Option _testOutputLocation; - private static readonly Option _traversalNames; - private static readonly Option _withAccessSpecifierNameValuePairs; - private static readonly Option _withAttributeNameValuePairs; - private static readonly Option _withCallConvNameValuePairs; - private static readonly Option _withClassNameValuePairs; - private static readonly Option _withGuidNameValuePairs; - private static readonly Option _withLibraryPathNameValuePairs; - private static readonly Option _withManualImports; - private static readonly Option _withNamespaceNameValuePairs; - private static readonly Option _withSetLastErrors; - private static readonly Option _withSuppressGCTransitions; - private static readonly Option _withTransparentStructNameValuePairs; - private static readonly Option _withTypeNameValuePairs; - private static readonly Option _withUsingNameValuePairs; - private static readonly Option _withPackingNameValuePairs; - - private static readonly string[] _additionalOptionAliases = new string[] - { - "--additional", - "-a" - }; - private static readonly string[] _configOptionAliases = new string[] { "--config", "-c" }; - private static readonly string[] _defineMacroOptionAliases = new string[] - { - "--define-macro", - "-D" - }; - private static readonly string[] _excludeOptionAliases = new string[] { "--exclude", "-e" }; - private static readonly string[] _fileOptionAliases = new string[] { "--file", "-f" }; - private static readonly string[] _fileDirectionOptionAliases = new string[] - { - "--file-directory", - "-F" - }; - private static readonly string[] _headerOptionAliases = new string[] { "--headerFile", "-h" }; - private static readonly string[] _includeOptionAliases = new string[] { "--include", "-i" }; - private static readonly string[] _includeDirectoryOptionAliases = new string[] - { + // Begin verbatim ClangSharp code + private static readonly string[] s_additionalOptionAliases = ["--additional", "-a"]; + private static readonly string[] s_configOptionAliases = ["--config", "-c"]; + private static readonly string[] s_defineMacroOptionAliases = ["--define-macro", "-D"]; + private static readonly string[] s_excludeOptionAliases = ["--exclude", "-e"]; + private static readonly string[] s_fileOptionAliases = ["--file", "-f"]; + private static readonly string[] s_fileDirectionOptionAliases = ["--file-directory", "-F"]; + private static readonly string[] s_headerOptionAliases = ["--headerFile", "-hf"]; + private static readonly string[] s_includeOptionAliases = ["--include", "-i"]; + private static readonly string[] s_includeDirectoryOptionAliases = + [ "--include-directory", - "-I" - }; - private static readonly string[] _languageOptionAliases = new string[] { "--language", "-x" }; - private static readonly string[] _libraryOptionAliases = new string[] { "--libraryPath", "-l" }; - private static readonly string[] _methodClassNameOptionAliases = new string[] - { - "--methodClassName", - "-m" - }; - private static readonly string[] _namespaceOptionAliases = new string[] { "--namespace", "-n" }; - private static readonly string[] _nativeTypeNamesStripOptionAliases = new string[] - { - "--nativeTypeNamesToStrip" - }; - private static readonly string[] _outputModeOptionAliases = new string[] - { - "--output-mode", - "-om" - }; - private static readonly string[] _outputOptionAliases = new string[] { "--output", "-o" }; - private static readonly string[] _prefixStripOptionAliases = new string[] - { - "--prefixStrip", - "-p" - }; - private static readonly string[] _remapOptionAliases = new string[] { "--remap", "-r" }; - private static readonly string[] _stdOptionAliases = new string[] { "--std", "-std" }; - private static readonly string[] _testOutputOptionAliases = new string[] - { - "--test-output", - "-to" - }; - private static readonly string[] _versionOptionAliases = new string[] { "--version", "-v" }; - private static readonly string[] _traverseOptionAliases = new string[] { "--traverse", "-t" }; - private static readonly string[] _withAccessSpecifierOptionAliases = new string[] - { + "-I", + ]; + private static readonly string[] s_languageOptionAliases = ["--language", "-x"]; + private static readonly string[] s_libraryOptionAliases = ["--libraryPath", "-l"]; + private static readonly string[] s_methodClassNameOptionAliases = ["--methodClassName", "-m"]; + private static readonly string[] s_namespaceOptionAliases = ["--namespace", "-n"]; + private static readonly string[] s_nativeTypeNamesStripOptionAliases = + [ + "--nativeTypeNamesToStrip", + ]; + private static readonly string[] s_outputModeOptionAliases = ["--output-mode", "-om"]; + private static readonly string[] s_outputOptionAliases = ["--output", "-o"]; + private static readonly string[] s_prefixStripOptionAliases = ["--prefixStrip", "-p"]; + private static readonly string[] s_remapOptionAliases = ["--remap", "-r"]; + private static readonly string[] s_stdOptionAliases = ["--std", "-std"]; + private static readonly string[] s_testOutputOptionAliases = ["--test-output", "-to"]; + private static readonly string[] s_traverseOptionAliases = ["--traverse", "-t"]; + private static readonly string[] s_versionOptionAliases = ["--version", "-v"]; + private static readonly string[] s_withAccessSpecifierOptionAliases = + [ "--with-access-specifier", - "-was" - }; - private static readonly string[] _withAttributeOptionAliases = new string[] - { - "--with-attribute", - "-wa" - }; - private static readonly string[] _withCallConvOptionAliases = new string[] - { - "--with-callconv", - "-wcc" - }; - private static readonly string[] _withClassOptionAliases = new string[] - { - "--with-class", - "-wc" - }; - private static readonly string[] _withGuidOptionAliases = new string[] { "--with-guid", "-wg" }; - private static readonly string[] _withLibraryPathOptionAliases = new string[] - { + "-was", + ]; + private static readonly string[] s_withAttributeOptionAliases = ["--with-attribute", "-wa"]; + private static readonly string[] s_withCallConvOptionAliases = ["--with-callconv", "-wcc"]; + private static readonly string[] s_withClassOptionAliases = ["--with-class", "-wc"]; + private static readonly string[] s_withGuidOptionAliases = ["--with-guid", "-wg"]; + private static readonly string[] s_withLengthOptionAliases = ["--with-length", "-wl"]; + private static readonly string[] s_withLibraryPathOptionAliases = + [ "--with-librarypath", - "-wlb" - }; - private static readonly string[] _withManualImportOptionAliases = new string[] - { + "-wlb", + ]; + private static readonly string[] s_withManualImportOptionAliases = + [ "--with-manual-import", - "-wmi" - }; - private static readonly string[] _withNamespaceOptionAliases = new string[] - { - "--with-namespace", - "-wn" - }; - private static readonly string[] _withSetLastErrorOptionAliases = new string[] - { + "-wmi", + ]; + private static readonly string[] s_withNamespaceOptionAliases = ["--with-namespace", "-wn"]; + private static readonly string[] s_withPackingOptionAliases = ["--with-packing", "-wp"]; + private static readonly string[] s_withSetLastErrorOptionAliases = + [ "--with-setlasterror", - "-wsle" - }; - private static readonly string[] _withSuppressGCTransitionOptionAliases = new string[] - { + "-wsle", + ]; + private static readonly string[] s_withSuppressGCTransitionOptionAliases = + [ "--with-suppressgctransition", - "-wsgct" - }; - private static readonly string[] _withTransparentStructOptionAliases = new string[] - { + "-wsgct", + ]; + private static readonly string[] s_withTransparentStructOptionAliases = + [ "--with-transparent-struct", - "-wts" - }; - private static readonly string[] _withTypeOptionAliases = new string[] { "--with-type", "-wt" }; - private static readonly string[] _withUsingOptionAliases = new string[] - { - "--with-using", - "-wu" - }; - private static readonly string[] _withPackingOptionAliases = new string[] - { - "--with-packing", - "-wp" - }; - private readonly ILogger _logger; - - static ResponseFileHandler() - { - _additionalOption = GetAdditionalOption(); - _configOption = GetConfigOption(); - _defineMacros = GetDefineMacroOption(); - _excludedNames = GetExcludeOption(); - _files = GetFileOption(); - _fileDirectory = GetFileDirectoryOption(); - _headerFile = GetHeaderOption(); - _includedNames = GetIncludeOption(); - _includeDirectories = GetIncludeDirectoryOption(); - _language = GetLanguageOption(); - _libraryPath = GetLibraryOption(); - _methodClassName = GetMethodClassNameOption(); - _namespaceName = GetNamespaceOption(); - _outputMode = GetOutputModeOption(); - _outputLocation = GetOutputOption(); - _methodPrefixToStrip = GetPrefixStripOption(); - _nativeTypeNamesToStrip = GetNativeTypeNamesStripOption(); - _remappedNameValuePairs = GetRemapOption(); - _std = GetStdOption(); - _testOutputLocation = GetTestOutputOption(); - _traversalNames = GetTraverseOption(); - _versionOption = GetVersionOption(); - _withAccessSpecifierNameValuePairs = GetWithAccessSpecifierOption(); - _withAttributeNameValuePairs = GetWithAttributeOption(); - _withCallConvNameValuePairs = GetWithCallConvOption(); - _withClassNameValuePairs = GetWithClassOption(); - _withGuidNameValuePairs = GetWithGuidOption(); - _withLibraryPathNameValuePairs = GetWithLibraryPathOption(); - _withManualImports = GetWithManualImportOption(); - _withNamespaceNameValuePairs = GetWithNamespaceOption(); - _withSetLastErrors = GetWithSetLastErrorOption(); - _withSuppressGCTransitions = GetWithSuppressGCTransitionOption(); - _withTransparentStructNameValuePairs = GetWithTransparentStructOption(); - _withTypeNameValuePairs = GetWithTypeOption(); - _withUsingNameValuePairs = GetWithUsingOption(); - _withPackingNameValuePairs = GetWithPackingOption(); - - _rootCommand = new RootCommand("ClangSharp P/Invoke Binding Generator") - { - _additionalOption, - _configOption, - _defineMacros, - _excludedNames, - _files, - _fileDirectory, - _headerFile, - _includedNames, - _includeDirectories, - _language, - _libraryPath, - _methodClassName, - _namespaceName, - _outputMode, - _outputLocation, - _methodPrefixToStrip, - _nativeTypeNamesToStrip, - _remappedNameValuePairs, - _std, - _testOutputLocation, - _traversalNames, - _versionOption, - _withAccessSpecifierNameValuePairs, - _withAttributeNameValuePairs, - _withCallConvNameValuePairs, - _withClassNameValuePairs, - _withGuidNameValuePairs, - _withLibraryPathNameValuePairs, - _withManualImports, - _withNamespaceNameValuePairs, - _withSetLastErrors, - _withSuppressGCTransitions, - _withTransparentStructNameValuePairs, - _withTypeNameValuePairs, - _withUsingNameValuePairs, - _withPackingNameValuePairs - }; - } - - /// - /// Creates a response file handler with the given logger. - /// - /// The logger to use. - public ResponseFileHandler(ILogger logger) - { - _logger = logger; - } + "-wts", + ]; + private static readonly string[] s_withTypeOptionAliases = ["--with-type", "-wt"]; + private static readonly string[] s_withUsingOptionAliases = ["--with-using", "-wu"]; + + private static readonly Option s_additionalOption = GetAdditionalOption(); + private static readonly Option s_configOption = GetConfigOption(); + private static readonly Option s_defineMacros = GetDefineMacroOption(); + private static readonly Option s_excludedNames = GetExcludeOption(); + private static readonly Option s_files = GetFileOption(); + private static readonly Option s_fileDirectory = GetFileDirectoryOption(); + private static readonly Option s_headerFile = GetHeaderOption(); + private static readonly Option s_includedNames = GetIncludeOption(); + private static readonly Option s_includeDirectories = GetIncludeDirectoryOption(); + private static readonly Option s_language = GetLanguageOption(); + private static readonly Option s_libraryPath = GetLibraryOption(); + private static readonly Option s_methodClassName = GetMethodClassNameOption(); + private static readonly Option s_methodPrefixToStrip = GetPrefixStripOption(); + private static readonly Option s_namespaceName = GetNamespaceOption(); + private static readonly Option s_nativeTypeNamesToStrip = + GetNativeTypeNamesStripOption(); + private static readonly Option s_outputLocation = GetOutputOption(); + private static readonly Option s_outputMode = GetOutputModeOption(); + private static readonly Option s_remappedNameValuePairs = GetRemapOption(); + private static readonly Option s_std = GetStdOption(); + private static readonly Option s_testOutputLocation = GetTestOutputOption(); + private static readonly Option s_traversalNames = GetTraverseOption(); + private static readonly Option s_versionOption = GetVersionOption(); + private static readonly Option s_withAccessSpecifierNameValuePairs = + GetWithAccessSpecifierOption(); + private static readonly Option s_withAttributeNameValuePairs = + GetWithAttributeOption(); + private static readonly Option s_withCallConvNameValuePairs = GetWithCallConvOption(); + private static readonly Option s_withClassNameValuePairs = GetWithClassOption(); + private static readonly Option s_withGuidNameValuePairs = GetWithGuidOption(); + private static readonly Option s_withLengthNameValuePairs = GetWithLengthOption(); + private static readonly Option s_withLibraryPathNameValuePairs = + GetWithLibraryPathOption(); + private static readonly Option s_withManualImports = GetWithManualImportOption(); + private static readonly Option s_withNamespaceNameValuePairs = + GetWithNamespaceOption(); + private static readonly Option s_withPackingNameValuePairs = GetWithPackingOption(); + private static readonly Option s_withSetLastErrors = GetWithSetLastErrorOption(); + private static readonly Option s_withSuppressGCTransitions = + GetWithSuppressGCTransitionOption(); + private static readonly Option s_withTransparentStructNameValuePairs = + GetWithTransparentStructOption(); + private static readonly Option s_withTypeNameValuePairs = GetWithTypeOption(); + private static readonly Option s_withUsingNameValuePairs = GetWithUsingOption(); + private static readonly RootCommand s_rootCommand = GetRootCommand(); private static void ParseKeyValuePairs( IEnumerable keyValuePairs, @@ -274,13 +143,13 @@ private static void ParseKeyValuePairs( out Dictionary result ) { - result = new Dictionary(); + result = []; foreach (var keyValuePair in keyValuePairs) { - var parts = keyValuePair.Split('='); + var parts = keyValuePair.Split('=', 2); - if (parts.Length != 2) + if (parts.Length < 2) { errorList.Add( $"Error: Invalid key/value pair argument: {keyValuePair}. Expected 'name=value'" @@ -308,7 +177,7 @@ private static void ParseKeyValuePairs( out Dictionary result ) { - result = new Dictionary(); + result = []; foreach (var keyValuePair in keyValuePairs) { @@ -345,7 +214,7 @@ private static void ParseKeyValuePairs( out Dictionary result ) { - result = new Dictionary(); + result = []; foreach (var keyValuePair in keyValuePairs) { @@ -385,7 +254,7 @@ private static void ParseKeyValuePairs( out Dictionary result ) { - result = new Dictionary(); + result = []; foreach (var keyValuePair in keyValuePairs) { @@ -416,7 +285,7 @@ private static void ParseKeyValuePairs( result.Add(key, (parts[0], PInvokeGeneratorTransparentStructKind.Unknown)); } else if ( - parts.Length == 2 + (parts.Length == 2) && Enum.TryParse( parts[1], out var transparentStructKind @@ -441,7 +310,7 @@ private static void ParseKeyValuePairs( out Dictionary> result ) { - result = new Dictionary>(); + result = []; foreach (var keyValuePair in keyValuePairs) { @@ -471,67 +340,67 @@ out Dictionary> result private static Option GetAdditionalOption() { return new Option( - aliases: _additionalOptionAliases, + aliases: s_additionalOptionAliases, description: "An argument to pass to Clang when parsing the input files.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetConfigOption() { return new Option( - aliases: _configOptionAliases, + aliases: s_configOptionAliases, description: "A configuration option that controls how the bindings are generated. Specify 'help' to see the available options.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetDefineMacroOption() { return new Option( - aliases: _defineMacroOptionAliases, + aliases: s_defineMacroOptionAliases, description: "Define to (or 1 if omitted).", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetExcludeOption() { return new Option( - aliases: _excludeOptionAliases, + aliases: s_excludeOptionAliases, description: "A declaration name to exclude from binding generation.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetFileOption() { return new Option( - aliases: _fileOptionAliases, + aliases: s_fileOptionAliases, description: "A file to parse and generate bindings for.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetFileDirectoryOption() { return new Option( - aliases: _fileDirectionOptionAliases, + aliases: s_fileDirectionOptionAliases, description: "The base path for files to parse.", getDefaultValue: () => string.Empty ); @@ -540,7 +409,7 @@ private static Option GetFileDirectoryOption() private static Option GetHeaderOption() { return new Option( - aliases: _headerOptionAliases, + aliases: s_headerOptionAliases, description: "A file which contains the header to prefix every generated file with.", getDefaultValue: () => string.Empty ); @@ -549,31 +418,31 @@ private static Option GetHeaderOption() private static Option GetIncludeOption() { return new Option( - aliases: _includeOptionAliases, + aliases: s_includeOptionAliases, description: "A declaration name to include in binding generation.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetIncludeDirectoryOption() { return new Option( - aliases: _includeDirectoryOptionAliases, + aliases: s_includeDirectoryOptionAliases, description: "Add directory to include search path.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetLanguageOption() { return new Option( - aliases: _languageOptionAliases, + aliases: s_languageOptionAliases, description: "Treat subsequent input files as having type .", getDefaultValue: () => "c++" ).FromAmong("c", "c++"); @@ -582,7 +451,7 @@ private static Option GetLanguageOption() private static Option GetLibraryOption() { return new Option( - aliases: _libraryOptionAliases, + aliases: s_libraryOptionAliases, description: "The string to use in the DllImport attribute used when generating bindings.", getDefaultValue: () => string.Empty ); @@ -591,7 +460,7 @@ private static Option GetLibraryOption() private static Option GetMethodClassNameOption() { return new Option( - aliases: _methodClassNameOptionAliases, + aliases: s_methodClassNameOptionAliases, description: "The name of the static class that will contain the generated method bindings.", getDefaultValue: () => "Methods" ); @@ -600,7 +469,7 @@ private static Option GetMethodClassNameOption() private static Option GetNamespaceOption() { return new Option( - aliases: _namespaceOptionAliases, + aliases: s_namespaceOptionAliases, description: "The namespace in which to place the generated bindings.", getDefaultValue: () => string.Empty ); @@ -609,19 +478,19 @@ private static Option GetNamespaceOption() private static Option GetNativeTypeNamesStripOption() { return new Option( - aliases: _nativeTypeNamesStripOptionAliases, + aliases: s_nativeTypeNamesStripOptionAliases, description: "The contents to strip from the generated NativeTypeName attributes.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetOutputModeOption() { return new Option( - aliases: _outputModeOptionAliases, + aliases: s_outputModeOptionAliases, description: "The mode describing how the information collected from the headers are presented in the resultant bindings.", getDefaultValue: () => PInvokeGeneratorOutputMode.CSharp ); @@ -630,7 +499,7 @@ private static Option GetOutputModeOption() private static Option GetOutputOption() { return new Option( - aliases: _outputOptionAliases, + aliases: s_outputOptionAliases, description: "The output location to write the generated bindings to.", getDefaultValue: () => string.Empty ); @@ -639,7 +508,7 @@ private static Option GetOutputOption() private static Option GetPrefixStripOption() { return new Option( - aliases: _prefixStripOptionAliases, + aliases: s_prefixStripOptionAliases, description: "The prefix to strip from the generated method bindings.", getDefaultValue: () => string.Empty ); @@ -648,19 +517,65 @@ private static Option GetPrefixStripOption() private static Option GetRemapOption() { return new Option( - aliases: _remapOptionAliases, + aliases: s_remapOptionAliases, description: "A declaration name to be remapped to another name during binding generation.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, + }; + } + + private static RootCommand GetRootCommand() + { + var rootCommand = new RootCommand("ClangSharp P/Invoke Binding Generator") + { + s_additionalOption, + s_configOption, + s_defineMacros, + s_excludedNames, + s_files, + s_fileDirectory, + s_headerFile, + s_includedNames, + s_includeDirectories, + s_language, + s_libraryPath, + s_methodClassName, + s_namespaceName, + s_outputMode, + s_outputLocation, + s_methodPrefixToStrip, + s_nativeTypeNamesToStrip, + s_remappedNameValuePairs, + s_std, + s_testOutputLocation, + s_traversalNames, + s_versionOption, + s_withAccessSpecifierNameValuePairs, + s_withAttributeNameValuePairs, + s_withCallConvNameValuePairs, + s_withClassNameValuePairs, + s_withGuidNameValuePairs, + s_withLengthNameValuePairs, + s_withLibraryPathNameValuePairs, + s_withManualImports, + s_withNamespaceNameValuePairs, + s_withPackingNameValuePairs, + s_withSetLastErrors, + s_withSuppressGCTransitions, + s_withTransparentStructNameValuePairs, + s_withTypeNameValuePairs, + s_withUsingNameValuePairs, }; + // Handler.SetHandler(rootCommand, (Action)Run); + return rootCommand; } private static Option GetStdOption() { return new Option( - aliases: _stdOptionAliases, + aliases: s_stdOptionAliases, description: "Language standard to compile for.", getDefaultValue: () => "" ); @@ -669,7 +584,7 @@ private static Option GetStdOption() private static Option GetTestOutputOption() { return new Option( - aliases: _testOutputOptionAliases, + aliases: s_testOutputOptionAliases, description: "The output location to write the generated tests to.", getDefaultValue: () => string.Empty ); @@ -678,194 +593,208 @@ private static Option GetTestOutputOption() private static Option GetVersionOption() { return new Option( - aliases: _versionOptionAliases, + aliases: s_versionOptionAliases, description: "Prints the current version information for the tool and its native dependencies." ) { - Arity = ArgumentArity.Zero + Arity = ArgumentArity.Zero, }; } private static Option GetTraverseOption() { return new Option( - aliases: _traverseOptionAliases, + aliases: s_traverseOptionAliases, description: "A file name included either directly or indirectly by -f that should be traversed during binding generation.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithAccessSpecifierOption() { return new Option( - aliases: _withAccessSpecifierOptionAliases, + aliases: s_withAccessSpecifierOptionAliases, description: "An access specifier to be used with the given qualified or remapped declaration name during binding generation. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithAttributeOption() { return new Option( - aliases: _withAttributeOptionAliases, + aliases: s_withAttributeOptionAliases, description: "An attribute to be added to the given remapped declaration name during binding generation. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithCallConvOption() { return new Option( - aliases: _withCallConvOptionAliases, + aliases: s_withCallConvOptionAliases, description: "A calling convention to be used for the given declaration during binding generation. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithClassOption() { return new Option( - aliases: _withClassOptionAliases, + aliases: s_withClassOptionAliases, description: "A class to be used for the given remapped constant or function declaration name during binding generation. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithGuidOption() { return new Option( - aliases: _withGuidOptionAliases, + aliases: s_withGuidOptionAliases, description: "A GUID to be used for the given declaration during binding generation. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, + }; + } + + private static Option GetWithLengthOption() + { + return new Option( + aliases: s_withLengthOptionAliases, + description: "A length to be used for the given declaration during binding generation. Supports wildcards.", + getDefaultValue: Array.Empty + ) + { + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithLibraryPathOption() { return new Option( - aliases: _withLibraryPathOptionAliases, + aliases: s_withLibraryPathOptionAliases, description: "A library path to be used for the given declaration during binding generation. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithManualImportOption() { return new Option( - aliases: _withManualImportOptionAliases, + aliases: s_withManualImportOptionAliases, description: "A remapped function name to be treated as a manual import during binding generation. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithNamespaceOption() { return new Option( - aliases: _withNamespaceOptionAliases, + aliases: s_withNamespaceOptionAliases, description: "A namespace to be used for the given remapped declaration name during binding generation. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithSetLastErrorOption() { return new Option( - aliases: _withSetLastErrorOptionAliases, + aliases: s_withSetLastErrorOptionAliases, description: "Add the SetLastError=true modifier or SetsSystemLastError attribute to a given DllImport or UnmanagedFunctionPointer. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithSuppressGCTransitionOption() { return new Option( - aliases: _withSuppressGCTransitionOptionAliases, + aliases: s_withSuppressGCTransitionOptionAliases, description: "Add the SuppressGCTransition calling convention to a given DllImport or UnmanagedFunctionPointer. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithTransparentStructOption() { return new Option( - aliases: _withTransparentStructOptionAliases, + aliases: s_withTransparentStructOptionAliases, description: "A remapped type name to be treated as a transparent wrapper during binding generation. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithTypeOption() { return new Option( - aliases: _withTypeOptionAliases, + aliases: s_withTypeOptionAliases, description: "A type to be used for the given enum declaration during binding generation. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithUsingOption() { return new Option( - aliases: _withUsingOptionAliases, + aliases: s_withUsingOptionAliases, description: "A using directive to be included for the given remapped declaration name during binding generation. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } private static Option GetWithPackingOption() { return new Option( - aliases: _withPackingOptionAliases, + aliases: s_withPackingOptionAliases, description: "Overrides the StructLayoutAttribute.Pack property for the given type. Supports wildcards.", getDefaultValue: Array.Empty ) { - AllowMultipleArgumentsPerToken = true + AllowMultipleArgumentsPerToken = true, }; } + // End verbatim ClangSharp code + /// /// Reads the given string array as ClangSharpPInvokeGenerator arguments from a response file. /// @@ -879,66 +808,75 @@ public ResponseFile ReadResponseFile( string? filePath = null ) { - _logger.LogDebug("ClangSharp command line arguments: {0}", string.Join(" ", args)); - var parseResult = new Parser(_rootCommand).Parse(args); - var additionalArgs = - parseResult.GetValueForOption(_additionalOption) ?? Array.Empty(); - var configSwitches = parseResult.GetValueForOption(_configOption) ?? Array.Empty(); - var defineMacros = parseResult.GetValueForOption(_defineMacros) ?? Array.Empty(); - var excludedNames = parseResult.GetValueForOption(_excludedNames) ?? Array.Empty(); - var files = parseResult.GetValueForOption(_files) ?? Array.Empty(); - var fileDirectory = parseResult.GetValueForOption(_fileDirectory) ?? ""; - var headerFile = parseResult.GetValueForOption(_headerFile) ?? ""; - var includedNames = parseResult.GetValueForOption(_includedNames) ?? Array.Empty(); - var includeDirectories = - parseResult.GetValueForOption(_includeDirectories) ?? Array.Empty(); - var language = parseResult.GetValueForOption(_language) ?? ""; - var libraryPath = parseResult.GetValueForOption(_libraryPath) ?? ""; - var methodClassName = parseResult.GetValueForOption(_methodClassName) ?? ""; - var methodPrefixToStrip = parseResult.GetValueForOption(_methodPrefixToStrip) ?? ""; + logger.LogDebug("ClangSharp command line arguments: {0}", string.Join(" ", args)); + var context = (ParseResult: new Parser(s_rootCommand).Parse(args), Dummy: 0); + + // Begin verbatim ClangSharp code: https://github.com/dotnet/ClangSharp/blob/main/sources/ClangSharpPInvokeGenerator/Program.cs + var additionalArgs = context.ParseResult.GetValueForOption(s_additionalOption) ?? []; + var configSwitches = context.ParseResult.GetValueForOption(s_configOption) ?? []; + var defineMacros = context.ParseResult.GetValueForOption(s_defineMacros) ?? []; + var excludedNames = context.ParseResult.GetValueForOption(s_excludedNames) ?? []; + var files = context.ParseResult.GetValueForOption(s_files) ?? []; + var fileDirectory = context.ParseResult.GetValueForOption(s_fileDirectory) ?? ""; + var headerFile = context.ParseResult.GetValueForOption(s_headerFile) ?? ""; + var includedNames = context.ParseResult.GetValueForOption(s_includedNames) ?? []; + var includeDirectories = context.ParseResult.GetValueForOption(s_includeDirectories) ?? []; + var language = context.ParseResult.GetValueForOption(s_language) ?? ""; + var libraryPath = context.ParseResult.GetValueForOption(s_libraryPath) ?? ""; + var methodClassName = context.ParseResult.GetValueForOption(s_methodClassName) ?? ""; + var methodPrefixToStrip = + context.ParseResult.GetValueForOption(s_methodPrefixToStrip) ?? ""; var nativeTypeNamesToStrip = - parseResult.GetValueForOption(_nativeTypeNamesToStrip) ?? Array.Empty(); - var namespaceName = parseResult.GetValueForOption(_namespaceName) ?? ""; - var outputLocation = parseResult.GetValueForOption(_outputLocation) ?? ""; - var outputMode = parseResult.GetValueForOption(_outputMode); + context.ParseResult.GetValueForOption(s_nativeTypeNamesToStrip) ?? []; + var namespaceName = context.ParseResult.GetValueForOption(s_namespaceName) ?? ""; + var outputLocation = context.ParseResult.GetValueForOption(s_outputLocation) ?? ""; + var outputMode = context.ParseResult.GetValueForOption(s_outputMode); var remappedNameValuePairs = - parseResult.GetValueForOption(_remappedNameValuePairs) ?? Array.Empty(); - var std = parseResult.GetValueForOption(_std) ?? ""; - var testOutputLocation = parseResult.GetValueForOption(_testOutputLocation) ?? ""; - var traversalNames = - parseResult.GetValueForOption(_traversalNames) ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_remappedNameValuePairs) ?? []; + var std = context.ParseResult.GetValueForOption(s_std) ?? ""; + var testOutputLocation = context.ParseResult.GetValueForOption(s_testOutputLocation) ?? ""; + var traversalNames = context.ParseResult.GetValueForOption(s_traversalNames) ?? []; var withAccessSpecifierNameValuePairs = - parseResult.GetValueForOption(_withAccessSpecifierNameValuePairs) - ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_withAccessSpecifierNameValuePairs) ?? []; var withAttributeNameValuePairs = - parseResult.GetValueForOption(_withAttributeNameValuePairs) ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_withAttributeNameValuePairs) ?? []; var withCallConvNameValuePairs = - parseResult.GetValueForOption(_withCallConvNameValuePairs) ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_withCallConvNameValuePairs) ?? []; var withClassNameValuePairs = - parseResult.GetValueForOption(_withClassNameValuePairs) ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_withClassNameValuePairs) ?? []; var withGuidNameValuePairs = - parseResult.GetValueForOption(_withGuidNameValuePairs) ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_withGuidNameValuePairs) ?? []; + var withLengthNameValuePairs = + context.ParseResult.GetValueForOption(s_withLengthNameValuePairs) ?? []; var withLibraryPathNameValuePairs = - parseResult.GetValueForOption(_withLibraryPathNameValuePairs) ?? Array.Empty(); - var withManualImports = - parseResult.GetValueForOption(_withManualImports) ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_withLibraryPathNameValuePairs) ?? []; + var withManualImports = context.ParseResult.GetValueForOption(s_withManualImports) ?? []; var withNamespaceNameValuePairs = - parseResult.GetValueForOption(_withNamespaceNameValuePairs) ?? Array.Empty(); - var withSetLastErrors = - parseResult.GetValueForOption(_withSetLastErrors) ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_withNamespaceNameValuePairs) ?? []; + var withSetLastErrors = context.ParseResult.GetValueForOption(s_withSetLastErrors) ?? []; var withSuppressGCTransitions = - parseResult.GetValueForOption(_withSuppressGCTransitions) ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_withSuppressGCTransitions) ?? []; var withTransparentStructNameValuePairs = - parseResult.GetValueForOption(_withTransparentStructNameValuePairs) - ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_withTransparentStructNameValuePairs) ?? []; var withTypeNameValuePairs = - parseResult.GetValueForOption(_withTypeNameValuePairs) ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_withTypeNameValuePairs) ?? []; var withUsingNameValuePairs = - parseResult.GetValueForOption(_withUsingNameValuePairs) ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_withUsingNameValuePairs) ?? []; var withPackingNameValuePairs = - parseResult.GetValueForOption(_withPackingNameValuePairs) ?? Array.Empty(); + context.ParseResult.GetValueForOption(s_withPackingNameValuePairs) ?? []; + + var versionResult = context.ParseResult.FindResultFor(s_versionOption); - var errorList = new List(parseResult.Errors.Select(x => x.ToString())); + // if (versionResult is not null) + // { + // context.Console.WriteLine($"{s_rootCommand.Description} version 18.1.3"); + // context.Console.WriteLine($" {clang.getClangVersion()}"); + // context.Console.WriteLine($" {clangsharp.getVersion()}"); + // context.ExitCode = -1; + // return; + // } + + var errorList = new List(); if (files.Length == 0) { @@ -985,6 +923,11 @@ out Dictionary withClasses errorList, out Dictionary withGuids ); + ParseKeyValuePairs( + withLengthNameValuePairs, + errorList, + out Dictionary withLengths + ); ParseKeyValuePairs( withLibraryPathNameValuePairs, errorList, @@ -1239,12 +1182,26 @@ out Dictionary withPackings break; } + case "generate-callconv-member-function": + { + configOptions |= + PInvokeGeneratorConfigurationOptions.GenerateCallConvMemberFunction; + break; + } + case "generate-cpp-attributes": { configOptions |= PInvokeGeneratorConfigurationOptions.GenerateCppAttributes; break; } + case "generate-disable-runtime-marshalling": + { + configOptions |= + PInvokeGeneratorConfigurationOptions.GenerateDisableRuntimeMarshalling; + break; + } + case "generate-doc-includes": { configOptions |= PInvokeGeneratorConfigurationOptions.GenerateDocIncludes; @@ -1296,6 +1253,13 @@ out Dictionary withPackings break; } + case "generate-generic-pointer-wrapper": + { + configOptions |= + PInvokeGeneratorConfigurationOptions.GenerateGenericPointerWrapper; + break; + } + case "generate-setslastsystemerror-attribute": { configOptions |= @@ -1344,6 +1308,14 @@ out Dictionary withPackings break; } + // Strip Options + + case "strip-enum-member-type-name": + { + configOptions |= PInvokeGeneratorConfigurationOptions.StripEnumMemberTypeName; + break; + } + // Legacy Options case "default-remappings": @@ -1378,11 +1350,12 @@ out Dictionary withPackings ); } + // End verbatim ClangSharp code if (errorList.Count != 0) { foreach (var error in errorList) { - _logger.LogError($"Error in args for '{files.FirstOrDefault()}': {error}"); + logger.LogError($"Error in args for '{files.FirstOrDefault()}': {error}"); } } @@ -1416,12 +1389,14 @@ out Dictionary withPackings { $"--language={language}", // Treat subsequent input files as having type "-Wno-pragma-once-outside-header" // We are processing files which may be header files + , } : new string[] { $"--language={language}", // Treat subsequent input files as having type $"--std={std}", // Language standard to compile for "-Wno-pragma-once-outside-header" // We are processing files which may be header files + , }; clangCommandLineArgs = clangCommandLineArgs @@ -1461,6 +1436,7 @@ out Dictionary withPackings WithCallConvs = withCallConvs, WithClasses = withClasses, WithGuids = withGuids, + WithLengths = withLengths, WithLibraryPaths = withLibraryPaths, WithManualImports = withManualImports, WithNamespaces = withNamespaces, @@ -1511,28 +1487,28 @@ public IEnumerable ReadResponseFiles( IReadOnlyList globs ) { - _logger.LogDebug( + logger.LogDebug( "Looking for response files in {0} (we are in {1})", directory, Environment.CurrentDirectory ); foreach (var rsp in Glob(globs)) { - _logger.LogDebug("Reading found file: {0}", rsp); + logger.LogDebug("Reading found file: {0}", rsp); var dir = Path.GetDirectoryName(rsp) ?? throw new InvalidOperationException("Couldn't get directory name of path"); var read = ReadResponseFile(RspRelativeTo(dir, rsp).ToArray(), dir, rsp); yield return read with { - FileDirectory = dir + FileDirectory = dir, }; } } private IEnumerable RspRelativeTo(string directory, string fullPath) { - _logger.LogTrace("Reading {0}", fullPath); + logger.LogTrace("Reading {0}", fullPath); foreach (var arg in File.ReadAllLines(fullPath)) { if (string.IsNullOrWhiteSpace(arg)) @@ -1543,7 +1519,7 @@ private IEnumerable RspRelativeTo(string directory, string fullPath) if (arg[0] == '@') { var innerRsp = Path.GetFullPath(arg[1..], directory); - _logger.LogTrace("{0} includes {1}", fullPath, innerRsp); + logger.LogTrace("{0} includes {1}", fullPath, innerRsp); foreach (var inner in RspRelativeTo(directory, innerRsp)) { yield return inner; diff --git a/sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj b/sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj index 10919bdc15..cf25df9a23 100644 --- a/sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj +++ b/sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj @@ -8,7 +8,7 @@ - + From df2ba9e8f1033a36751bd1f88713fb0efc8927a4 Mon Sep 17 00:00:00 2001 From: Dylan Perks Date: Thu, 21 Nov 2024 16:47:20 +0000 Subject: [PATCH 8/8] Commit cache files too --- .silktouch/0afb5dc84012c2fa.stout | Bin 157535 -> 157535 bytes .silktouch/c8c046b328b09d23.stout | Bin 231467 -> 231467 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/.silktouch/0afb5dc84012c2fa.stout b/.silktouch/0afb5dc84012c2fa.stout index 707992149f5ec100debb341a6eafb516b7709c33..60fd812b22d49b28c035bb5e9003526dad306877 100644 GIT binary patch delta 4507 zcmYLLX;_uj7G`Y_4scMM7}Pijf{Y4^D3gK%%6ynPa2NzcNg=~oM8NBinx-9Xn_}Tq zm=Ff(XPP*KnwCI=*Sa~R74S(`|Y*%efssTz1F+Ny}sdQhxN@4Ypp)c++vWK znVH6{zV-v{BIsLRyU38fGW&QLn3;_6m@1Unv2@IP4m#6wtWHO#W!vtHtra~u>Ib|JHf4LPyH--pcWi?mnU;>?YrwFvM$%H zL`-;#yaMWzX%bfkmi2kAPV%Vfbhk5i@?zT7);-q9ZQDy3{q{e{v;R8*i23gZA#QI7 zM!bA51W|J+7jbrD5#r}ftLb7AUn_0&Q!Ddh>cu#5ov%8Uwaw(*c6b?*Lt3cqhSqoR ztUvM!;(w0P*b|P0GBJkr$7yWNAHRt9H78$3bUsyrSbMsF8gu_^@A^_T=`W_hrB1wO z6dTy;e3nMH`IAM+?Q`xE#7pP%5Pd%V6?3?J)x~YYLqu0OhHd(y266OPS=7RnyH=u=#n<0NegB&a z5!Zcx4l(g|1>)Hs)*#0GM6Dj_rj4`zWw(X!Z@xDd?ZX~yL_FB@D&qLw4TzuodJ%E+ zZ-)^hA3dbe%$iU!#i&-jh7WfGC+-@{ELshZmrzTMkLrJnQjHTCcO9s%QGBL)TYa9S zUN{>0zqh@O#I7lWdSc^it2I{B|=kO?Fm6~ch zPj*o2s0m|^N}Ua?Lz;(HhWf@1@X1kT_k&h64eJk&C_*K_x3O4_;6)LZ8=1W_eIVfV zDs6*g#%Ko_>Q6`5h7n$KhWAhi8ww{-csvZ+P&noSAEHq13b=}jgPUyOj5~abraBM6 zZB=YX%7A;kAVfT-$~9leM^1!4;DfGokAgX<(Fed%6fOnAODKemg(ej41WDn|V8F>L z#t9HCwnf<%3hyIlYB=CCth7hKCDd%01Ye_25(Vo~=$#BtP`E!8aA_1nG~m;yv`q)x za>XSEP9f)JENn%gB3=&aNdgq0#+U>gh2QmZPgY^bud0$h=`b0NHpg544@pfG0{Ohlof5+YH!QzbP%HBvKg zmGru~8fGBJdmSu8VgGulX83mRzcnY`g7;Rz5GDFma6xOyW|)IQ*A|$C!gv#GAb!#E zk}w-S^fV0NIwP}E?rw*XRCnp!@AhHcJS>e3;F?=tuVn6kXE>(Joe;1Ki1wjM!9salNKQ%RHF(>}o zPPP6Q6zD?~-P6Ltf67*-eFT1#;#BdAKU2lrU|^2qcj5$CV2(27m5E_?KE`P<)#OffmYnER9%SR0ydb(4`%kf-jP`-EAGHky!^_0 zun~*~mipAX^koi6 z3$|wkDC`)(s!?zr%%V^*I~Ur*Q5ZgqO&0=x(S;=mJmJC;1={LVs)~9YOAz?B z#0NU27w1SEi6^M)8-p5%0Vk`44d?{akm_AD3s_ z5u`Vcp!kg=DDN|=Px2uCTOMS8;6d>wd$Jsn?`=<(A@C1R(#MS?-mZ}>M(DdovRHv* zyjYyTYA@nn^&-2QH`&X**$iPn=1qEYAIh8JLw(l!kpF!jiXY)i`L_B}{kJ8K^`rP3 z{m6dPkK+6Kvt$u}r9Vp(__aUfa~VbP$|bgqqW?l|1{7p*pI^P#>4a5Z`qy=@*WreCNkfTwM_LIWLH%iack6sD8U~ zG!NrAir+Mj{GQ9RKA8Lu22=dMgQ?Gy@hnfoX&F!XEGLlOD6vJNCWP|khEUvQi4aQp zQbNi99f?muiJufk@eYJh|4${RhqEk^w>g~jRuRO@ji5dKP@Zij(s|}YihpDx)vuXE zXX7NQ=lx04|5K??j-n5$4;kuc1gT9o#qoggZy^Qp!@r6 z1~Z7cCB;xZ`(ntyCx+%SIhOWuUo7p(!&sVYbR3;can$FnII24^p0GBa{J)N;`aBZ| zmrA^pz_Rcw@UeCDZA)IApuX!P6V+FvTFc@@irJn>Jq=7^iO99EzV)d+pOm9=tCLuS z;I<_ZSF0y(j-Kjj(3Ad=UixawH+fj`=0erCFqw@LzHcT|&-asQ7SSoPrxaEw?0=-F zZ(J1(sVp1wJX)qaxV9{mKQB-($!#`^ F_#XnlV(tI{ delta 4507 zcmYLLX;_uj7G`Y_4scMM7}Pijf{c1lM41#EQ0BwTfx{pmN(vdyB7$Cr)HLmA+Z4;O zFd+=m&opreH7$V#uXS@sE9!AVx@BgmcYkZ``}FHwd#!hkdws*rcH5inwpv5HrPTln z3k!{fzWM|00_d%;USP~vo^!k$EG&jwnhUo%Zy9Ob(f})g>8o4xmSvSH?pzQ84k~rf z1kb|*1hvlGV|L-4I_B77y~qu@-iucuHY}+^^sOpK+`jB(MEm7)5vyyAh~L!yj@Yqs z57?@)r%e6+xP!URp&`89L&QC>${Fpgt2ZJhu6-Br(JPw}*Q}p`cz?rE#IlW)@0(3j zNB-tDmTK)?<~e9j-!>2N;v2UR8@3N)*nUsaosbsMQy(iHqy=Z*>CIeQdha}mtjl%F z5fk4cFa7Qmn#7g<<-MMZNgg$y?sDZWK1|!vvd0#=t$QhB!2aiW4tz(CSnzHz;J7vsWp{$ea^n#j5J@De14HdEX6E$`sj zaO4%l{~V>UCmsu9>KN7?r?I(y{36;{pL`wB^;9Y1iqnPEnCD-6*OiH+znFs-yYTK2 ztbdE^SsLA@PZl7z*SSv+FP+av^!xNz%;EM~GZk*$e6C=li1FCU-0`ckx$_GRcMK8} zvc1fSV0-Gljx<5|l&Lcx#%HP48|^fQ$j%B3+xSH-;>fSEsf8Jew#H8Dmh-ZITjTrkAwR)tBHqP;vT~?}p)4kbfAM#)W;=%4$5y$qdNBrd1i-?&tb#|~8XKg~ZCr6pt2U^fHq%S<82vz*vh7u9MhaxOBF-K);f57Wi zS_jCCF-|hnpU$uqBfRDc@1YPr7*3$@cnGwjaLf%pM4`eRa1|9N581*QPxuy1bzXqm zs@M;g0r&VosQQ>H*ZiRXIgx>Y54zGd0%oDcpohgMTnd7hPzWCljVRm+mcpAMfRj~B z;~+%c7G-M~ypNp85rEII(iRDqP_uage2qeBG^|6RXCgd7;r?X6rBRGAfKQ{+Iu&rs z6}MP8g`Aslumy$61UaZDiBO0dQ!;QAemBTL?Ma1WsL4%-cogb00N;elpe#6mnlsrD zhk`>6L}Kv?CRl=+3wcn2LSO;lQ=#lClp4z-s6_Ij5}1NQYbnH_U|l9PiL+q^YC6lM z$z`rcp;6zr^M3y9DAx^SgO$aV;Et>v^WkL_92S8Qg;`5rJPP$y5QV~>YN_$7m6|y# zrPs|>Fbz4rYheir``1AY!?%0iEx8F+yr&ulDKW2t8(K>@!7LOyH^U4R#+qS0@r#$1 zhTHMMr(qD+nV5}ocN+|+y36i=pr z!io1-GADi`ow+F2>tFzd|IYZZ&W`8rfI;TZyX_U-+j0WYdmslZ*|iUnP`G~pYEgKp z9yX%@hhP~BHI0x);mpTw+|_b@Gw75jO%RAy-)2ZB+J}OMHT^L&;&1zZYHG@6F8s9} zqW%{Y=tUIW)1sn(%2uX)1Ob%dRLP4!Q^nk9WX|Mw;sjV>jx#4A1%&~p!GJ>PS&>zJ z5Kgo~22F11?dw;$e>-^aWG&cpw_K*>4Hv;d$-e*&$SuDJ_^wqhdKn4Wj_;*L_XEsB z&eorV33tVRW15!+FGsQY1$;@l@j+FP4R(6wJMa`Qzv>>$ z$51^FU?K`*dgOz!?7xtTn$F+jYJxLB|qRd|ToJ z9W$usD0h~s;#PO!|L9J<(L-5+s$U_oV<^i|&)yyse~}0A&U=vmAWzcI_9XprdA1)$ zdebn9-!P2wK9l-nFXF%DMfL|?6mOz8%T@Ee?aeY({KK2{@xzI?b2y7t^aTnxD^U6EBUzq`fqIsu;u<~W zy{f0UenFIXWf1AVl4t)>R7cGy>f`b#;=7L~{ru6C@BCVzvuF72qFK2Ar$}b5b85^EX!BpG>@fx*5gQTlGrR!6H58=LMd*OL*j>IQn#7_>Vcn89%|ECf&B3QPXw<&`3Hj%{3i=;jMP@e6^(|P)MihpE0)vuXA zXVV0#=lu!P|5K??iK4ppMv=ZpVpKHk&xUBSUyG*s`AnqwFO=9ek@60nM19PiMETkz zx=bd0`DEIUlk(he3e{60@u);ijGSMLoL>yp^(=<+$4#Yrc1pZAmF5#Ojr?{_qx<`9 z8Z)YMOOB;__QjHacP!0iVjS(`zBt;GhjBF5n0Pvyhn${ zTrBZYBFo0Fz{j>Rx2<_iqIlOwC5cy~sAXXi#cWHWp86-VB;;Dz-ul#$PskPAnq(HK za$A#$t2Gce*FbgE8%Y1iAbqtJ8@+6JQ<3m3N?~JE-#1gJ=ldx%igD=GO2*#Og3FTpU1&tedc33hkXxx0vvUCNAwtWQ+L?m^HrXLn delta 84 zcmZ2Ifp7H$KAr$?W)=|!1_llWgW8QeJ1m(DYBwLVEL{PjZ6C#40MhNVH!*IXy@@I5 b3Xn7Xe;czKh<0y>(EaVq?jZh+cIIFJuWlW+